From 66b793bbf8f6537161017dd872d1a3cd5489208d Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 31 Oct 2023 22:32:06 +0000 Subject: [PATCH] CodeGen from PR 26463 in Azure/azure-rest-api-specs Merge 56316c7f2dc1b436b2fe4d1edb1b01f73d36ed66 into d7eab2b8527d6dc25412338d43655c366440aabe --- common/config/rush/pnpm-lock.yaml | 272 +- .../arm-machinelearning/CHANGELOG.md | 1109 +- .../arm-machinelearning/LICENSE | 2 +- .../arm-machinelearning/README.md | 26 +- .../arm-machinelearning/_meta.json | 8 +- .../arm-machinelearning/package.json | 52 +- .../review/arm-machinelearning.api.md | 7953 ++++-- .../arm-machinelearning/rollup.config.js | 122 + ...ces.ts => azureMachineLearningServices.ts} | 162 +- .../arm-machinelearning/src/index.ts | 2 +- .../arm-machinelearning/src/lroImpl.ts | 54 +- .../arm-machinelearning/src/models/index.ts | 19134 +++++++++----- .../arm-machinelearning/src/models/mappers.ts | 21532 +++++++++++----- .../src/models/parameters.ts | 940 +- .../src/operations/batchDeployments.ts | 96 +- .../src/operations/batchEndpoints.ts | 93 +- .../operations/capacityReservationGroups.ts | 463 + .../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 | 34 +- .../src/operations/inferenceEndpoints.ts | 701 + .../src/operations/inferenceGroups.ts | 948 + .../src/operations/inferencePools.ts | 883 + .../src/operations/jobs.ts | 123 +- .../src/operations/labelingJobs.ts | 737 + .../operations/managedNetworkProvisions.ts | 163 + .../operations/managedNetworkSettingsRule.ts | 497 + .../src/operations/modelContainers.ts | 22 +- .../src/operations/modelVersions.ts | 190 +- .../src/operations/onlineDeployments.ts | 101 +- .../src/operations/onlineEndpoints.ts | 134 +- .../src/operations/operations.ts | 20 +- .../operations/privateEndpointConnections.ts | 100 +- .../src/operations/privateLinkResources.ts | 83 +- .../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 | 857 + .../src/operations/usages.ts | 11 +- .../src/operations/virtualMachineSizes.ts | 6 +- .../src/operations/workspaceConnections.ts | 341 +- .../src/operations/workspaceFeatures.ts | 11 +- .../src/operations/workspaces.ts | 829 +- .../operationsInterfaces/batchDeployments.ts | 12 +- .../operationsInterfaces/batchEndpoints.ts | 12 +- .../capacityReservationGroups.ts | 83 + .../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 | 34 +- .../inferenceEndpoints.ts | 162 + .../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 | 6 +- .../privateEndpointConnections.ts | 52 +- .../privateLinkResources.ts | 17 +- .../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 | 215 + .../workspaceConnections.ts | 96 +- .../src/operationsInterfaces/workspaces.ts | 236 +- .../arm-machinelearning/src/pagingHelper.ts | 8 +- .../arm-machinelearning/tsconfig.json | 10 +- 107 files changed, 56727 insertions(+), 15552 deletions(-) create mode 100644 sdk/machinelearning/arm-machinelearning/rollup.config.js rename sdk/machinelearning/arm-machinelearning/src/{azureMachineLearningWorkspaces.ts => azureMachineLearningServices.ts} (62%) create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/capacityReservationGroups.ts 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/capacityReservationGroups.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 99321d0907bc..e9e6b6603591 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1,7 +1,7 @@ lockfileVersion: '6.0' settings: - autoInstallPeers: true + autoInstallPeers: false excludeLinksFromLockfile: false dependencies: @@ -1981,6 +1981,16 @@ packages: lodash: 4.17.21 dev: false + /@microsoft/api-extractor-model@7.28.2(@types/node@16.18.60): + resolution: {integrity: sha512-vkojrM2fo3q4n4oPh4uUZdjJ2DxQ2+RnDQL/xhTWSRUNPF6P4QyrvY357HBxbnltKcYu+nNNolVqc6TIGQ73Ig==} + dependencies: + '@microsoft/tsdoc': 0.14.2 + '@microsoft/tsdoc-config': 0.16.2 + '@rushstack/node-core-library': 3.61.0(@types/node@16.18.60) + transitivePeerDependencies: + - '@types/node' + dev: false + /@microsoft/api-extractor-model@7.28.2(@types/node@18.18.7): resolution: {integrity: sha512-vkojrM2fo3q4n4oPh4uUZdjJ2DxQ2+RnDQL/xhTWSRUNPF6P4QyrvY357HBxbnltKcYu+nNNolVqc6TIGQ73Ig==} dependencies: @@ -1991,6 +2001,26 @@ packages: - '@types/node' dev: false + /@microsoft/api-extractor@7.38.0(@types/node@16.18.60): + resolution: {integrity: sha512-e1LhZYnfw+JEebuY2bzhw0imDCl1nwjSThTrQqBXl40hrVo6xm3j/1EpUr89QyzgjqmAwek2ZkIVZbrhaR+cqg==} + hasBin: true + dependencies: + '@microsoft/api-extractor-model': 7.28.2(@types/node@16.18.60) + '@microsoft/tsdoc': 0.14.2 + '@microsoft/tsdoc-config': 0.16.2 + '@rushstack/node-core-library': 3.61.0(@types/node@16.18.60) + '@rushstack/rig-package': 0.5.1 + '@rushstack/ts-command-line': 4.16.1 + colors: 1.2.5 + lodash: 4.17.21 + resolve: 1.22.8 + semver: 7.5.4 + source-map: 0.6.1 + typescript: 5.0.4 + transitivePeerDependencies: + - '@types/node' + dev: false + /@microsoft/api-extractor@7.38.0(@types/node@18.18.7): resolution: {integrity: sha512-e1LhZYnfw+JEebuY2bzhw0imDCl1nwjSThTrQqBXl40hrVo6xm3j/1EpUr89QyzgjqmAwek2ZkIVZbrhaR+cqg==} hasBin: true @@ -2569,6 +2599,24 @@ packages: - supports-color dev: false + /@rollup/plugin-commonjs@24.1.0(rollup@2.79.1): + resolution: {integrity: sha512-eSL45hjhCWI0jCCXcNtLVqM5N1JlBGvlFfY0m6oOYnLCJ6N0qEXoZql4sY2MOUArzhH4SA/qBpTxvvZp2Sc+DQ==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^2.68.0||^3.0.0 + peerDependenciesMeta: + rollup: + optional: true + dependencies: + '@rollup/pluginutils': 5.0.5(rollup@2.79.1) + commondir: 1.0.1 + estree-walker: 2.0.2 + glob: 8.1.0 + is-reference: 1.2.1 + magic-string: 0.27.0 + rollup: 2.79.1 + dev: false + /@rollup/plugin-commonjs@25.0.7(rollup@3.29.4): resolution: {integrity: sha512-nEvcR+LRjEjsaSsc4x3XZfCCvZIaSMenZu/OiwOKGN2UhQpAYI7ru7czFvyWbErlpoGjnSX3D5Ch5FcMA3kRWQ==} engines: {node: '>=14.0.0'} @@ -2602,6 +2650,19 @@ packages: rollup: 3.29.4 dev: false + /@rollup/plugin-json@6.0.1(rollup@2.79.1): + resolution: {integrity: sha512-RgVfl5hWMkxN1h/uZj8FVESvPuBJ/uf6ly6GTj0GONnkfoBN5KC0MSz+PN2OLDgYXMhtG0mWpTrkiOjoxAIevw==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + dependencies: + '@rollup/pluginutils': 5.0.5(rollup@2.79.1) + rollup: 2.79.1 + dev: false + /@rollup/plugin-json@6.0.1(rollup@3.29.4): resolution: {integrity: sha512-RgVfl5hWMkxN1h/uZj8FVESvPuBJ/uf6ly6GTj0GONnkfoBN5KC0MSz+PN2OLDgYXMhtG0mWpTrkiOjoxAIevw==} engines: {node: '>=14.0.0'} @@ -2615,6 +2676,20 @@ packages: rollup: 3.29.4 dev: false + /@rollup/plugin-multi-entry@6.0.1(rollup@2.79.1): + resolution: {integrity: sha512-AXm6toPyTSfbYZWghQGbom1Uh7dHXlrGa+HoiYNhQtDUE3Q7LqoUYdVQx9E1579QWS1uOiu+cZRSE4okO7ySgw==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + dependencies: + '@rollup/plugin-virtual': 3.0.2(rollup@2.79.1) + matched: 5.0.1 + rollup: 2.79.1 + dev: false + /@rollup/plugin-multi-entry@6.0.1(rollup@3.29.4): resolution: {integrity: sha512-AXm6toPyTSfbYZWghQGbom1Uh7dHXlrGa+HoiYNhQtDUE3Q7LqoUYdVQx9E1579QWS1uOiu+cZRSE4okO7ySgw==} engines: {node: '>=14.0.0'} @@ -2629,6 +2704,21 @@ packages: rollup: 3.29.4 dev: false + /@rollup/plugin-node-resolve@13.3.0(rollup@2.79.1): + resolution: {integrity: sha512-Lus8rbUo1eEcnS4yTFKLZrVumLPY+YayBdWXgFSHYhTT2iJbMhoaaBL3xl5NCdeRytErGr8tZ0L71BMRmnlwSw==} + engines: {node: '>= 10.0.0'} + peerDependencies: + rollup: ^2.42.0 + dependencies: + '@rollup/pluginutils': 3.1.0(rollup@2.79.1) + '@types/resolve': 1.17.1 + deepmerge: 4.3.1 + is-builtin-module: 3.2.1 + is-module: 1.0.0 + resolve: 1.22.8 + rollup: 2.79.1 + dev: false + /@rollup/plugin-node-resolve@15.2.3(rollup@3.29.4): resolution: {integrity: sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ==} engines: {node: '>=14.0.0'} @@ -2647,6 +2737,18 @@ packages: rollup: 3.29.4 dev: false + /@rollup/plugin-virtual@3.0.2(rollup@2.79.1): + resolution: {integrity: sha512-10monEYsBp3scM4/ND4LNH5Rxvh3e/cVeL3jWTgZ2SrQ+BmUoQcopVQvnaMcOnykb1VkxUFuDAN+0FnpTFRy2A==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + dependencies: + rollup: 2.79.1 + dev: false + /@rollup/plugin-virtual@3.0.2(rollup@3.29.4): resolution: {integrity: sha512-10monEYsBp3scM4/ND4LNH5Rxvh3e/cVeL3jWTgZ2SrQ+BmUoQcopVQvnaMcOnykb1VkxUFuDAN+0FnpTFRy2A==} engines: {node: '>=14.0.0'} @@ -2659,6 +2761,33 @@ packages: rollup: 3.29.4 dev: false + /@rollup/pluginutils@3.1.0(rollup@2.79.1): + resolution: {integrity: sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==} + engines: {node: '>= 8.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0 + dependencies: + '@types/estree': 0.0.39 + estree-walker: 1.0.1 + picomatch: 2.3.1 + rollup: 2.79.1 + dev: false + + /@rollup/pluginutils@5.0.5(rollup@2.79.1): + resolution: {integrity: sha512-6aEYR910NyP73oHiJglti74iRyOwgFU4x3meH/H8OJx6Ry0j6cOVZ5X/wTvub7G7Ao6qaHBEaNsV3GLJkSsF+Q==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + dependencies: + '@types/estree': 1.0.3 + estree-walker: 2.0.2 + picomatch: 2.3.1 + rollup: 2.79.1 + dev: false + /@rollup/pluginutils@5.0.5(rollup@3.29.4): resolution: {integrity: sha512-6aEYR910NyP73oHiJglti74iRyOwgFU4x3meH/H8OJx6Ry0j6cOVZ5X/wTvub7G7Ao6qaHBEaNsV3GLJkSsF+Q==} engines: {node: '>=14.0.0'} @@ -2674,6 +2803,24 @@ packages: rollup: 3.29.4 dev: false + /@rushstack/node-core-library@3.61.0(@types/node@16.18.60): + resolution: {integrity: sha512-tdOjdErme+/YOu4gPed3sFS72GhtWCgNV9oDsHDnoLY5oDfwjKUc9Z+JOZZ37uAxcm/OCahDHfuu2ugqrfWAVQ==} + peerDependencies: + '@types/node': '*' + peerDependenciesMeta: + '@types/node': + optional: true + dependencies: + '@types/node': 16.18.60 + colors: 1.2.5 + fs-extra: 7.0.1 + import-lazy: 4.0.0 + jju: 1.4.0 + resolve: 1.22.8 + semver: 7.5.4 + z-schema: 5.0.5 + dev: false + /@rushstack/node-core-library@3.61.0(@types/node@18.18.7): resolution: {integrity: sha512-tdOjdErme+/YOu4gPed3sFS72GhtWCgNV9oDsHDnoLY5oDfwjKUc9Z+JOZZ37uAxcm/OCahDHfuu2ugqrfWAVQ==} peerDependencies: @@ -2848,6 +2995,10 @@ packages: '@types/json-schema': 7.0.14 dev: false + /@types/estree@0.0.39: + resolution: {integrity: sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==} + dev: false + /@types/estree@1.0.3: resolution: {integrity: sha512-CS2rOaoQ/eAgAfcTfq6amKG7bsN+EMcgGY4FAFQdvSj2y1ixvOZTUA9mOtCai7E1SYu283XNw7urKK30nP3wkQ==} dev: false @@ -2981,6 +3132,10 @@ packages: form-data: 4.0.0 dev: false + /@types/node@16.18.60: + resolution: {integrity: sha512-ZUGPWx5vKfN+G2/yN7pcSNLkIkXEvlwNaJEd4e0ppX7W2S8XAkdc/37hM4OUNJB9sa0p12AOvGvxL4JCPiz9DA==} + dev: false + /@types/node@18.18.7: resolution: {integrity: sha512-bw+lEsxis6eqJYW8Ql6+yTqkE6RuFtsQPSe5JxXbqYRFQEER5aJA9a5UH9igqDWm3X4iLHIKOHlnAXLM4mi7uQ==} dependencies: @@ -3025,6 +3180,12 @@ packages: resolution: {integrity: sha512-+0autS93xyXizIYiyL02FCY8N+KkKPhILhcUSA276HxzreZ16kl+cmwvV2qAM/PuCCwPXzOXOWhiPcw20uSFcA==} dev: false + /@types/resolve@1.17.1: + resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==} + dependencies: + '@types/node': 18.18.7 + dev: false + /@types/resolve@1.20.2: resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} dev: false @@ -3547,6 +3708,12 @@ packages: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} dev: false + /atob@2.1.2: + resolution: {integrity: sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==} + engines: {node: '>= 4.5.0'} + hasBin: true + dev: false + /autorest@3.6.3: resolution: {integrity: sha512-j/Axwk9bniifTNtBLYVxfQZGQIGPKljFaCQCBWOiybVar2j3tkHP1btiC4a/t9pAJXY6IaFgWctoPM3G/Puhyg==} engines: {node: '>=12.0.0'} @@ -4272,6 +4439,11 @@ packages: engines: {node: '>=10'} dev: false + /decode-uri-component@0.2.2: + resolution: {integrity: sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==} + engines: {node: '>=0.10'} + dev: false + /decompress-response@6.0.0: resolution: {integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==} engines: {node: '>=10'} @@ -4495,7 +4667,7 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.3.0-dev.20231030 + typescript: 5.3.0-dev.20231031 dev: false /eastasianwidth@0.2.0: @@ -4959,6 +5131,10 @@ packages: engines: {node: '>=4.0'} dev: false + /estree-walker@1.0.1: + resolution: {integrity: sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==} + dev: false + /estree-walker@2.0.2: resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} dev: false @@ -8315,6 +8491,22 @@ packages: rollup: 3.29.4 dev: false + /rollup-plugin-sourcemaps@0.6.3(@types/node@16.18.60)(rollup@2.79.1): + resolution: {integrity: sha512-paFu+nT1xvuO1tPFYXGe+XnQvg4Hjqv/eIhG8i5EspfYYPBKL57X7iVbfv55aNVASg3dzWvES9dmWsL2KhfByw==} + engines: {node: '>=10.0.0'} + peerDependencies: + '@types/node': '>=10.0.0' + rollup: '>=0.31.2' + peerDependenciesMeta: + '@types/node': + optional: true + dependencies: + '@rollup/pluginutils': 3.1.0(rollup@2.79.1) + '@types/node': 16.18.60 + rollup: 2.79.1 + source-map-resolve: 0.6.0 + dev: false + /rollup-plugin-visualizer@5.9.2(rollup@3.29.4): resolution: {integrity: sha512-waHktD5mlWrYFrhOLbti4YgQCn1uR24nYsNuXxg7LkPH8KdTXVWR9DNY1WU0QqokyMixVXJS4J04HNrVTMP01A==} engines: {node: '>=14'} @@ -8332,6 +8524,14 @@ packages: yargs: 17.7.2 dev: false + /rollup@2.79.1: + resolution: {integrity: sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==} + engines: {node: '>=10.0.0'} + hasBin: true + optionalDependencies: + fsevents: 2.3.3 + dev: false + /rollup@3.29.4: resolution: {integrity: sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==} engines: {node: '>=14.18.0', npm: '>=8.0.0'} @@ -8640,6 +8840,14 @@ packages: smart-buffer: 4.2.0 dev: false + /source-map-resolve@0.6.0: + resolution: {integrity: sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==} + deprecated: See https://github.com/lydell/source-map-resolve#deprecated + dependencies: + atob: 2.1.2 + decode-uri-component: 0.2.2 + dev: false + /source-map-support@0.5.21: resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} dependencies: @@ -9057,6 +9265,37 @@ packages: code-block-writer: 12.0.0 dev: false + /ts-node@10.9.1(@types/node@16.18.60)(typescript@5.0.4): + resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} + hasBin: true + peerDependencies: + '@swc/core': '>=1.2.50' + '@swc/wasm': '>=1.2.50' + '@types/node': '*' + typescript: '>=2.7' + peerDependenciesMeta: + '@swc/core': + optional: true + '@swc/wasm': + optional: true + dependencies: + '@cspotcode/source-map-support': 0.8.1 + '@tsconfig/node10': 1.0.9 + '@tsconfig/node12': 1.0.11 + '@tsconfig/node14': 1.0.3 + '@tsconfig/node16': 1.0.4 + '@types/node': 16.18.60 + acorn: 8.11.2 + acorn-walk: 8.3.0 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + typescript: 5.0.4 + v8-compile-cache-lib: 3.0.1 + yn: 3.1.1 + dev: false + /ts-node@10.9.1(@types/node@18.18.7)(typescript@5.0.4): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true @@ -9261,8 +9500,8 @@ packages: hasBin: true dev: false - /typescript@5.3.0-dev.20231030: - resolution: {integrity: sha512-azWrF0lAiu8cBHNr6yq3RDkU/DtQScvT48ea3Ngq6oXJ/GPO0n96wCFSRQA5UbZlVVf3fAAqsUfvOdohRbrPVg==} + /typescript@5.3.0-dev.20231031: + resolution: {integrity: sha512-+w6szmOFr7GSWj/eNFgHdYqubMux9B5ao5LFoGdn712gbDYMpLwqLNkPLpJHD9chl/2wc/W96iSfALkZs7sVXQ==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -13389,22 +13628,31 @@ packages: dev: false file:projects/arm-machinelearning.tgz: - resolution: {integrity: sha512-6bZ0NqSi+BovXu1NdCxyxP7+Op62WyUKg5kbH8u+QB9+1QASB+QTITOL7oV1Hx/POWc8q/PXqiKYn1VsQH8F6A==, tarball: file:projects/arm-machinelearning.tgz} + resolution: {integrity: sha512-Zn+C11cNqHsqYtVvCVI51873/TzhQGODa0ACgwin8V1wHZg1bHJpC2QB0F3gE3d47q6NaqKH5SvSivViytA6xA==, tarball: file:projects/arm-machinelearning.tgz} name: '@rush-temp/arm-machinelearning' version: 0.0.0 dependencies: '@azure/identity': 3.3.2 - '@microsoft/api-extractor': 7.38.0(@types/node@18.18.7) + '@microsoft/api-extractor': 7.38.0(@types/node@16.18.60) + '@rollup/plugin-commonjs': 24.1.0(rollup@2.79.1) + '@rollup/plugin-json': 6.0.1(rollup@2.79.1) + '@rollup/plugin-multi-entry': 6.0.1(rollup@2.79.1) + '@rollup/plugin-node-resolve': 13.3.0(rollup@2.79.1) '@types/chai': 4.3.9 - '@types/node': 18.18.7 + '@types/mocha': 10.0.3 + '@types/node': 16.18.60 chai: 4.3.10 cross-env: 7.0.3 - mkdirp: 1.0.4 + dotenv: 16.3.1 + esm: 3.2.25 + mkdirp: 2.1.6 mocha: 10.2.0 - rimraf: 3.0.2 - ts-node: 10.9.1(@types/node@18.18.7)(typescript@5.2.2) + rimraf: 5.0.5 + rollup: 2.79.1 + rollup-plugin-sourcemaps: 0.6.3(@types/node@16.18.60)(rollup@2.79.1) + ts-node: 10.9.1(@types/node@16.18.60)(typescript@5.0.4) tslib: 2.6.2 - typescript: 5.2.2 + typescript: 5.0.4 uglify-js: 3.17.4 transitivePeerDependencies: - '@swc/core' @@ -20375,7 +20623,7 @@ packages: dev: false file:projects/storage-blob-changefeed.tgz: - resolution: {integrity: sha512-2LtIcl6t12irIaBaBSP/ytxkJA5VSRJ2RUg08UJEi/NVLHhjpx+NQQn/a/ebeAwpa2DefdSkfHRhgh7zn8Qzzg==, tarball: file:projects/storage-blob-changefeed.tgz} + resolution: {integrity: sha512-nBVNUHVbjsSyKfoA2uJNvG+jlJEW9Oq12K9Oha1C6GVY1rZhEpcWrkob0RJe/sCDdrMo0MBUnvL7+PkUsvhR8w==, tarball: file:projects/storage-blob-changefeed.tgz} name: '@rush-temp/storage-blob-changefeed' version: 0.0.0 dependencies: diff --git a/sdk/machinelearning/arm-machinelearning/CHANGELOG.md b/sdk/machinelearning/arm-machinelearning/CHANGELOG.md index d36dc18306dc..2ab292914cfe 100644 --- a/sdk/machinelearning/arm-machinelearning/CHANGELOG.md +++ b/sdk/machinelearning/arm-machinelearning/CHANGELOG.md @@ -1,15 +1,1106 @@ # Release History + +## 3.0.0-beta.1 (2023-10-31) + +**Features** -## 2.1.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation group CapacityReservationGroups + - 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.beginTestConnection + - Added operation WorkspaceConnections.beginTestConnectionAndWait + - 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 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 CapacityReservationGroup + - Added Interface CapacityReservationGroupProperties + - Added Interface CapacityReservationGroupsCreateOrUpdateOptionalParams + - Added Interface CapacityReservationGroupsDeleteOptionalParams + - Added Interface CapacityReservationGroupsGetOptionalParams + - Added Interface CapacityReservationGroupsListBySubscriptionNextOptionalParams + - Added Interface CapacityReservationGroupsListBySubscriptionOptionalParams + - Added Interface CapacityReservationGroupsListNextOptionalParams + - Added Interface CapacityReservationGroupsListOptionalParams + - Added Interface CapacityReservationGroupsUpdateOptionalParams + - Added Interface CapacityReservationGroupTrackedResourceArmPaginatedResult + - 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 ComputeRecurrenceSchedule + - 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 EncryptionKeyVaultUpdateProperties + - Added Interface EncryptionUpdateProperties + - Added Interface Endpoint + - Added Interface EnvironmentVariable + - Added Interface ExportSummary + - Added Interface Feature + - Added Interface FeatureAttributionDriftMonitoringSignal + - Added Interface FeatureAttributionMetricThreshold + - Added Interface FeatureImportanceSettings + - 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 GenerationTokenUsageMetricThreshold + - Added Interface GenerationTokenUsageSignal + - 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 InferenceEndpointProperties + - 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 InferenceEndpointTrackedResourceArmPaginatedResult + - Added Interface InferenceGroup + - Added Interface InferenceGroupProperties + - 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 InferenceGroupTrackedResourceArmPaginatedResult + - 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 JupyterKernelConfig + - 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 ModelVersionsPackageHeaders + - Added Interface ModelVersionsPackageOptionalParams + - Added Interface MonitorComputeConfigurationBase + - Added Interface MonitorComputeIdentityBase + - Added Interface MonitorDefinition + - Added Interface MonitorEmailNotificationSettings + - Added Interface MonitoringDataSegment + - Added Interface MonitoringFeatureFilterBase + - Added Interface MonitoringInputDataBase + - Added Interface MonitoringSignalBase + - Added Interface MonitoringTarget + - Added Interface MonitoringThreshold + - Added Interface MonitoringWorkspaceConnection + - Added Interface MonitorNotificationSettings + - 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 Operation + - Added Interface OperationDisplay + - Added Interface OperationListResult + - 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 ProxyResource + - 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 RollingInputData + - Added Interface SASCredentialDto + - Added Interface SecretConfiguration + - Added Interface ServerlessComputeSettings + - Added Interface ServerlessEndpoint + - Added Interface ServerlessEndpointCapacityReservation + - Added Interface ServerlessEndpointProperties + - Added Interface ServerlessEndpointsCreateOrUpdateHeaders + - Added Interface ServerlessEndpointsCreateOrUpdateOptionalParams + - Added Interface ServerlessEndpointsDeleteHeaders + - Added Interface ServerlessEndpointsDeleteOptionalParams + - Added Interface ServerlessEndpointsGetOptionalParams + - Added Interface ServerlessEndpointsGetStatusOptionalParams + - Added Interface ServerlessEndpointsListKeysOptionalParams + - Added Interface ServerlessEndpointsListNextOptionalParams + - Added Interface ServerlessEndpointsListOptionalParams + - Added Interface ServerlessEndpointsRegenerateKeysHeaders + - Added Interface ServerlessEndpointsRegenerateKeysOptionalParams + - Added Interface ServerlessEndpointStatus + - Added Interface ServerlessEndpointsUpdateHeaders + - Added Interface ServerlessEndpointsUpdateOptionalParams + - Added Interface ServerlessEndpointTrackedResourceArmPaginatedResult + - Added Interface ServerlessInferenceEndpoint + - Added Interface ServerlessOffer + - 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 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 WorkspaceConnectionsTestConnectionHeaders + - Added Interface WorkspaceConnectionsTestConnectionOptionalParams + - Added Interface WorkspaceConnectionsUpdateOptionalParams + - Added Interface WorkspaceConnectionUpdateParameter + - Added Interface WorkspaceHubConfig + - Added Interface WorkspacePrivateEndpointResource + - Added Interface WorkspacesCreateOrUpdateHeaders + - Added Interface WorkspacesDeleteHeaders + - Added Interface WorkspacesPrepareNotebookHeaders + - Added Interface WorkspacesResyncKeysHeaders + - Added Class AzureMachineLearningServices + - Added Type Alias ActionType + - 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 CapacityReservationGroupsCreateOrUpdateResponse + - Added Type Alias CapacityReservationGroupsGetResponse + - Added Type Alias CapacityReservationGroupsListBySubscriptionNextResponse + - Added Type Alias CapacityReservationGroupsListBySubscriptionResponse + - Added Type Alias CapacityReservationGroupsListNextResponse + - Added Type Alias CapacityReservationGroupsListResponse + - Added Type Alias CapacityReservationGroupsUpdateResponse + - 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 ComputeRecurrenceFrequency + - Added Type Alias ComputeResizeResponse + - Added Type Alias ComputeTriggerType + - Added Type Alias ComputeWeekDay + - 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 FeatureImportanceMode + - 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 GenerationTokenUsageMetric + - 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 MonitoringFeatureDataType + - Added Type Alias MonitoringFeatureFilterBaseUnion + - Added Type Alias MonitoringFeatureFilterType + - Added Type Alias MonitoringInputDataBaseUnion + - Added Type Alias MonitoringInputDataType + - Added Type Alias MonitoringModelType + - Added Type Alias MonitoringNotificationType + - 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 Origin + - 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 ServerlessEndpointsGetStatusResponse + - Added Type Alias ServerlessEndpointsListKeysResponse + - Added Type Alias ServerlessEndpointsListNextResponse + - Added Type Alias ServerlessEndpointsListResponse + - Added Type Alias ServerlessEndpointsRegenerateKeysResponse + - Added Type Alias ServerlessEndpointsUpdateResponse + - Added Type Alias ServerlessInferenceEndpointAuthMode + - 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 WorkspaceConnectionsTestConnectionResponse + - Added Type Alias WorkspaceConnectionsUpdateResponse + - 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 enableRootAccess + - Interface ComputeInstanceProperties has a new optional parameter enableSSO + - 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 DiagnoseRequestProperties has a new optional parameter requiredResourceProviders + - 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 serverlessComputeSettings + - 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 createdByWorkspaceArmId + - Interface WorkspaceConnectionPropertiesV2 has a new optional parameter expiryTime + - Interface WorkspaceConnectionPropertiesV2 has a new optional parameter isSharedToAll + - Interface WorkspaceConnectionPropertiesV2 has a new optional parameter metadata + - Interface WorkspaceConnectionsCreateOptionalParams has a new optional parameter body + - Interface WorkspaceConnectionsGetOptionalParams has a new optional parameter aoaiModelsToDeploy + - 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 serverlessComputeSettings + - 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 KnownActionType + - 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 KnownComputeRecurrenceFrequency + - Added Enum KnownComputeTriggerType + - Added Enum KnownComputeWeekDay + - 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 KnownFeatureImportanceMode + - Added Enum KnownGenerationSafetyQualityMetric + - Added Enum KnownGenerationTokenUsageMetric + - 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 KnownMonitoringFeatureDataType + - Added Enum KnownMonitoringFeatureFilterType + - Added Enum KnownMonitoringInputDataType + - Added Enum KnownMonitoringModelType + - Added Enum KnownMonitoringNotificationType + - 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 KnownOrigin + - 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 KnownServerlessInferenceEndpointAuthMode + - 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 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 triggerType of interface ComputeStartStopSchedule is changed from TriggerType to ComputeTriggerType + - 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** @@ -213,4 +1304,4 @@ ## 1.0.0 (2022-07-13) -The package of @azure/arm-machinelearning is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +The package of @azure/arm-machinelearning is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). 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..324a49384122 100644 --- a/sdk/machinelearning/arm-machinelearning/_meta.json +++ b/sdk/machinelearning/arm-machinelearning/_meta.json @@ -1,8 +1,8 @@ { - "commit": "1fefe3f5cee88319b17c08a2dbf95e1e983a9f8c", + "commit": "0761941d6572b157aa523d71c9dfee203b37fd35", "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.11", "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.3", + "use": "@autorest/typescript@^6.0.11" } \ No newline at end of file diff --git a/sdk/machinelearning/arm-machinelearning/package.json b/sdk/machinelearning/arm-machinelearning/package.json index 35a4c49bc89d..e0217750ed2c 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": ">=18.0.0" + "node": ">=16.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": [ @@ -29,22 +29,30 @@ "types": "./types/arm-machinelearning.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.31.1", - "mkdirp": "^1.0.4", - "typescript": "~5.2.0", + "@rollup/plugin-commonjs": "^24.0.0", + "@rollup/plugin-json": "^6.0.0", + "@rollup/plugin-multi-entry": "^6.0.0", + "@rollup/plugin-node-resolve": "^13.1.3", + "mkdirp": "^2.1.2", + "rollup": "^2.66.1", + "rollup-plugin-sourcemaps": "^0.6.3", + "typescript": "~5.0.0", "uglify-js": "^3.4.9", - "rimraf": "^3.0.0", + "rimraf": "^5.0.0", + "dotenv": "^16.0.0", "@azure/identity": "^3.3.0", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "esm": "^3.2.18", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", - "@types/node": "^18.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0" + "@types/node": "^16.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" @@ -64,20 +72,21 @@ "src/**/*.ts", "README.md", "LICENSE", + "rollup.config.js", "tsconfig.json", "review/*", "CHANGELOG.md", "types/*" ], "scripts": { - "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && mkdirp ./review && npm run extract-api", + "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "prepack": "npm run build", "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", "audit": "echo skipped", - "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", "build:test": "echo skipped", @@ -99,18 +108,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..abde7451fc06 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,22 @@ export interface AccountKeyDatastoreSecrets extends DatastoreSecrets { secretsType: "AccountKey"; } +// @public +export interface AcrDetails { + systemCreatedAcrAccount?: SystemCreatedAcrAccount; + userCreatedAcrAccount?: UserCreatedAcrAccount; +} + +// @public +export type ActionType = string; + +// @public (undocumented) +export interface ActualCapacityInfo { + allocated?: number; + assignmentFailed?: number; + assignmentSuccess?: number; +} + // @public export interface Aks extends Compute, AKSSchema { computeType: "AKS"; @@ -65,6 +88,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; @@ -116,28 +149,13 @@ export interface AmlComputeSchema { } // @public -export interface AmlOperation { - display?: AmlOperationDisplay; - isDataAction?: boolean; - name?: string; -} - -// @public -export interface AmlOperationDisplay { - description?: string; - operation?: string; - provider?: string; - resource?: string; -} - -// @public -export interface AmlOperationListResult { - value?: AmlOperation[]; +export interface AmlToken extends IdentityConfiguration { + identityType: "AMLToken"; } // @public -export interface AmlToken extends IdentityConfiguration { - identityType: "AMLToken"; +export interface AmlTokenComputeIdentity extends MonitorComputeIdentityBase { + computeIdentityType: "AmlToken"; } // @public @@ -147,11 +165,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 +201,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 +225,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 +257,7 @@ export interface AutoMLJob extends JobBaseProperties { outputs?: { [propertyName: string]: JobOutputUnion | null; }; + queueSettings?: QueueSettings; resources?: JobResourceConfiguration; taskDetails: AutoMLVerticalUnion; } @@ -264,26 +318,23 @@ export interface AutoTargetRollingWindowSize extends TargetRollingWindowSize { } // @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 +342,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 +362,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) @@ -312,6 +373,8 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { // (undocumented) batchEndpoints: BatchEndpoints; // (undocumented) + capacityReservationGroups: CapacityReservationGroups; + // (undocumented) codeContainers: CodeContainers; // (undocumented) codeVersions: CodeVersions; @@ -332,8 +395,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 +435,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 +475,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 +500,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 +525,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 +554,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 +601,6 @@ export type BatchDeploymentsGetResponse = BatchDeployment; // @public export interface BatchDeploymentsListNextOptionalParams extends coreClient.OperationOptions { - orderBy?: string; - skip?: string; - top?: number; } // @public @@ -512,11 +659,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 +714,6 @@ export type BatchEndpointsListKeysResponse = EndpointAuthKeys; // @public export interface BatchEndpointsListNextOptionalParams extends coreClient.OperationOptions { - count?: number; - skip?: string; } // @public @@ -611,6 +756,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 +783,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 +809,124 @@ export interface BuildContext { // @public export type Caching = string; +// @public (undocumented) +export interface CapacityReservationGroup extends TrackedResource { + identity?: ManagedServiceIdentity; + kind?: string; + properties: CapacityReservationGroupProperties; + sku?: Sku; +} + +// @public (undocumented) +export interface CapacityReservationGroupProperties { + offer?: ServerlessOffer; + reservedCapacity: number; +} + +// @public +export interface CapacityReservationGroups { + // (undocumented) + createOrUpdate(resourceGroupName: string, groupId: string, body: CapacityReservationGroup, options?: CapacityReservationGroupsCreateOrUpdateOptionalParams): Promise; + // (undocumented) + delete(resourceGroupName: string, groupId: string, options?: CapacityReservationGroupsDeleteOptionalParams): Promise; + // (undocumented) + get(resourceGroupName: string, groupId: string, options?: CapacityReservationGroupsGetOptionalParams): Promise; + // (undocumented) + list(resourceGroupName: string, options?: CapacityReservationGroupsListOptionalParams): PagedAsyncIterableIterator; + // (undocumented) + listBySubscription(options?: CapacityReservationGroupsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + // (undocumented) + update(resourceGroupName: string, groupId: string, body: PartialMinimalTrackedResourceWithSkuAndIdentity, options?: CapacityReservationGroupsUpdateOptionalParams): Promise; +} + +// @public +export interface CapacityReservationGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CapacityReservationGroupsCreateOrUpdateResponse = CapacityReservationGroup; + +// @public +export interface CapacityReservationGroupsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface CapacityReservationGroupsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CapacityReservationGroupsGetResponse = CapacityReservationGroup; + +// @public +export interface CapacityReservationGroupsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CapacityReservationGroupsListBySubscriptionNextResponse = CapacityReservationGroupTrackedResourceArmPaginatedResult; + +// @public +export interface CapacityReservationGroupsListBySubscriptionOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type CapacityReservationGroupsListBySubscriptionResponse = CapacityReservationGroupTrackedResourceArmPaginatedResult; + +// @public +export interface CapacityReservationGroupsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CapacityReservationGroupsListNextResponse = CapacityReservationGroupTrackedResourceArmPaginatedResult; + +// @public +export interface CapacityReservationGroupsListOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type CapacityReservationGroupsListResponse = CapacityReservationGroupTrackedResourceArmPaginatedResult; + +// @public +export interface CapacityReservationGroupsUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CapacityReservationGroupsUpdateResponse = CapacityReservationGroup; + +// @public +export interface CapacityReservationGroupTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: CapacityReservationGroup[]; +} + +// @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 +951,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 +983,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; @@ -691,12 +997,13 @@ export interface CodeConfiguration { } // @public -export interface CodeContainer extends Resource { +export interface CodeContainer extends ProxyResource { properties: CodeContainerProperties; } // @public export interface CodeContainerProperties extends AssetContainer { + readonly provisioningState?: AssetProvisioningState; } // @public @@ -733,7 +1040,6 @@ export type CodeContainersGetResponse = CodeContainer; // @public export interface CodeContainersListNextOptionalParams extends coreClient.OperationOptions { - skip?: string; } // @public @@ -748,13 +1054,14 @@ export interface CodeContainersListOptionalParams extends coreClient.OperationOp export type CodeContainersListResponse = CodeContainerResourceArmPaginatedResult; // @public -export interface CodeVersion extends Resource { +export interface CodeVersion extends ProxyResource { properties: CodeVersionProperties; } // @public export interface CodeVersionProperties extends AssetBase { codeUri?: string; + readonly provisioningState?: AssetProvisioningState; } // @public @@ -765,12 +1072,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 +1106,6 @@ export type CodeVersionsGetResponse = CodeVersion; // @public export interface CodeVersionsListNextOptionalParams extends coreClient.OperationOptions { - orderBy?: string; - skip?: string; - top?: number; } // @public @@ -801,6 +1113,8 @@ export type CodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult // @public export interface CodeVersionsListOptionalParams extends coreClient.OperationOptions { + hash?: string; + hashVersion?: string; orderBy?: string; skip?: string; top?: number; @@ -809,6 +1123,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 +1139,7 @@ export interface ColumnTransformer { // @public export interface CommandJob extends JobBaseProperties { + autologgerSettings?: AutologgerSettings; codeId?: string; command: string; distribution?: DistributionConfigurationUnion; @@ -833,6 +1156,7 @@ export interface CommandJob extends JobBaseProperties { [propertyName: string]: JobOutputUnion | null; }; readonly parameters?: Record; + queueSettings?: QueueSettings; resources?: JobResourceConfiguration; } @@ -842,12 +1166,18 @@ export interface CommandJobLimits extends JobLimits { } // @public -export interface ComponentContainer extends Resource { +export interface ComponentConfiguration { + pipelineSettings?: Record; +} + +// @public +export interface ComponentContainer extends ProxyResource { properties: ComponentContainerProperties; } // @public export interface ComponentContainerProperties extends AssetContainer { + readonly provisioningState?: AssetProvisioningState; } // @public @@ -884,8 +1214,6 @@ export type ComponentContainersGetResponse = ComponentContainer; // @public export interface ComponentContainersListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - skip?: string; } // @public @@ -901,13 +1229,15 @@ export interface ComponentContainersListOptionalParams extends coreClient.Operat export type ComponentContainersListResponse = ComponentContainerResourceArmPaginatedResult; // @public -export interface ComponentVersion extends Resource { +export interface ComponentVersion extends ProxyResource { properties: ComponentVersionProperties; } // @public export interface ComponentVersionProperties extends AssetBase { componentSpec?: Record; + readonly provisioningState?: AssetProvisioningState; + stage?: string; } // @public @@ -944,10 +1274,6 @@ export type ComponentVersionsGetResponse = ComponentVersion; // @public export interface ComponentVersionsListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - orderBy?: string; - skip?: string; - top?: number; } // @public @@ -958,6 +1284,7 @@ export interface ComponentVersionsListOptionalParams extends coreClient.Operatio listViewType?: ListViewType; orderBy?: string; skip?: string; + stage?: string; top?: number; } @@ -1004,6 +1331,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 +1359,11 @@ export interface ComputeInstanceApplication { // @public export type ComputeInstanceAuthorizationType = string; +// @public +export interface ComputeInstanceAutologgerSettings { + mlflowAutologger?: MlflowAutologger; +} + // @public export interface ComputeInstanceConnectivityEndpoints { readonly privateIpAddress?: string; @@ -1087,17 +1426,25 @@ 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; + enableRootAccess?: boolean; + enableSSO?: 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 +1483,6 @@ export type ComputeListKeysResponse = ComputeSecretsUnion; // @public export interface ComputeListNextOptionalParams extends coreClient.OperationOptions { - skip?: string; } // @public @@ -1166,40 +1512,71 @@ 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 ComputeResource extends Resource, ComputeResourceSchema { - identity?: ManagedServiceIdentity; - location?: string; - sku?: Sku; - tags?: { - [propertyName: string]: string; - }; -} +export type ComputeRecurrenceFrequency = string; // @public (undocumented) -export interface ComputeResourceSchema { - properties?: ComputeUnion; +export interface ComputeRecurrenceSchedule { + hours: number[]; + minutes: number[]; + monthDays?: number[]; + weekDays?: ComputeWeekDay[]; +} + +// @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; + location?: string; + sku?: Sku; + tags?: { + [propertyName: string]: string; + }; +} + +// @public (undocumented) +export interface ComputeResourceSchema { + properties?: ComputeUnion; } // @public @@ -1208,6 +1585,12 @@ export interface ComputeRestartOptionalParams extends coreClient.OperationOption updateIntervalInMs?: number; } +// @public (undocumented) +export interface ComputeRuntimeDto { + // (undocumented) + sparkRuntimeVersion?: string; +} + // @public export interface ComputeSchedules { computeStartStop?: ComputeStartStopSchedule[]; @@ -1230,13 +1613,13 @@ 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; + triggerType?: ComputeTriggerType; } // @public @@ -1245,12 +1628,23 @@ export interface ComputeStopOptionalParams extends coreClient.OperationOptions { updateIntervalInMs?: number; } +// @public +export type ComputeTriggerType = string; + // @public 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; @@ -1260,6 +1654,9 @@ export interface ComputeUpdateOptionalParams extends coreClient.OperationOptions // @public export type ComputeUpdateResponse = ComputeResource; +// @public +export type ComputeWeekDay = string; + // @public export type ConnectionAuthType = string; @@ -1284,27 +1681,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 +1756,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 +1782,20 @@ 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; + kernel?: JupyterKernelConfig; + name?: string; + volumes?: VolumeDefinition[]; +} + // @public (undocumented) export interface CustomTargetLags extends TargetLags { mode: "Custom"; @@ -1337,6 +1808,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"; @@ -1364,7 +1849,19 @@ export interface DatabricksSchema { } // @public -export interface DataContainer extends Resource { +export type DataCollectionMode = string; + +// @public (undocumented) +export interface DataCollector { + collections: { + [propertyName: string]: Collection | null; + }; + requestLogging?: RequestLogging; + rollingRate?: RollingRateType; +} + +// @public +export interface DataContainer extends ProxyResource { properties: DataContainerProperties; } @@ -1407,8 +1904,6 @@ export type DataContainersGetResponse = DataContainer; // @public export interface DataContainersListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - skip?: string; } // @public @@ -1423,11 +1918,53 @@ export interface DataContainersListOptionalParams extends coreClient.OperationOp // @public export type DataContainersListResponse = DataContainerResourceArmPaginatedResult; +// @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; + }; + featureImportanceSettings?: FeatureImportanceSettings; + 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,28 +1988,57 @@ 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; + }; + featureImportanceSettings?: FeatureImportanceSettings; + 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 { +export interface Datastore extends ProxyResource { properties: DatastorePropertiesUnion; } // @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 +2069,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 +2084,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 @@ -1558,7 +2117,7 @@ export type DatastoreType = string; export type DataType = string; // @public -export interface DataVersionBase extends Resource { +export interface DataVersionBase extends ProxyResource { properties: DataVersionBasePropertiesUnion; } @@ -1566,10 +2125,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 +2166,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 +2176,7 @@ export interface DataVersionsListOptionalParams extends coreClient.OperationOpti listViewType?: ListViewType; orderBy?: string; skip?: string; + stage?: string; tags?: string; top?: number; } @@ -1653,31 +2210,34 @@ 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; + }; + requiredResourceProviders?: { + [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 +2281,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; @@ -1751,23 +2318,43 @@ export type EarlyTerminationPolicyUnion = EarlyTerminationPolicy | BanditPolicy // @public export type EgressPublicNetworkAccessType = string; +// @public +export type EmailNotificationEnableType = string; + // @public (undocumented) -export interface EncryptionKeyVaultProperties { - identityClientId?: string; +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; @@ -1823,12 +2410,16 @@ export interface EndpointScheduleAction extends ScheduleActionBase { } // @public -export interface EnvironmentContainer extends Resource { +export type EndpointServiceConnectionStatus = string; + +// @public +export interface EnvironmentContainer extends ProxyResource { properties: EnvironmentContainerProperties; } // @public export interface EnvironmentContainerProperties extends AssetContainer { + readonly provisioningState?: AssetProvisioningState; } // @public @@ -1865,8 +2456,6 @@ export type EnvironmentContainersGetResponse = EnvironmentContainer; // @public export interface EnvironmentContainersListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - skip?: string; } // @public @@ -1884,8 +2473,18 @@ 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 { +export interface EnvironmentVersion extends ProxyResource { properties: EnvironmentVersionProperties; } @@ -1897,7 +2496,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 +2536,6 @@ export type EnvironmentVersionsGetResponse = EnvironmentVersion; // @public export interface EnvironmentVersionsListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - orderBy?: string; - skip?: string; - top?: number; } // @public @@ -1948,6 +2546,7 @@ export interface EnvironmentVersionsListOptionalParams extends coreClient.Operat listViewType?: ListViewType; orderBy?: string; skip?: string; + stage?: string; top?: number; } @@ -1988,716 +2587,1916 @@ 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 ProxyResource { + properties: FeatureProperties; } // @public (undocumented) -export interface FlavorData { - data?: { - [propertyName: string]: string | null; +export interface FeatureAttributionDriftMonitoringSignal extends MonitoringSignalBase { + featureDataTypeOverride?: { + [propertyName: string]: MonitoringFeatureDataType; }; + featureImportanceSettings?: FeatureImportanceSettings; + 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; - -// @public (undocumented) -export type ForecastHorizonUnion = ForecastHorizon | AutoForecastHorizon | CustomForecastHorizon; +export type FeatureDataType = string; // @public -export interface Forecasting extends TableVertical, AutoMLVertical { - forecastingSettings?: ForecastingSettings; - primaryMetric?: ForecastingPrimaryMetrics; - trainingSettings?: ForecastingTrainingSettings; +export type FeatureImportanceMode = string; + +// @public (undocumented) +export interface FeatureImportanceSettings { + mode?: FeatureImportanceMode; + targetColumn?: string; } // @public -export type ForecastingModels = string; +export type FeatureLags = string; // @public -export type ForecastingPrimaryMetrics = string; +export interface FeatureProperties extends ResourceBase { + dataType?: FeatureDataType; + featureName?: string; +} // @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 FeatureResourceArmPaginatedResult { + nextLink?: string; + value?: Feature[]; } // @public -export interface ForecastingTrainingSettings extends TrainingSettings { - allowedTrainingAlgorithms?: ForecastingModels[]; - blockedTrainingAlgorithms?: ForecastingModels[]; +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 (undocumented) -export interface FqdnEndpoint { - // (undocumented) - domainName?: string; - // (undocumented) - endpointDetails?: FqdnEndpointDetail[]; +// @public +export interface FeaturesetContainer extends ProxyResource { + properties: FeaturesetContainerProperties; } -// @public (undocumented) -export interface FqdnEndpointDetail { - // (undocumented) - port?: number; +// @public +export interface FeaturesetContainerProperties extends AssetContainer { + readonly provisioningState?: AssetProvisioningState; } -// @public (undocumented) -export interface FqdnEndpoints { - // (undocumented) - properties?: FqdnEndpointsProperties; +// @public +export interface FeaturesetContainerResourceArmPaginatedResult { + nextLink?: string; + value?: FeaturesetContainer[]; } -// @public (undocumented) -export interface FqdnEndpointsProperties { - // (undocumented) - category?: string; - // (undocumented) - endpoints?: FqdnEndpoint[]; +// @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 -export function getContinuationToken(page: unknown): string | undefined; +export interface FeaturesetContainersCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} // @public -export type Goal = string; +export interface FeaturesetContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public -export interface GridSamplingAlgorithm extends SamplingAlgorithm { - samplingAlgorithmType: "Grid"; -} +export type FeaturesetContainersCreateOrUpdateResponse = FeaturesetContainer; // @public -export interface HDInsight extends Compute, HDInsightSchema { - computeType: "HDInsight"; +export interface FeaturesetContainersDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export interface HDInsightProperties { - address?: string; - administratorAccount?: VirtualMachineSshCredentials; - sshPort?: number; +export interface FeaturesetContainersDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } -// @public (undocumented) -export interface HDInsightSchema { - properties?: HDInsightProperties; +// @public +export interface FeaturesetContainersGetEntityOptionalParams extends coreClient.OperationOptions { } // @public -export interface IdAssetReference extends AssetReferenceBase { - assetId: string; - referenceType: "Id"; -} +export type FeaturesetContainersGetEntityResponse = FeaturesetContainer; // @public -export interface IdentityConfiguration { - identityType: "AMLToken" | "Managed" | "UserIdentity"; +export interface FeaturesetContainersListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type IdentityConfigurationType = string; - -// @public (undocumented) -export type IdentityConfigurationUnion = IdentityConfiguration | AmlToken | ManagedIdentity | UserIdentity; +export type FeaturesetContainersListNextResponse = FeaturesetContainerResourceArmPaginatedResult; // @public -export interface IdentityForCmk { - userAssignedIdentity?: string; +export interface FeaturesetContainersListOptionalParams extends coreClient.OperationOptions { + createdBy?: string; + description?: string; + listViewType?: ListViewType; + name?: string; + pageSize?: number; + skip?: string; + tags?: string; } // @public -export interface ImageClassification extends ImageClassificationBase, AutoMLVertical { - primaryMetric?: ClassificationPrimaryMetrics; -} +export type FeaturesetContainersListResponse = FeaturesetContainerResourceArmPaginatedResult; -// @public (undocumented) -export interface ImageClassificationBase extends ImageVertical { - modelSettings?: ImageModelSettingsClassification; - searchSpace?: ImageModelDistributionSettingsClassification[]; +// @public +export interface FeaturesetSpecification { + path?: string; } // @public -export interface ImageClassificationMultilabel extends ImageClassificationBase, AutoMLVertical { - primaryMetric?: ClassificationMultilabelPrimaryMetrics; +export interface FeaturesetVersion extends ProxyResource { + properties: FeaturesetVersionProperties; } // @public -export interface ImageInstanceSegmentation extends ImageObjectDetectionBase, AutoMLVertical { - primaryMetric?: InstanceSegmentationPrimaryMetrics; +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 -export interface ImageLimitSettings { - maxConcurrentTrials?: number; - maxTrials?: number; - timeout?: string; +export interface FeaturesetVersionBackfillResponse { + jobIds?: 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 FeaturesetVersionProperties extends AssetBase { + entities?: string[]; + materializationSettings?: MaterializationSettings; + readonly provisioningState?: AssetProvisioningState; + specification?: FeaturesetSpecification; + stage?: string; } // @public -export interface ImageModelDistributionSettingsClassification extends ImageModelDistributionSettings { - trainingCropSize?: string; - validationCropSize?: string; - validationResizeSize?: string; - weightedLoss?: string; +export interface FeaturesetVersionResourceArmPaginatedResult { + nextLink?: string; + value?: 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 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 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 FeaturesetVersionsBackfillHeaders { + location?: string; + retryAfter?: number; } // @public -export interface ImageModelSettingsClassification extends ImageModelSettings { - trainingCropSize?: number; - validationCropSize?: number; - validationResizeSize?: number; - weightedLoss?: number; +export interface FeaturesetVersionsBackfillOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @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 FeaturesetVersionsBackfillResponse = FeaturesetVersionBackfillResponse; // @public -export interface ImageObjectDetection extends ImageObjectDetectionBase, AutoMLVertical { - primaryMetric?: ObjectDetectionPrimaryMetrics; +export interface FeaturesetVersionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } -// @public (undocumented) -export interface ImageObjectDetectionBase extends ImageVertical { - modelSettings?: ImageModelSettingsObjectDetection; - searchSpace?: ImageModelDistributionSettingsObjectDetection[]; +// @public +export interface FeaturesetVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface ImageSweepSettings { - earlyTermination?: EarlyTerminationPolicyUnion; - samplingAlgorithm: SamplingAlgorithmType; -} +export type FeaturesetVersionsCreateOrUpdateResponse = FeaturesetVersion; // @public -export interface ImageVertical { - limitSettings: ImageLimitSettings; - sweepSettings?: ImageSweepSettings; - validationData?: MLTableJobInput; - validationDataSize?: number; +export interface FeaturesetVersionsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } -// @public (undocumented) -export interface InferenceContainerProperties { - livenessRoute?: Route; - readinessRoute?: Route; - scoringRoute?: Route; +// @public +export interface FeaturesetVersionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type InputDeliveryMode = string; +export interface FeaturesetVersionsGetOptionalParams extends coreClient.OperationOptions { +} // @public -export type InstanceSegmentationPrimaryMetrics = string; +export type FeaturesetVersionsGetResponse = FeaturesetVersion; // @public -export interface InstanceTypeSchema { - nodeSelector?: { - [propertyName: string]: string | null; - }; - resources?: InstanceTypeSchemaResources; +export interface FeaturesetVersionsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface InstanceTypeSchemaResources { - limits?: { - [propertyName: string]: string; - }; - requests?: { - [propertyName: string]: string; - }; -} +export type FeaturesetVersionsListNextResponse = FeaturesetVersionResourceArmPaginatedResult; // @public -export interface JobBase extends Resource { - properties: JobBasePropertiesUnion; +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 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; -} - -// @public (undocumented) -export type JobBasePropertiesUnion = JobBaseProperties | AutoMLJob | CommandJob | PipelineJob | SweepJob; +export type FeaturesetVersionsListResponse = FeaturesetVersionResourceArmPaginatedResult; // @public -export interface JobBaseResourceArmPaginatedResult { - nextLink?: string; - value?: JobBase[]; +export interface FeaturesGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface JobInput { - description?: string; - jobInputType: "mltable" | "custom_model" | "mlflow_model" | "literal" | "triton_model" | "uri_file" | "uri_folder"; +export type FeaturesGetResponse = Feature; + +// @public +export interface FeaturesListNextOptionalParams extends coreClient.OperationOptions { } // @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; +export type FeaturesListNextResponse = FeatureResourceArmPaginatedResult; // @public -export interface JobOutput { +export interface FeaturesListOptionalParams extends coreClient.OperationOptions { description?: string; - jobOutputType: "custom_model" | "mlflow_model" | "mltable" | "triton_model" | "uri_file" | "uri_folder"; + featureName?: string; + listViewType?: ListViewType; + 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 FeaturesListResponse = FeatureResourceArmPaginatedResult; -// @public (undocumented) -export interface JobResourceConfiguration extends ResourceConfiguration { - dockerArgs?: string; - shmSize?: string; +// @public +export interface FeaturestoreEntityContainer extends ProxyResource { + properties: FeaturestoreEntityContainerProperties; } // @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 FeaturestoreEntityContainerProperties extends AssetContainer { + readonly provisioningState?: AssetProvisioningState; } // @public -export interface JobsCancelHeaders { - location?: string; - retryAfter?: number; +export interface FeaturestoreEntityContainerResourceArmPaginatedResult { + nextLink?: string; + value?: FeaturestoreEntityContainer[]; } // @public -export interface JobsCancelOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; +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 (undocumented) -export interface JobScheduleAction extends ScheduleActionBase { - actionType: "CreateJob"; - jobDefinition: JobBasePropertiesUnion; +// @public +export interface FeaturestoreEntityContainersCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } // @public -export interface JobsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface FeaturestoreEntityContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type JobsCreateOrUpdateResponse = JobBase; +export type FeaturestoreEntityContainersCreateOrUpdateResponse = FeaturestoreEntityContainer; // @public -export interface JobsDeleteHeaders { +export interface FeaturestoreEntityContainersDeleteHeaders { location?: string; retryAfter?: number; xMsAsyncOperationTimeout?: string; } // @public -export interface JobsDeleteOptionalParams extends coreClient.OperationOptions { +export interface FeaturestoreEntityContainersDeleteOptionalParams 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; -} - -// @public -export interface JobsGetOptionalParams extends coreClient.OperationOptions { +export interface FeaturestoreEntityContainersGetEntityOptionalParams extends coreClient.OperationOptions { } // @public -export type JobsGetResponse = JobBase; +export type FeaturestoreEntityContainersGetEntityResponse = FeaturestoreEntityContainer; // @public -export interface JobsListNextOptionalParams extends coreClient.OperationOptions { - jobType?: string; - listViewType?: ListViewType; - skip?: string; - tag?: string; +export interface FeaturestoreEntityContainersListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type JobsListNextResponse = JobBaseResourceArmPaginatedResult; +export type FeaturestoreEntityContainersListNextResponse = FeaturestoreEntityContainerResourceArmPaginatedResult; // @public -export interface JobsListOptionalParams extends coreClient.OperationOptions { - jobType?: string; +export interface FeaturestoreEntityContainersListOptionalParams extends coreClient.OperationOptions { + createdBy?: string; + description?: string; listViewType?: ListViewType; + name?: string; + pageSize?: number; skip?: string; - tag?: string; + tags?: string; } // @public -export type JobsListResponse = JobBaseResourceArmPaginatedResult; - -// @public -export type JobStatus = string; - -// @public -export type JobType = string; +export type FeaturestoreEntityContainersListResponse = FeaturestoreEntityContainerResourceArmPaginatedResult; // @public -type KeyType_2 = string; -export { KeyType_2 as KeyType } +export interface FeaturestoreEntityVersion extends ProxyResource { + properties: FeaturestoreEntityVersionProperties; +} // @public -export enum KnownAllocationState { - Resizing = "Resizing", - Steady = "Steady" +export interface FeaturestoreEntityVersionProperties extends AssetBase { + indexColumns?: IndexColumn[]; + readonly provisioningState?: AssetProvisioningState; + stage?: string; } // @public -export enum KnownApplicationSharingPolicy { - Personal = "Personal", - Shared = "Shared" +export interface FeaturestoreEntityVersionResourceArmPaginatedResult { + nextLink?: string; + value?: FeaturestoreEntityVersion[]; } // @public -export enum KnownAutoRebuildSetting { - Disabled = "Disabled", - OnBaseImageUpdate = "OnBaseImageUpdate" +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 -export enum KnownAutosave { - Local = "Local", - None = "None", - Remote = "Remote" +export interface FeaturestoreEntityVersionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } // @public -export enum KnownBatchLoggingLevel { - Debug = "Debug", - Info = "Info", - Warning = "Warning" +export interface FeaturestoreEntityVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export enum KnownBatchOutputAction { - AppendRow = "AppendRow", - SummaryOnly = "SummaryOnly" -} +export type FeaturestoreEntityVersionsCreateOrUpdateResponse = FeaturestoreEntityVersion; // @public -export enum KnownBillingCurrency { - USD = "USD" +export interface FeaturestoreEntityVersionsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: 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 interface FeaturestoreEntityVersionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export enum KnownCaching { - None = "None", - ReadOnly = "ReadOnly", - ReadWrite = "ReadWrite" +export interface FeaturestoreEntityVersionsGetOptionalParams extends coreClient.OperationOptions { } // @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 type FeaturestoreEntityVersionsGetResponse = FeaturestoreEntityVersion; // @public -export enum KnownClassificationMultilabelPrimaryMetrics { - Accuracy = "Accuracy", - AUCWeighted = "AUCWeighted", - AveragePrecisionScoreWeighted = "AveragePrecisionScoreWeighted", - IOU = "IOU", - NormMacroRecall = "NormMacroRecall", - PrecisionScoreWeighted = "PrecisionScoreWeighted" +export interface FeaturestoreEntityVersionsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownClassificationPrimaryMetrics { - Accuracy = "Accuracy", - AUCWeighted = "AUCWeighted", - AveragePrecisionScoreWeighted = "AveragePrecisionScoreWeighted", - NormMacroRecall = "NormMacroRecall", - PrecisionScoreWeighted = "PrecisionScoreWeighted" -} +export type FeaturestoreEntityVersionsListNextResponse = FeaturestoreEntityVersionResourceArmPaginatedResult; // @public -export enum KnownClusterPurpose { - DenseProd = "DenseProd", - DevTest = "DevTest", - FastProd = "FastProd" +export interface FeaturestoreEntityVersionsListOptionalParams extends coreClient.OperationOptions { + createdBy?: string; + description?: string; + listViewType?: ListViewType; + pageSize?: number; + skip?: string; + stage?: string; + tags?: string; + version?: string; + versionName?: string; } // @public -export enum KnownComputeInstanceAuthorizationType { - Personal = "personal" +export type FeaturestoreEntityVersionsListResponse = FeaturestoreEntityVersionResourceArmPaginatedResult; + +// @public (undocumented) +export interface FeatureStoreSettings { + // (undocumented) + computeRuntime?: ComputeRuntimeDto; + // (undocumented) + offlineStoreConnectionName?: string; + // (undocumented) + onlineStoreConnectionName?: string; } -// @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" +// @public (undocumented) +export interface FeatureSubset extends MonitoringFeatureFilterBase { + features: string[]; + filterType: "FeatureSubset"; } // @public -export enum KnownComputePowerAction { - Start = "Start", - Stop = "Stop" +export interface FeatureWindow { + featureWindowEnd?: Date; + featureWindowStart?: Date; } // @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 type FeaturizationMode = string; // @public -export enum KnownConnectionAuthType { - ManagedIdentity = "ManagedIdentity", - None = "None", - PAT = "PAT", - SAS = "SAS", - UsernamePassword = "UsernamePassword" +export interface FeaturizationSettings { + datasetLanguage?: string; } -// @public -export enum KnownConnectionCategory { - ContainerRegistry = "ContainerRegistry", - Git = "Git", - PythonFeed = "PythonFeed" +// @public (undocumented) +export interface FileSystemSource extends DataImportSource { + path?: string; + sourceType: "file_system"; } // @public -export enum KnownContainerType { - InferenceServer = "InferenceServer", - StorageInitializer = "StorageInitializer" +export interface FixedInputData extends MonitoringInputDataBase { + inputDataType: "Fixed"; } -// @public -export enum KnownCreatedByType { - Application = "Application", - Key = "Key", - ManagedIdentity = "ManagedIdentity", - User = "User" +// @public (undocumented) +export interface FlavorData { + data?: { + [propertyName: string]: string | null; + }; } // @public -export enum KnownCredentialsType { - AccountKey = "AccountKey", - Certificate = "Certificate", - None = "None", - Sas = "Sas", - ServicePrincipal = "ServicePrincipal" +export interface ForecastHorizon { + mode: "Auto" | "Custom"; +} + +// @public +export type ForecastHorizonMode = string; + +// @public (undocumented) +export type ForecastHorizonUnion = ForecastHorizon | AutoForecastHorizon | CustomForecastHorizon; + +// @public +export interface Forecasting extends TableVertical, AutoMLVertical { + forecastingSettings?: ForecastingSettings; + primaryMetric?: ForecastingPrimaryMetrics; + trainingSettings?: ForecastingTrainingSettings; +} + +// @public +export type ForecastingModels = string; + +// @public +export type ForecastingPrimaryMetrics = string; + +// @public +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 interface ForecastingTrainingSettings extends TrainingSettings { + allowedTrainingAlgorithms?: ForecastingModels[]; + blockedTrainingAlgorithms?: ForecastingModels[]; +} + +// @public (undocumented) +export interface FqdnEndpoint { + // (undocumented) + domainName?: string; + // (undocumented) + endpointDetails?: FqdnEndpointDetail[]; +} + +// @public (undocumented) +export interface FqdnEndpointDetail { + // (undocumented) + port?: number; +} + +// @public (undocumented) +export interface FqdnEndpoints { + // (undocumented) + category?: string; + // (undocumented) + endpoints?: FqdnEndpoint[]; +} + +// @public +export interface FqdnEndpointsPropertyBag { + // (undocumented) + properties?: FqdnEndpoints; +} + +// @public +export interface FqdnOutboundRule extends OutboundRule { + // (undocumented) + destination?: string; + type: "FQDN"; +} + +// @public +export type GenerationSafetyQualityMetric = string; + +// @public +export interface GenerationSafetyQualityMetricThreshold { + metric: GenerationSafetyQualityMetric; + threshold?: MonitoringThreshold; +} + +// @public +export interface GenerationSafetyQualityMonitoringSignal extends MonitoringSignalBase { + metricThresholds: GenerationSafetyQualityMetricThreshold[]; + productionData?: MonitoringInputDataBaseUnion[]; + samplingRate: number; + signalType: "GenerationSafetyQuality"; + workspaceConnectionId?: string; +} + +// @public +export type GenerationTokenUsageMetric = string; + +// @public +export interface GenerationTokenUsageMetricThreshold { + metric: GenerationTokenUsageMetric; + threshold?: MonitoringThreshold; +} + +// @public +export interface GenerationTokenUsageSignal extends MonitoringSignalBase { + metricThresholds: GenerationTokenUsageMetricThreshold[]; + productionData?: MonitoringInputDataBaseUnion[]; + samplingRate: number; + signalType: "GenerationTokenStatistics"; +} + +// @public +export function getContinuationToken(page: unknown): string | undefined; + +// @public +export type Goal = string; + +// @public +export interface GridSamplingAlgorithm extends SamplingAlgorithm { + samplingAlgorithmType: "Grid"; +} + +// @public (undocumented) +export interface GroupStatus { + actualCapacityInfo?: ActualCapacityInfo; + bonusExtraCapacity?: number; + endpointCount?: number; + requestedCapacity?: number; +} + +// @public (undocumented) +export interface HdfsDatastore extends DatastoreProperties { + datastoreType: "Hdfs"; + hdfsServerCertificate?: string; + nameNodeAddress: string; + protocol?: string; +} + +// @public +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; + version?: string; +} +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 (undocumented) +export interface InferenceEndpoint extends TrackedResource { + identity?: ManagedServiceIdentity; + kind?: string; + properties: InferenceEndpointProperties; + sku?: Sku; +} + +// @public +export interface InferenceEndpointProperties extends PropertiesBase { + authMode: AuthMode; + readonly endpointUri?: string; + groupId: string; + readonly provisioningState?: PoolProvisioningState; +} + +// @public +export interface InferenceEndpoints { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, poolName: string, endpointName: string, body: InferenceEndpoint, options?: InferenceEndpointsCreateOrUpdateOptionalParams): Promise, InferenceEndpointsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, poolName: string, endpointName: string, body: InferenceEndpoint, options?: InferenceEndpointsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, poolName: string, endpointName: string, options?: InferenceEndpointsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, poolName: string, endpointName: string, options?: InferenceEndpointsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, poolName: string, endpointName: string, body: any, options?: InferenceEndpointsUpdateOptionalParams): Promise, InferenceEndpointsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, poolName: string, endpointName: string, body: any, options?: InferenceEndpointsUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, poolName: string, endpointName: string, options?: InferenceEndpointsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, poolName: 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 = InferenceEndpoint; + +// @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 = InferenceEndpoint; + +// @public +export interface InferenceEndpointsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InferenceEndpointsListNextResponse = InferenceEndpointTrackedResourceArmPaginatedResult; + +// @public +export interface InferenceEndpointsListOptionalParams extends coreClient.OperationOptions { + count?: number; + orderBy?: OrderString; + properties?: string; + skip?: string; + tags?: string; +} + +// @public +export type InferenceEndpointsListResponse = InferenceEndpointTrackedResourceArmPaginatedResult; + +// @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 = InferenceEndpoint; + +// @public +export interface InferenceEndpointTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: InferenceEndpoint[]; +} + +// @public (undocumented) +export interface InferenceGroup extends TrackedResource { + identity?: ManagedServiceIdentity; + kind?: string; + properties: InferenceGroupProperties; + sku?: Sku; +} + +// @public +export interface InferenceGroupProperties extends PropertiesBase { + bonusExtraCapacity?: number; + metadata?: string; + priority?: number; + readonly provisioningState?: PoolProvisioningState; +} + +// @public +export interface InferenceGroups { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, poolName: string, groupName: string, body: InferenceGroup, options?: InferenceGroupsCreateOrUpdateOptionalParams): Promise, InferenceGroupsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, poolName: string, groupName: string, body: InferenceGroup, options?: InferenceGroupsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, poolName: string, groupName: string, options?: InferenceGroupsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, poolName: string, groupName: string, options?: InferenceGroupsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, poolName: string, groupName: string, body: PartialMinimalTrackedResourceWithSku, options?: InferenceGroupsUpdateOptionalParams): Promise, InferenceGroupsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, poolName: string, groupName: string, body: PartialMinimalTrackedResourceWithSku, options?: InferenceGroupsUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, poolName: string, groupName: string, options?: InferenceGroupsGetOptionalParams): Promise; + getStatus(resourceGroupName: string, workspaceName: string, poolName: string, groupName: string, options?: InferenceGroupsGetStatusOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, poolName: string, options?: InferenceGroupsListOptionalParams): PagedAsyncIterableIterator; + listSkus(resourceGroupName: string, workspaceName: string, poolName: string, groupName: 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 = InferenceGroup; + +// @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 = InferenceGroup; + +// @public +export interface InferenceGroupsGetStatusOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InferenceGroupsGetStatusResponse = GroupStatus; + +// @public +export interface InferenceGroupsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InferenceGroupsListNextResponse = InferenceGroupTrackedResourceArmPaginatedResult; + +// @public +export interface InferenceGroupsListOptionalParams extends coreClient.OperationOptions { + count?: number; + orderBy?: OrderString; + properties?: string; + skip?: string; + tags?: string; +} + +// @public +export type InferenceGroupsListResponse = InferenceGroupTrackedResourceArmPaginatedResult; + +// @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 = InferenceGroup; + +// @public +export interface InferenceGroupTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: InferenceGroup[]; +} + +// @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, inferencePoolName: string, body: InferencePool, options?: InferencePoolsCreateOrUpdateOptionalParams): Promise, InferencePoolsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, inferencePoolName: string, body: InferencePool, options?: InferencePoolsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, inferencePoolName: string, options?: InferencePoolsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, inferencePoolName: string, options?: InferencePoolsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, inferencePoolName: string, body: PartialMinimalTrackedResourceWithSkuAndIdentity, options?: InferencePoolsUpdateOptionalParams): Promise, InferencePoolsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, inferencePoolName: string, body: PartialMinimalTrackedResourceWithSkuAndIdentity, options?: InferencePoolsUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, inferencePoolName: string, options?: InferencePoolsGetOptionalParams): Promise; + getStatus(resourceGroupName: string, workspaceName: string, inferencePoolName: string, options?: InferencePoolsGetStatusOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: InferencePoolsListOptionalParams): PagedAsyncIterableIterator; + listSkus(resourceGroupName: string, workspaceName: string, inferencePoolName: 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 ProxyResource { + 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 +export interface JupyterKernelConfig { + argv?: string[]; + displayName?: string; + language?: 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 KnownActionType { + Internal = "Internal" +} + +// @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 KnownComputeRecurrenceFrequency { + Day = "Day", + Hour = "Hour", + Minute = "Minute", + Month = "Month", + Week = "Week" +} + +// @public +export enum KnownComputeTriggerType { + Cron = "Cron", + Recurrence = "Recurrence" +} + +// @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 KnownComputeWeekDay { + Friday = "Friday", + Monday = "Monday", + Saturday = "Saturday", + Sunday = "Sunday", + Thursday = "Thursday", + Tuesday = "Tuesday", + Wednesday = "Wednesday" +} + +// @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 @@ -2705,1764 +4504,3956 @@ export enum KnownDatastoreType { AzureBlob = "AzureBlob", AzureDataLakeGen1 = "AzureDataLakeGen1", AzureDataLakeGen2 = "AzureDataLakeGen2", - AzureFile = "AzureFile" + 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" +} + +// @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 KnownFeatureImportanceMode { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @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 KnownGenerationTokenUsageMetric { + 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 KnownMonitoringFeatureDataType { + Categorical = "Categorical", + Numerical = "Numerical" +} + +// @public +export enum KnownMonitoringFeatureFilterType { + AllFeatures = "AllFeatures", + FeatureSubset = "FeatureSubset", + TopNByAttribution = "TopNByAttribution" +} + +// @public +export enum KnownMonitoringInputDataType { + Fixed = "Fixed", + Rolling = "Rolling", + Static = "Static" +} + +// @public +export enum KnownMonitoringModelType { + Classification = "Classification", + Regression = "Regression" +} + +// @public +export enum KnownMonitoringNotificationType { + AmlNotification = "AmlNotification", + AzureMonitor = "AzureMonitor" +} + +// @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 KnownOrigin { + System = "system", + User = "user", + UserSystem = "user,system" +} + +// @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 KnownServerlessInferenceEndpointAuthMode { + AAD = "AAD", + Key = "Key" +} + +// @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 ProxyResource { + 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 { + readonly changeableIsolationModes?: IsolationMode[]; + 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; + retryAfter?: number; +} + +// @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 ProxyResource { + 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 +export type ModelSize = string; + +// @public +export type ModelTaskType = string; + +// @public +export interface ModelVersion extends ProxyResource { + 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 { + alertNotificationSettings?: MonitorNotificationSettings; + computeConfiguration: MonitorComputeConfigurationBaseUnion; + monitoringTarget?: MonitoringTarget; + signals: { + [propertyName: string]: MonitoringSignalBaseUnion | null; + }; +} + +// @public (undocumented) +export interface MonitorEmailNotificationSettings { + emails?: 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" | "Rolling" | "Static"; + jobInputType: JobInputType; + uri: string; +} + +// @public (undocumented) +export type MonitoringInputDataBaseUnion = MonitoringInputDataBase | FixedInputData | RollingInputData | StaticInputData; + +// @public +export type MonitoringInputDataType = string; + +// @public +export type MonitoringModelType = string; + +// @public +export type MonitoringNotificationType = string; + +// @public (undocumented) +export interface MonitoringSignalBase { + notificationTypes?: MonitoringNotificationType[]; + 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 | GenerationTokenUsageSignal | 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 (undocumented) +export interface MonitorNotificationSettings { + emailNotificationSettings?: MonitorEmailNotificationSettings; +} + +// @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 type NumericalDataDriftMetric = string; + +// @public (undocumented) +export interface NumericalDataDriftMetricThreshold extends DataDriftMetricThresholdBase { + dataType: "Numerical"; + metric: NumericalDataDriftMetric; +} + +// @public +export type NumericalDataQualityMetric = string; + +// @public (undocumented) +export interface NumericalDataQualityMetricThreshold extends DataQualityMetricThresholdBase { + dataType: "Numerical"; + metric: NumericalDataQualityMetric; +} + +// @public +export type NumericalPredictionDriftMetric = string; + +// @public (undocumented) +export interface NumericalPredictionDriftMetricThreshold extends PredictionDriftMetricThresholdBase { + dataType: "Numerical"; + metric: NumericalPredictionDriftMetric; } // @public -export enum KnownDataType { - Mltable = "mltable", - UriFile = "uri_file", - UriFolder = "uri_folder" +export type ObjectDetectionPrimaryMetrics = string; + +// @public +export interface Objective { + goal: Goal; + primaryMetric: string; } // @public -export enum KnownDeploymentProvisioningState { - Canceled = "Canceled", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Scaling = "Scaling", - Succeeded = "Succeeded", - Updating = "Updating" +export interface OneLakeArtifact { + artifactName: string; + artifactType: "LakeHouse"; } // @public -export enum KnownDiagnoseResultLevel { - Error = "Error", - Information = "Information", - Warning = "Warning" +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 KnownDistributionType { - Mpi = "Mpi", - PyTorch = "PyTorch", - TensorFlow = "TensorFlow" +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 KnownEarlyTerminationPolicyType { - Bandit = "Bandit", - MedianStopping = "MedianStopping", - TruncationSelection = "TruncationSelection" +export interface OnlineDeploymentsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } // @public -export enum KnownEgressPublicNetworkAccessType { - Disabled = "Disabled", - Enabled = "Enabled" +export interface OnlineDeploymentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export enum KnownEncryptionStatus { - Disabled = "Disabled", - Enabled = "Enabled" +export type OnlineDeploymentsCreateOrUpdateResponse = OnlineDeployment; + +// @public +export interface OnlineDeploymentsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export enum KnownEndpointAuthMode { - AADToken = "AADToken", - AMLToken = "AMLToken", - Key = "Key" +export interface OnlineDeploymentsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export enum KnownEndpointComputeType { - AzureMLCompute = "AzureMLCompute", - Kubernetes = "Kubernetes", - Managed = "Managed" +export interface OnlineDeploymentsGetLogsOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownEndpointProvisioningState { - Canceled = "Canceled", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Succeeded = "Succeeded", - Updating = "Updating" +export type OnlineDeploymentsGetLogsResponse = DeploymentLogs; + +// @public +export interface OnlineDeploymentsGetOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownEnvironmentType { - Curated = "Curated", - UserCreated = "UserCreated" +export type OnlineDeploymentsGetResponse = OnlineDeployment; + +// @public +export interface OnlineDeploymentsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownFeatureLags { - Auto = "Auto", - None = "None" +export type OnlineDeploymentsListNextResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; + +// @public +export interface OnlineDeploymentsListOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + top?: number; } // @public -export enum KnownFeaturizationMode { - Auto = "Auto", - Custom = "Custom", - Off = "Off" +export type OnlineDeploymentsListResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; + +// @public +export interface OnlineDeploymentsListSkusNextOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownForecastHorizonMode { - Auto = "Auto", - Custom = "Custom" +export type OnlineDeploymentsListSkusNextResponse = SkuResourceArmPaginatedResult; + +// @public +export interface OnlineDeploymentsListSkusOptionalParams extends coreClient.OperationOptions { + count?: number; + skip?: string; } // @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 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 interface OnlineEndpointsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface OnlineEndpointsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type OnlineEndpointsCreateOrUpdateResponse = OnlineEndpoint; + +// @public +export interface OnlineEndpointsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface OnlineEndpointsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface OnlineEndpointsGetOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownForecastingPrimaryMetrics { - NormalizedMeanAbsoluteError = "NormalizedMeanAbsoluteError", - NormalizedRootMeanSquaredError = "NormalizedRootMeanSquaredError", - R2Score = "R2Score", - SpearmanCorrelation = "SpearmanCorrelation" +export type OnlineEndpointsGetResponse = OnlineEndpoint; + +// @public +export interface OnlineEndpointsGetTokenOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownGoal { - Maximize = "Maximize", - Minimize = "Minimize" -} +export type OnlineEndpointsGetTokenResponse = EndpointAuthToken; // @public -export enum KnownIdentityConfigurationType { - AMLToken = "AMLToken", - Managed = "Managed", - UserIdentity = "UserIdentity" +export interface OnlineEndpointsListKeysOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownInputDeliveryMode { - Direct = "Direct", - Download = "Download", - EvalDownload = "EvalDownload", - EvalMount = "EvalMount", - ReadOnlyMount = "ReadOnlyMount", - ReadWriteMount = "ReadWriteMount" -} +export type OnlineEndpointsListKeysResponse = EndpointAuthKeys; // @public -export enum KnownInstanceSegmentationPrimaryMetrics { - MeanAveragePrecision = "MeanAveragePrecision" +export interface OnlineEndpointsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownJobInputType { - CustomModel = "custom_model", - Literal = "literal", - MlflowModel = "mlflow_model", - Mltable = "mltable", - TritonModel = "triton_model", - UriFile = "uri_file", - UriFolder = "uri_folder" -} +export type OnlineEndpointsListNextResponse = OnlineEndpointTrackedResourceArmPaginatedResult; // @public -export enum KnownJobLimitsType { - Command = "Command", - Sweep = "Sweep" +export interface OnlineEndpointsListOptionalParams extends coreClient.OperationOptions { + computeType?: EndpointComputeType; + count?: number; + name?: string; + orderBy?: OrderString; + properties?: string; + skip?: string; + tags?: string; } // @public -export enum KnownJobOutputType { - CustomModel = "custom_model", - MlflowModel = "mlflow_model", - Mltable = "mltable", - TritonModel = "triton_model", - UriFile = "uri_file", - UriFolder = "uri_folder" -} +export type OnlineEndpointsListResponse = OnlineEndpointTrackedResourceArmPaginatedResult; // @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 interface OnlineEndpointsRegenerateKeysHeaders { + location?: string; + retryAfter?: number; } // @public -export enum KnownJobType { - AutoML = "AutoML", - Command = "Command", - Pipeline = "Pipeline", - Sweep = "Sweep" +export interface OnlineEndpointsRegenerateKeysOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export enum KnownKeyType { - Primary = "Primary", - Secondary = "Secondary" +export interface OnlineEndpointsUpdateHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export enum KnownLearningRateScheduler { - None = "None", - Step = "Step", - WarmupCosine = "WarmupCosine" +export interface OnlineEndpointsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export enum KnownListViewType { - ActiveOnly = "ActiveOnly", - All = "All", - ArchivedOnly = "ArchivedOnly" -} +export type OnlineEndpointsUpdateResponse = OnlineEndpoint; // @public -export enum KnownLoadBalancerType { - InternalLoadBalancer = "InternalLoadBalancer", - PublicIp = "PublicIp" +export interface OnlineEndpointTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: OnlineEndpoint[]; } // @public -export enum KnownLogVerbosity { - Critical = "Critical", - Debug = "Debug", - Error = "Error", - Info = "Info", - NotSet = "NotSet", - Warning = "Warning" +export interface OnlineInferenceConfiguration { + configurations?: { + [propertyName: string]: string | null; + }; + entryScript?: string; + livenessRoute?: Route; + readinessRoute?: Route; + scoringRoute?: Route; } // @public -export enum KnownManagedServiceIdentityType { - None = "None", - SystemAssigned = "SystemAssigned", - SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", - UserAssigned = "UserAssigned" +export interface OnlineRequestSettings { + maxConcurrentRequestsPerInstance?: number; + maxQueueWait?: string; + requestTimeout?: string; } // @public -export enum KnownModelSize { - ExtraLarge = "ExtraLarge", - Large = "Large", - Medium = "Medium", - None = "None", - Small = "Small" +export interface OnlineScaleSettings { + scaleType: "Default" | "TargetUtilization"; } +// @public (undocumented) +export type OnlineScaleSettingsUnion = OnlineScaleSettings | DefaultScaleSettings | TargetUtilizationScaleSettings; + // @public -export enum KnownMountAction { - Mount = "Mount", - Unmount = "Unmount" -} +export type OperatingSystemType = string; // @public -export enum KnownMountState { - Mounted = "Mounted", - MountFailed = "MountFailed", - MountRequested = "MountRequested", - Unmounted = "Unmounted", - UnmountFailed = "UnmountFailed", - UnmountRequested = "UnmountRequested" +export interface Operation { + readonly actionType?: ActionType; + display?: OperationDisplay; + readonly isDataAction?: boolean; + readonly name?: string; + readonly origin?: Origin; } // @public -export enum KnownNCrossValidationsMode { - Auto = "Auto", - Custom = "Custom" +export interface OperationDisplay { + readonly description?: string; + readonly operation?: string; + readonly provider?: string; + readonly resource?: string; } // @public -export enum KnownNetwork { - Bridge = "Bridge", - Host = "Host" +export interface OperationListResult { + readonly nextLink?: string; + readonly value?: Operation[]; } // @public -export enum KnownNodeState { - Idle = "idle", - Leaving = "leaving", - Preempted = "preempted", - Preparing = "preparing", - Running = "running", - Unusable = "unusable" -} +export type OperationName = string; // @public -export enum KnownObjectDetectionPrimaryMetrics { - MeanAveragePrecision = "MeanAveragePrecision" +export interface Operations { + list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; } // @public -export enum KnownOperatingSystemType { - Linux = "Linux", - Windows = "Windows" +export interface OperationsListOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownOperationName { - Create = "Create", - Delete = "Delete", - Reimage = "Reimage", - Restart = "Restart", - Start = "Start", - Stop = "Stop" -} +export type OperationsListResponse = OperationListResult; // @public -export enum KnownOperationStatus { - CreateFailed = "CreateFailed", - DeleteFailed = "DeleteFailed", - InProgress = "InProgress", - ReimageFailed = "ReimageFailed", - RestartFailed = "RestartFailed", - StartFailed = "StartFailed", - StopFailed = "StopFailed", - Succeeded = "Succeeded" -} +export type OperationStatus = string; // @public -export enum KnownOperationTrigger { - IdleShutdown = "IdleShutdown", - Schedule = "Schedule", - User = "User" -} +export type OperationTrigger = string; // @public -export enum KnownOrderString { - CreatedAtAsc = "CreatedAtAsc", - CreatedAtDesc = "CreatedAtDesc", - UpdatedAtAsc = "UpdatedAtAsc", - UpdatedAtDesc = "UpdatedAtDesc" -} +export type OrderString = string; // @public -export enum KnownOsType { - Linux = "Linux", - Windows = "Windows" +export type Origin = string; + +// @public +export interface OsPatchingStatus { + latestPatchTime?: string; + patchStatus?: PatchStatus; + rebootPending?: boolean; + scheduledRebootTime?: string; } // @public -export enum KnownOutputDeliveryMode { - ReadWriteMount = "ReadWriteMount", - Upload = "Upload" +export type OsType = string; + +// @public +export interface OutboundRule { + category?: RuleCategory; + status?: RuleStatus; + type: "FQDN" | "PrivateEndpoint" | "ServiceTag"; +} + +// @public (undocumented) +export interface OutboundRuleBasicResource extends Resource { + properties: OutboundRuleUnion; } // @public -export enum KnownPrivateEndpointConnectionProvisioningState { - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Succeeded = "Succeeded" +export interface OutboundRuleListResult { + nextLink?: string; + value?: OutboundRuleBasicResource[]; } +// @public (undocumented) +export type OutboundRuleUnion = OutboundRule | FqdnOutboundRule | PrivateEndpointOutboundRule | ServiceTagOutboundRule; + // @public -export enum KnownPrivateEndpointServiceConnectionStatus { - Approved = "Approved", - Disconnected = "Disconnected", - Pending = "Pending", - Rejected = "Rejected", - Timeout = "Timeout" +export type OutputDeliveryMode = string; + +// @public +export interface OutputPathAssetReference extends AssetReferenceBase { + jobId?: string; + path?: string; + referenceType: "OutputPath"; } // @public -export enum KnownProvisioningState { - Canceled = "Canceled", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Succeeded = "Succeeded", - Unknown = "Unknown", - Updating = "Updating" +export type PackageBuildState = string; + +// @public +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 KnownProvisioningStatus { - Completed = "Completed", - Failed = "Failed", - Provisioning = "Provisioning" +export interface PackageInputPathId extends PackageInputPathBase { + inputPathType: "PathId"; + resourceId?: string; } // @public -export enum KnownPublicNetworkAccess { - Disabled = "Disabled", - Enabled = "Enabled" +export interface PackageInputPathUrl extends PackageInputPathBase { + inputPathType: "Url"; + url?: string; } // @public -export enum KnownPublicNetworkAccessType { - Disabled = "Disabled", - Enabled = "Enabled" +export interface PackageInputPathVersion extends PackageInputPathBase { + inputPathType: "PathVersion"; + resourceName?: string; + resourceVersion?: string; } // @public -export enum KnownQuotaUnit { - Count = "Count" -} +export type PackageInputType = string; // @public -export enum KnownRandomSamplingAlgorithmRule { - Random = "Random", - Sobol = "Sobol" +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 KnownRecurrenceFrequency { - Day = "Day", - Hour = "Hour", - Minute = "Minute", - Month = "Month", - Week = "Week" +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 KnownReferenceType { - DataPath = "DataPath", - Id = "Id", - OutputPath = "OutputPath" +export interface PaginatedComputeResourcesList { + nextLink?: string; + value?: ComputeResource[]; } // @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 interface PartialBatchDeployment { + description?: string; } // @public -export enum KnownRegressionPrimaryMetrics { - NormalizedMeanAbsoluteError = "NormalizedMeanAbsoluteError", - NormalizedRootMeanSquaredError = "NormalizedRootMeanSquaredError", - R2Score = "R2Score", - SpearmanCorrelation = "SpearmanCorrelation" +export interface PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties { + properties?: PartialBatchDeployment; + tags?: { + [propertyName: string]: string | null; + }; } // @public -export enum KnownRemoteLoginPortPublicAccess { - Disabled = "Disabled", - Enabled = "Enabled", - NotSpecified = "NotSpecified" +export interface PartialJobBase { + notificationSetting?: PartialNotificationSetting; } // @public -export enum KnownSamplingAlgorithmType { - Bayesian = "Bayesian", - Grid = "Grid", - Random = "Random" +export interface PartialJobBasePartialResource { + properties?: PartialJobBase; } // @public -export enum KnownScaleType { - Default = "Default", - TargetUtilization = "TargetUtilization" +export interface PartialManagedServiceIdentity { + type?: ManagedServiceIdentityType; + userAssignedIdentities?: { + [propertyName: string]: Record; + }; } // @public -export enum KnownScheduleActionType { - CreateJob = "CreateJob", - InvokeBatchEndpoint = "InvokeBatchEndpoint" +export interface PartialMinimalTrackedResource { + tags?: { + [propertyName: string]: string | null; + }; } // @public -export enum KnownScheduleListViewType { - All = "All", - DisabledOnly = "DisabledOnly", - EnabledOnly = "EnabledOnly" +export interface PartialMinimalTrackedResourceWithIdentity extends PartialMinimalTrackedResource { + identity?: PartialManagedServiceIdentity; } // @public -export enum KnownScheduleProvisioningState { - Completed = "Completed", - Failed = "Failed", - Provisioning = "Provisioning" +export interface PartialMinimalTrackedResourceWithSku extends PartialMinimalTrackedResource { + sku?: PartialSku; } // @public -export enum KnownScheduleProvisioningStatus { - Canceled = "Canceled", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Succeeded = "Succeeded", - Updating = "Updating" +export interface PartialMinimalTrackedResourceWithSkuAndIdentity extends PartialMinimalTrackedResource { + identity?: PartialManagedServiceIdentity; + sku?: PartialSku; } // @public -export enum KnownScheduleStatus { - Disabled = "Disabled", - Enabled = "Enabled" +export interface PartialNotificationSetting { + webhooks?: { + [propertyName: string]: WebhookUnion | null; + }; } // @public -export enum KnownSeasonalityMode { - Auto = "Auto", - Custom = "Custom" +export interface PartialRegistryPartialTrackedResource { + identity?: RegistryPartialManagedServiceIdentity; + sku?: PartialSku; + tags?: { + [propertyName: string]: string | null; + }; } // @public -export enum KnownSecretsType { - AccountKey = "AccountKey", - Certificate = "Certificate", - Sas = "Sas", - ServicePrincipal = "ServicePrincipal" +export interface PartialSku { + capacity?: number; + family?: string; + name?: string; + size?: string; + tier?: SkuTier; } -// @public -export enum KnownServiceDataAccessAuthIdentity { - None = "None", - WorkspaceSystemAssignedIdentity = "WorkspaceSystemAssignedIdentity", - WorkspaceUserAssignedIdentity = "WorkspaceUserAssignedIdentity" +// @public (undocumented) +export interface Password { + readonly name?: string; + readonly value?: string; } -// @public -export enum KnownShortSeriesHandlingConfiguration { - Auto = "Auto", - Drop = "Drop", - None = "None", - Pad = "Pad" +// @public (undocumented) +export interface PATAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { + authType: "PAT"; + // (undocumented) + credentials?: WorkspaceConnectionPersonalAccessToken; } // @public -export enum KnownSkuScaleType { - Automatic = "Automatic", - Manual = "Manual", - None = "None" +export type PatchStatus = string; + +// @public (undocumented) +export interface PendingUploadCredentialDto { + credentialType: "SAS"; } +// @public (undocumented) +export type PendingUploadCredentialDtoUnion = PendingUploadCredentialDto | SASCredentialDto; + // @public -export enum KnownSourceType { - Dataset = "Dataset", - Datastore = "Datastore", - URI = "URI" +export type PendingUploadCredentialType = string; + +// @public (undocumented) +export interface PendingUploadRequestDto { + pendingUploadId?: string; + pendingUploadType?: PendingUploadType; } -// @public -export enum KnownSshPublicAccess { - Disabled = "Disabled", - Enabled = "Enabled" +// @public (undocumented) +export interface PendingUploadResponseDto { + blobReferenceForConsumption?: BlobReferenceForConsumptionDto; + pendingUploadId?: string; + pendingUploadType?: PendingUploadType; } // @public -export enum KnownSslConfigStatus { - Auto = "Auto", - Disabled = "Disabled", - Enabled = "Enabled" +export type PendingUploadType = string; + +// @public +export interface PersonalComputeInstanceSettings { + assignedUser?: AssignedUser; } // @public -export enum KnownStackMetaLearnerType { - ElasticNet = "ElasticNet", - ElasticNetCV = "ElasticNetCV", - LightGBMClassifier = "LightGBMClassifier", - LightGBMRegressor = "LightGBMRegressor", - LinearRegression = "LinearRegression", - LogisticRegression = "LogisticRegression", - LogisticRegressionCV = "LogisticRegressionCV", - None = "None" +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 KnownStatus { - Failure = "Failure", - InvalidQuotaBelowClusterMinimum = "InvalidQuotaBelowClusterMinimum", - InvalidQuotaExceedsSubscriptionLimit = "InvalidQuotaExceedsSubscriptionLimit", - InvalidVMFamilyName = "InvalidVMFamilyName", - OperationNotEnabledForRegion = "OperationNotEnabledForRegion", - OperationNotSupportedForSku = "OperationNotSupportedForSku", - Success = "Success", - Undefined = "Undefined" +export interface PoolEnvironmentConfiguration { + environmentId?: string; + environmentVariables?: { + [propertyName: string]: string | null; + }; + livenessProbe?: ProbeSettings; + readinessProbe?: ProbeSettings; + startupProbe?: ProbeSettings; } // @public -export enum KnownStochasticOptimizer { - Adam = "Adam", - Adamw = "Adamw", - None = "None", - Sgd = "Sgd" +export interface PoolModelConfiguration { + modelId?: string; } // @public -export enum KnownStorageAccountType { - PremiumLRS = "Premium_LRS", - StandardLRS = "Standard_LRS" +export type PoolProvisioningState = string; + +// @public (undocumented) +export interface PoolStatus { + actualCapacity?: number; + groupCount?: number; + requestedCapacity?: number; + reservedCapacity?: number; +} + +// @public (undocumented) +export interface PredictionDriftMetricThresholdBase { + dataType: "Categorical" | "Numerical"; + threshold?: MonitoringThreshold; +} + +// @public (undocumented) +export type PredictionDriftMetricThresholdBaseUnion = PredictionDriftMetricThresholdBase | CategoricalPredictionDriftMetricThreshold | NumericalPredictionDriftMetricThreshold; + +// @public (undocumented) +export interface PredictionDriftMonitoringSignal extends MonitoringSignalBase { + featureDataTypeOverride?: { + [propertyName: string]: MonitoringFeatureDataType; + }; + metricThresholds: PredictionDriftMetricThresholdBaseUnion[]; + productionData: MonitoringInputDataBaseUnion; + referenceData: MonitoringInputDataBaseUnion; + signalType: "PredictionDrift"; } // @public -export enum KnownTargetAggregationFunction { - Max = "Max", - Mean = "Mean", - Min = "Min", - None = "None", - Sum = "Sum" +export interface PrivateEndpoint { + readonly id?: string; } // @public -export enum KnownTargetLagsMode { - Auto = "Auto", - Custom = "Custom" +export interface PrivateEndpointConnection extends Resource { + identity?: ManagedServiceIdentity; + location?: string; + privateEndpoint?: WorkspacePrivateEndpointResource; + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + provisioningState?: PrivateEndpointConnectionProvisioningState; + sku?: Sku; + tags?: { + [propertyName: string]: string; + }; } // @public -export enum KnownTargetRollingWindowSizeMode { - Auto = "Auto", - Custom = "Custom" +export interface PrivateEndpointConnectionListResult { + value?: PrivateEndpointConnection[]; } // @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 type PrivateEndpointConnectionProvisioningState = string; // @public -export enum KnownTriggerType { - Cron = "Cron", - Recurrence = "Recurrence" +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 enum KnownUnderlyingResourceAction { - Delete = "Delete", - Detach = "Detach" +export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownUnitOfMeasure { - OneHour = "OneHour" -} +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; // @public -export enum KnownUsageUnit { - Count = "Count" +export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownUseStl { - None = "None", - Season = "Season", - SeasonTrend = "SeasonTrend" +export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownValidationMetricType { - Coco = "Coco", - CocoVoc = "CocoVoc", - None = "None", - Voc = "Voc" -} +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; // @public -export enum KnownValueFormat { - Json = "JSON" +export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownVMPriceOSType { - Linux = "Linux", - Windows = "Windows" -} +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; // @public -export enum KnownVmPriority { - Dedicated = "Dedicated", - LowPriority = "LowPriority" +export interface PrivateEndpointDestination { + // (undocumented) + serviceResourceId?: string; + // (undocumented) + sparkEnabled?: boolean; + sparkStatus?: RuleStatus; + // (undocumented) + subresourceTarget?: string; } // @public -export enum KnownVMTier { - LowPriority = "LowPriority", - Spot = "Spot", - Standard = "Standard" +export interface PrivateEndpointOutboundRule extends OutboundRule { + destination?: PrivateEndpointDestination; + type: "PrivateEndpoint"; } // @public -export enum KnownWeekDay { - Friday = "Friday", - Monday = "Monday", - Saturday = "Saturday", - Sunday = "Sunday", - Thursday = "Thursday", - Tuesday = "Tuesday", - Wednesday = "Wednesday" +export interface PrivateEndpointResource extends PrivateEndpoint { + subnetArmId?: string; } // @public -export interface Kubernetes extends Compute, KubernetesSchema { - computeType: "Kubernetes"; +export interface PrivateLinkResource extends Resource { + groupId?: string; + identity?: ManagedServiceIdentity; + location?: string; + requiredMembers?: string[]; + requiredZoneNames?: string[]; + sku?: Sku; + tags?: { + [propertyName: string]: string; + }; } // @public -export interface KubernetesOnlineDeployment extends OnlineDeploymentProperties { - containerResourceRequirements?: ContainerResourceRequirements; - endpointComputeType: "Kubernetes"; +export interface PrivateLinkResourceListResult { + // (undocumented) + value?: PrivateLinkResource[]; } // @public -export interface KubernetesProperties { - defaultInstanceType?: string; - extensionInstanceReleaseTrain?: string; - extensionPrincipalId?: string; - instanceTypes?: { - [propertyName: string]: InstanceTypeSchema; - }; - namespace?: string; - relayConnectionString?: string; - serviceBusConnectionString?: string; - vcName?: string; +export interface PrivateLinkResources { + list(resourceGroupName: string, workspaceName: string, options?: PrivateLinkResourcesListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface KubernetesSchema { - properties?: KubernetesProperties; +export interface PrivateLinkResourcesListOptionalParams extends coreClient.OperationOptions { } // @public -export type LearningRateScheduler = string; +export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; // @public -export interface ListAmlUserFeatureResult { - readonly nextLink?: string; - readonly value?: AmlUserFeature[]; +export interface PrivateLinkServiceConnectionState { + actionsRequired?: string; + description?: string; + status?: EndpointServiceConnectionStatus; } -// @public (undocumented) -export interface ListNotebookKeysResult { - readonly primaryAccessKey?: string; - readonly secondaryAccessKey?: string; +// @public +export interface ProbeSettings { + failureThreshold?: number; + initialDelay?: string; + period?: string; + successThreshold?: number; + timeout?: string; } -// @public (undocumented) -export interface ListStorageAccountKeysResult { - readonly userStorageKey?: string; +// @public +export interface ProgressMetrics { + readonly completedDatapointCount?: number; + readonly incrementalDataLastRefreshDateTime?: Date; + readonly skippedDatapointCount?: number; + readonly totalDatapointCount?: number; } // @public -export interface ListUsagesResult { - readonly nextLink?: string; - readonly value?: Usage[]; +export interface PropertiesBase { + description?: string; + properties?: { + [propertyName: string]: string | null; + }; } // @public -export type ListViewType = string; +export type ProtectionLevel = string; -// @public (undocumented) -export interface ListWorkspaceKeysResult { - readonly appInsightsInstrumentationKey?: string; - readonly containerRegistryCredentials?: RegistryListCredentialsResult; - readonly notebookAccessKeys?: ListNotebookKeysResult; - readonly userStorageKey?: string; - readonly userStorageResourceId?: string; -} +// @public +export type Protocol = string; // @public -export interface ListWorkspaceQuotas { - readonly nextLink?: string; - readonly value?: ResourceQuota[]; -} +export type ProvisioningState = string; // @public -export interface LiteralJobInput extends JobInput { - jobInputType: "literal"; - value: string; -} +export type ProvisioningStatus = string; // @public -export type LoadBalancerType = string; +export interface ProxyResource extends Resource { +} // @public -export type LogVerbosity = string; +export type PublicNetworkAccessType = string; // @public -export interface ManagedIdentity extends IdentityConfiguration { - clientId?: string; - identityType: "Managed"; - objectId?: string; - resourceId?: string; +export interface PyTorch extends DistributionConfiguration { + distributionType: "PyTorch"; + processCountPerInstance?: number; } // @public (undocumented) -export interface ManagedIdentityAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { - authType: "ManagedIdentity"; - // (undocumented) - credentials?: WorkspaceConnectionManagedIdentity; +export interface QueueSettings { + jobTier?: JobTier; + priority?: number; } // @public -export interface ManagedOnlineDeployment extends OnlineDeploymentProperties { - endpointComputeType: "Managed"; +export interface QuotaBaseProperties { + id?: string; + limit?: number; + type?: string; + unit?: QuotaUnit; } // @public -export interface ManagedServiceIdentity { - readonly principalId?: string; - readonly tenantId?: string; - type: ManagedServiceIdentityType; - userAssignedIdentities?: { - [propertyName: string]: UserAssignedIdentity; - }; +export interface Quotas { + list(location: string, options?: QuotasListOptionalParams): PagedAsyncIterableIterator; + update(location: string, parameters: QuotaUpdateParameters, options?: QuotasUpdateOptionalParams): Promise; } // @public -export type ManagedServiceIdentityType = string; +export interface QuotasListNextOptionalParams extends coreClient.OperationOptions { +} // @public -export interface MedianStoppingPolicy extends EarlyTerminationPolicy { - policyType: "MedianStopping"; -} +export type QuotasListNextResponse = ListWorkspaceQuotas; -// @public (undocumented) -export interface MLFlowModelJobInput extends AssetJobInput, JobInput { +// @public +export interface QuotasListOptionalParams extends coreClient.OperationOptions { } -// @public (undocumented) -export interface MLFlowModelJobOutput extends AssetJobOutput, JobOutput { -} +// @public +export type QuotasListResponse = ListWorkspaceQuotas; // @public -export interface MLTableData extends DataVersionBaseProperties { - dataType: "mltable"; - referencedUris?: string[]; +export interface QuotasUpdateOptionalParams extends coreClient.OperationOptions { } -// @public (undocumented) -export interface MLTableJobInput extends AssetJobInput, JobInput { -} +// @public +export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult; -// @public (undocumented) -export interface MLTableJobOutput extends AssetJobOutput, JobOutput { -} +// @public +export type QuotaUnit = string; // @public -export interface ModelContainer extends Resource { - properties: ModelContainerProperties; +export interface QuotaUpdateParameters { + location?: string; + value?: QuotaBaseProperties[]; } -// @public (undocumented) -export interface ModelContainerProperties extends AssetContainer { +// @public +export interface RandomSamplingAlgorithm extends SamplingAlgorithm { + logbase?: string; + rule?: RandomSamplingAlgorithmRule; + samplingAlgorithmType: "Random"; + seed?: number; } // @public -export interface ModelContainerResourceArmPaginatedResult { - nextLink?: string; - value?: ModelContainer[]; -} +export type RandomSamplingAlgorithmRule = string; // @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 interface Ray extends DistributionConfiguration { + address?: string; + dashboardPort?: number; + distributionType: "Ray"; + headNodeAdditionalArgs?: string; + includeDashboard?: boolean; + port?: number; + workerNodeAdditionalArgs?: string; } // @public -export interface ModelContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface Recurrence { + frequency?: ComputeRecurrenceFrequency; + interval?: number; + schedule?: ComputeRecurrenceSchedule; + startTime?: string; + timeZone?: string; } // @public -export type ModelContainersCreateOrUpdateResponse = ModelContainer; +export type RecurrenceFrequency = string; -// @public -export interface ModelContainersDeleteOptionalParams extends coreClient.OperationOptions { +// @public (undocumented) +export interface RecurrenceSchedule { + hours: number[]; + minutes: number[]; + monthDays?: number[]; + weekDays?: WeekDay[]; } -// @public -export interface ModelContainersGetOptionalParams extends coreClient.OperationOptions { +// @public (undocumented) +export interface RecurrenceTrigger extends TriggerBase { + frequency: RecurrenceFrequency; + interval: number; + schedule?: RecurrenceSchedule; + triggerType: "Recurrence"; } // @public -export type ModelContainersGetResponse = ModelContainer; +export type ReferenceType = string; -// @public -export interface ModelContainersListNextOptionalParams extends coreClient.OperationOptions { - count?: number; - listViewType?: ListViewType; - skip?: string; +// @public (undocumented) +export interface RegenerateEndpointKeysRequest { + keyType: KeyType_2; + keyValue?: string; } // @public -export type ModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult; - -// @public -export interface ModelContainersListOptionalParams extends coreClient.OperationOptions { - count?: number; - listViewType?: ListViewType; - skip?: string; +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 type ModelContainersListResponse = ModelContainerResourceArmPaginatedResult; +export interface RegistriesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public -export type ModelSize = string; +export type RegistriesCreateOrUpdateResponse = Registry; // @public -export interface ModelVersion extends Resource { - properties: ModelVersionProperties; +export interface RegistriesDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export interface ModelVersionProperties extends AssetBase { - flavors?: { - [propertyName: string]: FlavorData | null; - }; - jobName?: string; - modelType?: string; - modelUri?: string; +export interface RegistriesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface ModelVersionResourceArmPaginatedResult { - nextLink?: string; - value?: ModelVersion[]; +export interface RegistriesGetOptionalParams extends coreClient.OperationOptions { } // @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 type RegistriesGetResponse = Registry; // @public -export interface ModelVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface RegistriesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ModelVersionsCreateOrUpdateResponse = ModelVersion; - -// @public -export interface ModelVersionsDeleteOptionalParams extends coreClient.OperationOptions { -} +export type RegistriesListBySubscriptionNextResponse = RegistryTrackedResourceArmPaginatedResult; // @public -export interface ModelVersionsGetOptionalParams extends coreClient.OperationOptions { +export interface RegistriesListBySubscriptionOptionalParams extends coreClient.OperationOptions { } // @public -export type ModelVersionsGetResponse = ModelVersion; +export type RegistriesListBySubscriptionResponse = 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 RegistriesListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult; +export type RegistriesListNextResponse = 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 RegistriesListOptionalParams extends coreClient.OperationOptions { } // @public -export type ModelVersionsListResponse = ModelVersionResourceArmPaginatedResult; +export type RegistriesListResponse = RegistryTrackedResourceArmPaginatedResult; // @public -export type MountAction = string; +export interface RegistriesRemoveRegionsHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} // @public -export type MountState = string; +export interface RegistriesRemoveRegionsOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public -export interface Mpi extends DistributionConfiguration { - distributionType: "Mpi"; - processCountPerInstance?: number; -} +export type RegistriesRemoveRegionsResponse = Registry; // @public -export interface NCrossValidations { - mode: "Auto" | "Custom"; +export interface RegistriesUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type NCrossValidationsMode = string; +export type RegistriesUpdateResponse = Registry; // @public (undocumented) -export type NCrossValidationsUnion = NCrossValidations | AutoNCrossValidations | CustomNCrossValidations; - -// @public -export type Network = string; +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 NlpVertical { - featurizationSettings?: NlpVerticalFeaturizationSettings; - limitSettings?: NlpVerticalLimitSettings; - validationData?: MLTableJobInput; +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 (undocumented) -export interface NlpVerticalFeaturizationSettings extends FeaturizationSettings { +// @public +export interface RegistryCodeContainersCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } // @public -export interface NlpVerticalLimitSettings { - maxConcurrentTrials?: number; - maxTrials?: number; - timeout?: string; +export interface RegistryCodeContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type NodeState = string; +export type RegistryCodeContainersCreateOrUpdateResponse = CodeContainer; // @public -export interface NodeStateCounts { - readonly idleNodeCount?: number; - readonly leavingNodeCount?: number; - readonly preemptedNodeCount?: number; - readonly preparingNodeCount?: number; - readonly runningNodeCount?: number; - readonly unusableNodeCount?: number; -} - -// @public (undocumented) -export interface NoneAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { - authType: "None"; +export interface RegistryCodeContainersDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export interface NoneDatastoreCredentials extends DatastoreCredentials { - credentialsType: "None"; +export interface RegistryCodeContainersDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } -// @public (undocumented) -export interface NotebookAccessTokenResult { - readonly accessToken?: string; - readonly expiresIn?: number; - readonly hostName?: string; - readonly notebookResourceId?: string; - readonly publicDns?: string; - readonly refreshToken?: string; - readonly scope?: string; - readonly tokenType?: string; +// @public +export interface RegistryCodeContainersGetOptionalParams extends coreClient.OperationOptions { } -// @public (undocumented) -export interface NotebookPreparationError { - // (undocumented) - errorMessage?: string; - // (undocumented) - statusCode?: number; -} +// @public +export type RegistryCodeContainersGetResponse = CodeContainer; -// @public (undocumented) -export interface NotebookResourceInfo { - // (undocumented) - fqdn?: string; - notebookPreparationError?: NotebookPreparationError; - resourceId?: string; +// @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 +export interface RegistryComponentContainersListNextOptionalParams extends coreClient.OperationOptions { } -// @public (undocumented) -export interface OnlineEndpoint extends TrackedResource { - identity?: ManagedServiceIdentity; - kind?: string; - properties: OnlineEndpointProperties; - sku?: Sku; +// @public +export type RegistryComponentContainersListNextResponse = ComponentContainerResourceArmPaginatedResult; + +// @public +export interface RegistryComponentContainersListOptionalParams extends coreClient.OperationOptions { + skip?: string; } // @public -export interface OnlineEndpointProperties extends EndpointPropertiesBase { - compute?: string; - readonly provisioningState?: EndpointProvisioningState; - publicNetworkAccess?: PublicNetworkAccessType; - traffic?: { - [propertyName: string]: number; - }; -} +export type RegistryComponentContainersListResponse = ComponentContainerResourceArmPaginatedResult; // @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 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; - }; -} - -// @public -export interface PrivateLinkResourceListResult { - value?: PrivateLinkResource[]; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export interface PrivateLinkResources { - list(resourceGroupName: string, workspaceName: string, options?: PrivateLinkResourcesListOptionalParams): Promise; +export interface RegistryModelContainersDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface PrivateLinkResourcesListOptionalParams extends coreClient.OperationOptions { +export interface RegistryModelContainersGetOptionalParams extends coreClient.OperationOptions { } // @public -export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; +export type RegistryModelContainersGetResponse = ModelContainer; // @public -export interface PrivateLinkServiceConnectionState { - actionsRequired?: string; - description?: string; - status?: PrivateEndpointServiceConnectionStatus; +export interface RegistryModelContainersListNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface ProbeSettings { - failureThreshold?: number; - initialDelay?: string; - period?: string; - successThreshold?: number; - timeout?: string; +export type RegistryModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult; + +// @public +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 +8462,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 +8486,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 +8525,8 @@ export interface ResourceBase { export interface ResourceConfiguration { instanceCount?: number; instanceType?: string; + locations?: string[]; + maxInstanceCount?: number; properties?: { [propertyName: string]: Record; }; @@ -4535,12 +8553,35 @@ export interface ResourceQuota { readonly unit?: QuotaUnit; } +// @public +export interface RollingInputData extends MonitoringInputDataBase { + inputDataType: "Rolling"; + preprocessingComponentId?: string; + windowOffset: string; + windowSize: string; +} + +// @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 +8600,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"; @@ -4587,17 +8634,17 @@ export interface ScaleSettingsInformation { export type ScaleType = string; // @public -export interface Schedule extends Resource { +export interface Schedule extends ProxyResource { properties: ScheduleProperties; } // @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 +8682,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; @@ -4680,8 +8727,6 @@ export type SchedulesGetResponse = Schedule; // @public export interface SchedulesListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ScheduleListViewType; - skip?: string; } // @public @@ -4700,41 +8745,225 @@ export type SchedulesListResponse = ScheduleResourceArmPaginatedResult; export type ScheduleStatus = string; // @public -export interface ScriptReference { - scriptArguments?: string; - scriptData?: string; - scriptSource?: string; - timeout?: string; +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 ServerlessComputeSettings { + serverlessComputeCustomSubnet?: string; + serverlessComputeNoPublicIP?: boolean; +} + +// @public (undocumented) +export interface ServerlessEndpoint extends TrackedResource { + identity?: ManagedServiceIdentity; + kind?: string; + properties: ServerlessEndpointProperties; + sku?: Sku; +} + +// @public (undocumented) +export interface ServerlessEndpointCapacityReservation { + capacityReservationGroupId: string; + endpointReservedCapacity?: number; +} + +// @public (undocumented) +export interface ServerlessEndpointProperties { + authMode?: ServerlessInferenceEndpointAuthMode; + capacityReservation?: ServerlessEndpointCapacityReservation; + readonly inferenceEndpoint?: ServerlessInferenceEndpoint; + offer: ServerlessOffer; + 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; + getStatus(resourceGroupName: string, workspaceName: string, name: string, options?: ServerlessEndpointsGetStatusOptionalParams): 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 ServerlessEndpointsCreateOrUpdateResponse = ServerlessEndpoint; + +// @public +export interface ServerlessEndpointsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface ServerlessEndpointsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ServerlessEndpointsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerlessEndpointsGetResponse = ServerlessEndpoint; + +// @public +export interface ServerlessEndpointsGetStatusOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerlessEndpointsGetStatusResponse = ServerlessEndpointStatus; + +// @public +export interface ServerlessEndpointsListKeysOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerlessEndpointsListKeysResponse = EndpointAuthKeys; + +// @public +export interface ServerlessEndpointsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerlessEndpointsListNextResponse = ServerlessEndpointTrackedResourceArmPaginatedResult; + +// @public +export interface ServerlessEndpointsListOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type ServerlessEndpointsListResponse = ServerlessEndpointTrackedResourceArmPaginatedResult; + +// @public +export interface ServerlessEndpointsRegenerateKeysHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface ServerlessEndpointsRegenerateKeysOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ServerlessEndpointsRegenerateKeysResponse = EndpointAuthKeys; + +// @public (undocumented) +export interface ServerlessEndpointStatus { + readonly metrics?: { + [propertyName: string]: string | null; + }; +} + +// @public +export interface ServerlessEndpointsUpdateHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export interface ScriptsToExecute { - creationScript?: ScriptReference; - startupScript?: ScriptReference; +export interface ServerlessEndpointsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface Seasonality { - mode: "Auto" | "Custom"; -} +export type ServerlessEndpointsUpdateResponse = ServerlessEndpoint; // @public -export type SeasonalityMode = string; +export interface ServerlessEndpointTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: ServerlessEndpoint[]; +} // @public (undocumented) -export type SeasonalityUnion = Seasonality | AutoSeasonality | CustomSeasonality; +export interface ServerlessInferenceEndpoint { + readonly headers?: { + [propertyName: string]: string | null; + }; + uri: string; +} // @public -export type SecretsType = string; +export type ServerlessInferenceEndpointAuthMode = string; + +// @public (undocumented) +export interface ServerlessOffer { + offerName: string; + publisher: string; +} // @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 +8980,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 +9009,7 @@ export interface SharedPrivateLinkResource { name?: string; privateLinkResourceId?: string; requestMessage?: string; - status?: PrivateEndpointServiceConnectionStatus; + status?: EndpointServiceConnectionStatus; } // @public @@ -4813,6 +9060,62 @@ 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; + environmentVariables?: { + [propertyName: string]: string | null; + }; + 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 +9142,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 +9189,8 @@ export interface SweepJob extends JobBaseProperties { outputs?: { [propertyName: string]: JobOutputUnion | null; }; + queueSettings?: QueueSettings; + resources?: JobResourceConfiguration; samplingAlgorithm: SamplingAlgorithmUnion; searchSpace: Record; trial: TrialComponent; @@ -4894,6 +9225,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 +9258,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 +9347,10 @@ export interface TableVerticalLimitSettings { exitScore?: number; maxConcurrentTrials?: number; maxCoresPerTrial?: number; + maxNodes?: number; maxTrials?: number; + sweepConcurrentTrials?: number; + sweepTrials?: number; timeout?: string; trialTimeout?: string; } @@ -4992,6 +9399,9 @@ export interface TensorFlow extends DistributionConfiguration { workerCount?: number; } +// @public +export type TextAnnotationType = string; + // @public export interface TextClassification extends NlpVertical, AutoMLVertical { primaryMetric?: ClassificationPrimaryMetrics; @@ -5007,6 +9417,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 +9436,9 @@ export interface TrackedResource extends Resource { }; } +// @public +export type TrainingMode = string; + // @public export interface TrainingSettings { enableDnnTraining?: boolean; @@ -5024,6 +9448,7 @@ export interface TrainingSettings { enableVoteEnsemble?: boolean; ensembleModelDownloadTimeout?: string; stackEnsembleSettings?: StackEnsembleSettings; + trainingMode?: TrainingMode; } // @public @@ -5052,6 +9477,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 +9596,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 +9624,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 +9709,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 +9748,75 @@ 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; + serverlessComputeSettings?: ServerlessComputeSettings; 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 +9833,15 @@ 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; + readonly createdByWorkspaceArmId?: string; + // (undocumented) + expiryTime?: Date; + isSharedToAll?: boolean; + metadata?: Record; // (undocumented) target?: string; - value?: string; - valueFormat?: ValueFormat; } // @public (undocumented) @@ -5341,28 +9852,30 @@ 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) + beginTestConnection(resourceGroupName: string, workspaceName: string, connectionName: string, options?: WorkspaceConnectionsTestConnectionOptionalParams): Promise, WorkspaceConnectionsTestConnectionResponse>>; + beginTestConnectionAndWait(resourceGroupName: string, workspaceName: string, connectionName: string, options?: WorkspaceConnectionsTestConnectionOptionalParams): Promise; + 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,8 +9885,19 @@ 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 { + aoaiModelsToDeploy?: string; } // @public @@ -5387,8 +9911,6 @@ export interface WorkspaceConnectionSharedAccessSignature { // @public export interface WorkspaceConnectionsListNextOptionalParams extends coreClient.OperationOptions { - category?: string; - target?: string; } // @public @@ -5403,6 +9925,43 @@ export interface WorkspaceConnectionsListOptionalParams extends coreClient.Opera // @public export type WorkspaceConnectionsListResponse = WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult; +// @public +export interface WorkspaceConnectionsListSecretsOptionalParams extends coreClient.OperationOptions { + aoaiModelsToDeploy?: string; +} + +// @public +export type WorkspaceConnectionsListSecretsResponse = WorkspaceConnectionPropertiesV2BasicResource; + +// @public +export interface WorkspaceConnectionsTestConnectionHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface WorkspaceConnectionsTestConnectionOptionalParams extends coreClient.OperationOptions { + body?: WorkspaceConnectionPropertiesV2BasicResource; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceConnectionsTestConnectionResponse = WorkspaceConnectionsTestConnectionHeaders; + +// @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 +9989,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 +10033,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; @@ -5469,8 +10048,15 @@ export interface WorkspacesCreateOrUpdateOptionalParams extends coreClient.Opera // @public export type WorkspacesCreateOrUpdateResponse = Workspace; +// @public +export interface WorkspacesDeleteHeaders { + location?: string; + retryAfter?: number; +} + // @public export interface WorkspacesDeleteOptionalParams extends coreClient.OperationOptions { + forceToPurge?: boolean; resumeFrom?: string; updateIntervalInMs?: number; } @@ -5483,7 +10069,7 @@ export interface WorkspacesDiagnoseHeaders { // @public export interface WorkspacesDiagnoseOptionalParams extends coreClient.OperationOptions { - parameters?: DiagnoseWorkspaceParameters; + body?: DiagnoseWorkspaceParameters; resumeFrom?: string; updateIntervalInMs?: number; } @@ -5500,7 +10086,6 @@ export type WorkspacesGetResponse = Workspace; // @public export interface WorkspacesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { - skip?: string; } // @public @@ -5508,6 +10093,7 @@ export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult; // @public export interface WorkspacesListByResourceGroupOptionalParams extends coreClient.OperationOptions { + kind?: string; skip?: string; } @@ -5516,7 +10102,6 @@ export type WorkspacesListByResourceGroupResponse = WorkspaceListResult; // @public export interface WorkspacesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { - skip?: string; } // @public @@ -5524,6 +10109,7 @@ export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult; // @public export interface WorkspacesListBySubscriptionOptionalParams extends coreClient.OperationOptions { + kind?: string; skip?: string; } @@ -5565,6 +10151,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 +10166,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 +10192,25 @@ 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; + serverlessComputeSettings?: ServerlessComputeSettings; 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/rollup.config.js b/sdk/machinelearning/arm-machinelearning/rollup.config.js new file mode 100644 index 000000000000..3f89d7309da5 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/rollup.config.js @@ -0,0 +1,122 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import nodeResolve from "@rollup/plugin-node-resolve"; +import cjs from "@rollup/plugin-commonjs"; +import sourcemaps from "rollup-plugin-sourcemaps"; +import multiEntry from "@rollup/plugin-multi-entry"; +import json from "@rollup/plugin-json"; + +import nodeBuiltins from "builtin-modules"; + +// #region Warning Handler + +/** + * A function that can determine whether a rollup warning should be ignored. If + * the function returns `true`, then the warning will not be displayed. + */ + +function ignoreNiseSinonEval(warning) { + return ( + warning.code === "EVAL" && + warning.id && + (warning.id.includes("node_modules/nise") || + warning.id.includes("node_modules/sinon")) === true + ); +} + +function ignoreChaiCircularDependency(warning) { + return ( + warning.code === "CIRCULAR_DEPENDENCY" && + warning.importer && warning.importer.includes("node_modules/chai") === true + ); +} + +const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval]; + +/** + * Construct a warning handler for the shared rollup configuration + * that ignores certain warnings that are not relevant to testing. + */ +function makeOnWarnForTesting() { + return (warning, warn) => { + // If every inhibitor returns false (i.e. no inhibitors), then show the warning + if (warningInhibitors.every((inhib) => !inhib(warning))) { + warn(warning); + } + }; +} + +// #endregion + +function makeBrowserTestConfig() { + const config = { + input: { + include: ["dist-esm/test/**/*.spec.js"], + exclude: ["dist-esm/test/**/node/**"] + }, + output: { + file: `dist-test/index.browser.js`, + format: "umd", + sourcemap: true + }, + preserveSymlinks: false, + plugins: [ + multiEntry({ exports: false }), + nodeResolve({ + mainFields: ["module", "browser"] + }), + cjs(), + json(), + sourcemaps() + //viz({ filename: "dist-test/browser-stats.html", sourcemap: true }) + ], + onwarn: makeOnWarnForTesting(), + // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0, + // rollup started respecting the "sideEffects" field in package.json. Since + // our package.json sets "sideEffects=false", this also applies to test + // code, which causes all tests to be removed by tree-shaking. + treeshake: false + }; + + return config; +} + +const defaultConfigurationOptions = { + disableBrowserBundle: false +}; + +export function makeConfig(pkg, options) { + options = { + ...defaultConfigurationOptions, + ...(options || {}) + }; + + const baseConfig = { + // Use the package's module field if it has one + input: pkg["module"] || "dist-esm/src/index.js", + external: [ + ...nodeBuiltins, + ...Object.keys(pkg.dependencies), + ...Object.keys(pkg.devDependencies) + ], + output: { file: "dist/index.js", format: "cjs", sourcemap: true }, + preserveSymlinks: false, + plugins: [sourcemaps(), nodeResolve()] + }; + + const config = [baseConfig]; + + if (!options.disableBrowserBundle) { + config.push(makeBrowserTestConfig()); + } + + return config; +} + +export default makeConfig(require("./package.json")); diff --git a/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts b/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningServices.ts similarity index 62% rename from sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts rename to sdk/machinelearning/arm-machinelearning/src/azureMachineLearningServices.ts index 141a281ef475..fdeb6f94d4f0 100644 --- a/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts +++ b/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningServices.ts @@ -15,15 +15,21 @@ import { } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { - OperationsImpl, - WorkspacesImpl, UsagesImpl, VirtualMachineSizesImpl, QuotasImpl, ComputeOperationsImpl, - PrivateEndpointConnectionsImpl, - PrivateLinkResourcesImpl, - WorkspaceConnectionsImpl, + CapacityReservationGroupsImpl, + RegistryCodeContainersImpl, + RegistryCodeVersionsImpl, + RegistryComponentContainersImpl, + RegistryComponentVersionsImpl, + RegistryDataContainersImpl, + RegistryDataVersionsImpl, + RegistryEnvironmentContainersImpl, + RegistryEnvironmentVersionsImpl, + RegistryModelContainersImpl, + RegistryModelVersionsImpl, BatchEndpointsImpl, BatchDeploymentsImpl, CodeContainersImpl, @@ -35,24 +41,48 @@ import { DatastoresImpl, EnvironmentContainersImpl, EnvironmentVersionsImpl, + FeaturesetContainersImpl, + FeaturesImpl, + FeaturesetVersionsImpl, + FeaturestoreEntityContainersImpl, + FeaturestoreEntityVersionsImpl, + InferencePoolsImpl, + InferenceEndpointsImpl, + InferenceGroupsImpl, 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, + CapacityReservationGroups, + RegistryCodeContainers, + RegistryCodeVersions, + RegistryComponentContainers, + RegistryComponentVersions, + RegistryDataContainers, + RegistryDataVersions, + RegistryEnvironmentContainers, + RegistryEnvironmentVersions, + RegistryModelContainers, + RegistryModelVersions, BatchEndpoints, BatchDeployments, CodeContainers, @@ -64,23 +94,41 @@ import { Datastores, EnvironmentContainers, EnvironmentVersions, + FeaturesetContainers, + Features, + FeaturesetVersions, + FeaturestoreEntityContainers, + FeaturestoreEntityVersions, + InferencePools, + InferenceEndpoints, + InferenceGroups, 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 +136,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 +149,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 +207,28 @@ 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.capacityReservationGroups = new CapacityReservationGroupsImpl(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 +240,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.inferenceEndpoints = new InferenceEndpointsImpl(this); + this.inferenceGroups = new InferenceGroupsImpl(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 +298,21 @@ 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; + capacityReservationGroups: CapacityReservationGroups; + 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 +324,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; + inferenceEndpoints: InferenceEndpoints; + inferenceGroups: InferenceGroups; 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..5a2ee545baf7 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 @@ -120,60 +179,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 + | GenerationTokenUsageSignal + | ModelPerformanceSignal + | PredictionDriftMonitoringSignal; +export type MonitoringInputDataBaseUnion = + | MonitoringInputDataBase + | FixedInputData + | RollingInputData + | StaticInputData; +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; -} - -/** 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; +/** 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; +} + +/** 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 +372,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; + 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 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; +/** 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 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 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 NotebookPreparationError { - errorMessage?: string; - statusCode?: number; +/** Quota update parameters. */ +export interface QuotaUpdateParameters { + /** The list for update quota. */ + value?: QuotaBaseProperties[]; + /** Region of workspace quota to be updated. */ + location?: string; } -export interface ServiceManagedResourcesSettings { - /** The settings for the service managed cosmosdb account. */ - cosmosDb?: CosmosDbSettings; +/** 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 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; -} - -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 +540,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 +570,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[]; -} - -/** 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[]; + readonly systemData?: SystemData; } -/** 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 +740,114 @@ 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[]; + /** Describes the jupyter kernel settings for the image if its a custom environment */ + kernel?: JupyterKernelConfig; +} + +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 Environment images (custom and curated) */ + type?: ImageType; + /** Image reference URL if type is docker. Environment name if type is azureml */ + reference?: string; + /** Version of image being used. If latest then skip this field */ + version?: 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; +} + +/** Jupyter kernel configuration. */ +export interface JupyterKernelConfig { + /** Argument to the the runtime */ + argv?: string[]; + /** Display name of the kernel */ + displayName?: string; + /** Language of the kernel [Example value: python] */ + language?: string; +} + /** Result of AmlCompute Nodes */ export interface AmlComputeNodesInformation { /** @@ -923,242 +896,137 @@ 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 CapacityReservationGroup entities. */ +export interface CapacityReservationGroupTrackedResourceArmPaginatedResult { + /** The link to the next page of CapacityReservationGroup objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type CapacityReservationGroup. */ + value?: CapacityReservationGroup[]; } -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 CapacityReservationGroupProperties { + /** Offer used by this capacity reservation group. */ + offer?: ServerlessOffer; + /** [Required] Specifies the amount of capacity to reserve. */ + reservedCapacity: number; } -export interface WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult { - value?: WorkspaceConnectionPropertiesV2BasicResource[]; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; +export interface ServerlessOffer { + /** [Required] The name of the Serverless Offer */ + offerName: string; + /** [Required] Publisher name of the Serverless Offer */ + publisher: string; } -export interface ExternalFqdnResponse { - value?: FqdnEndpoints[]; +/** Managed service identity (system assigned and/or user assigned identities) */ +export interface PartialManagedServiceIdentity { + /** Managed service identity (system assigned and/or user assigned identities) */ + 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]: Record }; } -export interface FqdnEndpoints { - properties?: FqdnEndpointsProperties; +/** Common SKU definition. */ +export interface PartialSku { + /** 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; + /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ + family?: string; + /** The name of the SKU. Ex - P3. It is typically a letter+number code. */ + name?: string; + /** The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. */ + size?: 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; } -export interface FqdnEndpointsProperties { - category?: string; - endpoints?: FqdnEndpoint[]; +/** Strictly used in update requests. */ +export interface PartialMinimalTrackedResource { + /** Resource tags. */ + tags?: { [propertyName: string]: string | null }; } -export interface FqdnEndpoint { - domainName?: string; - endpointDetails?: FqdnEndpointDetail[]; +/** 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 FqdnEndpointDetail { - port?: number; +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 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; -} - -/** Inference Endpoint base definition */ -export interface EndpointPropertiesBase { - /** [Required] Use 'Key' for key based authentication and 'AMLToken' for Azure Machine Learning token-based authentication. 'Key' doesn't expire but 'AMLToken' does. */ - authMode: EndpointAuthMode; - /** Description of the inference endpoint. */ - description?: string; - /** - * EndpointAuthKeys to set initially on an Endpoint. - * This property will always be returned as null. AuthKey values must be retrieved using the ListKeys API. - */ - keys?: EndpointAuthKeys; - /** Property dictionary. Properties can be added, but not removed or altered. */ - properties?: { [propertyName: string]: string | null }; - /** - * Endpoint URI. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly scoringUri?: string; - /** - * Endpoint Swagger URI. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly swaggerUri?: string; -} - -/** Keys for endpoint authentication. */ -export interface EndpointAuthKeys { - /** The primary key. */ - primaryKey?: string; - /** The secondary key. */ - secondaryKey?: string; -} - -/** Managed service identity (system assigned and/or user assigned identities) */ -export interface PartialManagedServiceIdentity { - /** Managed service identity (system assigned and/or user assigned identities) */ - 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]: Record }; -} - -/** Strictly used in update requests. */ -export interface PartialMinimalTrackedResource { - /** Resource tags. */ - tags?: { [propertyName: string]: string | null }; -} - -/** A paginated list of BatchDeployment entities. */ -export interface BatchDeploymentTrackedResourceArmPaginatedResult { - /** The link to the next page of BatchDeployment objects. If null, there are no additional pages. */ +/** 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 BatchDeployment. */ - value?: BatchDeployment[]; -} - -/** Base definition for asset references. */ -export interface AssetReferenceBase { - /** Polymorphic discriminator, which specifies the different types this object can be */ - referenceType: "DataPath" | "Id" | "OutputPath"; -} - -export interface ResourceConfiguration { - /** Optional number of instances or nodes used by the compute target. */ - instanceCount?: number; - /** Optional type of VM used as supported by the compute target. */ - instanceType?: string; - /** Additional properties bag. */ - properties?: { [propertyName: string]: Record }; -} - -/** Retry settings for a batch inference operation. */ -export interface BatchRetrySettings { - /** Maximum retry count for a mini-batch */ - maxRetries?: number; - /** Invocation timeout for a mini-batch, in ISO 8601 format. */ - timeout?: string; -} - -/** Base definition for endpoint deployment. */ -export interface EndpointDeploymentPropertiesBase { - /** Code configuration for the endpoint deployment. */ - codeConfiguration?: CodeConfiguration; - /** Description of the endpoint deployment. */ - description?: string; - /** ARM resource ID or AssetId of the environment specification for the endpoint deployment. */ - environmentId?: string; - /** Environment variables configuration for the deployment. */ - environmentVariables?: { [propertyName: string]: string | null }; - /** Property dictionary. Properties can be added, but not removed or altered. */ - properties?: { [propertyName: string]: string | null }; -} - -/** Configuration for a scoring code asset. */ -export interface CodeConfiguration { - /** ARM resource ID of the code asset. */ - codeId?: string; - /** [Required] The script to execute on startup. eg. "score.py" */ - scoringScript: string; + /** An array of objects of type CodeVersion. */ + value?: CodeVersion[]; } -/** Strictly used in update requests. */ -export interface PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties { - /** Additional attributes of the entity. */ - properties?: PartialBatchDeployment; - /** Resource tags. */ - tags?: { [propertyName: string]: string | null }; +export interface AutoDeleteSetting { + /** When to check if an asset is expired */ + condition?: AutoDeleteCondition; + /** Expiration condition value. */ + value?: string; } -/** Mutable batch inference settings per deployment. */ -export interface PartialBatchDeployment { - /** Description of the endpoint deployment. */ - description?: string; +export interface PendingUploadRequestDto { + /** If PendingUploadId = null then random guid will be used. */ + pendingUploadId?: string; + /** TemporaryBlobReference is the only supported type */ + pendingUploadType?: PendingUploadType; } -/** 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 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 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 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; } -/** 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 PendingUploadCredentialDto { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialType: "SAS"; } /** A paginated list of ComponentContainer entities. */ @@ -1193,29 +1061,12 @@ export interface DataVersionBaseResourceArmPaginatedResult { 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. */ - nextLink?: string; - /** An array of objects of type Datastore. */ - value?: Datastore[]; -} - -/** Base definition for datastore credentials. */ -export interface DatastoreCredentials { - /** Polymorphic discriminator, which specifies the different types this object can be */ - credentialsType: - | "AccountKey" - | "Certificate" - | "None" - | "Sas" - | "ServicePrincipal"; -} - -/** Base definition for datastore secrets. */ -export interface DatastoreSecrets { - /** Polymorphic discriminator, which specifies the different types this object can be */ - secretsType: "AccountKey" | "Certificate" | "Sas" | "ServicePrincipal"; +/** 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. */ @@ -1264,42 +1115,6 @@ export interface Route { port: number; } -/** 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[]; -} - -/** Base definition for identity configuration. */ -export interface IdentityConfiguration { - /** 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; - /** - * Any error in the service. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorMessage?: string; - /** Endpoint type. */ - jobServiceType?: string; - /** Port for endpoint. */ - port?: number; - /** Additional properties to set on the endpoint. */ - properties?: { [propertyName: string]: string | null }; - /** - * Status of endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: 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. */ @@ -1321,155 +1136,353 @@ export interface FlavorData { data?: { [propertyName: string]: string | null }; } -/** 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[]; +/** 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; } -/** 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 BaseEnvironmentSource { + /** Polymorphic discriminator, which specifies the different types this object can be */ + baseEnvironmentSourceType: "EnvironmentAsset"; } -/** Deployment container liveness/readiness probe configuration. */ -export interface ProbeSettings { - /** The number of failures to allow before returning an unhealthy status. */ - failureThreshold?: number; - /** The delay before the first probe in ISO 8601 format. */ - initialDelay?: string; - /** The length of time between probes in ISO 8601 format. */ - period?: string; - /** The number of successful probes before returning a healthy status. */ - successThreshold?: number; - /** The probe timeout in ISO 8601 format. */ - timeout?: string; +export interface InferencingServer { + /** Polymorphic discriminator, which specifies the different types this object can be */ + serverType: "AzureMLBatch" | "AzureMLOnline" | "Custom" | "Triton"; } -/** Online deployment scoring requests configuration. */ -export interface OnlineRequestSettings { - /** 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. - */ - requestTimeout?: string; +/** 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; } -/** Online deployment scaling configuration. */ -export interface OnlineScaleSettings { +export interface PackageInputPathBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - scaleType: "Default" | "TargetUtilization"; + inputPathType: "PathId" | "Url" | "PathVersion"; } -/** Common SKU definition. */ -export interface PartialSku { - /** 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; - /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ - family?: string; - /** The name of the SKU. Ex - P3. It is typically a letter+number code. */ - name?: string; - /** The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. */ - size?: 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; +/** 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; } -export interface DeploymentLogsRequest { - /** The type of container to retrieve logs from. */ - containerType?: ContainerType; - /** The maximum number of lines to tail. */ - tail?: number; +/** 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; } -export interface DeploymentLogs { - /** The retrieved online deployment logs. */ - content?: 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[]; } -/** 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. */ - nextLink?: string; - /** An array of objects of type SkuResource. */ - value?: SkuResource[]; +/** 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; } -/** Fulfills ARM Contract requirement to list all available SKUS for a resource. */ -export interface SkuResource { - /** Gets or sets the Sku Capacity. */ - capacity?: SkuCapacity; +/** Inference Endpoint base definition */ +export interface EndpointPropertiesBase { + /** [Required] Use 'Key' for key based authentication and 'AMLToken' for Azure Machine Learning token-based authentication. 'Key' doesn't expire but 'AMLToken' does. */ + authMode: EndpointAuthMode; + /** Description of the inference endpoint. */ + description?: string; /** - * The resource type name. + * EndpointAuthKeys to set initially on an Endpoint. + * This property will always be returned as null. AuthKey values must be retrieved using the ListKeys API. + */ + keys?: EndpointAuthKeys; + /** Property dictionary. Properties can be added, but not removed or altered. */ + properties?: { [propertyName: string]: string | null }; + /** + * Endpoint URI. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resourceType?: string; - /** Gets or sets the Sku. */ - sku?: SkuSetting; + readonly scoringUri?: string; + /** + * Endpoint Swagger URI. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly swaggerUri?: string; } -/** SKU capacity information */ -export interface SkuCapacity { - /** Gets or sets the default capacity. */ - default?: number; - /** Gets or sets the maximum. */ - maximum?: number; - /** Gets or sets the minimum. */ - minimum?: number; - /** Gets or sets the type of the scale. */ - scaleType?: SkuScaleType; +/** Keys for endpoint authentication. */ +export interface EndpointAuthKeys { + /** The primary key. */ + primaryKey?: string; + /** The secondary key. */ + secondaryKey?: string; } -/** SkuSetting fulfills the need for stripped down SKU info in ARM contract. */ -export interface SkuSetting { - /** [Required] 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; +/** A paginated list of BatchDeployment entities. */ +export interface BatchDeploymentTrackedResourceArmPaginatedResult { + /** The link to the next page of BatchDeployment objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type BatchDeployment. */ + value?: BatchDeployment[]; } -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; +/** Properties relevant to different deployment types. */ +export interface BatchDeploymentConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + deploymentConfigurationType: "PipelineComponent"; } -/** 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; +/** Base definition for asset references. */ +export interface AssetReferenceBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + referenceType: "Id" | "DataPath" | "OutputPath"; } -/** 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. */ +export interface ResourceConfiguration { + /** Optional number of instances or nodes used by the compute target. */ + 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 }; +} + +/** Retry settings for a batch inference operation. */ +export interface BatchRetrySettings { + /** Maximum retry count for a mini-batch */ + maxRetries?: number; + /** Invocation timeout for a mini-batch, in ISO 8601 format. */ + timeout?: string; +} + +/** Base definition for endpoint deployment. */ +export interface EndpointDeploymentPropertiesBase { + /** Code configuration for the endpoint deployment. */ + codeConfiguration?: CodeConfiguration; + /** Description of the endpoint deployment. */ + description?: string; + /** ARM resource ID of the environment specification for the endpoint deployment. */ + environmentId?: string; + /** Environment variables configuration for the deployment. */ + environmentVariables?: { [propertyName: string]: string | null }; + /** Property dictionary. Properties can be added, but not removed or altered. */ + properties?: { [propertyName: string]: string | null }; +} + +/** Configuration for a scoring code asset. */ +export interface CodeConfiguration { + /** ARM resource ID of the code asset. */ + codeId?: string; + /** [Required] The script to execute on startup. eg. "score.py" */ + scoringScript: string; +} + +/** Strictly used in update requests. */ +export interface PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties { + /** Additional attributes of the entity. */ + properties?: PartialBatchDeployment; + /** Resource tags. */ + tags?: { [propertyName: string]: string | null }; +} + +/** Mutable batch inference settings per deployment. */ +export interface PartialBatchDeployment { + /** Description of the endpoint deployment. */ + description?: string; +} + +/** 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. */ nextLink?: string; - /** An array of objects of type Schedule. */ - value?: Schedule[]; + /** An array of objects of type Datastore. */ + value?: Datastore[]; } -export interface ScheduleActionBase { +/** Base definition for datastore credentials. */ +export interface DatastoreCredentials { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialsType: + | "AccountKey" + | "Certificate" + | "KerberosKeytab" + | "KerberosPassword" + | "None" + | "Sas" + | "ServicePrincipal"; +} + +/** Base definition for datastore secrets. */ +export interface DatastoreSecrets { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: + | "AccountKey" + | "Certificate" + | "KerberosKeytab" + | "KerberosPassword" + | "Sas" + | "ServicePrincipal"; +} + +/** 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 FeaturesetContainer. */ + value?: FeaturesetContainer[]; +} + +/** 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 Feature. */ + value?: Feature[]; +} + +/** 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 */ - actionType: "InvokeBatchEndpoint" | "CreateJob"; + webhookType: "AzureDevOps"; + /** Send callback on a specified notification event */ + eventType?: string; +} + +/** Dto object representing compute resource */ +export interface MaterializationComputeResource { + /** Specifies the instance type */ + instanceType?: string; +} + +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[]; } export interface TriggerBase { @@ -1490,6231 +1503,12426 @@ export interface TriggerBase { timeZone?: string; } -/** The List Aml user feature operation response. */ -export interface ListAmlUserFeatureResult { - /** - * The list of AML user facing features. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: AmlUserFeature[]; - /** - * The URI to fetch the next page of AML user features information. Call ListNext() with this to fetch the next page of AML user features information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; +/** Dto object representing specification */ +export interface FeaturesetSpecification { + /** Specifies the spec path */ + path?: 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 */ +/** 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 }; } -/** 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; +/** Specifies the feature window */ +export interface FeatureWindow { + /** Specifies the feature window end time */ + featureWindowEnd?: Date; + /** Specifies the feature window start time */ + featureWindowStart?: Date; } -export interface AKSSchema { - /** AKS properties */ - properties?: AKSSchemaProperties; +/** 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[]; } -/** AKS properties */ -export interface AKSSchemaProperties { - /** Cluster full qualified domain name */ - clusterFqdn?: string; - /** - * System services - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemServices?: SystemService[]; - /** Number of agents */ - agentCount?: number; - /** Agent virtual machine size */ - agentVmSize?: string; - /** 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 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 FeaturestoreEntityContainer. */ + value?: FeaturestoreEntityContainer[]; } -/** A system service running on a compute. */ -export interface SystemService { - /** - * The type of this system service. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemServiceType?: string; +/** 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 FeaturestoreEntityVersion. */ + value?: FeaturestoreEntityVersion[]; +} + +/** Dto object representing index column */ +export interface IndexColumn { + /** Specifies the column name */ + columnName?: string; + /** Specifies the data type */ + dataType?: FeatureDataType; +} + +/** 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 InferencePool. */ + value?: InferencePool[]; +} + +/** 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. */ +export interface ProbeSettings { + /** The number of failures to allow before returning an unhealthy status. */ + failureThreshold?: number; + /** The delay before the first probe in ISO 8601 format. */ + initialDelay?: string; + /** The length of time between probes in ISO 8601 format. */ + period?: string; + /** The number of successful probes before returning a healthy status. */ + successThreshold?: number; + /** The probe timeout in ISO 8601 format. */ + timeout?: string; +} + +/** 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; /** - * Public IP address - * 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 publicIpAddress?: string; + requestTimeout?: string; +} + +/** Base definition for pool resources. */ +export interface PropertiesBase { + /** Description of the resource. */ + description?: string; + /** Property dictionary. Properties can be added, but not removed or altered. */ + properties?: { [propertyName: string]: string | null }; +} + +export interface PoolStatus { + /** Gets or sets the actual number of instances in the pool. */ + actualCapacity?: number; + /** 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 SkuResource entities. */ +export interface SkuResourceArmPaginatedResult { + /** The link to the next page of SkuResource objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type SkuResource. */ + value?: SkuResource[]; +} + +/** Fulfills ARM Contract requirement to list all available SKUS for a resource. */ +export interface SkuResource { + /** Gets or sets the Sku Capacity. */ + capacity?: SkuCapacity; /** - * The version for this type. + * The resource type name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly version?: string; + readonly resourceType?: string; + /** Gets or sets the Sku. */ + sku?: SkuSetting; } -/** 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; +/** SKU capacity information */ +export interface SkuCapacity { + /** Gets or sets the default capacity. */ + default?: number; + /** Gets or sets the maximum. */ + maximum?: number; + /** Gets or sets the minimum. */ + minimum?: number; + /** Gets or sets the type of the scale. */ + scaleType?: SkuScaleType; } -/** 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; +/** SkuSetting fulfills the need for stripped down SKU info in ARM contract. */ +export interface SkuSetting { + /** [Required] 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; } -/** Kubernetes Compute Schema */ -export interface KubernetesSchema { - /** Properties of Kubernetes */ - properties?: KubernetesProperties; +/** A paginated list of InferenceEndpoint entities. */ +export interface InferenceEndpointTrackedResourceArmPaginatedResult { + /** 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?: InferenceEndpoint[]; } -/** 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 }; +/** A paginated list of InferenceGroup entities. */ +export interface InferenceGroupTrackedResourceArmPaginatedResult { + /** The link to the next page of InferenceGroup objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type InferenceGroup. */ + value?: InferenceGroup[]; } -/** Instance type schema. */ -export interface InstanceTypeSchema { - /** Node Selector */ - nodeSelector?: { [propertyName: string]: string | null }; - /** Resource requests/limits for this instance type */ - resources?: InstanceTypeSchemaResources; +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 the request number of instances for the group. */ + requestedCapacity?: number; } -/** 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 }; +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; } -/** 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; +/** 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[]; +} + +/** Base definition for identity configuration. */ +export interface IdentityConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + identityType: "AMLToken" | "Managed" | "UserIdentity"; +} + +/** Secret Configuration definition. */ +export interface SecretConfiguration { /** - * 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. + * Secret Uri. + * Sample Uri : https://myvault.vault.azure.net/secrets/mysecretname/secretversion */ - readonly allocationState?: AllocationState; + uri?: string; + /** Name of secret in workspace key vault. */ + workspaceSecretName?: string; +} + +/** Job endpoint definition */ +export interface JobService { + /** Url for endpoint. */ + endpoint?: string; /** - * The time at which the compute entered its current allocation state. + * Any error in the service. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly allocationStateTransitionTime?: Date; + readonly errorMessage?: string; + /** Endpoint type. */ + jobServiceType?: string; /** - * 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. + * 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 errors?: ErrorResponse[]; + nodes?: NodesUnion; + /** Port for endpoint set by user. */ + port?: number; + /** Additional properties to set on the endpoint. */ + properties?: { [propertyName: string]: string | null }; /** - * The number of compute nodes currently assigned to the compute. + * Status of endpoint. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentNodeCount?: number; - /** - * The target number of compute nodes for the compute. If the allocationState is resizing, this property denotes the target node count for the ongoing resize operation. If the allocationState is steady, this property denotes the target node count for the previous resize operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly targetNodeCount?: number; - /** - * 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; + 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; - /** - * Describes all connectivity endpoints available for this ComputeInstance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly connectivityEndpoints?: ComputeInstanceConnectivityEndpoints; +/** Active message associated with project */ +export interface StatusMessage { /** - * Describes available applications and their endpoints on this ComputeInstance. + * Service-defined message code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly applications?: ComputeInstanceApplication[]; + readonly code?: string; /** - * Describes information on user who created 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 createdBy?: ComputeInstanceCreatedBy; + readonly createdDateTime?: Date; /** - * Collection of errors encountered on this ComputeInstance. + * Severity level of message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errors?: ErrorResponse[]; + readonly level?: StatusMessageLevel; /** - * The current state of 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 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 message?: string; +} + +export interface ExportSummary { + /** Polymorphic discriminator, which specifies the different types this object can be */ + format: "Coco" | "CSV" | "Dataset"; /** - * The last operation on ComputeInstance. + * The time when the export was completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastOperation?: ComputeInstanceLastOperation; + readonly endDateTime?: Date; /** - * The list of schedules to be applied on the computes. + * The total number of labeled datapoints exported. * 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 exportedRowCount?: number; /** - * Describes informations of containers on this ComputeInstance. + * 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 containers?: ComputeInstanceContainer[]; + readonly labelingJobId?: string; /** - * Describes informations of dataDisks 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 dataDisks?: ComputeInstanceDataDisk[]; + 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 dataMounts 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 dataMounts?: ComputeInstanceDataMount[]; + collections: { [propertyName: string]: Collection | null }; + /** The request logging configuration for mdc, it includes advanced logging settings for all collections. It's optional. */ + requestLogging?: RequestLogging; /** - * ComputeInstance version. - * 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 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 { + /** Specifies the authentication mode for the Serverless endpoint. */ + authMode?: ServerlessInferenceEndpointAuthMode; /** - * Public IP Address of this ComputeInstance. + * Optional capacity reservation information for the endpoint. When specified, the Serverless Endpoint + * will be allocated capacity from the specified capacity reservation group. + */ + capacityReservation?: ServerlessEndpointCapacityReservation; + /** + * 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 inferenceEndpoint?: ServerlessInferenceEndpoint; + /** [Required] The publisher-defined Serverless Offer to provision the endpoint with. */ + offer: ServerlessOffer; /** - * 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 ServerlessEndpointCapacityReservation { + /** [Required] Specifies a capacity reservation group ID to allocate capacity from. */ + capacityReservationGroupId: string; + /** Specifies a capacity amount to reserve for this endpoint within the parent capacity reservation group. */ + endpointReservedCapacity?: number; } -/** Describes information on user who created this ComputeInstance. */ -export interface ComputeInstanceCreatedBy { - /** - * Name of the user. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly userName?: string; +export interface ServerlessInferenceEndpoint { /** - * Uniquely identifies user' Azure Active Directory organization. + * Specifies any required headers to target this serverless endpoint. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly userOrgId?: string; + readonly headers?: { [propertyName: string]: string | null }; + /** [Required] The inference uri to target when making requests against the Serverless Endpoint. */ + uri: string; +} + +export interface ServerlessEndpointStatus { /** - * Uniquely identifies the user within his/her organization. + * The model-specific metrics from the backing inference endpoint. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly userId?: string; + readonly metrics?: { [propertyName: string]: string | null }; } -/** Settings for a personal compute instance. */ -export interface PersonalComputeInstanceSettings { - /** A user explicitly assigned to a personal compute instance. */ - assignedUser?: AssignedUser; +/** 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[]; } -/** 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; +/** ARM ResourceId of a resource */ +export interface ArmResourceId { + /** + * 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}" + */ + resourceId?: string; } -/** Details of customized scripts to execute for setting up the cluster. */ -export interface SetupScripts { - /** Customized setup scripts */ - scripts?: ScriptsToExecute; +/** Private endpoint connection definition. */ +export interface RegistryPrivateEndpointConnection { + /** + * This is the private endpoint connection name created on SRP + * Full resource id: /subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.MachineLearningServices/{resourceType}/{resourceName}/registryPrivateEndpointConnections/{peConnectionName} + */ + 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; } -/** 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; +/** 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; } -/** 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; +/** 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; } -/** 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 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[]; } -/** 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[]; +/** 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; } -/** Compute start stop schedule properties */ -export interface ComputeStartStopSchedule { +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; +} + +export interface UserCreatedAcrAccount { + /** ARM ResourceId of a resource */ + armResourceId?: ArmResourceId; +} + +/** 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; +} + +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; /** - * A system assigned id for the schedule. + * Allowed values: + * "Standard_LRS", + * "Standard_GRS", + * "Standard_RAGRS", + * "Standard_ZRS", + * "Standard_GZRS", + * "Standard_RAGZRS", + * "Premium_LRS", + * "Premium_ZRS" + */ + storageAccountType?: string; +} + +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 { + /** + * 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; + readonly nextLink?: string; } -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[]; +/** 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; } -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; +/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ +export interface OperationListResult { + /** + * List of operations supported by the resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: Operation[]; + /** + * URL to get the next set of operation list results (if there are any). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: 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; +/** Details of a REST API operation, returned from the Resource Provider Operations API */ +export interface Operation { /** - * services of this containers. + * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly services?: Record[]; + readonly name?: string; + /** + * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isDataAction?: boolean; + /** Localized display information for this particular operation. */ + display?: OperationDisplay; + /** + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly origin?: Origin; + /** + * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionType?: ActionType; } -/** Environment information */ -export interface ComputeInstanceEnvironmentInfo { - /** name of environment. */ - name?: string; - /** version of environment. */ - version?: string; +/** Localized display information for this particular operation. */ +export interface OperationDisplay { + /** + * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provider?: string; + /** + * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resource?: string; + /** + * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operation?: string; + /** + * The short, localized friendly description of the operation; suitable for tool tips and detailed views. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: 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; +/** 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[]; } -/** 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; +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; } -/** Version of computeInstance. */ -export interface ComputeInstanceVersion { - /** Runtime of compute instance. */ - runtime?: string; +/** Identity object used for encryption. */ +export interface IdentityForCmk { + /** UserAssignedIdentity to be used to fetch the encryption key from keyVault */ + userAssignedIdentity?: string; } -/** Properties(top level) of ComputeInstance */ -export interface ComputeInstanceSchema { - /** Properties of ComputeInstance */ - properties?: ComputeInstanceProperties; +/** 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; } -export interface VirtualMachineSchema { - properties?: VirtualMachineSchemaProperties; +export interface FeatureStoreSettings { + computeRuntime?: ComputeRuntimeDto; + offlineStoreConnectionName?: string; + onlineStoreConnectionName?: 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; +export interface ComputeRuntimeDto { + sparkRuntimeVersion?: 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; +/** 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; + /** + * Detail isolation modes for the managed network of a machine learning workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly changeableIsolationModes?: IsolationMode[]; } -/** 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; +/** 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 HDInsightSchema { - /** HDInsight compute properties */ - properties?: HDInsightProperties; +/** 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; } -/** Properties of Databricks */ -export interface DatabricksProperties { - /** Databricks access token */ - databricksAccessToken?: string; - /** Workspace Url */ - workspaceUrl?: string; +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 DatabricksSchema { - /** Properties of Databricks */ - properties?: DatabricksProperties; +export interface NotebookPreparationError { + errorMessage?: string; + statusCode?: number; } -export interface DataLakeAnalyticsSchema { - properties?: DataLakeAnalyticsSchemaProperties; +/** 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; } -export interface DataLakeAnalyticsSchemaProperties { - /** DataLake Store Account Name */ - dataLakeStoreAccountName?: string; +/** 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; } -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 ServerlessComputeSettings { + /** The resource ID of an existing virtual network subnet in which serverless compute nodes should be deployed */ + serverlessComputeCustomSubnet?: string; + /** The flag to signal if serverless compute nodes deployed in custom vNet would have no public IP addresses for a workspace with private endpoint */ + serverlessComputeNoPublicIP?: boolean; } -/** Auto scale properties */ -export interface AutoScaleProperties { - minNodeCount?: number; - enabled?: boolean; - maxNodeCount?: number; +export interface ServiceManagedResourcesSettings { + cosmosDb?: CosmosDbSettings; } -/** Auto pause properties */ -export interface AutoPauseProperties { - delayInMinutes?: number; - enabled?: boolean; +export interface CosmosDbSettings { + collectionsThroughput?: number; } -/** 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 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; } -export interface VirtualMachineSecretsSchema { - /** Admin credentials for virtual machine. */ - administratorAccount?: VirtualMachineSshCredentials; +/** WorkspaceHub's configuration object. */ +export interface WorkspaceHubConfig { + additionalWorkspaceStorageAccounts?: string[]; + defaultWorkspaceResourceGroup?: string; } -/** Properties of Databricks Compute Secrets */ -export interface DatabricksComputeSecretsProperties { - /** access token for databricks account. */ - databricksAccessToken?: 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; + /** Settings for serverless compute created in the workspace */ + serverlessComputeSettings?: ServerlessComputeSettings; + /** 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 WorkspaceConnectionUsernamePassword { - username?: string; - password?: string; +export interface EncryptionUpdateProperties { + keyVaultProperties: EncryptionKeyVaultUpdateProperties; } -export interface WorkspaceConnectionPersonalAccessToken { - pat?: string; +export interface EncryptionKeyVaultUpdateProperties { + keyIdentifier: string; } -export interface WorkspaceConnectionSharedAccessSignature { - sas?: string; +export interface WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult { + nextLink?: string; + value?: WorkspaceConnectionPropertiesV2BasicResource[]; } -export interface WorkspaceConnectionManagedIdentity { - resourceId?: string; - clientId?: 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; + /** + * The arm id of the workspace which created this connection + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdByWorkspaceArmId?: string; + expiryTime?: Date; + /** whether this connection will be shared to all the project workspace under the hub */ + isSharedToAll?: boolean; + /** Any object */ + metadata?: Record; + target?: string; } -/** Asset input type. */ -export interface AssetJobInput { - /** Input Asset Delivery Mode. */ - mode?: InputDeliveryMode; - /** [Required] Input 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; } -/** Asset output type. */ -export interface AssetJobOutput { - /** Output Asset Delivery Mode. */ - mode?: OutputDeliveryMode; - /** Output Asset URI. */ - uri?: string; +/** Parameters to diagnose a workspace */ +export interface DiagnoseWorkspaceParameters { + value?: DiagnoseRequestProperties; } -/** 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"; +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 the presence of required resource providers in the workspace. */ + requiredResourceProviders?: { [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 }; } -/** 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 DiagnoseResponseResult { + value?: DiagnoseResponseResultValue; } -/** - * 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; +export interface DiagnoseResponseResultValue { + userDefinedRouteResults?: DiagnoseResult[]; + networkSecurityRuleResults?: DiagnoseResult[]; + resourceLockResults?: DiagnoseResult[]; + dnsResolutionResults?: DiagnoseResult[]; + storageAccountResults?: DiagnoseResult[]; + keyVaultResults?: DiagnoseResult[]; + containerRegistryResults?: DiagnoseResult[]; + applicationInsightsResults?: DiagnoseResult[]; + otherResults?: DiagnoseResult[]; +} + +/** Result of Diagnose */ +export interface DiagnoseResult { /** - * Target column name: This is prediction values column. - * Also known as label column name in context of classification tasks. + * Code for workspace setup error + * NOTE: This property will not be serialized. It can only be populated by the server. */ - targetColumnName?: string; - /** [Required] Training data input. */ - trainingData: MLTableJobInput; + 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; } -/** 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 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; } -/** N-Cross validations value. */ -export interface NCrossValidations { - /** 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 seasonality. */ -export interface Seasonality { - /** 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; } -/** 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 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; } -/** Forecasting target rolling window size. */ -export interface TargetRollingWindowSize { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto" | "Custom"; +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; } -/** 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 ListStorageAccountKeysResult { + /** + * The access key of the storage + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly userStorageKey?: 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 ExternalFqdnResponse { + value?: FqdnEndpointsPropertyBag[]; } -/** 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; - /** - * 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. - */ - ensembleModelDownloadTimeout?: string; - /** Stack ensemble settings for stack ensemble run. */ - stackEnsembleSettings?: StackEnsembleSettings; +/** Property bag for FQDN endpoints result */ +export interface FqdnEndpointsPropertyBag { + properties?: FqdnEndpoints; } -/** 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 FqdnEndpoints { + category?: string; + endpoints?: FqdnEndpoint[]; } -/** 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; +export interface FqdnEndpoint { + domainName?: string; + endpointDetails?: FqdnEndpointDetail[]; } -/** 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 FqdnEndpointDetail { + port?: number; } -/** Featurization Configuration. */ -export interface FeaturizationSettings { - /** Dataset language, useful for the text data. */ - datasetLanguage?: string; +/** 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[]; } -/** 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; +/** List of private endpoint connection associated with the specified workspace */ +export interface PrivateEndpointConnectionListResult { + /** Array of private endpoint connections */ + value?: PrivateEndpointConnection[]; } -/** Base definition for job distribution configuration. */ -export interface DistributionConfiguration { - /** Polymorphic discriminator, which specifies the different types this object can be */ - distributionType: "Mpi" | "PyTorch" | "TensorFlow"; +/** A list of private link resources */ +export interface PrivateLinkResourceListResult { + value?: PrivateLinkResource[]; } -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; +/** Managed Network Provisioning options for managed network of a machine learning workspace. */ +export interface ManagedNetworkProvisionOptions { + includeSpark?: boolean; } -/** 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; +/** 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 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; +export interface AKSSchema { + /** AKS properties */ + properties?: AKSSchemaProperties; } -/** 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; +/** AKS properties */ +export interface AKSSchemaProperties { + /** Cluster full qualified domain name */ + clusterFqdn?: 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. + * System services + * 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 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 { /** - * Set time series seasonality as an integer multiple of the series frequency. - * If seasonality is set to 'auto', it will be inferred. + * The type of this system service. + * 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 systemServiceType?: string; /** - * 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". + * Public IP address + * 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 publicIpAddress?: 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. + * The version for this type. + * 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 version?: string; } -/** - * 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; +/** 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; /** - * Minimum number of epochs or validation evaluations to wait before primary metric improvement - * is tracked for early stopping. Must be a positive integer. + * 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. */ - earlyStoppingDelay?: number; + readonly allocationState?: AllocationState; /** - * Minimum number of epochs or validation evaluations with no primary metric improvement before - * the run is stopped. Must be a positive integer. + * 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. */ - 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 allocationStateTransitionTime?: Date; /** - * 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. + * 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. */ - gradientAccumulationStep?: number; + readonly errors?: ErrorResponse[]; /** - * 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. + * 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. */ - 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 currentNodeCount?: 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. + * 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. */ - 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 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; } -/** - * 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; +/** 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?: string; + 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?: 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 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?: string; + 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?: 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 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?: 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 leavingNodeCount?: number; /** - * 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. + * Number of compute nodes which are in preempted state. + * 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; + readonly preemptedNodeCount?: number; } -/** 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; +/** Properties(top level) of AmlCompute */ +export interface AmlComputeSchema { + /** Properties of AmlCompute */ + properties?: AmlComputeProperties; } -/** 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; +/** 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[]; /** - * The provisioning state of the private endpoint connection resource. + * 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. */ - 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 osImageMetadata?: ImageMetadata; /** - * The immutable id associated with this workspace. + * Describes all connectivity endpoints available for 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 connectivityEndpoints?: ComputeInstanceConnectivityEndpoints; /** - * The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. + * Describes available applications and their endpoints on this ComputeInstance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly 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 applications?: ComputeInstanceApplication[]; /** - * The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace + * Describes information on user who created this ComputeInstance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serviceProvisionedResourceGroup?: string; + readonly createdBy?: ComputeInstanceCreatedBy; /** - * Count of private connections in the workspace + * Collection of errors encountered on this ComputeInstance. * 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 errors?: ErrorResponse[]; /** - * The list of private endpoint connections in the workspace. + * The current state of this ComputeInstance. * 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 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; + /** Enable root access. Possible values are: true, false. */ + enableRootAccess?: boolean; + /** Enable SSO (single sign on). Possible values are: true, false. */ + enableSSO?: 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 notebook info of Azure ML workspace. + * The last operation on ComputeInstance. * 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 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 tenant 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 tenantId?: string; + readonly containers?: ComputeInstanceContainer[]; /** - * If the storage associated with the workspace has hierarchical namespace(HNS) enabled. + * Describes informations of dataDisks on this ComputeInstance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly storageHnsEnabled?: boolean; + readonly dataDisks?: ComputeInstanceDataDisk[]; /** - * The URI associated with this workspace that machine learning flow must point at to set up tracking. + * Describes informations of dataMounts on this ComputeInstance. * 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 dataMounts?: ComputeInstanceDataMount[]; + /** + * ComputeInstance version. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly versions?: ComputeInstanceVersion; } -/** 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; +/** Specifies settings for autologger. */ +export interface ComputeInstanceAutologgerSettings { + /** Indicates whether mlflow autologger is enabled for notebooks. */ + mlflowAutologger?: MlflowAutologger; } -/** 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; +/** 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 private link resource group id. + * Describes the admin user name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groupId?: string; + readonly adminUserName?: string; /** - * The private link resource required member names. + * Describes the port for connecting through SSH. * 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[]; + 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; } -export interface WorkspaceConnectionPropertiesV2BasicResource extends Resource { - properties: WorkspaceConnectionPropertiesV2Union; +/** 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; + /** + * Metadata about the os patching. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly osPatchingStatus?: OsPatchingStatus; } -/** 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; +/** 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; } -/** Azure Resource Manager resource envelope. */ -export interface CodeContainer extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: CodeContainerProperties; +/** Defines all connectivity endpoints and properties for an ComputeInstance. */ +export interface ComputeInstanceConnectivityEndpoints { + /** + * Public IP Address of this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly publicIpAddress?: string; + /** + * Private IP Address of this ComputeInstance (local to the VNET in which the compute instance is deployed). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateIpAddress?: string; } -/** Azure Resource Manager resource envelope. */ -export interface CodeVersion extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: CodeVersionProperties; +/** 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; } -/** Azure Resource Manager resource envelope. */ -export interface ComponentContainer extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: ComponentContainerProperties; +/** Describes information on user who created this ComputeInstance. */ +export interface ComputeInstanceCreatedBy { + /** + * Name of the user. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly userName?: string; + /** + * Uniquely identifies user' Azure Active Directory organization. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly userOrgId?: string; + /** + * Uniquely identifies the user within his/her organization. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly userId?: string; } -/** Azure Resource Manager resource envelope. */ -export interface ComponentVersion extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: ComponentVersionProperties; +/** 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 DataContainer extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: DataContainerProperties; +/** 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 DataVersionBase extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: DataVersionBasePropertiesUnion; +/** 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 Datastore extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: DatastorePropertiesUnion; +/** 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 EnvironmentContainer extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: EnvironmentContainerProperties; +/** 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 EnvironmentVersion extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: EnvironmentVersionProperties; +/** 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 JobBase extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: JobBasePropertiesUnion; +/** 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 ModelContainer extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: ModelContainerProperties; +/** 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?: ComputeTriggerType; + /** 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 ModelVersion extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: ModelVersionProperties; +/** The workflow trigger recurrence for ComputeStartStop schedule type. */ +export interface Recurrence { + /** [Required] The frequency to trigger schedule. */ + frequency?: ComputeRecurrenceFrequency; + /** [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?: ComputeRecurrenceSchedule; } -/** Azure Resource Manager resource envelope. */ -export interface Schedule extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: ScheduleProperties; +export interface ComputeRecurrenceSchedule { + /** [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?: ComputeWeekDay[]; } -/** 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"; +/** 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; } -/** 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 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; } -/** An Azure Machine Learning compute. */ -export interface AmlCompute extends Compute, AmlComputeSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "AmlCompute"; +/** 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[]; } -/** 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"; +/** Environment information */ +export interface ComputeInstanceEnvironmentInfo { + /** name of environment. */ + name?: string; + /** version of environment. */ + version?: string; } -/** 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"; +/** 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 HDInsight compute. */ -export interface HDInsight extends Compute, HDInsightSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "HDInsight"; +/** 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 DataFactory compute. */ -export interface DataFactory extends Compute { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "DataFactory"; +/** Version of computeInstance. */ +export interface ComputeInstanceVersion { + /** Runtime of compute instance. */ + runtime?: string; } -/** A DataFactory compute. */ -export interface Databricks extends Compute, DatabricksSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "Databricks"; +/** Properties(top level) of ComputeInstance */ +export interface ComputeInstanceSchema { + /** Properties of ComputeInstance */ + properties?: ComputeInstanceProperties; } -/** A DataLakeAnalytics compute. */ -export interface DataLakeAnalytics extends Compute, DataLakeAnalyticsSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "DataLakeAnalytics"; +export interface VirtualMachineSchema { + properties?: VirtualMachineSchemaProperties; } -/** 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 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; } -/** 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"; +/** Admin credentials for virtual machine */ +export interface VirtualMachineSshCredentials { + /** Username of admin account */ + username?: string; + /** Password of admin account */ + password?: string; + /** Public key data */ + publicKeyData?: string; + /** Private key data */ + privateKeyData?: string; } -/** Secrets related to a Machine Learning compute based on AKS. */ -export interface VirtualMachineSecrets - extends ComputeSecrets, - VirtualMachineSecretsSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "VirtualMachine"; +/** HDInsight compute properties */ +export interface HDInsightProperties { + /** Port open for ssh connections on the master node of the cluster. */ + sshPort?: number; + /** Public IP address of the master node of the cluster. */ + address?: string; + /** Admin credentials for master node of the cluster */ + administratorAccount?: VirtualMachineSshCredentials; } -/** Secrets related to a Machine Learning compute based on Databricks. */ -export interface DatabricksComputeSecrets - extends ComputeSecrets, - DatabricksComputeSecretsProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "Databricks"; +export interface HDInsightSchema { + /** HDInsight compute properties */ + properties?: HDInsightProperties; } -export interface PATAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "PAT"; - credentials?: WorkspaceConnectionPersonalAccessToken; +/** Properties of Databricks */ +export interface DatabricksProperties { + /** Databricks access token */ + databricksAccessToken?: string; + /** Workspace Url */ + workspaceUrl?: string; } -export interface SASAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "SAS"; - credentials?: WorkspaceConnectionSharedAccessSignature; +export interface DatabricksSchema { + /** Properties of Databricks */ + properties?: DatabricksProperties; } -export interface UsernamePasswordAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "UsernamePassword"; - credentials?: WorkspaceConnectionUsernamePassword; +export interface DataLakeAnalyticsSchema { + properties?: DataLakeAnalyticsSchemaProperties; } -export interface NoneAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "None"; +export interface DataLakeAnalyticsSchemaProperties { + /** DataLake Store Account Name */ + dataLakeStoreAccountName?: string; } -export interface ManagedIdentityAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "ManagedIdentity"; - credentials?: WorkspaceConnectionManagedIdentity; +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; } -/** 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; +/** Auto scale properties */ +export interface AutoScaleProperties { + minNodeCount?: number; + enabled?: boolean; + maxNodeCount?: number; } -/** Online endpoint configuration */ -export interface OnlineEndpointProperties extends EndpointPropertiesBase { - /** - * ARM resource ID of the compute if it exists. - * optional - */ - compute?: string; - /** - * 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 }; +/** Auto pause properties */ +export interface AutoPauseProperties { + delayInMinutes?: number; + enabled?: boolean; } -/** Strictly used in update requests. */ -export interface PartialMinimalTrackedResourceWithIdentity - extends PartialMinimalTrackedResource { - /** Managed service identity (system assigned and/or user assigned identities) */ - identity?: PartialManagedServiceIdentity; +/** 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; } -/** Strictly used in update requests. */ -export interface PartialMinimalTrackedResourceWithSku - extends PartialMinimalTrackedResource { - /** Sku details required for ARM contract for Autoscaling. */ - sku?: PartialSku; +export interface VirtualMachineSecretsSchema { + /** Admin credentials for virtual machine. */ + administratorAccount?: VirtualMachineSshCredentials; } -/** 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; +/** Properties of Databricks Compute Secrets */ +export interface DatabricksComputeSecretsProperties { + /** access token for databricks account. */ + databricksAccessToken?: string; } -/** Reference to an asset via its ARM resource ID. */ -export interface IdAssetReference extends AssetReferenceBase { +export interface MonitoringFeatureFilterBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - referenceType: "Id"; - /** [Required] ARM resource ID of the asset. */ - assetId: string; + filterType: "AllFeatures" | "FeatureSubset" | "TopNByAttribution"; } -/** Reference to an asset via its path in a job output. */ -export interface OutputPathAssetReference extends AssetReferenceBase { +/** Monitor compute identity base definition. */ +export interface MonitorComputeIdentityBase { /** 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; + computeIdentityType: "AmlToken" | "ManagedIdentity"; } -export interface DeploymentResourceConfiguration - extends ResourceConfiguration {} +/** Asset input type. */ +export interface AssetJobInput { + /** Input Asset Delivery Mode. */ + mode?: InputDeliveryMode; + /** [Required] Input Asset URI. */ + uri: string; +} -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; +/** 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; } -/** 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; +/** 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"; } -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; +/** 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 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; +export interface QueueSettings { + /** Controls the compute job tier */ + jobTier?: JobTier; + /** Controls the priority of the job on a compute. */ + priority?: number; +} + +/** + * 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; /** - * The next auto incremental version - * 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 nextVersion?: string; + targetColumnName?: string; + /** [Required] Training data input. */ + trainingData: MLTableJobInput; } -export interface AssetBase extends ResourceBase { - /** If the name version are system generated (anonymous registration). */ - isAnonymous?: boolean; - /** Is the asset archived? */ - isArchived?: boolean; +/** 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; } -/** Base definition for datastore contents configuration. */ -export interface DatastoreProperties extends ResourceBase { - /** [Required] Account credentials. */ - credentials: DatastoreCredentialsUnion; - /** [Required] Storage type backing the datastore. */ - datastoreType: DatastoreType; - /** - * 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; +/** N-Cross validations value. */ +export interface NCrossValidations { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto" | "Custom"; } -/** 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; - /** - * Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. - * Defaults to AmlToken if null. - */ - identity?: IdentityConfigurationUnion; - /** Is the asset archived? */ - isArchived?: boolean; - /** [Required] Specifies the type of job. */ - jobType: JobType; - /** - * 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; +/** Forecasting seasonality. */ +export interface Seasonality { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto" | "Custom"; } -/** 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; - /** - * Provisioning state for the schedule. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ScheduleProvisioningStatus; - /** [Required] Specifies the trigger details */ - trigger: TriggerBaseUnion; +/** 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"; } -/** Account key datastore credentials configuration. */ -export interface AccountKeyDatastoreCredentials extends DatastoreCredentials { +/** Forecasting target rolling window size. */ +export interface TargetRollingWindowSize { /** Polymorphic discriminator, which specifies the different types this object can be */ - credentialsType: "AccountKey"; - /** [Required] Storage account secrets. */ - secrets: AccountKeyDatastoreSecrets; + mode: "Auto" | "Custom"; } -/** 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; +/** Settings for Autologger. */ +export interface AutologgerSettings { + /** [Required] Indicates whether mlflow autologger is enabled. */ + mlflowAutologger: MLFlowAutologgerState; } -/** Empty/none datastore credentials. */ -export interface NoneDatastoreCredentials extends DatastoreCredentials { - /** Polymorphic discriminator, which specifies the different types this object can be */ - credentialsType: "None"; +/** Base definition for Azure datastore contents configuration. */ +export interface AzureDatastore { + /** Azure Resource Group name */ + resourceGroup?: string; + /** Azure Subscription Id */ + subscriptionId?: string; } -/** SAS datastore credentials configuration. */ -export interface SasDatastoreCredentials extends DatastoreCredentials { +/** 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 */ - credentialsType: "Sas"; - /** [Required] Storage container secrets. */ - secrets: SasDatastoreSecrets; + 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; } -/** Service Principal datastore credentials configuration. */ -export interface ServicePrincipalDatastoreCredentials - extends DatastoreCredentials { +/** + * 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 */ - 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; + samplingAlgorithmType: "Bayesian" | "Grid" | "Random"; } -/** Datastore account key secrets. */ -export interface AccountKeyDatastoreSecrets extends DatastoreSecrets { +export interface DataDriftMetricThresholdBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - secretsType: "AccountKey"; - /** Storage account key. */ - key?: string; + dataType: "Categorical" | "Numerical"; + /** The threshold value. If null, a default value will be set depending on the selected metric. */ + threshold?: MonitoringThreshold; } -/** 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; +export interface MonitoringThreshold { + /** The threshold value. If null, the set default is dependent on the metric type. */ + value?: number; } -/** Datastore SAS secrets. */ -export interface SasDatastoreSecrets extends DatastoreSecrets { +export interface DataQualityMetricThresholdBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - secretsType: "Sas"; - /** Storage container SAS token. */ - sasToken?: string; + dataType: "Categorical" | "Numerical"; + /** The threshold value. If null, a default value will be set depending on the selected metric. */ + threshold?: MonitoringThreshold; } -/** Datastore Service Principal secrets. */ -export interface ServicePrincipalDatastoreSecrets extends DatastoreSecrets { +export interface PredictionDriftMetricThresholdBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - secretsType: "ServicePrincipal"; - /** Service principal secret. */ - clientSecret?: string; + dataType: "Categorical" | "Numerical"; + /** The threshold value. If null, a default value will be set depending on the selected metric. */ + threshold?: MonitoringThreshold; } -/** AML Token identity configuration. */ -export interface AmlToken extends IdentityConfiguration { - /** Polymorphic discriminator, which specifies the different types this object can be */ - identityType: "AMLToken"; +/** 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; + /** + * 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. + */ + 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; } -/** 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; +/** 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; } -/** User identity configuration. */ -export interface UserIdentity extends IdentityConfiguration { - /** Polymorphic discriminator, which specifies the different types this object can be */ - identityType: "UserIdentity"; +/** 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; + /** + * Number of cross validation folds to be applied on training dataset + * when validation dataset is not provided. + */ + 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; + /** + * 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; } -export interface DefaultScaleSettings extends OnlineScaleSettings { - /** Polymorphic discriminator, which specifies the different types this object can be */ - scaleType: "Default"; +/** 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 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; +/** Featurization Configuration. */ +export interface FeaturizationSettings { + /** Dataset language, useful for the text data. */ + datasetLanguage?: string; } -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; +/** 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; } -export interface JobScheduleAction extends ScheduleActionBase { +/** 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 */ - actionType: "CreateJob"; - /** [Required] Defines Schedule action definition details. */ - jobDefinition: JobBasePropertiesUnion; + modelType: "Classification" | "Regression"; + /** The threshold value. If null, a default value will be set depending on the selected metric. */ + threshold?: MonitoringThreshold; } -export interface RecurrenceTrigger extends TriggerBase { +/** Base definition for job distribution configuration. */ +export interface DistributionConfiguration { /** 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; + distributionType: "Mpi" | "PyTorch" | "Ray" | "TensorFlow"; } -export interface CronTrigger extends TriggerBase { +export interface JobLimits { /** 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; + 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; } -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 {} +/** Used for sweep over component */ +export interface ComponentConfiguration { + /** Pipeline settings, for things like ContinueRunOnStepFailure etc. */ + pipelineSettings?: Record; +} -export interface UriFolderJobOutput extends AssetJobOutput, JobOutput {} +/** 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; +} -/** 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 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; } -/** 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; +export interface MonitorDefinition { + /** The monitor's notification settings. */ + alertNotificationSettings?: MonitorNotificationSettings; + /** [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 }; } -/** 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 MonitorNotificationSettings { + /** The AML notification email settings. */ + emailNotificationSettings?: MonitorEmailNotificationSettings; } -/** 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; +export interface MonitorEmailNotificationSettings { + /** This is the email recipient list which has a limitation of 499 characters in total. */ + emails?: string[]; } -/** - * 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; +/** Monitor compute configuration base definition. */ +export interface MonitorComputeConfigurationBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "ServerlessSpark"; } -/** - * 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; +/** 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; } -/** - * 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; +export interface MonitoringSignalBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + signalType: + | "Custom" + | "DataDrift" + | "DataQuality" + | "FeatureAttributionDrift" + | "GenerationSafetyQuality" + | "GenerationTokenStatistics" + | "ModelPerformance" + | "PredictionDrift"; + /** The current notification mode for this signal. */ + notificationTypes?: MonitoringNotificationType[]; + /** Property dictionary. Properties can be added, but not removed or altered. */ + properties?: { [propertyName: string]: string | null }; } -/** - * 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; +/** 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; } -/** 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; +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; } -/** - * Text Classification task in AutoML NLP vertical. - * NLP - Natural Language Processing. - */ -export interface TextClassification extends NlpVertical, AutoMLVertical { - /** Primary metric for Text-Classification task. */ - primaryMetric?: ClassificationPrimaryMetrics; +/** Monitoring input data base definition. */ +export interface MonitoringInputDataBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + inputDataType: "Fixed" | "Rolling" | "Static"; + /** 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; } -/** - * Text Classification Multilabel task in AutoML NLP vertical. - * NLP - Natural Language Processing. - */ -export interface TextClassificationMultilabel - extends NlpVertical, - AutoMLVertical { +/** Monitoring workspace connection definition. */ +export interface MonitoringWorkspaceConnection { /** - * 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. + * 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. */ - readonly primaryMetric?: ClassificationMultilabelPrimaryMetrics; -} - -/** - * Text-NER task in AutoML NLP vertical. - * NER - Named Entity Recognition. - * NLP - Natural Language Processing. - */ -export interface TextNer extends NlpVertical, AutoMLVertical { + environmentVariables?: { [propertyName: string]: string | null }; /** - * 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 properties of a workspace service connection to store as secrets in the submitted jobs. + * Key is workspace connection property path, name is secret key. */ - readonly primaryMetric?: ClassificationPrimaryMetrics; -} - -/** 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; + secrets?: { [propertyName: string]: string | null }; } -/** N-Cross validations determined automatically. */ -export interface AutoNCrossValidations extends NCrossValidations { - /** 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[]; } -/** 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 FeatureImportanceSettings { + /** The mode of operation for computing feature importance. */ + mode?: FeatureImportanceMode; + /** The name of the target column within the input data asset. */ + targetColumn?: string; } -export interface AutoSeasonality extends Seasonality { +export interface DataImportSource { /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto"; + sourceType: "database" | "file_system"; + /** Workspace connection for data import source storage */ + connection?: string; } -export interface CustomSeasonality extends Seasonality { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Custom"; - /** [Required] Seasonality value. */ - value: number; +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; } -export interface AutoTargetLags extends TargetLags { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto"; +/** 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; } -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[]; +/** 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; } -/** Target lags rolling window determined automatically. */ -export interface AutoTargetRollingWindowSize extends TargetRollingWindowSize { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto"; +/** Generation token statistics metric threshold definition. */ +export interface GenerationTokenUsageMetricThreshold { + /** [Required] Gets or sets the feature attribution metric to calculate. */ + metric: GenerationTokenUsageMetric; + /** + * Gets or sets the threshold value. + * If null, a default value will be set depending on the selected metric. + */ + threshold?: MonitoringThreshold; } -export interface CustomTargetRollingWindowSize extends TargetRollingWindowSize { +/** + * 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; + /** + * 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; +} + +/** + * 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; + /** + * Minimum number of epochs or validation evaluations to wait before primary metric improvement + * is tracked for early stopping. Must be a positive integer. + */ + 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; +} + +/** + * 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; + /** + * 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; +} + +/** 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; +} + +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; +} + +/** OneLake artifact (data source) configuration. */ +export interface OneLakeArtifact { /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Custom"; - /** [Required] TargetRollingWindowSize value. */ - value: number; + artifactType: "LakeHouse"; + /** [Required] OneLake artifact name */ + artifactName: string; +} + +/** 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; +} + +/** 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; +} + +/** 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; +} + +/** + * 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; +} + +/** 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; +} + +/** Optimization objective. */ +export interface Objective { + /** [Required] Defines supported metric goals for hyperparameter tuning */ + goal: Goal; + /** [Required] Name of the metric to optimize. */ + primaryMetric: string; +} + +/** Spark job entry point definition. */ +export interface SparkJobEntry { + /** Polymorphic discriminator, which specifies the different types this object can be */ + sparkJobEntryType: "SparkJobPythonEntry" | "SparkJobScalaEntry"; +} + +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; +} + +/** 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; +} + +export interface WorkspaceConnectionAccessKey { + accessKeyId?: string; + secretAccessKey?: string; +} + +/** Api key object for workspace connection credential. */ +export interface WorkspaceConnectionApiKey { + key?: string; +} + +/** Custom Keys credential object */ +export interface CustomKeys { + /** Dictionary of */ + keys?: { [propertyName: string]: string }; +} + +export interface WorkspaceConnectionManagedIdentity { + clientId?: string; + resourceId?: string; +} + +export interface WorkspaceConnectionPersonalAccessToken { + pat?: string; +} + +/** 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 WorkspaceConnectionSharedAccessSignature { + sas?: string; +} + +export interface WorkspaceConnectionServicePrincipal { + clientId?: string; + clientSecret?: string; + tenantId?: string; +} + +/** 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; +} + +export interface WorkspaceConnectionUsernamePassword { + password?: string; + username?: string; +} + +/** 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; +} + +/** 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; +} + +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} + +/** 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; + /** The current provisioning state. */ + 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; + /** + * 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. + */ + readonly mlFlowTrackingUri?: string; + /** + * The notebook info of Azure ML workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly notebookInfo?: NotebookResourceInfo; + /** The user assigned identity resource id that represents the workspace identity. */ + primaryUserAssignedIdentity?: string; + /** + * The list of private endpoint connections in the workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: PrivateEndpointConnection[]; + /** + * Count of private connections in the workspace + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateLinkCount?: number; + /** + * 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. + */ + readonly provisioningState?: ProvisioningState; + /** Whether requests from Public Network are allowed. */ + publicNetworkAccess?: PublicNetworkAccessType; + /** Settings for serverless compute created in the workspace */ + serverlessComputeSettings?: ServerlessComputeSettings; + /** The service managed resource settings. */ + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; + /** + * 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. + */ + 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[]; + /** + * 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. + */ + readonly storageHnsEnabled?: boolean; + /** The auth mode used for accessing the system datastores of the workspace. */ + systemDatastoresAuthMode?: string; + /** + * The tenant id associated with this workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + 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 immutable id associated with this workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly workspaceId?: string; +} + +export interface WorkspaceConnectionPropertiesV2BasicResource extends Resource { + properties: WorkspaceConnectionPropertiesV2Union; +} + +export interface OutboundRuleBasicResource extends Resource { + /** Outbound Rule for the managed network of a machine learning workspace. */ + properties: OutboundRuleUnion; +} + +/** A private link resource */ +export interface PrivateLinkResource 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 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[]; +} + +/** 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"; +} + +/** 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"; +} + +/** An Azure Machine Learning compute. */ +export interface AmlCompute extends Compute, AmlComputeSchema { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "AmlCompute"; +} + +/** 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"; +} + +/** 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"; +} + +/** A HDInsight compute. */ +export interface HDInsight extends Compute, HDInsightSchema { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "HDInsight"; +} + +/** A DataFactory compute. */ +export interface DataFactory extends Compute { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "DataFactory"; +} + +/** A DataFactory compute. */ +export interface Databricks extends Compute, DatabricksSchema { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "Databricks"; +} + +/** A DataLakeAnalytics compute. */ +export interface DataLakeAnalytics extends Compute, DataLakeAnalyticsSchema { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "DataLakeAnalytics"; +} + +/** A SynapseSpark compute. */ +export interface SynapseSpark extends Compute { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "SynapseSpark"; + properties?: SynapseSparkProperties; +} + +/** 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"; +} + +/** 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"; +} + +/** 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"; +} + +/** 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; +} + +/** Strictly used in update requests. */ +export interface PartialMinimalTrackedResourceWithIdentity + extends PartialMinimalTrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: PartialManagedServiceIdentity; +} + +/** Strictly used in update requests. */ +export interface PartialMinimalTrackedResourceWithSku + extends PartialMinimalTrackedResource { + /** Sku details required for ARM contract for Autoscaling. */ + sku?: PartialSku; +} + +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; +} + +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; +} + +/** 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; +} + +/** Dto object representing feature */ +export interface FeatureProperties extends ResourceBase { + /** Specifies type */ + dataType?: FeatureDataType; + /** Specifies name */ + featureName?: string; +} + +/** 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; + /** + * Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. + * Defaults to AmlToken if null. + */ + 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; +} + +/** 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; + /** + * Provisioning state for the schedule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ScheduleProvisioningStatus; + /** [Required] Specifies the trigger details */ + trigger: TriggerBaseUnion; +} + +export interface SASCredentialDto extends PendingUploadCredentialDto { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialType: "SAS"; + /** Full SAS Uri, including the storage, container/blob path and SAS token */ + sasUri?: string; +} + +/** Base environment type. */ +export interface BaseEnvironmentId extends BaseEnvironmentSource { + /** Polymorphic discriminator, which specifies the different types this object can be */ + baseEnvironmentSourceType: "EnvironmentAsset"; + /** [Required] Resource id accepting ArmId or AzureMlId. */ + resourceId: string; +} + +/** Azure ML batch inferencing server configurations. */ +export interface AzureMLBatchInferencingServer extends InferencingServer { + /** Polymorphic discriminator, which specifies the different types this object can be */ + serverType: "AzureMLBatch"; + /** Code configuration for AML batch inferencing server. */ + codeConfiguration?: CodeConfiguration; +} + +/** Azure ML online inferencing configurations. */ +export interface AzureMLOnlineInferencingServer extends InferencingServer { + /** Polymorphic discriminator, which specifies the different types this object can be */ + serverType: "AzureMLOnline"; + /** Code configuration for AML inferencing server. */ + codeConfiguration?: CodeConfiguration; +} + +/** Custom inference server configurations. */ +export interface CustomInferencingServer extends InferencingServer { + /** Polymorphic discriminator, which specifies the different types this object can be */ + serverType: "Custom"; + /** Inference configuration for custom inferencing. */ + inferenceConfiguration?: OnlineInferenceConfiguration; +} + +/** 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; +} + +/** 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; +} + +/** 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; +} + +/** 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; +} + +/** 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; +} + +/** 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 }; +} + +/** 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 }; +} + +/** 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; +} + +/** 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; +} + +/** 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; +} + +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; +} + +/** 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; +} + +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; +} + +/** 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; +} + +/** 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; +} + +export interface KerberosKeytabCredentials + extends KerberosCredentials, + DatastoreCredentials { + /** [Required] Keytab secrets. */ + secrets: KerberosKeytabSecrets; +} + +export interface KerberosPasswordCredentials + extends KerberosCredentials, + DatastoreCredentials { + /** [Required] Kerberos password secrets. */ + secrets: KerberosPasswordSecrets; +} + +/** Empty/none datastore credentials. */ +export interface NoneDatastoreCredentials extends DatastoreCredentials { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialsType: "None"; +} + +/** 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; +} + +/** 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 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: "Certificate"; + /** Service principal certificate. */ + certificate?: string; +} + +export interface KerberosKeytabSecrets extends DatastoreSecrets { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: "KerberosKeytab"; + /** Kerberos keytab secret. */ + kerberosKeytab?: string; +} + +export interface KerberosPasswordSecrets extends DatastoreSecrets { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: "KerberosPassword"; + /** Kerberos password secret. */ + kerberosPassword?: 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; +} + +/** 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; +} + +/** Webhook details specific for Azure DevOps */ +export interface AzureDevOpsWebhook extends Webhook { + /** Polymorphic discriminator, which specifies the different types this object can be */ + webhookType: "AzureDevOps"; +} + +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; +} + +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; +} + +/** 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; +} + +/** InferenceEndpoint configuration */ +export interface InferenceEndpointProperties 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; + /** [Required] Group within the same pool with which this endpoint needs to be associated with. */ + groupId: string; + /** + * Provisioning state for the endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: PoolProvisioningState; +} + +/** Inference group configuration */ +export interface InferenceGroupProperties extends PropertiesBase { + /** + * Capacity to be used from the pool's reserved capacity. + * optional + */ + bonusExtraCapacity?: number; + /** Metadata for the inference group. */ + metadata?: 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; +} + +/** AML Token identity configuration. */ +export interface AmlToken extends IdentityConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + identityType: "AMLToken"; +} + +/** 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; +} + +/** User identity configuration. */ +export interface UserIdentity extends IdentityConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + identityType: "UserIdentity"; +} + +/** 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"; +} + +/** 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; +} + +/** 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; +} + +/** 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"; +} + +/** 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; +} + +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; +} + +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; +} + +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; +} + +export interface DefaultScaleSettings extends OnlineScaleSettings { + /** Polymorphic discriminator, which specifies the different types this object can be */ + scaleType: "Default"; +} + +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; +} + +export interface CreateMonitorAction extends ScheduleActionBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + actionType: "CreateMonitor"; + /** [Required] Defines the monitor. */ + monitorDefinition: MonitorDefinition; +} + +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; +} + +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; +} + +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; +} + +/** 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; +} + +/** 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; +} + +/** 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; +} + +/** 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; +} + +export interface AccessKeyAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "AccessKey"; + credentials?: WorkspaceConnectionAccessKey; +} + +/** + * 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 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; +} + +/** + * 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 interface CustomKeysWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "CustomKeys"; + /** Custom Keys credential object */ + credentials?: CustomKeys; +} + +export interface ManagedIdentityAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "ManagedIdentity"; + credentials?: WorkspaceConnectionManagedIdentity; +} + +export interface NoneAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "None"; +} + +export interface PATAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "PAT"; + credentials?: WorkspaceConnectionPersonalAccessToken; +} + +export interface SASAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "SAS"; + credentials?: WorkspaceConnectionSharedAccessSignature; +} + +export interface ServicePrincipalAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "ServicePrincipal"; + credentials?: WorkspaceConnectionServicePrincipal; +} + +export interface UsernamePasswordAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "UsernamePassword"; + credentials?: WorkspaceConnectionUsernamePassword; +} + +export interface AllFeatures extends MonitoringFeatureFilterBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + filterType: "AllFeatures"; +} + +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[]; +} + +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; +} + +/** AML token compute identity definition. */ +export interface AmlTokenComputeIdentity extends MonitorComputeIdentityBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeIdentityType: "AmlToken"; +} + +/** 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; +} + +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"; +} + +/** 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; +} + +/** 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; +} + +/** + * 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; +} + +/** + * 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; +} + +/** + * 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. + */ +export interface TextClassification extends NlpVertical, AutoMLVertical { + /** Primary metric for Text-Classification task. */ + primaryMetric?: ClassificationPrimaryMetrics; +} + +/** + * Text Classification Multilabel task in AutoML NLP vertical. + * NLP - Natural Language Processing. + */ +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; +} + +/** + * Text-NER task in AutoML NLP vertical. + * NER - Named Entity Recognition. + * NLP - Natural Language Processing. + */ +export interface TextNer extends NlpVertical, AutoMLVertical { + /** + * 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. + */ + readonly primaryMetric?: ClassificationPrimaryMetrics; +} + +/** 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; +} + +/** N-Cross validations determined automatically. */ +export interface AutoNCrossValidations extends NCrossValidations { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto"; +} + +/** 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 AutoSeasonality extends Seasonality { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto"; +} + +export interface CustomSeasonality extends Seasonality { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Custom"; + /** [Required] Seasonality value. */ + value: number; +} + +export interface AutoTargetLags extends TargetLags { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto"; +} + +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[]; +} + +/** Target lags rolling window determined automatically. */ +export interface AutoTargetRollingWindowSize extends TargetRollingWindowSize { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto"; +} + +export interface CustomTargetRollingWindowSize extends TargetRollingWindowSize { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Custom"; + /** [Required] TargetRollingWindowSize value. */ + value: number; +} + +/** 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; +} + +/** 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; +} + +/** 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; +} + +/** 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 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; +} + +/** 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 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; +} + +/** 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 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"; +} + +/** 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; +} + +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; +} + +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; +} + +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; +} + +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; +} + +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; +} + +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; +} + +/** Classification Training related configuration. */ +export interface ClassificationTrainingSettings extends TrainingSettings { + /** Allowed models for classification task. */ + allowedTrainingAlgorithms?: ClassificationModels[]; + /** Blocked models for classification task. */ + blockedTrainingAlgorithms?: ClassificationModels[]; +} + +/** Forecasting Training related configuration. */ +export interface ForecastingTrainingSettings extends TrainingSettings { + /** Allowed models for forecasting task. */ + allowedTrainingAlgorithms?: ForecastingModels[]; + /** Blocked models for forecasting task. */ + blockedTrainingAlgorithms?: ForecastingModels[]; +} + +/** Regression Training related configuration. */ +export interface RegressionTrainingSettings extends TrainingSettings { + /** Allowed models for regression task. */ + allowedTrainingAlgorithms?: RegressionModels[]; + /** Blocked models for regression task. */ + blockedTrainingAlgorithms?: RegressionModels[]; +} + +/** 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 }; +} + +export interface NlpVerticalFeaturizationSettings + extends FeaturizationSettings {} + +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; +} + +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; +} + +/** 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; +} + +/** 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; +} + +/** 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; +} + +/** 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; +} + +/** Command Job limit class. */ +export interface CommandJobLimits extends JobLimits { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobLimitsType: "Command"; +} + +/** 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; +} + +/** 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; +} + +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; +} + +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 settings for computing feature importance. */ + featureImportanceSettings?: FeatureImportanceSettings; + /** 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 settings for computing feature importance. */ + featureImportanceSettings?: FeatureImportanceSettings; + /** 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"; + /** A dictionary that maps feature names to their respective data types. */ + featureDataTypeOverride?: { + [propertyName: string]: MonitoringFeatureDataType; + }; + /** The settings for computing feature importance. */ + featureImportanceSettings?: FeatureImportanceSettings; + /** [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 production data for computing metrics. */ + productionData?: MonitoringInputDataBaseUnion[]; + /** [Required] The sample rate of the production 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 usage signal definition. */ +export interface GenerationTokenUsageSignal 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: GenerationTokenUsageMetricThreshold[]; + /** Gets or sets the production data for computing metrics. */ + productionData?: MonitoringInputDataBaseUnion[]; + /** [Required] The sample rate of the production data, should be greater than 0 and at most 1. */ + samplingRate: number; +} + +/** 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 performance will be calculated for. */ + productionData: MonitoringInputDataBaseUnion[]; + /** [Required] The reference data used as the basis to calculate model performance. */ + referenceData: MonitoringInputDataBaseUnion; +} + +export interface PredictionDriftMonitoringSignal extends MonitoringSignalBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + signalType: "PredictionDrift"; + /** A dictionary that maps feature names to their respective data types. */ + featureDataTypeOverride?: { + [propertyName: string]: MonitoringFeatureDataType; + }; + /** [Required] A list of metrics to calculate and their associated thresholds. */ + metricThresholds: PredictionDriftMetricThresholdBaseUnion[]; + /** [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"; +} + +/** Rolling input data definition. */ +export interface RollingInputData extends MonitoringInputDataBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + inputDataType: "Rolling"; + /** 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; +} + +/** 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; +} + +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; +} + +/** + * 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; +} + +/** + * 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 CapacityReservationGroup 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: CapacityReservationGroupProperties; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: Sku; +} + +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 InferenceEndpoint 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: InferenceEndpointProperties; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: Sku; +} + +export interface InferenceGroup 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: InferenceGroupProperties; + /** 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[]; +} + +/** Azure Resource Manager resource envelope. */ +export interface CodeContainer extends ProxyResource { + /** [Required] Additional attributes of the entity. */ + properties: CodeContainerProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface CodeVersion extends ProxyResource { + /** [Required] Additional attributes of the entity. */ + properties: CodeVersionProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface ComponentContainer extends ProxyResource { + /** [Required] Additional attributes of the entity. */ + properties: ComponentContainerProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface ComponentVersion extends ProxyResource { + /** [Required] Additional attributes of the entity. */ + properties: ComponentVersionProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface DataContainer extends ProxyResource { + /** [Required] Additional attributes of the entity. */ + properties: DataContainerProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface DataVersionBase extends ProxyResource { + /** [Required] Additional attributes of the entity. */ + properties: DataVersionBasePropertiesUnion; +} + +/** Azure Resource Manager resource envelope. */ +export interface EnvironmentContainer extends ProxyResource { + /** [Required] Additional attributes of the entity. */ + properties: EnvironmentContainerProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface EnvironmentVersion extends ProxyResource { + /** [Required] Additional attributes of the entity. */ + properties: EnvironmentVersionProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface ModelContainer extends ProxyResource { + /** [Required] Additional attributes of the entity. */ + properties: ModelContainerProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface ModelVersion extends ProxyResource { + /** [Required] Additional attributes of the entity. */ + properties: ModelVersionProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface Datastore extends ProxyResource { + /** [Required] Additional attributes of the entity. */ + properties: DatastorePropertiesUnion; +} + +/** Azure Resource Manager resource envelope. */ +export interface FeaturesetContainer extends ProxyResource { + /** [Required] Additional attributes of the entity. */ + properties: FeaturesetContainerProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface Feature extends ProxyResource { + /** [Required] Additional attributes of the entity. */ + properties: FeatureProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface FeaturesetVersion extends ProxyResource { + /** [Required] Additional attributes of the entity. */ + properties: FeaturesetVersionProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface FeaturestoreEntityContainer extends ProxyResource { + /** [Required] Additional attributes of the entity. */ + properties: FeaturestoreEntityContainerProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface FeaturestoreEntityVersion extends ProxyResource { + /** [Required] Additional attributes of the entity. */ + properties: FeaturestoreEntityVersionProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface JobBase extends ProxyResource { + /** [Required] Additional attributes of the entity. */ + properties: JobBasePropertiesUnion; +} + +/** Azure Resource Manager resource envelope. */ +export interface LabelingJob extends ProxyResource { + /** [Required] Additional attributes of the entity. */ + properties: LabelingJobProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface Schedule extends ProxyResource { + /** [Required] Additional attributes of the entity. */ + properties: ScheduleProperties; +} + +/** 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; + /** Environment variables included in the job. */ + environmentVariables?: { [propertyName: string]: string | null }; + /** 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 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 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 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_delete operation. */ +export interface WorkspacesDeleteHeaders { + /** 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 WorkspaceConnections_testConnection operation. */ +export interface WorkspaceConnectionsTestConnectionHeaders { + /** 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; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** 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 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; +/** + * 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 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 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 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; +/** + * 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 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 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 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"; +/** + * 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 ServerlessInferenceEndpointAuthMode} that the service accepts. */ +export enum KnownServerlessInferenceEndpointAuthMode { + /** Key */ + Key = "Key", + /** AAD */ + AAD = "AAD" } -/** 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; +/** + * Defines values for ServerlessInferenceEndpointAuthMode. \ + * {@link KnownServerlessInferenceEndpointAuthMode} can be used interchangeably with ServerlessInferenceEndpointAuthMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Key** \ + * **AAD** + */ +export type ServerlessInferenceEndpointAuthMode = 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" } -/** Classification Training related configuration. */ -export interface ClassificationTrainingSettings extends TrainingSettings { - /** Allowed models for classification task. */ - allowedTrainingAlgorithms?: ClassificationModels[]; - /** Blocked models for classification task. */ - blockedTrainingAlgorithms?: ClassificationModels[]; +/** + * 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 Origin} that the service accepts. */ +export enum KnownOrigin { + /** User */ + User = "user", + /** System */ + System = "system", + /** UserSystem */ + UserSystem = "user,system" } -/** 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 Origin. \ + * {@link KnownOrigin} can be used interchangeably with Origin, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **user** \ + * **system** \ + * **user,system** + */ +export type Origin = string; + +/** Known values of {@link ActionType} that the service accepts. */ +export enum KnownActionType { + /** Internal */ + Internal = "Internal" +} + +/** + * Defines values for ActionType. \ + * {@link KnownActionType} can be used interchangeably with ActionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Internal** + */ +export type ActionType = 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" } -/** Regression Training related configuration. */ -export interface RegressionTrainingSettings extends TrainingSettings { - /** Allowed models for regression task. */ - allowedTrainingAlgorithms?: RegressionModels[]; - /** Blocked models for regression task. */ - blockedTrainingAlgorithms?: RegressionModels[]; +/** + * 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" } -/** 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 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" } -export interface NlpVerticalFeaturizationSettings - extends FeaturizationSettings {} +/** + * 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; -/** 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; +/** Known values of {@link DiagnoseResultLevel} that the service accepts. */ +export enum KnownDiagnoseResultLevel { + /** Warning */ + Warning = "Warning", + /** Error */ + Error = "Error", + /** Information */ + Information = "Information" } -/** 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; -} +/** + * 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; -/** 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 ClusterPurpose} that the service accepts. */ +export enum KnownClusterPurpose { + /** FastProd */ + FastProd = "FastProd", + /** DenseProd */ + DenseProd = "DenseProd", + /** DevTest */ + DevTest = "DevTest" } -/** 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 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; -/** 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 SslConfigStatus} that the service accepts. */ +export enum KnownSslConfigStatus { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled", + /** Auto */ + Auto = "Auto" } /** - * 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. + * 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 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; +export type SslConfigStatus = string; + +/** Known values of {@link LoadBalancerType} that the service accepts. */ +export enum KnownLoadBalancerType { + /** PublicIp */ + PublicIp = "PublicIp", + /** InternalLoadBalancer */ + InternalLoadBalancer = "InternalLoadBalancer" } /** - * 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. + * 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 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; - /** - * 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; +export type LoadBalancerType = string; + +/** Known values of {@link OsType} that the service accepts. */ +export enum KnownOsType { + /** Linux */ + Linux = "Linux", + /** Windows */ + Windows = "Windows" } /** - * 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. + * 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 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 type OsType = string; + +/** Known values of {@link VmPriority} that the service accepts. */ +export enum KnownVmPriority { + /** Dedicated */ + Dedicated = "Dedicated", + /** LowPriority */ + LowPriority = "LowPriority" } /** - * 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. + * 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 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 type VmPriority = string; + +/** Known values of {@link RemoteLoginPortPublicAccess} that the service accepts. */ +export enum KnownRemoteLoginPortPublicAccess { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", + /** NotSpecified */ + NotSpecified = "NotSpecified" } -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[]; +/** + * 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" } -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[]; +/** + * 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" } -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; +/** + * 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" } -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; +/** + * 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" } -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; -} +/** + * 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; -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; +/** Known values of {@link ComputeInstanceAuthorizationType} that the service accepts. */ +export enum KnownComputeInstanceAuthorizationType { + /** Personal */ + Personal = "personal" } -/** 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; -} +/** + * 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; -/** Properties specific to a ManagedOnlineDeployment. */ -export interface ManagedOnlineDeployment extends OnlineDeploymentProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - endpointComputeType: "Managed"; +/** 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" } -/** Container for code asset versions. */ -export interface CodeContainerProperties extends AssetContainer {} - /** - * Component container definition. - * + * 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 interface ComponentContainerProperties extends AssetContainer {} +export type OperationName = string; -/** Container for data asset versions. */ -export interface DataContainerProperties extends AssetContainer { - /** [Required] Specifies the type of data. */ - dataType: DataType; +/** 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" } -/** Container for environment specification versions. */ -export interface EnvironmentContainerProperties extends AssetContainer {} - -export interface ModelContainerProperties extends AssetContainer {} +/** + * 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; -/** Code asset version details. */ -export interface CodeVersionProperties extends AssetBase { - /** Uri where code is located */ - codeUri?: string; +/** Known values of {@link OperationTrigger} that the service accepts. */ +export enum KnownOperationTrigger { + /** User */ + User = "User", + /** Schedule */ + Schedule = "Schedule", + /** IdleShutdown */ + IdleShutdown = "IdleShutdown" } -/** Definition of a component version: defines resources that span component types. */ -export interface ComponentVersionProperties extends AssetBase { - /** - * Defines Component definition details. - * - */ - componentSpec?: Record; -} +/** + * 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; -/** 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; +/** Known values of {@link ProvisioningStatus} that the service accepts. */ +export enum KnownProvisioningStatus { + /** Completed */ + Completed = "Completed", + /** Provisioning */ + Provisioning = "Provisioning", + /** Failed */ + Failed = "Failed" } -/** 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; - /** The OS type of the environment. */ - osType?: OperatingSystemType; -} +/** + * 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; -/** 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; +/** Known values of {@link ScheduleStatus} that the service accepts. */ +export enum KnownScheduleStatus { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" } -/** 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; -} +/** + * 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; -/** 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; +/** Known values of {@link ComputePowerAction} that the service accepts. */ +export enum KnownComputePowerAction { + /** Start */ + Start = "Start", + /** Stop */ + Stop = "Stop" } -/** 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; -} +/** + * 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; -/** 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; +/** Known values of {@link ComputeTriggerType} that the service accepts. */ +export enum KnownComputeTriggerType { + /** Recurrence */ + Recurrence = "Recurrence", + /** Cron */ + Cron = "Cron" } /** - * AutoMLJob class. - * Use this class for executing AutoML tasks like Classification/Regression etc. - * See TaskType enum for all the tasks supported. + * Defines values for ComputeTriggerType. \ + * {@link KnownComputeTriggerType} can be used interchangeably with ComputeTriggerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Recurrence** \ + * **Cron** */ -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 }; - /** Compute Resource configuration for the job. */ - resources?: JobResourceConfiguration; - /** [Required] This represents scenario which can be one of Tables/NLP/Image */ - taskDetails: AutoMLVerticalUnion; -} +export type ComputeTriggerType = string; -/** 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 }; - /** - * Input parameters. - * 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; +/** Known values of {@link ComputeRecurrenceFrequency} that the service accepts. */ +export enum KnownComputeRecurrenceFrequency { + /** Minute frequency */ + Minute = "Minute", + /** Hour frequency */ + Hour = "Hour", + /** Day frequency */ + Day = "Day", + /** Week frequency */ + Week = "Week", + /** Month frequency */ + Month = "Month" } -/** 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; +/** + * Defines values for ComputeRecurrenceFrequency. \ + * {@link KnownComputeRecurrenceFrequency} can be used interchangeably with ComputeRecurrenceFrequency, + * 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 ComputeRecurrenceFrequency = string; + +/** Known values of {@link ComputeWeekDay} that the service accepts. */ +export enum KnownComputeWeekDay { + /** 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" } -/** Sweep job definition. */ -export interface SweepJob extends JobBaseProperties { - /** 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; +/** + * Defines values for ComputeWeekDay. \ + * {@link KnownComputeWeekDay} can be used interchangeably with ComputeWeekDay, + * 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 ComputeWeekDay = string; + +/** Known values of {@link ScheduleProvisioningState} that the service accepts. */ +export enum KnownScheduleProvisioningState { + /** Completed */ + Completed = "Completed", + /** Provisioning */ + Provisioning = "Provisioning", + /** Failed */ + Failed = "Failed" } -/** 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[]; +/** + * 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" } -/** uri-file data version entity */ -export interface UriFileDataVersion extends DataVersionBaseProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - dataType: "uri_file"; +/** + * 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" } -/** 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 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; -/** 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; +/** Known values of {@link Caching} that the service accepts. */ +export enum KnownCaching { + /** None */ + None = "None", + /** ReadOnly */ + ReadOnly = "ReadOnly", + /** ReadWrite */ + ReadWrite = "ReadWrite" } -/** Defines headers for Compute_createOrUpdate operation. */ -export interface ComputeCreateOrUpdateHeaders { - /** URI to poll for asynchronous operation status. */ - azureAsyncOperation?: string; -} +/** + * 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; -/** 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; +/** Known values of {@link StorageAccountType} that the service accepts. */ +export enum KnownStorageAccountType { + /** StandardLRS */ + StandardLRS = "Standard_LRS", + /** PremiumLRS */ + PremiumLRS = "Premium_LRS" } -/** 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 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; -/** 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; +/** Known values of {@link SourceType} that the service accepts. */ +export enum KnownSourceType { + /** Dataset */ + Dataset = "Dataset", + /** Datastore */ + Datastore = "Datastore", + /** URI */ + URI = "URI" } -/** 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 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; -/** 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; +/** Known values of {@link MountAction} that the service accepts. */ +export enum KnownMountAction { + /** Mount */ + Mount = "Mount", + /** Unmount */ + Unmount = "Unmount" } -/** 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 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; -/** 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; +/** 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 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 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; -/** 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; +/** 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 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 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; -/** 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; +/** 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 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 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; -/** 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; +/** 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 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 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; -/** 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; +/** Known values of {@link OutputDeliveryMode} that the service accepts. */ +export enum KnownOutputDeliveryMode { + /** ReadWriteMount */ + ReadWriteMount = "ReadWriteMount", + /** Upload */ + Upload = "Upload", + /** Direct */ + Direct = "Direct" } -/** 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 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; -/** 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; +/** 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 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 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 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" +/** 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 ProvisioningState. \ - * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * 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 - * **Unknown** \ - * **Updating** \ - * **Creating** \ - * **Deleting** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** + * **uri_file** \ + * **uri_folder** \ + * **mltable** \ + * **custom_model** \ + * **mlflow_model** \ + * **triton_model** */ -export type ProvisioningState = string; +export type JobOutputType = string; -/** Known values of {@link EncryptionStatus} that the service accepts. */ -export enum KnownEncryptionStatus { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** 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 EncryptionStatus. \ - * {@link KnownEncryptionStatus} can be used interchangeably with EncryptionStatus, + * 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 - * **Enabled** \ - * **Disabled** + * **Null** \ + * **Spot** \ + * **Basic** \ + * **Standard** \ + * **Premium** */ -export type EncryptionStatus = string; +export type JobTier = string; -/** Known values of {@link PublicNetworkAccess} that the service accepts. */ -export enum KnownPublicNetworkAccess { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** 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 PublicNetworkAccess. \ - * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, + * 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 - * **Enabled** \ - * **Disabled** + * **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 PublicNetworkAccess = string; +export type LogVerbosity = 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" +/** 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 PrivateEndpointServiceConnectionStatus. \ - * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, + * 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 - * **Pending** \ - * **Approved** \ - * **Rejected** \ - * **Disconnected** \ - * **Timeout** + * **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 PrivateEndpointServiceConnectionStatus = string; +export type TaskType = 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" +/** 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 PrivateEndpointConnectionProvisioningState. \ - * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, + * 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 - * **Succeeded** \ - * **Creating** \ - * **Deleting** \ - * **Failed** + * **literal** \ + * **uri_file** \ + * **uri_folder** \ + * **mltable** \ + * **custom_model** \ + * **mlflow_model** \ + * **triton_model** */ -export type PrivateEndpointConnectionProvisioningState = string; +export type JobInputType = 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" +/** 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 ManagedServiceIdentityType. \ - * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType, + * 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 - * **None** \ - * **SystemAssigned** \ - * **UserAssigned** \ - * **SystemAssigned,UserAssigned** + * **Auto**: Determine N-Cross validations value automatically. Supported only for 'Forecasting' AutoML task. \ + * **Custom**: Use custom N-Cross validations value. */ -export type ManagedServiceIdentityType = string; +export type NCrossValidationsMode = 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" +/** 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 CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * 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 - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** + * **Auto**: Seasonality to be determined automatically. \ + * **Custom**: Use the custom seasonality value. */ -export type CreatedByType = string; +export type SeasonalityMode = string; -/** Known values of {@link DiagnoseResultLevel} that the service accepts. */ -export enum KnownDiagnoseResultLevel { - /** Warning */ - Warning = "Warning", - /** Error */ - Error = "Error", - /** Information */ - Information = "Information" +/** 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 DiagnoseResultLevel. \ - * {@link KnownDiagnoseResultLevel} can be used interchangeably with DiagnoseResultLevel, + * 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 - * **Warning** \ - * **Error** \ - * **Information** + * **Auto**: Target lags to be determined automatically. \ + * **Custom**: Use the custom target lags. */ -export type DiagnoseResultLevel = string; +export type TargetLagsMode = string; -/** Known values of {@link UsageUnit} that the service accepts. */ -export enum KnownUsageUnit { - /** Count */ - Count = "Count" +/** 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 UsageUnit. \ - * {@link KnownUsageUnit} can be used interchangeably with UsageUnit, + * 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 - * **Count** + * **Auto**: Determine rolling windows size automatically. \ + * **Custom**: Use the specified rolling window size. */ -export type UsageUnit = string; +export type TargetRollingWindowSizeMode = string; -/** Known values of {@link BillingCurrency} that the service accepts. */ -export enum KnownBillingCurrency { - /** USD */ - USD = "USD" +/** Known values of {@link MLFlowAutologgerState} that the service accepts. */ +export enum KnownMLFlowAutologgerState { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for BillingCurrency. \ - * {@link KnownBillingCurrency} can be used interchangeably with BillingCurrency, + * 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 - * **USD** + * **Enabled** \ + * **Disabled** */ -export type BillingCurrency = string; +export type MLFlowAutologgerState = string; -/** Known values of {@link UnitOfMeasure} that the service accepts. */ -export enum KnownUnitOfMeasure { - /** OneHour */ - OneHour = "OneHour" +/** 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 UnitOfMeasure. \ - * {@link KnownUnitOfMeasure} can be used interchangeably with UnitOfMeasure, + * 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 - * **OneHour** + * **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 UnitOfMeasure = string; +export type ServiceDataAccessAuthIdentity = string; -/** Known values of {@link VMPriceOSType} that the service accepts. */ -export enum KnownVMPriceOSType { - /** Linux */ - Linux = "Linux", - /** Windows */ - Windows = "Windows" +/** Known values of {@link EarlyTerminationPolicyType} that the service accepts. */ +export enum KnownEarlyTerminationPolicyType { + /** Bandit */ + Bandit = "Bandit", + /** MedianStopping */ + MedianStopping = "MedianStopping", + /** TruncationSelection */ + TruncationSelection = "TruncationSelection" } /** - * Defines values for VMPriceOSType. \ - * {@link KnownVMPriceOSType} can be used interchangeably with VMPriceOSType, + * 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 - * **Linux** \ - * **Windows** + * **Bandit** \ + * **MedianStopping** \ + * **TruncationSelection** */ -export type VMPriceOSType = string; +export type EarlyTerminationPolicyType = string; -/** Known values of {@link VMTier} that the service accepts. */ -export enum KnownVMTier { - /** Standard */ - Standard = "Standard", - /** LowPriority */ - LowPriority = "LowPriority", - /** Spot */ - Spot = "Spot" +/** Known values of {@link SamplingAlgorithmType} that the service accepts. */ +export enum KnownSamplingAlgorithmType { + /** Grid */ + Grid = "Grid", + /** Random */ + Random = "Random", + /** Bayesian */ + Bayesian = "Bayesian" } /** - * Defines values for VMTier. \ - * {@link KnownVMTier} can be used interchangeably with VMTier, + * 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 - * **Standard** \ - * **LowPriority** \ - * **Spot** + * **Grid** \ + * **Random** \ + * **Bayesian** */ -export type VMTier = string; +export type SamplingAlgorithmType = string; -/** Known values of {@link QuotaUnit} that the service accepts. */ -export enum KnownQuotaUnit { - /** Count */ - Count = "Count" +/** 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 QuotaUnit. \ - * {@link KnownQuotaUnit} can be used interchangeably with QuotaUnit, + * 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 - * **Count** + * **JensenShannonDistance**: The Jensen Shannon Distance (JSD) metric. \ + * **PopulationStabilityIndex**: The Population Stability Index (PSI) metric. \ + * **PearsonsChiSquaredTest**: The Pearsons Chi Squared Test metric. */ -export type QuotaUnit = string; +export type CategoricalDataDriftMetric = 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" +/** 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 Status. \ - * {@link KnownStatus} can be used interchangeably with Status, + * 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 - * **Undefined** \ - * **Success** \ - * **Failure** \ - * **InvalidQuotaBelowClusterMinimum** \ - * **InvalidQuotaExceedsSubscriptionLimit** \ - * **InvalidVMFamilyName** \ - * **OperationNotSupportedForSku** \ - * **OperationNotEnabledForRegion** + * **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 Status = string; +export type CategoricalDataQualityMetric = 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" +/** 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 ComputeType. \ - * {@link KnownComputeType} can be used interchangeably with ComputeType, + * 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 - * **AKS** \ - * **Kubernetes** \ - * **AmlCompute** \ - * **ComputeInstance** \ - * **DataFactory** \ - * **VirtualMachine** \ - * **HDInsight** \ - * **Databricks** \ - * **DataLakeAnalytics** \ - * **SynapseSpark** + * **JensenShannonDistance**: The Jensen Shannon Distance (JSD) metric. \ + * **PopulationStabilityIndex**: The Population Stability Index (PSI) metric. \ + * **PearsonsChiSquaredTest**: The Pearsons Chi Squared Test metric. */ -export type ComputeType = string; +export type CategoricalPredictionDriftMetric = string; -/** Known values of {@link UnderlyingResourceAction} that the service accepts. */ -export enum KnownUnderlyingResourceAction { - /** Delete */ - Delete = "Delete", - /** Detach */ - Detach = "Detach" +/** 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 UnderlyingResourceAction. \ - * {@link KnownUnderlyingResourceAction} can be used interchangeably with UnderlyingResourceAction, + * 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 - * **Delete** \ - * **Detach** + * **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 UnderlyingResourceAction = string; +export type ClassificationPrimaryMetrics = 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" +/** 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 NodeState. \ - * {@link KnownNodeState} can be used interchangeably with NodeState, + * 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 - * **idle** \ - * **running** \ - * **preparing** \ - * **unusable** \ - * **leaving** \ - * **preempted** + * **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 NodeState = string; +export type ClassificationModels = string; -/** Known values of {@link ConnectionAuthType} that the service accepts. */ -export enum KnownConnectionAuthType { - /** PAT */ - PAT = "PAT", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** UsernamePassword */ - UsernamePassword = "UsernamePassword", +/** Known values of {@link StackMetaLearnerType} that the service accepts. */ +export enum KnownStackMetaLearnerType { /** None */ None = "None", - /** SAS */ - SAS = "SAS" + /** 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 ConnectionAuthType. \ - * {@link KnownConnectionAuthType} can be used interchangeably with ConnectionAuthType, + * 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 - * **PAT** \ - * **ManagedIdentity** \ - * **UsernamePassword** \ * **None** \ - * **SAS** + * **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 ConnectionAuthType = string; +export type StackMetaLearnerType = string; -/** Known values of {@link ConnectionCategory} that the service accepts. */ -export enum KnownConnectionCategory { - /** PythonFeed */ - PythonFeed = "PythonFeed", - /** ContainerRegistry */ - ContainerRegistry = "ContainerRegistry", - /** Git */ - Git = "Git" +/** 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 ConnectionCategory. \ - * {@link KnownConnectionCategory} can be used interchangeably with ConnectionCategory, + * 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 - * **PythonFeed** \ - * **ContainerRegistry** \ - * **Git** + * **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 ConnectionCategory = string; +export type BlockedTransformers = string; -/** Known values of {@link ValueFormat} that the service accepts. */ -export enum KnownValueFormat { - /** Json */ - Json = "JSON" +/** 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 ValueFormat. \ - * {@link KnownValueFormat} can be used interchangeably with ValueFormat, + * 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 - * **JSON** + * **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 ValueFormat = string; +export type FeaturizationMode = 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" +/** 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 EndpointProvisioningState. \ - * {@link KnownEndpointProvisioningState} can be used interchangeably with EndpointProvisioningState, + * 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 - * **Creating** \ - * **Deleting** \ - * **Succeeded** \ - * **Failed** \ - * **Updating** \ - * **Canceled** + * **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 EndpointProvisioningState = string; +export type ClassificationModelPerformanceMetric = string; -/** Known values of {@link EndpointAuthMode} that the service accepts. */ -export enum KnownEndpointAuthMode { - /** AMLToken */ - AMLToken = "AMLToken", - /** Key */ - Key = "Key", - /** AADToken */ - AADToken = "AADToken" +/** 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 EndpointAuthMode. \ - * {@link KnownEndpointAuthMode} can be used interchangeably with EndpointAuthMode, + * 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 - * **AMLToken** \ - * **Key** \ - * **AADToken** + * **Classification**: A model trained for classification tasks. \ + * **Regression**: A model trained for regressions tasks. */ -export type EndpointAuthMode = string; +export type MonitoringModelType = string; -/** Known values of {@link BatchLoggingLevel} that the service accepts. */ -export enum KnownBatchLoggingLevel { - /** Info */ - Info = "Info", - /** Warning */ - Warning = "Warning", - /** Debug */ - Debug = "Debug" +/** 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 BatchLoggingLevel. \ - * {@link KnownBatchLoggingLevel} can be used interchangeably with BatchLoggingLevel, + * 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 - * **Info** \ - * **Warning** \ - * **Debug** + * **PyTorch** \ + * **TensorFlow** \ + * **Mpi** \ + * **Ray** */ -export type BatchLoggingLevel = string; +export type DistributionType = string; -/** Known values of {@link ReferenceType} that the service accepts. */ -export enum KnownReferenceType { - /** Id */ - Id = "Id", - /** DataPath */ - DataPath = "DataPath", - /** OutputPath */ - OutputPath = "OutputPath" +/** Known values of {@link JobLimitsType} that the service accepts. */ +export enum KnownJobLimitsType { + /** Command */ + Command = "Command", + /** Sweep */ + Sweep = "Sweep" } /** - * Defines values for ReferenceType. \ - * {@link KnownReferenceType} can be used interchangeably with ReferenceType, + * 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 - * **Id** \ - * **DataPath** \ - * **OutputPath** + * **Command** \ + * **Sweep** */ -export type ReferenceType = string; +export type JobLimitsType = string; -/** Known values of {@link BatchOutputAction} that the service accepts. */ -export enum KnownBatchOutputAction { - /** SummaryOnly */ - SummaryOnly = "SummaryOnly", - /** AppendRow */ - AppendRow = "AppendRow" +/** Known values of {@link MonitorComputeType} that the service accepts. */ +export enum KnownMonitorComputeType { + /** Serverless Spark compute. */ + ServerlessSpark = "ServerlessSpark" } /** - * Defines values for BatchOutputAction. \ - * {@link KnownBatchOutputAction} can be used interchangeably with BatchOutputAction, + * 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 - * **SummaryOnly** \ - * **AppendRow** + * **ServerlessSpark**: Serverless Spark compute. */ -export type BatchOutputAction = string; +export type MonitorComputeType = 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" +/** Known values of {@link ModelTaskType} that the service accepts. */ +export enum KnownModelTaskType { + /** Classification */ + Classification = "Classification", + /** Regression */ + Regression = "Regression", + /** QuestionAnswering */ + QuestionAnswering = "QuestionAnswering" } /** - * Defines values for DeploymentProvisioningState. \ - * {@link KnownDeploymentProvisioningState} can be used interchangeably with DeploymentProvisioningState, + * 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 - * **Creating** \ - * **Deleting** \ - * **Scaling** \ - * **Updating** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** + * **Classification** \ + * **Regression** \ + * **QuestionAnswering** */ -export type DeploymentProvisioningState = string; +export type ModelTaskType = string; -/** Known values of {@link ListViewType} that the service accepts. */ -export enum KnownListViewType { - /** ActiveOnly */ - ActiveOnly = "ActiveOnly", - /** ArchivedOnly */ - ArchivedOnly = "ArchivedOnly", - /** All */ - All = "All" +/** Known values of {@link MonitoringNotificationType} that the service accepts. */ +export enum KnownMonitoringNotificationType { + /** Enables email notifications through AML notifications. */ + AmlNotification = "AmlNotification", + /** Enables notifications through Azure Monitor by posting metrics to the workspace's Azure Monitor instance. */ + AzureMonitor = "AzureMonitor" } /** - * Defines values for ListViewType. \ - * {@link KnownListViewType} can be used interchangeably with ListViewType, + * Defines values for MonitoringNotificationType. \ + * {@link KnownMonitoringNotificationType} can be used interchangeably with MonitoringNotificationType, * 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" + * **AmlNotification**: Enables email notifications through AML notifications. \ + * **AzureMonitor**: Enables notifications through Azure Monitor by posting metrics to the workspace's Azure Monitor instance. + */ +export type MonitoringNotificationType = 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 DataType. \ - * {@link KnownDataType} can be used interchangeably with DataType, + * 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 - * **uri_file** \ - * **uri_folder** \ - * **mltable** - */ -export type DataType = 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" -} - -/** - * Defines values for CredentialsType. \ - * {@link KnownCredentialsType} can be used interchangeably with CredentialsType, + * **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 rolls relatively to the monitor's current run time. */ + Rolling = "Rolling", + /** 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 - * **AccountKey** \ - * **Certificate** \ - * **None** \ - * **Sas** \ - * **ServicePrincipal** + * **Static**: An input data with a fixed window size. \ + * **Rolling**: An input data which rolls relatively to the monitor's current run time. \ + * **Fixed**: An input data with tabular format which doesn't require preprocessing. */ -export type CredentialsType = string; +export type MonitoringInputDataType = 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" +/** Known values of {@link FeatureImportanceMode} that the service accepts. */ +export enum KnownFeatureImportanceMode { + /** Disables computing feature importance within a signal. */ + Disabled = "Disabled", + /** Enables computing feature importance within a signal. */ + Enabled = "Enabled" } /** - * Defines values for DatastoreType. \ - * {@link KnownDatastoreType} can be used interchangeably with DatastoreType, + * Defines values for FeatureImportanceMode. \ + * {@link KnownFeatureImportanceMode} can be used interchangeably with FeatureImportanceMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AzureBlob** \ - * **AzureDataLakeGen1** \ - * **AzureDataLakeGen2** \ - * **AzureFile** + * **Disabled**: Disables computing feature importance within a signal. \ + * **Enabled**: Enables computing feature importance within a signal. */ -export type DatastoreType = string; +export type FeatureImportanceMode = 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" +/** Known values of {@link DataImportSourceType} that the service accepts. */ +export enum KnownDataImportSourceType { + /** Database */ + Database = "database", + /** FileSystem */ + FileSystem = "file_system" } /** - * Defines values for SecretsType. \ - * {@link KnownSecretsType} can be used interchangeably with SecretsType, + * 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 - * **AccountKey** \ - * **Certificate** \ - * **Sas** \ - * **ServicePrincipal** + * **database** \ + * **file_system** */ -export type SecretsType = string; +export type DataImportSourceType = string; -/** Known values of {@link AutoRebuildSetting} that the service accepts. */ -export enum KnownAutoRebuildSetting { - /** Disabled */ - Disabled = "Disabled", - /** OnBaseImageUpdate */ - OnBaseImageUpdate = "OnBaseImageUpdate" +/** Known values of {@link FeatureAttributionMetric} that the service accepts. */ +export enum KnownFeatureAttributionMetric { + /** The Normalized Discounted Cumulative Gain metric. */ + NormalizedDiscountedCumulativeGain = "NormalizedDiscountedCumulativeGain" } /** - * Defines values for AutoRebuildSetting. \ - * {@link KnownAutoRebuildSetting} can be used interchangeably with AutoRebuildSetting, + * 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 - * **Disabled** \ - * **OnBaseImageUpdate** + * **NormalizedDiscountedCumulativeGain**: The Normalized Discounted Cumulative Gain metric. */ -export type AutoRebuildSetting = string; +export type FeatureAttributionMetric = string; -/** Known values of {@link EnvironmentType} that the service accepts. */ -export enum KnownEnvironmentType { - /** Curated */ - Curated = "Curated", - /** UserCreated */ - UserCreated = "UserCreated" +/** 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 EnvironmentType. \ - * {@link KnownEnvironmentType} can be used interchangeably with EnvironmentType, + * 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 - * **Curated** \ - * **UserCreated** + * **None**: No feature lags generated. \ + * **Auto**: System auto-generates feature lags. */ -export type EnvironmentType = string; +export type FeatureLags = string; -/** Known values of {@link OperatingSystemType} that the service accepts. */ -export enum KnownOperatingSystemType { - /** Linux */ - Linux = "Linux", - /** Windows */ - Windows = "Windows" +/** 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 OperatingSystemType. \ - * {@link KnownOperatingSystemType} can be used interchangeably with OperatingSystemType, + * 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 - * **Linux** \ - * **Windows** + * **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 OperatingSystemType = string; +export type ShortSeriesHandlingConfiguration = string; -/** Known values of {@link IdentityConfigurationType} that the service accepts. */ -export enum KnownIdentityConfigurationType { - /** Managed */ - Managed = "Managed", - /** AMLToken */ - AMLToken = "AMLToken", - /** UserIdentity */ - UserIdentity = "UserIdentity" +/** 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 IdentityConfigurationType. \ - * {@link KnownIdentityConfigurationType} can be used interchangeably with IdentityConfigurationType, + * 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 - * **Managed** \ - * **AMLToken** \ - * **UserIdentity** + * **None**: Represent no value set. \ + * **Sum** \ + * **Max** \ + * **Min** \ + * **Mean** */ -export type IdentityConfigurationType = string; +export type TargetAggregationFunction = 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" +/** 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 JobType. \ - * {@link KnownJobType} can be used interchangeably with JobType, + * 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 - * **AutoML** \ - * **Command** \ - * **Sweep** \ - * **Pipeline** + * **None**: No stl decomposition. \ + * **Season** \ + * **SeasonTrend** */ -export type JobType = string; +export type UseStl = 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" +/** 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 JobStatus. \ - * {@link KnownJobStatus} can be used interchangeably with JobStatus, + * 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 - * **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 + * **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 JobStatus = string; +export type ForecastingPrimaryMetrics = string; -/** Known values of {@link EndpointComputeType} that the service accepts. */ -export enum KnownEndpointComputeType { - /** Managed */ - Managed = "Managed", - /** Kubernetes */ - Kubernetes = "Kubernetes", - /** AzureMLCompute */ - AzureMLCompute = "AzureMLCompute" +/** 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 EndpointComputeType. \ - * {@link KnownEndpointComputeType} can be used interchangeably with EndpointComputeType, + * 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 - * **Managed** \ - * **Kubernetes** \ - * **AzureMLCompute** + * **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 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" -} +export type ForecastingModels = string; -/** - * Defines values for OrderString. \ - * {@link KnownOrderString} can be used interchangeably with OrderString, +/** 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 - * **CreatedAtDesc** \ - * **CreatedAtAsc** \ - * **UpdatedAtDesc** \ - * **UpdatedAtAsc** + * **AcceptableGroundednessScorePerInstance** \ + * **AggregatedGroundednessPassRate** \ + * **AcceptableCoherenceScorePerInstance** \ + * **AggregatedCoherencePassRate** \ + * **AcceptableFluencyScorePerInstance** \ + * **AggregatedFluencyPassRate** \ + * **AcceptableSimilarityScorePerInstance** \ + * **AggregatedSimilarityPassRate** \ + * **AcceptableRelevanceScorePerInstance** \ + * **AggregatedRelevancePassRate** + */ +export type GenerationSafetyQualityMetric = string; + +/** Known values of {@link GenerationTokenUsageMetric} that the service accepts. */ +export enum KnownGenerationTokenUsageMetric { + /** TotalTokenCount */ + TotalTokenCount = "TotalTokenCount", + /** TotalTokenCountPerGroup */ + TotalTokenCountPerGroup = "TotalTokenCountPerGroup" +} + +/** + * Defines values for GenerationTokenUsageMetric. \ + * {@link KnownGenerationTokenUsageMetric} can be used interchangeably with GenerationTokenUsageMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **TotalTokenCount** \ + * **TotalTokenCountPerGroup** */ -export type OrderString = string; +export type GenerationTokenUsageMetric = string; -/** Known values of {@link PublicNetworkAccessType} that the service accepts. */ -export enum KnownPublicNetworkAccessType { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** 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 PublicNetworkAccessType. \ - * {@link KnownPublicNetworkAccessType} can be used interchangeably with PublicNetworkAccessType, + * 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 - * **Enabled** \ - * **Disabled** + * **None**: No learning rate scheduler selected. \ + * **WarmupCosine**: Cosine Annealing With Warmup. \ + * **Step**: Step learning rate scheduler. */ -export type PublicNetworkAccessType = string; +export type LearningRateScheduler = string; -/** Known values of {@link EgressPublicNetworkAccessType} that the service accepts. */ -export enum KnownEgressPublicNetworkAccessType { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** 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 EgressPublicNetworkAccessType. \ - * {@link KnownEgressPublicNetworkAccessType} can be used interchangeably with EgressPublicNetworkAccessType, + * 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 - * **Enabled** \ - * **Disabled** + * **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 EgressPublicNetworkAccessType = string; +export type StochasticOptimizer = string; -/** Known values of {@link ScaleType} that the service accepts. */ -export enum KnownScaleType { - /** Default */ - Default = "Default", - /** TargetUtilization */ - TargetUtilization = "TargetUtilization" +/** 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 ScaleType. \ - * {@link KnownScaleType} can be used interchangeably with ScaleType, + * 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 - * **Default** \ - * **TargetUtilization** + * **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 ScaleType = string; +export type ClassificationMultilabelPrimaryMetrics = string; -/** Known values of {@link ContainerType} that the service accepts. */ -export enum KnownContainerType { - /** StorageInitializer */ - StorageInitializer = "StorageInitializer", - /** InferenceServer */ - InferenceServer = "InferenceServer" +/** 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 ContainerType. \ - * {@link KnownContainerType} can be used interchangeably with ContainerType, + * 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 - * **StorageInitializer** \ - * **InferenceServer** + * **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 ContainerType = string; +export type InstanceSegmentationPrimaryMetrics = 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" +/** 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 SkuScaleType. \ - * {@link KnownSkuScaleType} can be used interchangeably with SkuScaleType, + * 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 - * **Automatic**: Automatically scales node count. \ - * **Manual**: Node count scaled upon user request. \ - * **None**: Fixed set of nodes. + * **Enable**: Enable compute and log training metrics. \ + * **Disable**: Disable compute and log training metrics. */ -export type SkuScaleType = string; +export type LogTrainingMetrics = string; -/** Known values of {@link KeyType} that the service accepts. */ -export enum KnownKeyType { - /** Primary */ - Primary = "Primary", - /** Secondary */ - Secondary = "Secondary" +/** 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 KeyType. \ - * {@link KnownKeyType} can be used interchangeably with KeyType, + * 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 - * **Primary** \ - * **Secondary** + * **Enable**: Enable compute and log validation metrics. \ + * **Disable**: Disable compute and log validation metrics. */ -export type KeyType = string; +export type LogValidationLoss = string; -/** Known values of {@link ScheduleListViewType} that the service accepts. */ -export enum KnownScheduleListViewType { - /** EnabledOnly */ - EnabledOnly = "EnabledOnly", - /** DisabledOnly */ - DisabledOnly = "DisabledOnly", - /** All */ - All = "All" +/** 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 ScheduleListViewType. \ - * {@link KnownScheduleListViewType} can be used interchangeably with ScheduleListViewType, + * 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 - * **EnabledOnly** \ - * **DisabledOnly** \ - * **All** + * **None**: No value selected. \ + * **Small**: Small size. \ + * **Medium**: Medium size. \ + * **Large**: Large size. \ + * **ExtraLarge**: Extra large size. */ -export type ScheduleListViewType = string; +export type ModelSize = string; -/** Known values of {@link ScheduleActionType} that the service accepts. */ -export enum KnownScheduleActionType { - /** CreateJob */ - CreateJob = "CreateJob", - /** InvokeBatchEndpoint */ - InvokeBatchEndpoint = "InvokeBatchEndpoint" +/** 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 ScheduleActionType. \ - * {@link KnownScheduleActionType} can be used interchangeably with ScheduleActionType, + * 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 - * **CreateJob** \ - * **InvokeBatchEndpoint** + * **None**: No metric. \ + * **Coco**: Coco metric. \ + * **Voc**: Voc metric. \ + * **CocoVoc**: CocoVoc metric. */ -export type ScheduleActionType = string; +export type ValidationMetricType = 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" +/** 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 ScheduleProvisioningStatus. \ - * {@link KnownScheduleProvisioningStatus} can be used interchangeably with ScheduleProvisioningStatus, + * 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 - * **Creating** \ - * **Updating** \ - * **Deleting** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** + * **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 ScheduleProvisioningStatus = string; +export type ObjectDetectionPrimaryMetrics = string; -/** Known values of {@link TriggerType} that the service accepts. */ -export enum KnownTriggerType { - /** Recurrence */ - Recurrence = "Recurrence", - /** Cron */ - Cron = "Cron" +/** Known values of {@link ImageAnnotationType} that the service accepts. */ +export enum KnownImageAnnotationType { + /** Classification */ + Classification = "Classification", + /** BoundingBox */ + BoundingBox = "BoundingBox", + /** InstanceSegmentation */ + InstanceSegmentation = "InstanceSegmentation" } /** - * Defines values for TriggerType. \ - * {@link KnownTriggerType} can be used interchangeably with TriggerType, + * 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 - * **Recurrence** \ - * **Cron** + * **Classification** \ + * **BoundingBox** \ + * **InstanceSegmentation** */ -export type TriggerType = string; +export type ImageAnnotationType = string; -/** Known values of {@link ClusterPurpose} that the service accepts. */ -export enum KnownClusterPurpose { - /** FastProd */ - FastProd = "FastProd", - /** DenseProd */ - DenseProd = "DenseProd", - /** DevTest */ - DevTest = "DevTest" +/** Known values of {@link TextAnnotationType} that the service accepts. */ +export enum KnownTextAnnotationType { + /** Classification */ + Classification = "Classification", + /** NamedEntityRecognition */ + NamedEntityRecognition = "NamedEntityRecognition" } /** - * Defines values for ClusterPurpose. \ - * {@link KnownClusterPurpose} can be used interchangeably with ClusterPurpose, + * 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 - * **FastProd** \ - * **DenseProd** \ - * **DevTest** + * **Classification** \ + * **NamedEntityRecognition** */ -export type ClusterPurpose = string; +export type TextAnnotationType = string; -/** Known values of {@link SslConfigStatus} that the service accepts. */ -export enum KnownSslConfigStatus { - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled", - /** Auto */ - Auto = "Auto" +/** Known values of {@link OneLakeArtifactType} that the service accepts. */ +export enum KnownOneLakeArtifactType { + /** LakeHouse */ + LakeHouse = "LakeHouse" } /** - * Defines values for SslConfigStatus. \ - * {@link KnownSslConfigStatus} can be used interchangeably with SslConfigStatus, + * 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 - * **Disabled** \ - * **Enabled** \ - * **Auto** + * **LakeHouse** */ -export type SslConfigStatus = string; +export type OneLakeArtifactType = string; -/** Known values of {@link LoadBalancerType} that the service accepts. */ -export enum KnownLoadBalancerType { - /** PublicIp */ - PublicIp = "PublicIp", - /** InternalLoadBalancer */ - InternalLoadBalancer = "InternalLoadBalancer" +/** 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 LoadBalancerType. \ - * {@link KnownLoadBalancerType} can be used interchangeably with LoadBalancerType, + * 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 - * **PublicIp** \ - * **InternalLoadBalancer** + * **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 LoadBalancerType = string; +export type NumericalDataQualityMetric = string; -/** Known values of {@link OsType} that the service accepts. */ -export enum KnownOsType { - /** Linux */ - Linux = "Linux", - /** Windows */ - Windows = "Windows" +/** 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 OsType. \ - * {@link KnownOsType} can be used interchangeably with OsType, + * 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 - * **Linux** \ - * **Windows** + * **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 OsType = string; +export type NumericalPredictionDriftMetric = string; -/** Known values of {@link VmPriority} that the service accepts. */ -export enum KnownVmPriority { - /** Dedicated */ - Dedicated = "Dedicated", - /** LowPriority */ - LowPriority = "LowPriority" +/** Known values of {@link Goal} that the service accepts. */ +export enum KnownGoal { + /** Minimize */ + Minimize = "Minimize", + /** Maximize */ + Maximize = "Maximize" } /** - * Defines values for VmPriority. \ - * {@link KnownVmPriority} can be used interchangeably with VmPriority, + * 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 - * **Dedicated** \ - * **LowPriority** + * **Minimize** \ + * **Maximize** */ -export type VmPriority = string; +export type Goal = string; -/** Known values of {@link RemoteLoginPortPublicAccess} that the service accepts. */ -export enum KnownRemoteLoginPortPublicAccess { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled", - /** NotSpecified */ - NotSpecified = "NotSpecified" +/** Known values of {@link RandomSamplingAlgorithmRule} that the service accepts. */ +export enum KnownRandomSamplingAlgorithmRule { + /** Random */ + Random = "Random", + /** Sobol */ + Sobol = "Sobol" } /** - * Defines values for RemoteLoginPortPublicAccess. \ - * {@link KnownRemoteLoginPortPublicAccess} can be used interchangeably with RemoteLoginPortPublicAccess, + * 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 - * **Enabled** \ - * **Disabled** \ - * **NotSpecified** + * **Random** \ + * **Sobol** */ -export type RemoteLoginPortPublicAccess = string; +export type RandomSamplingAlgorithmRule = string; -/** Known values of {@link AllocationState} that the service accepts. */ -export enum KnownAllocationState { - /** Steady */ - Steady = "Steady", - /** Resizing */ - Resizing = "Resizing" +/** 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 AllocationState. \ - * {@link KnownAllocationState} can be used interchangeably with AllocationState, + * 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 - * **Steady** \ - * **Resizing** + * **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 AllocationState = string; +export type RegressionPrimaryMetrics = string; -/** Known values of {@link ApplicationSharingPolicy} that the service accepts. */ -export enum KnownApplicationSharingPolicy { - /** Personal */ - Personal = "Personal", - /** Shared */ - Shared = "Shared" +/** 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 ApplicationSharingPolicy. \ - * {@link KnownApplicationSharingPolicy} can be used interchangeably with ApplicationSharingPolicy, + * 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 - * **Personal** \ - * **Shared** - */ -export type ApplicationSharingPolicy = string; - -/** Known values of {@link SshPublicAccess} that the service accepts. */ -export enum KnownSshPublicAccess { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" + * **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 SshPublicAccess. \ - * {@link KnownSshPublicAccess} can be used interchangeably with SshPublicAccess, + * 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 - * **Enabled** \ - * **Disabled** + * **MeanAbsoluteError**: The Mean Absolute Error (MAE) metric. \ + * **RootMeanSquaredError**: The Root Mean Squared Error (RMSE) metric. \ + * **MeanSquaredError**: The Mean Squared Error (MSE) metric. */ -export type SshPublicAccess = string; +export type RegressionModelPerformanceMetric = 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" +/** Known values of {@link SparkJobEntryType} that the service accepts. */ +export enum KnownSparkJobEntryType { + /** SparkJobPythonEntry */ + SparkJobPythonEntry = "SparkJobPythonEntry", + /** SparkJobScalaEntry */ + SparkJobScalaEntry = "SparkJobScalaEntry" } /** - * Defines values for ComputeInstanceState. \ - * {@link KnownComputeInstanceState} can be used interchangeably with ComputeInstanceState, + * 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 - * **Creating** \ - * **CreateFailed** \ - * **Deleting** \ - * **Running** \ - * **Restarting** \ - * **JobRunning** \ - * **SettingUp** \ - * **SetupFailed** \ - * **Starting** \ - * **Stopped** \ - * **Stopping** \ - * **UserSettingUp** \ - * **UserSetupFailed** \ - * **Unknown** \ - * **Unusable** + * **SparkJobPythonEntry** \ + * **SparkJobScalaEntry** */ -export type ComputeInstanceState = string; +export type SparkJobEntryType = string; -/** Known values of {@link ComputeInstanceAuthorizationType} that the service accepts. */ -export enum KnownComputeInstanceAuthorizationType { - /** Personal */ - Personal = "personal" +/** Known values of {@link RuleAction} that the service accepts. */ +export enum KnownRuleAction { + /** Allow */ + Allow = "Allow", + /** Deny */ + Deny = "Deny" } /** - * Defines values for ComputeInstanceAuthorizationType. \ - * {@link KnownComputeInstanceAuthorizationType} can be used interchangeably with ComputeInstanceAuthorizationType, + * 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 - * **personal** + * **Allow** \ + * **Deny** */ -export type ComputeInstanceAuthorizationType = string; +export type RuleAction = string; +/** Defines values for SkuTier. */ +export type SkuTier = "Free" | "Basic" | "Standard" | "Premium"; -/** 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" +/** 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; } -/** - * 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; +/** Contains response data for the list operation. */ +export type ComputeListResponse = PaginatedComputeResourcesList; -/** 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" +/** Optional parameters. */ +export interface ComputeGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ComputeGetResponse = ComputeResource; + +/** Optional parameters. */ +export interface ComputeCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ComputeCreateOrUpdateResponse = ComputeResource; + +/** Optional parameters. */ +export interface ComputeUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type ComputeUpdateResponse = ComputeResource; + +/** Optional parameters. */ +export interface ComputeDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ComputeUpdateCustomServicesOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ComputeListNodesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNodes operation. */ +export type ComputeListNodesResponse = AmlComputeNodesInformation; + +/** Optional parameters. */ +export interface ComputeListKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listKeys operation. */ +export type ComputeListKeysResponse = ComputeSecretsUnion; + +/** Optional parameters. */ +export interface ComputeStartOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ComputeStopOptionalParams extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ComputeRestartOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ComputeUpdateIdleShutdownSettingOptionalParams + extends coreClient.OperationOptions {} + +/** 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 OperationStatus. \ - * {@link KnownOperationStatus} can be used interchangeably with OperationStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **InProgress** \ - * **Succeeded** \ - * **CreateFailed** \ - * **StartFailed** \ - * **StopFailed** \ - * **RestartFailed** \ - * **ReimageFailed** \ - * **DeleteFailed** - */ -export type OperationStatus = string; +/** Contains response data for the resize operation. */ +export type ComputeResizeResponse = ComputeResizeHeaders; -/** Known values of {@link OperationTrigger} that the service accepts. */ -export enum KnownOperationTrigger { - /** User */ - User = "User", - /** Schedule */ - Schedule = "Schedule", - /** IdleShutdown */ - IdleShutdown = "IdleShutdown" -} +/** Optional parameters. */ +export interface ComputeListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the listNext operation. */ +export type ComputeListNextResponse = PaginatedComputeResourcesList; -/** 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 ComputeListNodesNextOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the listNodesNext operation. */ +export type ComputeListNodesNextResponse = AmlComputeNodesInformation; -/** Known values of {@link ScheduleStatus} that the service accepts. */ -export enum KnownScheduleStatus { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Optional parameters. */ +export interface CapacityReservationGroupsListBySubscriptionOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: 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; +/** Contains response data for the listBySubscription operation. */ +export type CapacityReservationGroupsListBySubscriptionResponse = CapacityReservationGroupTrackedResourceArmPaginatedResult; -/** Known values of {@link ComputePowerAction} that the service accepts. */ -export enum KnownComputePowerAction { - /** Start */ - Start = "Start", - /** Stop */ - Stop = "Stop" +/** Optional parameters. */ +export interface CapacityReservationGroupsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: 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; +/** Contains response data for the list operation. */ +export type CapacityReservationGroupsListResponse = CapacityReservationGroupTrackedResourceArmPaginatedResult; -/** 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 CapacityReservationGroupsDeleteOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Optional parameters. */ +export interface CapacityReservationGroupsGetOptionalParams + extends coreClient.OperationOptions {} -/** 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" +/** Contains response data for the get operation. */ +export type CapacityReservationGroupsGetResponse = CapacityReservationGroup; + +/** Optional parameters. */ +export interface CapacityReservationGroupsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type CapacityReservationGroupsUpdateResponse = CapacityReservationGroup; + +/** Optional parameters. */ +export interface CapacityReservationGroupsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type CapacityReservationGroupsCreateOrUpdateResponse = CapacityReservationGroup; + +/** Optional parameters. */ +export interface CapacityReservationGroupsListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type CapacityReservationGroupsListBySubscriptionNextResponse = CapacityReservationGroupTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface CapacityReservationGroupsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type CapacityReservationGroupsListNextResponse = CapacityReservationGroupTrackedResourceArmPaginatedResult; + +/** 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; } -/** - * 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; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryCodeContainersCreateOrUpdateResponse = CodeContainer; -/** Known values of {@link Network} that the service accepts. */ -export enum KnownNetwork { - /** Bridge */ - Bridge = "Bridge", - /** Host */ - Host = "Host" +/** 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; } -/** - * 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 list operation. */ +export type RegistryCodeVersionsListResponse = CodeVersionResourceArmPaginatedResult; -/** 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 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 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; +/** Optional parameters. */ +export interface RegistryCodeVersionsGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link StorageAccountType} that the service accepts. */ -export enum KnownStorageAccountType { - /** StandardLRS */ - StandardLRS = "Standard_LRS", - /** PremiumLRS */ - PremiumLRS = "Premium_LRS" +/** 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 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 createOrUpdate operation. */ +export type RegistryCodeVersionsCreateOrUpdateResponse = CodeVersion; -/** 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 RegistryCodeVersionsCreateOrGetStartPendingUploadOptionalParams + extends coreClient.OperationOptions {} -/** - * 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 createOrGetStartPendingUpload operation. */ +export type RegistryCodeVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; -/** Known values of {@link MountAction} that the service accepts. */ -export enum KnownMountAction { - /** Mount */ - Mount = "Mount", - /** Unmount */ - Unmount = "Unmount" -} +/** Optional parameters. */ +export interface RegistryCodeVersionsListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the listNext operation. */ +export type RegistryCodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult; -/** 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" +/** Optional parameters. */ +export interface RegistryComponentContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: 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 list operation. */ +export type RegistryComponentContainersListResponse = ComponentContainerResourceArmPaginatedResult; -/** 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 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 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; +/** Optional parameters. */ +export interface RegistryComponentContainersGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link OutputDeliveryMode} that the service accepts. */ -export enum KnownOutputDeliveryMode { - /** ReadWriteMount */ - ReadWriteMount = "ReadWriteMount", - /** Upload */ - Upload = "Upload" +/** 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 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 createOrUpdate operation. */ +export type RegistryComponentContainersCreateOrUpdateResponse = ComponentContainer; -/** 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 RegistryComponentContainersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type RegistryComponentContainersListNextResponse = ComponentContainerResourceArmPaginatedResult; + +/** 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 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; +/** Contains response data for the list operation. */ +export type RegistryComponentVersionsListResponse = ComponentVersionResourceArmPaginatedResult; -/** 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" +/** 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 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; +/** Optional parameters. */ +export interface RegistryComponentVersionsGetOptionalParams + extends coreClient.OperationOptions {} -/** 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" +/** 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 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 createOrUpdate operation. */ +export type RegistryComponentVersionsCreateOrUpdateResponse = ComponentVersion; -/** 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 RegistryComponentVersionsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type RegistryComponentVersionsListNextResponse = ComponentVersionResourceArmPaginatedResult; + +/** 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 {} + +/** Contains response data for the listNext operation. */ +export type RegistryDataVersionsListNextResponse = DataVersionBaseResourceArmPaginatedResult; + +/** 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 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 list operation. */ +export type RegistryEnvironmentContainersListResponse = EnvironmentContainerResourceArmPaginatedResult; -/** 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 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 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; +/** Optional parameters. */ +export interface RegistryEnvironmentContainersGetOptionalParams + extends coreClient.OperationOptions {} -/** 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" +/** 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 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; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryEnvironmentContainersCreateOrUpdateResponse = EnvironmentContainer; -/** 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" +/** 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 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 list operation. */ +export type RegistryEnvironmentVersionsListResponse = EnvironmentVersionResourceArmPaginatedResult; -/** 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 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 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; +/** Optional parameters. */ +export interface RegistryEnvironmentVersionsGetOptionalParams + extends coreClient.OperationOptions {} -/** 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" +/** 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 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; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryEnvironmentVersionsCreateOrUpdateResponse = EnvironmentVersion; -/** 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" +/** Optional parameters. */ +export interface RegistryEnvironmentVersionsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type RegistryEnvironmentVersionsListNextResponse = EnvironmentVersionResourceArmPaginatedResult; + +/** 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 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 list operation. */ +export type RegistryModelContainersListResponse = ModelContainerResourceArmPaginatedResult; -/** 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 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 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; +/** Optional parameters. */ +export interface RegistryModelContainersGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link JobLimitsType} that the service accepts. */ -export enum KnownJobLimitsType { - /** Command */ - Command = "Command", - /** Sweep */ - Sweep = "Sweep" +/** 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 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 createOrUpdate operation. */ +export type RegistryModelContainersCreateOrUpdateResponse = ModelContainer; -/** 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 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 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; +/** Contains response data for the list operation. */ +export type RegistryModelVersionsListResponse = ModelVersionResourceArmPaginatedResult; -/** 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" +/** 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 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; +/** Optional parameters. */ +export interface RegistryModelVersionsGetOptionalParams + extends coreClient.OperationOptions {} -/** 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" +/** 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 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 createOrUpdate operation. */ +export type RegistryModelVersionsCreateOrUpdateResponse = ModelVersion; -/** 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 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 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; +/** Contains response data for the package operation. */ +export type RegistryModelVersionsPackageResponse = PackageResponse; -/** 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" -} +/** Optional parameters. */ +export interface RegistryModelVersionsCreateOrGetStartPendingUploadOptionalParams + extends coreClient.OperationOptions {} -/** - * 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 createOrGetStartPendingUpload operation. */ +export type RegistryModelVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; -/** 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 RegistryModelVersionsListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * 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 listNext operation. */ +export type RegistryModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult; -/** 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 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 CodeContainersDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface OperationsListOptionalParams +export interface CodeContainersGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type OperationsListResponse = AmlOperationListResult; +/** Contains response data for the get operation. */ +export type CodeContainersGetResponse = CodeContainer; /** Optional parameters. */ -export interface WorkspacesGetOptionalParams +export interface CodeContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type WorkspacesGetResponse = Workspace; +/** Contains response data for the createOrUpdate operation. */ +export type CodeContainersCreateOrUpdateResponse = CodeContainer; /** Optional parameters. */ -export interface WorkspacesCreateOrUpdateOptionalParams +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 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 WorkspacesCreateOrUpdateResponse = Workspace; +export type CodeVersionsCreateOrUpdateResponse = CodeVersion; /** Optional parameters. */ -export interface WorkspacesDeleteOptionalParams +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 list operation. */ +export type ComponentContainersListResponse = ComponentContainerResourceArmPaginatedResult; + /** Optional parameters. */ -export interface WorkspacesUpdateOptionalParams +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 { - /** 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; + /** Component stage. */ + stage?: 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 ComponentVersionsListResponse = ComponentVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface WorkspacesListByResourceGroupOptionalParams +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 { /** Continuation token for pagination. */ skip?: 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 DataContainersListResponse = DataContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface WorkspacesDiagnoseOptionalParams +export interface DataContainersDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DataContainersGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DataContainersGetResponse = DataContainer; + +/** Optional parameters. */ +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 { - /** 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; + /** 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 diagnose operation. */ -export type WorkspacesDiagnoseResponse = DiagnoseResponseResult; +/** Contains response data for the list operation. */ +export type DataVersionsListResponse = DataVersionBaseResourceArmPaginatedResult; /** Optional parameters. */ -export interface WorkspacesListKeysOptionalParams +export interface DataVersionsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listKeys operation. */ -export type WorkspacesListKeysResponse = ListWorkspaceKeysResult; +/** Optional parameters. */ +export interface DataVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DataVersionsGetResponse = DataVersionBase; /** Optional parameters. */ -export interface WorkspacesResyncKeysOptionalParams +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 { - /** 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; + /** 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 list operation. */ +export type DatastoresListResponse = DatastoreResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface DatastoresDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DatastoresGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatastoresGetResponse = Datastore; + /** Optional parameters. */ -export interface WorkspacesListBySubscriptionOptionalParams +export interface DatastoresCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; + /** Flag to skip validation. */ + skipValidation?: boolean; } -/** Contains response data for the listBySubscription operation. */ -export type WorkspacesListBySubscriptionResponse = WorkspaceListResult; +/** Contains response data for the createOrUpdate operation. */ +export type DatastoresCreateOrUpdateResponse = Datastore; /** Optional parameters. */ -export interface WorkspacesListNotebookAccessTokenOptionalParams +export interface DatastoresListSecretsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNotebookAccessToken operation. */ -export type WorkspacesListNotebookAccessTokenResponse = NotebookAccessTokenResult; +/** Contains response data for the listSecrets operation. */ +export type DatastoresListSecretsResponse = DatastoreSecretsUnion; /** Optional parameters. */ -export interface WorkspacesPrepareNotebookOptionalParams +export interface DatastoresListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type DatastoresListNextResponse = DatastoreResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface EnvironmentContainersListOptionalParams 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 prepareNotebook operation. */ -export type WorkspacesPrepareNotebookResponse = NotebookResourceInfo; +/** Contains response data for the list operation. */ +export type EnvironmentContainersListResponse = EnvironmentContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface WorkspacesListStorageAccountKeysOptionalParams +export interface EnvironmentContainersDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listStorageAccountKeys operation. */ -export type WorkspacesListStorageAccountKeysResponse = ListStorageAccountKeysResult; - /** Optional parameters. */ -export interface WorkspacesListNotebookKeysOptionalParams +export interface EnvironmentContainersGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNotebookKeys operation. */ -export type WorkspacesListNotebookKeysResponse = ListNotebookKeysResult; +/** Contains response data for the get operation. */ +export type EnvironmentContainersGetResponse = EnvironmentContainer; /** Optional parameters. */ -export interface WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams +export interface EnvironmentContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listOutboundNetworkDependenciesEndpoints operation. */ -export type WorkspacesListOutboundNetworkDependenciesEndpointsResponse = ExternalFqdnResponse; +/** Contains response data for the createOrUpdate operation. */ +export type EnvironmentContainersCreateOrUpdateResponse = EnvironmentContainer; /** Optional parameters. */ -export interface WorkspacesListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; -} +export interface EnvironmentContainersListNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult; +/** Contains response data for the listNext operation. */ +export type EnvironmentContainersListNextResponse = EnvironmentContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface WorkspacesListBySubscriptionNextOptionalParams +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 listBySubscriptionNext operation. */ -export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult; - -/** Optional parameters. */ -export interface UsagesListOptionalParams extends coreClient.OperationOptions {} - /** Contains response data for the list operation. */ -export type UsagesListResponse = ListUsagesResult; +export type EnvironmentVersionsListResponse = EnvironmentVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface UsagesListNextOptionalParams +export interface EnvironmentVersionsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type UsagesListNextResponse = ListUsagesResult; - /** Optional parameters. */ -export interface VirtualMachineSizesListOptionalParams +export interface EnvironmentVersionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult; +/** Contains response data for the get operation. */ +export type EnvironmentVersionsGetResponse = EnvironmentVersion; /** Optional parameters. */ -export interface QuotasUpdateOptionalParams +export interface EnvironmentVersionsCreateOrUpdateOptionalParams 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; +/** 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 +13930,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 +13946,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 +14026,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 +14041,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; - -/** Optional parameters. */ -export interface WorkspaceConnectionsCreateOptionalParams - extends coreClient.OperationOptions {} +export type FeaturestoreEntityVersionsListResponse = FeaturestoreEntityVersionResourceArmPaginatedResult; -/** Contains response data for the create operation. */ -export type WorkspaceConnectionsCreateResponse = WorkspaceConnectionPropertiesV2BasicResource; +/** Optional parameters. */ +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 +14209,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 +14225,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 +14237,61 @@ export interface BatchEndpointsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type BatchEndpointsCreateOrUpdateResponse = BatchEndpoint; +export type InferencePoolsCreateOrUpdateResponse = InferencePool; /** Optional parameters. */ -export interface BatchEndpointsListKeysOptionalParams +export interface InferencePoolsGetStatusOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listKeys operation. */ -export type BatchEndpointsListKeysResponse = EndpointAuthKeys; +/** Contains response data for the getStatus operation. */ +export type InferencePoolsGetStatusResponse = PoolStatus; /** 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 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 InferenceEndpointsListOptionalParams 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 InferenceEndpoint 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 InferenceEndpointsListResponse = InferenceEndpointTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface BatchDeploymentsDeleteOptionalParams +export interface InferenceEndpointsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7972,14 +14300,14 @@ export interface BatchDeploymentsDeleteOptionalParams } /** Optional parameters. */ -export interface BatchDeploymentsGetOptionalParams +export interface InferenceEndpointsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type BatchDeploymentsGetResponse = BatchDeployment; +export type InferenceEndpointsGetResponse = InferenceEndpoint; /** Optional parameters. */ -export interface BatchDeploymentsUpdateOptionalParams +export interface InferenceEndpointsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7988,10 +14316,10 @@ export interface BatchDeploymentsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type BatchDeploymentsUpdateResponse = BatchDeployment; +export type InferenceEndpointsUpdateResponse = InferenceEndpoint; /** Optional parameters. */ -export interface BatchDeploymentsCreateOrUpdateOptionalParams +export interface InferenceEndpointsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8000,481 +14328,589 @@ export interface BatchDeploymentsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type BatchDeploymentsCreateOrUpdateResponse = BatchDeployment; +export type InferenceEndpointsCreateOrUpdateResponse = InferenceEndpoint; /** Optional parameters. */ -export interface BatchDeploymentsListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Top of list. */ - top?: number; -} +export interface InferenceEndpointsListNextOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type BatchDeploymentsListNextResponse = BatchDeploymentTrackedResourceArmPaginatedResult; +export type InferenceEndpointsListNextResponse = InferenceEndpointTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface CodeContainersListOptionalParams +export interface InferenceGroupsListOptionalParams 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 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 CodeContainersListResponse = CodeContainerResourceArmPaginatedResult; +export type InferenceGroupsListResponse = InferenceGroupTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface CodeContainersDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface InferenceGroupsDeleteOptionalParams + 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 CodeContainersGetOptionalParams +export interface InferenceGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type CodeContainersGetResponse = CodeContainer; - -/** Optional parameters. */ -export interface CodeContainersCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type CodeContainersCreateOrUpdateResponse = CodeContainer; +export type InferenceGroupsGetResponse = InferenceGroup; /** Optional parameters. */ -export interface CodeContainersListNextOptionalParams +export interface InferenceGroupsUpdateOptionalParams 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 CodeContainersListNextResponse = CodeContainerResourceArmPaginatedResult; +/** Contains response data for the update operation. */ +export type InferenceGroupsUpdateResponse = InferenceGroup; /** Optional parameters. */ -export interface CodeVersionsListOptionalParams +export interface InferenceGroupsCreateOrUpdateOptionalParams 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; +/** Contains response data for the createOrUpdate operation. */ +export type InferenceGroupsCreateOrUpdateResponse = InferenceGroup; /** Optional parameters. */ -export interface CodeVersionsDeleteOptionalParams +export interface InferenceGroupsGetStatusOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the getStatus operation. */ +export type InferenceGroupsGetStatusResponse = GroupStatus; + /** Optional parameters. */ -export interface CodeVersionsGetOptionalParams - extends coreClient.OperationOptions {} +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 get operation. */ -export type CodeVersionsGetResponse = CodeVersion; +/** Contains response data for the listSkus operation. */ +export type InferenceGroupsListSkusResponse = SkuResourceArmPaginatedResult; /** Optional parameters. */ -export interface CodeVersionsCreateOrUpdateOptionalParams +export interface InferenceGroupsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type CodeVersionsCreateOrUpdateResponse = CodeVersion; +/** Contains response data for the listNext operation. */ +export type InferenceGroupsListNextResponse = InferenceGroupTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface CodeVersionsListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Maximum number of records to return. */ - top?: number; -} +export interface InferenceGroupsListSkusNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type CodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult; +/** Contains response data for the listSkusNext operation. */ +export type InferenceGroupsListSkusNextResponse = SkuResourceArmPaginatedResult; /** 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; +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 +14918,194 @@ 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 ServerlessEndpointsGetStatusOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getStatus operation. */ +export type ServerlessEndpointsGetStatusResponse = ServerlessEndpointStatus; + +/** 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 +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 = OperationListResult; + +/** Optional parameters. */ +export interface WorkspacesListBySubscriptionOptionalParams 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; + /** 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 +15113,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 +15129,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 +15141,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 +15201,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 +15213,106 @@ 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 +export interface WorkspaceConnectionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface WorkspaceConnectionsGetOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Top of list. */ - top?: number; + /** query parameter for which AOAI mode should be deployed */ + aoaiModelsToDeploy?: string; } -/** Contains response data for the listNext operation. */ -export type OnlineDeploymentsListNextResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; +/** 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 { + /** query parameter for which AOAI mode should be deployed */ + aoaiModelsToDeploy?: string; +} + +/** Contains response data for the listSecrets operation. */ +export type WorkspaceConnectionsListSecretsResponse = WorkspaceConnectionPropertiesV2BasicResource; + +/** Optional parameters. */ +export interface WorkspaceConnectionsTestConnectionOptionalParams + extends coreClient.OperationOptions { + /** Workspace Connection object */ + body?: WorkspaceConnectionPropertiesV2BasicResource; + /** 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 testConnection operation. */ +export type WorkspaceConnectionsTestConnectionResponse = WorkspaceConnectionsTestConnectionHeaders; + +/** 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 +15321,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 +15337,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..4a705345294e 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,122 +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" } - } - } - } -}; - -export const EncryptionKeyVaultProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EncryptionKeyVaultProperties", - modelProperties: { - keyVaultArmId: { - serializedName: "keyVaultArmId", - required: true, + }, + family: { + serializedName: "family", + readOnly: true, type: { name: "String" } }, - keyIdentifier: { - serializedName: "keyIdentifier", - required: true, + vCPUs: { + serializedName: "vCPUs", + readOnly: true, type: { - name: "String" + name: "Number" } }, - identityClientId: { - serializedName: "identityClientId", + gpus: { + serializedName: "gpus", + readOnly: true, type: { - name: "String" + 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 PrivateEndpoint: coreClient.CompositeMapper = { +export const EstimatedVMPrices: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpoint", + className: "EstimatedVMPrices", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + billingCurrency: { + serializedName: "billingCurrency", + required: true, type: { name: "String" } }, - subnetArmId: { - serializedName: "subnetArmId", - readOnly: true, + unitOfMeasure: { + serializedName: "unitOfMeasure", + required: true, type: { name: "String" } + }, + values: { + serializedName: "values", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EstimatedVMPrice" + } + } + } } } } }; -export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { +export const EstimatedVMPrice: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkServiceConnectionState", + className: "EstimatedVMPrice", modelProperties: { - status: { - serializedName: "status", + retailPrice: { + serializedName: "retailPrice", + required: true, type: { - name: "String" + name: "Number" } }, - description: { - serializedName: "description", + osType: { + serializedName: "osType", + required: true, type: { name: "String" } }, - actionsRequired: { - serializedName: "actionsRequired", + vmTier: { + serializedName: "vmTier", + required: true, type: { name: "String" } @@ -310,222 +391,232 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { } }; -export const ManagedServiceIdentity: coreClient.CompositeMapper = { +export const QuotaUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServiceIdentity", + className: "QuotaUpdateParameters", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + value: { + serializedName: "value", type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QuotaBaseProperties" + } + } } }, - tenantId: { - serializedName: "tenantId", - readOnly: true, + location: { + serializedName: "location", type: { - name: "Uuid" + name: "String" + } + } + } + } +}; + +export const QuotaBaseProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QuotaBaseProperties", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" } }, type: { serializedName: "type", - required: true, type: { name: "String" } }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + limit: { + serializedName: "limit", type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "UserAssignedIdentity" } - } + name: "Number" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" } } } } }; -export const UserAssignedIdentity: coreClient.CompositeMapper = { +export const UpdateWorkspaceQuotasResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserAssignedIdentity", + className: "UpdateWorkspaceQuotasResult", modelProperties: { - principalId: { - serializedName: "principalId", + value: { + serializedName: "value", readOnly: true, type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpdateWorkspaceQuotas" + } + } } }, - clientId: { - serializedName: "clientId", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Uuid" + name: "String" } } } } }; -export const Sku: coreClient.CompositeMapper = { +export const UpdateWorkspaceQuotas: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Sku", + className: "UpdateWorkspaceQuotas", modelProperties: { - name: { - serializedName: "name", - required: true, + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - tier: { - serializedName: "tier", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Free", "Basic", "Standard", "Premium"] + name: "String" } }, - size: { - serializedName: "size", + limit: { + serializedName: "limit", type: { - name: "String" + name: "Number" } }, - family: { - serializedName: "family", + unit: { + serializedName: "unit", + readOnly: true, type: { name: "String" } }, - capacity: { - serializedName: "capacity", + status: { + serializedName: "status", type: { - name: "Number" + name: "String" } } } } }; -export const Resource: coreClient.CompositeMapper = { +export const ListWorkspaceQuotas: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Resource", + className: "ListWorkspaceQuotas", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceQuota" + } + } } }, - type: { - serializedName: "type", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } } } } }; -export const SystemData: coreClient.CompositeMapper = { +export const ResourceQuota: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemData", + className: "ResourceQuota", modelProperties: { - createdBy: { - serializedName: "createdBy", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - createdByType: { - serializedName: "createdByType", + amlWorkspaceLocation: { + serializedName: "amlWorkspaceLocation", + readOnly: true, type: { name: "String" } }, - createdAt: { - serializedName: "createdAt", + type: { + serializedName: "type", + readOnly: true, type: { - name: "DateTime" + name: "String" } }, - lastModifiedBy: { - serializedName: "lastModifiedBy", + name: { + serializedName: "name", type: { - name: "String" + name: "Composite", + className: "ResourceName" } }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + limit: { + serializedName: "limit", + readOnly: true, type: { - name: "String" + name: "Number" } }, - lastModifiedAt: { - serializedName: "lastModifiedAt", + unit: { + serializedName: "unit", + readOnly: true, type: { - name: "DateTime" + name: "String" } } } } }; -export const SharedPrivateLinkResource: coreClient.CompositeMapper = { +export const ResourceName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedPrivateLinkResource", + className: "ResourceName", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - privateLinkResourceId: { - serializedName: "properties.privateLinkResourceId", - type: { - name: "String" - } - }, - groupId: { - serializedName: "properties.groupId", - type: { - name: "String" - } - }, - requestMessage: { - serializedName: "properties.requestMessage", + value: { + serializedName: "value", + readOnly: true, type: { name: "String" } }, - status: { - serializedName: "properties.status", + localizedValue: { + serializedName: "localizedValue", + readOnly: true, type: { name: "String" } @@ -534,453 +625,475 @@ export const SharedPrivateLinkResource: coreClient.CompositeMapper = { } }; -export const NotebookResourceInfo: coreClient.CompositeMapper = { +export const PaginatedComputeResourcesList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotebookResourceInfo", + className: "PaginatedComputeResourcesList", modelProperties: { - fqdn: { - serializedName: "fqdn", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeResource" + } + } } }, - resourceId: { - serializedName: "resourceId", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - notebookPreparationError: { - serializedName: "notebookPreparationError", - type: { - name: "Composite", - className: "NotebookPreparationError" - } } } } }; -export const NotebookPreparationError: coreClient.CompositeMapper = { +export const ManagedServiceIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotebookPreparationError", + className: "ManagedServiceIdentity", modelProperties: { - errorMessage: { - serializedName: "errorMessage", + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "Uuid" + } + }, + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "Uuid" + } + }, + type: { + serializedName: "type", + required: true, type: { name: "String" } }, - statusCode: { - serializedName: "statusCode", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "Number" + name: "Dictionary", + value: { + type: { name: "Composite", className: "UserAssignedIdentity" } + } } } } } }; -export const ServiceManagedResourcesSettings: coreClient.CompositeMapper = { +export const UserAssignedIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceManagedResourcesSettings", + className: "UserAssignedIdentity", modelProperties: { - cosmosDb: { - serializedName: "cosmosDb", + principalId: { + serializedName: "principalId", + readOnly: true, type: { - name: "Composite", - className: "CosmosDbSettings" + name: "Uuid" } - } - } - } -}; - -export const CosmosDbSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CosmosDbSettings", - modelProperties: { - collectionsThroughput: { - serializedName: "collectionsThroughput", + }, + clientId: { + serializedName: "clientId", + readOnly: true, type: { - name: "Number" + name: "Uuid" } } } } }; -export const WorkspaceUpdateParameters: coreClient.CompositeMapper = { +export const Sku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceUpdateParameters", + className: "Sku", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - identity: { - serializedName: "identity", + name: { + serializedName: "name", + required: true, type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "String" } }, - description: { - serializedName: "properties.description", + tier: { + serializedName: "tier", type: { - name: "String" + name: "Enum", + allowedValues: ["Free", "Basic", "Standard", "Premium"] } }, - friendlyName: { - serializedName: "properties.friendlyName", + size: { + serializedName: "size", type: { name: "String" } }, - imageBuildCompute: { - serializedName: "properties.imageBuildCompute", + family: { + serializedName: "family", type: { name: "String" } }, - serviceManagedResourcesSettings: { - serializedName: "properties.serviceManagedResourcesSettings", + capacity: { + serializedName: "capacity", type: { - name: "Composite", - className: "ServiceManagedResourcesSettings" + name: "Number" } - }, - primaryUserAssignedIdentity: { - serializedName: "properties.primaryUserAssignedIdentity", + } + } + } +}; + +export const Resource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - applicationInsights: { - serializedName: "properties.applicationInsights", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - containerRegistry: { - serializedName: "properties.containerRegistry", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } } } } }; -export const WorkspaceListResult: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceListResult", + className: "SystemData", modelProperties: { - value: { - serializedName: "value", + createdBy: { + serializedName: "createdBy", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Workspace" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String" } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } } } } }; -export const DiagnoseWorkspaceParameters: coreClient.CompositeMapper = { +export const ComputeResourceSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiagnoseWorkspaceParameters", + className: "ComputeResourceSchema", modelProperties: { - value: { - serializedName: "value", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "DiagnoseRequestProperties" + className: "Compute" } } } } }; -export const DiagnoseRequestProperties: coreClient.CompositeMapper = { +export const Compute: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiagnoseRequestProperties", + className: "Compute", + uberParent: "Compute", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, modelProperties: { - udr: { - serializedName: "udr", + computeType: { + serializedName: "computeType", + required: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } }, - nsg: { - serializedName: "nsg", + computeLocation: { + serializedName: "computeLocation", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } }, - resourceLock: { - serializedName: "resourceLock", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } }, - dnsResolution: { - serializedName: "dnsResolution", + description: { + serializedName: "description", + nullable: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } }, - storageAccount: { - serializedName: "storageAccount", + createdOn: { + serializedName: "createdOn", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "DateTime" } }, - keyVault: { - serializedName: "keyVault", + modifiedOn: { + serializedName: "modifiedOn", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "DateTime" } }, - containerRegistry: { - serializedName: "containerRegistry", + resourceId: { + serializedName: "resourceId", + nullable: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } }, - applicationInsights: { - serializedName: "applicationInsights", + provisioningErrors: { + serializedName: "provisioningErrors", + readOnly: true, + nullable: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponse" + } } } }, - others: { - serializedName: "others", + isAttachedCompute: { + serializedName: "isAttachedCompute", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "Boolean" + } + }, + disableLocalAuth: { + serializedName: "disableLocalAuth", + type: { + name: "Boolean" } } } } }; -export const DiagnoseResponseResult: coreClient.CompositeMapper = { +export const ClusterUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiagnoseResponseResult", + className: "ClusterUpdateParameters", modelProperties: { - value: { - serializedName: "value", + properties: { + serializedName: "properties.properties", type: { name: "Composite", - className: "DiagnoseResponseResultValue" + className: "ScaleSettingsInformation" } } } } }; -export const DiagnoseResponseResultValue: coreClient.CompositeMapper = { +export const ScaleSettingsInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiagnoseResponseResultValue", + className: "ScaleSettingsInformation", modelProperties: { - userDefinedRouteResults: { - serializedName: "userDefinedRouteResults", + scaleSettings: { + serializedName: "scaleSettings", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "Composite", + className: "ScaleSettings" + } + } + } + } +}; + +export const ScaleSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScaleSettings", + modelProperties: { + maxNodeCount: { + serializedName: "maxNodeCount", + required: true, + type: { + name: "Number" } }, - networkSecurityRuleResults: { - serializedName: "networkSecurityRuleResults", + minNodeCount: { + defaultValue: 0, + serializedName: "minNodeCount", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "Number" } }, - resourceLockResults: { - serializedName: "resourceLockResults", + nodeIdleTimeBeforeScaleDown: { + serializedName: "nodeIdleTimeBeforeScaleDown", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "TimeSpan" + } + } + } + } +}; + +export const CustomService: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomService", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" } }, - dnsResolutionResults: { - serializedName: "dnsResolutionResults", + image: { + serializedName: "image", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "Composite", + className: "Image" } }, - storageAccountResults: { - serializedName: "storageAccountResults", + environmentVariables: { + serializedName: "environmentVariables", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } + name: "Dictionary", + value: { + type: { name: "Composite", className: "EnvironmentVariable" } } } }, - keyVaultResults: { - serializedName: "keyVaultResults", + docker: { + serializedName: "docker", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "Composite", + className: "Docker" } }, - containerRegistryResults: { - serializedName: "containerRegistryResults", + endpoints: { + serializedName: "endpoints", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DiagnoseResult" + className: "Endpoint" } } } }, - applicationInsightsResults: { - serializedName: "applicationInsightsResults", + volumes: { + serializedName: "volumes", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DiagnoseResult" + className: "VolumeDefinition" } } } }, - otherResults: { - serializedName: "otherResults", + kernel: { + serializedName: "kernel", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "Composite", + className: "JupyterKernelConfig" } } } } }; -export const DiagnoseResult: coreClient.CompositeMapper = { +export const Image: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiagnoseResult", + className: "Image", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - code: { - serializedName: "code", - readOnly: true, + type: { + defaultValue: "docker", + serializedName: "type", type: { name: "String" } }, - level: { - serializedName: "level", - readOnly: true, + reference: { + serializedName: "reference", type: { name: "String" } }, - message: { - serializedName: "message", - readOnly: true, + version: { + serializedName: "version", type: { name: "String" } @@ -989,123 +1102,80 @@ export const DiagnoseResult: coreClient.CompositeMapper = { } }; -export const ListWorkspaceKeysResult: coreClient.CompositeMapper = { +export const EnvironmentVariable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListWorkspaceKeysResult", + className: "EnvironmentVariable", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - userStorageKey: { - serializedName: "userStorageKey", - readOnly: true, - type: { - name: "String" - } - }, - userStorageResourceId: { - serializedName: "userStorageResourceId", - readOnly: true, + type: { + defaultValue: "local", + serializedName: "type", type: { name: "String" } }, - appInsightsInstrumentationKey: { - serializedName: "appInsightsInstrumentationKey", - readOnly: true, + value: { + serializedName: "value", type: { name: "String" } - }, - containerRegistryCredentials: { - serializedName: "containerRegistryCredentials", - type: { - name: "Composite", - className: "RegistryListCredentialsResult" - } - }, - notebookAccessKeys: { - serializedName: "notebookAccessKeys", - type: { - name: "Composite", - className: "ListNotebookKeysResult" - } } } } }; -export const RegistryListCredentialsResult: coreClient.CompositeMapper = { +export const Docker: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegistryListCredentialsResult", + className: "Docker", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - location: { - serializedName: "location", - readOnly: true, - type: { - name: "String" - } - }, - username: { - serializedName: "username", - readOnly: true, - type: { - name: "String" - } - }, - passwords: { - serializedName: "passwords", + privileged: { + serializedName: "privileged", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Password" - } - } + name: "Boolean" } } } } }; -export const Password: coreClient.CompositeMapper = { +export const Endpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Password", + className: "Endpoint", modelProperties: { + protocol: { + defaultValue: "tcp", + serializedName: "protocol", + type: { + name: "String" + } + }, name: { serializedName: "name", - readOnly: true, type: { name: "String" } }, - value: { - serializedName: "value", - readOnly: true, + target: { + serializedName: "target", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const ListNotebookKeysResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ListNotebookKeysResult", - modelProperties: { - primaryAccessKey: { - serializedName: "primaryAccessKey", - readOnly: true, + }, + published: { + serializedName: "published", + nullable: true, type: { - name: "String" + name: "Number" } }, - secondaryAccessKey: { - serializedName: "secondaryAccessKey", - readOnly: true, + hostIp: { + serializedName: "hostIp", + nullable: true, type: { name: "String" } @@ -1114,108 +1184,91 @@ export const ListNotebookKeysResult: coreClient.CompositeMapper = { } }; -export const ListUsagesResult: coreClient.CompositeMapper = { +export const VolumeDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListUsagesResult", + className: "VolumeDefinition", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Usage" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + type: { + defaultValue: "bind", + serializedName: "type", type: { name: "String" } - } - } - } -}; - -export const Usage: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Usage", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, + }, + readOnly: { + serializedName: "readOnly", + nullable: true, type: { - name: "String" + name: "Boolean" } }, - amlWorkspaceLocation: { - serializedName: "amlWorkspaceLocation", - readOnly: true, + source: { + serializedName: "source", type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + target: { + serializedName: "target", type: { name: "String" } }, - unit: { - serializedName: "unit", - readOnly: true, + consistency: { + serializedName: "consistency", + nullable: true, type: { name: "String" } }, - currentValue: { - serializedName: "currentValue", - readOnly: true, + bind: { + serializedName: "bind", type: { - name: "Number" + name: "Composite", + className: "BindOptions" } }, - limit: { - serializedName: "limit", - readOnly: true, + volume: { + serializedName: "volume", type: { - name: "Number" + name: "Composite", + className: "VolumeOptions" } }, - name: { - serializedName: "name", + tmpfs: { + serializedName: "tmpfs", type: { name: "Composite", - className: "UsageName" + className: "TmpfsOptions" } } } } }; -export const UsageName: coreClient.CompositeMapper = { +export const BindOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsageName", + className: "BindOptions", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + propagation: { + serializedName: "propagation", + nullable: true, type: { name: "String" } }, - localizedValue: { - serializedName: "localizedValue", - readOnly: true, + createHostPath: { + serializedName: "createHostPath", + nullable: true, + type: { + name: "Boolean" + } + }, + selinux: { + serializedName: "selinux", + nullable: true, type: { name: "String" } @@ -1224,145 +1277,222 @@ export const UsageName: coreClient.CompositeMapper = { } }; -export const VirtualMachineSizeListResult: coreClient.CompositeMapper = { +export const VolumeOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSizeListResult", + className: "VolumeOptions", modelProperties: { - value: { - serializedName: "value", + nocopy: { + serializedName: "nocopy", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineSize" - } - } + name: "Boolean" } } } } }; -export const VirtualMachineSize: coreClient.CompositeMapper = { +export const TmpfsOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSize", + className: "TmpfsOptions", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + size: { + serializedName: "size", type: { - name: "String" + name: "Number" + } + } + } + } +}; + +export const JupyterKernelConfig: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JupyterKernelConfig", + modelProperties: { + argv: { + serializedName: "argv", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - family: { - serializedName: "family", - readOnly: true, + displayName: { + serializedName: "displayName", type: { name: "String" } }, - vCPUs: { - serializedName: "vCPUs", - readOnly: true, + language: { + serializedName: "language", type: { - name: "Number" + name: "String" } - }, - gpus: { - serializedName: "gpus", + } + } + } +}; + +export const AmlComputeNodesInformation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlComputeNodesInformation", + modelProperties: { + nodes: { + serializedName: "nodes", readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AmlComputeNodeInformation" + } + } } }, - osVhdSizeMB: { - serializedName: "osVhdSizeMB", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Number" + name: "String" } - }, - maxResourceVolumeMB: { - serializedName: "maxResourceVolumeMB", + } + } + } +}; + +export const AmlComputeNodeInformation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlComputeNodeInformation", + modelProperties: { + nodeId: { + serializedName: "nodeId", readOnly: true, type: { - name: "Number" + name: "String" } }, - memoryGB: { - serializedName: "memoryGB", + privateIpAddress: { + serializedName: "privateIpAddress", readOnly: true, + nullable: true, type: { - name: "Number" + name: "String" } }, - lowPriorityCapable: { - serializedName: "lowPriorityCapable", + publicIpAddress: { + serializedName: "publicIpAddress", readOnly: true, + nullable: true, type: { - name: "Boolean" + name: "String" } }, - premiumIO: { - serializedName: "premiumIO", + port: { + serializedName: "port", readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - estimatedVMPrices: { - serializedName: "estimatedVMPrices", + nodeState: { + serializedName: "nodeState", + readOnly: true, type: { - name: "Composite", - className: "EstimatedVMPrices" + name: "String" } }, - supportedComputeTypes: { - serializedName: "supportedComputeTypes", + runId: { + serializedName: "runId", + readOnly: true, + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const EstimatedVMPrices: coreClient.CompositeMapper = { +export const ComputeSecrets: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EstimatedVMPrices", + className: "ComputeSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, modelProperties: { - billingCurrency: { - serializedName: "billingCurrency", + computeType: { + serializedName: "computeType", required: true, type: { name: "String" } - }, - unitOfMeasure: { - serializedName: "unitOfMeasure", - required: true, + } + } + } +}; + +export const IdleShutdownSetting: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IdleShutdownSetting", + modelProperties: { + idleTimeBeforeShutdown: { + serializedName: "idleTimeBeforeShutdown", + type: { + name: "String" + } + } + } + } +}; + +export const ResizeSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResizeSchema", + modelProperties: { + targetVMSize: { + serializedName: "targetVMSize", + type: { + name: "String" + } + } + } + } +}; + +export const CapacityReservationGroupTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CapacityReservationGroupTrackedResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - values: { - serializedName: "values", - required: true, + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "EstimatedVMPrice" + className: "CapacityReservationGroup" } } } @@ -1371,27 +1501,51 @@ export const EstimatedVMPrices: coreClient.CompositeMapper = { } }; -export const EstimatedVMPrice: coreClient.CompositeMapper = { +export const CapacityReservationGroupProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EstimatedVMPrice", + className: "CapacityReservationGroupProperties", modelProperties: { - retailPrice: { - serializedName: "retailPrice", + offer: { + serializedName: "offer", + type: { + name: "Composite", + className: "ServerlessOffer" + } + }, + reservedCapacity: { + serializedName: "reservedCapacity", required: true, type: { name: "Number" } - }, - osType: { - serializedName: "osType", + } + } + } +}; + +export const ServerlessOffer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerlessOffer", + modelProperties: { + offerName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "offerName", required: true, 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,158 +1555,186 @@ export const EstimatedVMPrice: coreClient.CompositeMapper = { } }; -export const QuotaUpdateParameters: coreClient.CompositeMapper = { +export const PartialManagedServiceIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QuotaUpdateParameters", + className: "PartialManagedServiceIdentity", modelProperties: { - value: { - serializedName: "value", + type: { + serializedName: "type", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "QuotaBaseProperties" - } - } + name: "String" } }, - location: { - serializedName: "location", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } } } } }; -export const QuotaBaseProperties: coreClient.CompositeMapper = { +export const PartialSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QuotaBaseProperties", + className: "PartialSku", modelProperties: { - id: { - serializedName: "id", + capacity: { + serializedName: "capacity", type: { - name: "String" + name: "Number" } }, - type: { - serializedName: "type", + family: { + serializedName: "family", type: { name: "String" } }, - limit: { - serializedName: "limit", + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } }, - unit: { - serializedName: "unit", + size: { + serializedName: "size", type: { name: "String" } + }, + tier: { + serializedName: "tier", + type: { + name: "Enum", + allowedValues: ["Free", "Basic", "Standard", "Premium"] + } } } } }; -export const UpdateWorkspaceQuotasResult: coreClient.CompositeMapper = { +export const PartialMinimalTrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateWorkspaceQuotasResult", + className: "PartialMinimalTrackedResource", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const CodeContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CodeContainerResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "UpdateWorkspaceQuotas" + className: "CodeContainer" } } } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } } } } }; -export const UpdateWorkspaceQuotas: coreClient.CompositeMapper = { +export const ResourceBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateWorkspaceQuotas", + className: "ResourceBase", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, + description: { + serializedName: "description", + nullable: true, type: { name: "String" } }, - limit: { - serializedName: "limit", - type: { - name: "Number" - } - }, - unit: { - serializedName: "unit", - readOnly: true, + properties: { + serializedName: "properties", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - status: { - serializedName: "status", + tags: { + serializedName: "tags", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const ListWorkspaceQuotas: coreClient.CompositeMapper = { +export const CodeVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListWorkspaceQuotas", + className: "CodeVersionResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResourceQuota" + 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" } @@ -1561,49 +1743,79 @@ export const ListWorkspaceQuotas: coreClient.CompositeMapper = { } }; -export const ResourceQuota: coreClient.CompositeMapper = { +export const PendingUploadRequestDto: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceQuota", + 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" } }, - name: { - serializedName: "name", + pendingUploadType: { + serializedName: "pendingUploadType", type: { - name: "Composite", - className: "ResourceName" + name: "String" + } + } + } + } +}; + +export const BlobReferenceForConsumptionDto: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BlobReferenceForConsumptionDto", + modelProperties: { + blobUri: { + serializedName: "blobUri", + nullable: true, + type: { + name: "String" } }, - limit: { - serializedName: "limit", - readOnly: true, + credential: { + serializedName: "credential", type: { - name: "Number" + name: "Composite", + className: "PendingUploadCredentialDto" } }, - unit: { - serializedName: "unit", - readOnly: true, + storageAccountArmId: { + serializedName: "storageAccountArmId", + nullable: true, type: { name: "String" } @@ -1612,21 +1824,19 @@ export const ResourceQuota: coreClient.CompositeMapper = { } }; -export const ResourceName: coreClient.CompositeMapper = { +export const PendingUploadCredentialDto: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceName", + className: "PendingUploadCredentialDto", + uberParent: "PendingUploadCredentialDto", + polymorphicDiscriminator: { + serializedName: "credentialType", + clientName: "credentialType" + }, modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "String" - } - }, - localizedValue: { - serializedName: "localizedValue", - readOnly: true, + credentialType: { + serializedName: "credentialType", + required: true, type: { name: "String" } @@ -1635,11 +1845,17 @@ export const ResourceName: coreClient.CompositeMapper = { } }; -export const PaginatedComputeResourcesList: coreClient.CompositeMapper = { +export const ComponentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PaginatedComputeResourcesList", + className: "ComponentContainerResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "value", type: { @@ -1647,262 +1863,195 @@ export const PaginatedComputeResourcesList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ComputeResource" + className: "ComponentContainer" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const ComputeResourceSchema: coreClient.CompositeMapper = { +export const ComponentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeResourceSchema", + className: "ComponentVersionResourceArmPaginatedResult", modelProperties: { - properties: { - serializedName: "properties", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "Compute" + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComponentVersion" + } + } } } } } }; -export const Compute: coreClient.CompositeMapper = { +export const DataContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Compute", - uberParent: "Compute", - polymorphicDiscriminator: { - serializedName: "computeType", - clientName: "computeType" - }, + className: "DataContainerResourceArmPaginatedResult", modelProperties: { - computeType: { - serializedName: "computeType", - required: true, - type: { - name: "String" - } - }, - computeLocation: { - serializedName: "computeLocation", - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - description: { - serializedName: "description", - nullable: true, - type: { - name: "String" - } - }, - createdOn: { - serializedName: "createdOn", - readOnly: true, - type: { - name: "DateTime" - } - }, - modifiedOn: { - serializedName: "modifiedOn", - readOnly: true, - type: { - name: "DateTime" - } - }, - resourceId: { - serializedName: "resourceId", - nullable: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - provisioningErrors: { - serializedName: "provisioningErrors", - readOnly: true, - nullable: true, + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ErrorResponse" + className: "DataContainer" } } } - }, - isAttachedCompute: { - serializedName: "isAttachedCompute", - readOnly: true, - type: { - name: "Boolean" - } - }, - disableLocalAuth: { - serializedName: "disableLocalAuth", - type: { - name: "Boolean" - } } } } }; -export const ClusterUpdateParameters: coreClient.CompositeMapper = { +export const DataVersionBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterUpdateParameters", + className: "DataVersionBaseResourceArmPaginatedResult", modelProperties: { - properties: { - serializedName: "properties.properties", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "ScaleSettingsInformation" + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataVersionBase" + } + } } } } } }; -export const ScaleSettingsInformation: coreClient.CompositeMapper = { +export const IntellectualProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScaleSettingsInformation", + className: "IntellectualProperty", modelProperties: { - scaleSettings: { - serializedName: "scaleSettings", + protectionLevel: { + serializedName: "protectionLevel", type: { - name: "Composite", - className: "ScaleSettings" + name: "String" + } + }, + publisher: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "publisher", + required: true, + type: { + name: "String" } } } } }; -export const ScaleSettings: coreClient.CompositeMapper = { +export const EnvironmentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScaleSettings", + className: "EnvironmentContainerResourceArmPaginatedResult", 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: "EnvironmentContainer" + } + } } } } } }; -export const AmlComputeNodesInformation: coreClient.CompositeMapper = { +export const EnvironmentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeNodesInformation", + className: "EnvironmentVersionResourceArmPaginatedResult", modelProperties: { - nodes: { - serializedName: "nodes", - readOnly: true, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AmlComputeNodeInformation" + className: "EnvironmentVersion" } } } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } } } } }; -export const AmlComputeNodeInformation: coreClient.CompositeMapper = { +export const BuildContext: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeNodeInformation", + className: "BuildContext", modelProperties: { - nodeId: { - serializedName: "nodeId", - readOnly: true, - type: { - name: "String" - } - }, - privateIpAddress: { - serializedName: "privateIpAddress", - readOnly: true, - nullable: true, - type: { - name: "String" - } - }, - publicIpAddress: { - serializedName: "publicIpAddress", - readOnly: true, - nullable: true, - type: { - name: "String" - } - }, - port: { - serializedName: "port", - readOnly: true, - type: { - name: "Number" - } - }, - nodeState: { - serializedName: "nodeState", - readOnly: true, + contextUri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "contextUri", + required: true, type: { name: "String" } }, - runId: { - serializedName: "runId", - readOnly: true, - nullable: true, + dockerfilePath: { + defaultValue: "Dockerfile", + serializedName: "dockerfilePath", type: { name: "String" } @@ -1911,97 +2060,74 @@ export const AmlComputeNodeInformation: coreClient.CompositeMapper = { } }; -export const NotebookAccessTokenResult: coreClient.CompositeMapper = { +export const InferenceContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotebookAccessTokenResult", + className: "InferenceContainerProperties", 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, + livenessRoute: { + serializedName: "livenessRoute", type: { - name: "Number" + name: "Composite", + className: "Route" } }, - refreshToken: { - serializedName: "refreshToken", - readOnly: true, + readinessRoute: { + serializedName: "readinessRoute", type: { - name: "String" + name: "Composite", + className: "Route" } }, - scope: { - serializedName: "scope", - readOnly: true, + scoringRoute: { + serializedName: "scoringRoute", type: { - name: "String" + name: "Composite", + className: "Route" } } } } }; -export const ComputeSecrets: coreClient.CompositeMapper = { +export const Route: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeSecrets", - uberParent: "ComputeSecrets", - polymorphicDiscriminator: { - serializedName: "computeType", - clientName: "computeType" - }, + className: "Route", modelProperties: { - computeType: { - serializedName: "computeType", + path: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "path", required: true, type: { name: "String" } + }, + port: { + serializedName: "port", + required: true, + type: { + name: "Number" + } } } } }; -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { +export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "ModelContainerResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "value", type: { @@ -2009,7 +2135,7 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" + className: "ModelContainer" } } } @@ -2018,11 +2144,17 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { } }; -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { +export const ModelVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResourceListResult", + className: "ModelVersionResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "value", type: { @@ -2030,7 +2162,7 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" + className: "ModelVersion" } } } @@ -2039,59 +2171,93 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { } }; -export const ListStorageAccountKeysResult: coreClient.CompositeMapper = { +export const FlavorData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListStorageAccountKeysResult", + className: "FlavorData", modelProperties: { - userStorageKey: { - serializedName: "userStorageKey", - readOnly: true, + data: { + serializedName: "data", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const WorkspaceConnectionPropertiesV2: coreClient.CompositeMapper = { +export const PackageRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionPropertiesV2", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: { - serializedName: "authType", - clientName: "authType" - }, + className: "PackageRequest", modelProperties: { - authType: { - serializedName: "authType", - required: true, + baseEnvironmentSource: { + serializedName: "baseEnvironmentSource", type: { - name: "String" + name: "Composite", + className: "BaseEnvironmentSource" } }, - category: { - serializedName: "category", + environmentVariables: { + serializedName: "environmentVariables", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - target: { - serializedName: "target", + inferencingServer: { + serializedName: "inferencingServer", type: { - name: "String" + name: "Composite", + className: "InferencingServer" } }, - value: { - serializedName: "value", + inputs: { + serializedName: "inputs", + nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ModelPackageInput" + } + } + } + }, + modelConfiguration: { + serializedName: "modelConfiguration", + type: { + name: "Composite", + className: "ModelConfiguration" + } + }, + properties: { + serializedName: "properties", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + tags: { + serializedName: "tags", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } } }, - valueFormat: { - serializedName: "valueFormat", + targetEnvironmentId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "targetEnvironmentId", + required: true, type: { name: "String" } @@ -2100,26 +2266,19 @@ export const WorkspaceConnectionPropertiesV2: coreClient.CompositeMapper = { } }; -export const WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const BaseEnvironmentSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult", + className: "BaseEnvironmentSource", + uberParent: "BaseEnvironmentSource", + polymorphicDiscriminator: { + serializedName: "baseEnvironmentSourceType", + clientName: "baseEnvironmentSourceType" + }, modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WorkspaceConnectionPropertiesV2BasicResource" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + baseEnvironmentSourceType: { + serializedName: "baseEnvironmentSourceType", + required: true, type: { name: "String" } @@ -2128,106 +2287,202 @@ export const WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult: cor } }; -export const ExternalFqdnResponse: coreClient.CompositeMapper = { +export const InferencingServer: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExternalFqdnResponse", + className: "InferencingServer", + uberParent: "InferencingServer", + polymorphicDiscriminator: { + serializedName: "serverType", + clientName: "serverType" + }, modelProperties: { - value: { - serializedName: "value", + serverType: { + serializedName: "serverType", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FqdnEndpoints" - } - } + name: "String" } } } } }; -export const FqdnEndpoints: coreClient.CompositeMapper = { +export const ModelPackageInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FqdnEndpoints", + className: "ModelPackageInput", modelProperties: { - properties: { - serializedName: "properties", + inputType: { + serializedName: "inputType", + required: true, + type: { + name: "String" + } + }, + mode: { + serializedName: "mode", + type: { + name: "String" + } + }, + mountPath: { + serializedName: "mountPath", + nullable: true, + type: { + name: "String" + } + }, + path: { + serializedName: "path", type: { name: "Composite", - className: "FqdnEndpointsProperties" + className: "PackageInputPathBase" } } } } }; -export const FqdnEndpointsProperties: coreClient.CompositeMapper = { +export const PackageInputPathBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FqdnEndpointsProperties", + className: "PackageInputPathBase", + uberParent: "PackageInputPathBase", + polymorphicDiscriminator: { + serializedName: "inputPathType", + clientName: "inputPathType" + }, modelProperties: { - category: { - serializedName: "category", + inputPathType: { + serializedName: "inputPathType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ModelConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelConfiguration", + modelProperties: { + mode: { + serializedName: "mode", type: { name: "String" } }, - endpoints: { - serializedName: "endpoints", + mountPath: { + serializedName: "mountPath", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FqdnEndpoint" - } - } + name: "String" } } } } }; -export const FqdnEndpoint: coreClient.CompositeMapper = { +export const PackageResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FqdnEndpoint", + className: "PackageResponse", modelProperties: { - domainName: { - serializedName: "domainName", + baseEnvironmentSource: { + serializedName: "baseEnvironmentSource", + type: { + name: "Composite", + className: "BaseEnvironmentSource" + } + }, + buildId: { + serializedName: "buildId", + readOnly: true, + nullable: true, type: { name: "String" } }, - endpointDetails: { - serializedName: "endpointDetails", + buildState: { + serializedName: "buildState", + readOnly: true, + type: { + name: "String" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + readOnly: true, + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + inferencingServer: { + serializedName: "inferencingServer", + type: { + name: "Composite", + className: "InferencingServer" + } + }, + inputs: { + serializedName: "inputs", + readOnly: true, + nullable: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "FqdnEndpointDetail" + className: "ModelPackageInput" } } } - } - } - } -}; - -export const FqdnEndpointDetail: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FqdnEndpointDetail", - modelProperties: { - port: { - serializedName: "port", + }, + logUrl: { + serializedName: "logUrl", + readOnly: true, + nullable: true, type: { - name: "Number" + name: "String" + } + }, + modelConfiguration: { + serializedName: "modelConfiguration", + type: { + 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" } } } @@ -2354,46 +2609,6 @@ export const EndpointAuthKeys: coreClient.CompositeMapper = { } }; -export const PartialManagedServiceIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PartialManagedServiceIdentity", - modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", - type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } - } - } - } - } -}; - -export const PartialMinimalTrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PartialMinimalTrackedResource", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - export const BatchDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2421,6 +2636,27 @@ export const BatchDeploymentTrackedResourceArmPaginatedResult: coreClient.Compos } }; +export const BatchDeploymentConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchDeploymentConfiguration", + uberParent: "BatchDeploymentConfiguration", + polymorphicDiscriminator: { + serializedName: "deploymentConfigurationType", + clientName: "deploymentConfigurationType" + }, + modelProperties: { + deploymentConfigurationType: { + serializedName: "deploymentConfigurationType", + required: true, + type: { + name: "String" + } + } + } + } +}; + export const AssetReferenceBase: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2461,6 +2697,25 @@ export const ResourceConfiguration: coreClient.CompositeMapper = { name: "String" } }, + locations: { + serializedName: "locations", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + maxInstanceCount: { + serializedName: "maxInstanceCount", + nullable: true, + type: { + name: "Number" + } + }, properties: { serializedName: "properties", nullable: true, @@ -2611,10 +2866,10 @@ export const PartialBatchDeployment: coreClient.CompositeMapper = { } }; -export const CodeContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const DatastoreResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeContainerResourceArmPaginatedResult", + className: "DatastoreResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -2629,7 +2884,7 @@ export const CodeContainerResourceArmPaginatedResult: coreClient.CompositeMapper element: { type: { name: "Composite", - className: "CodeContainer" + className: "Datastore" } } } @@ -2638,69 +2893,52 @@ export const CodeContainerResourceArmPaginatedResult: coreClient.CompositeMapper } }; -export const ResourceBase: coreClient.CompositeMapper = { +export const DatastoreCredentials: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceBase", + className: "DatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: { + serializedName: "credentialsType", + clientName: "credentialsType" + }, modelProperties: { - description: { - serializedName: "description", - nullable: true, + credentialsType: { + serializedName: "credentialsType", + required: 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 DatastoreSecrets: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeVersionResourceArmPaginatedResult", - modelProperties: { - nextLink: { - serializedName: "nextLink", + className: "DatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: { + serializedName: "secretsType", + clientName: "secretsType" + }, + modelProperties: { + secretsType: { + serializedName: "secretsType", + required: true, type: { name: "String" } - }, - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CodeVersion" - } - } - } } } } }; -export const ComponentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const FeaturesetContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentContainerResourceArmPaginatedResult", + className: "FeaturesetContainerResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -2715,7 +2953,7 @@ export const ComponentContainerResourceArmPaginatedResult: coreClient.CompositeM element: { type: { name: "Composite", - className: "ComponentContainer" + className: "FeaturesetContainer" } } } @@ -2724,10 +2962,10 @@ export const ComponentContainerResourceArmPaginatedResult: coreClient.CompositeM } }; -export const ComponentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const FeatureResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentVersionResourceArmPaginatedResult", + className: "FeatureResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -2742,7 +2980,7 @@ export const ComponentVersionResourceArmPaginatedResult: coreClient.CompositeMap element: { type: { name: "Composite", - className: "ComponentVersion" + className: "Feature" } } } @@ -2751,10 +2989,10 @@ export const ComponentVersionResourceArmPaginatedResult: coreClient.CompositeMap } }; -export const DataContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const FeaturesetVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataContainerResourceArmPaginatedResult", + className: "FeaturesetVersionResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -2769,7 +3007,7 @@ export const DataContainerResourceArmPaginatedResult: coreClient.CompositeMapper element: { type: { name: "Composite", - className: "DataContainer" + className: "FeaturesetVersion" } } } @@ -2778,72 +3016,110 @@ export const DataContainerResourceArmPaginatedResult: coreClient.CompositeMapper } }; -export const DataVersionBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const MaterializationSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataVersionBaseResourceArmPaginatedResult", + className: "MaterializationSettings", modelProperties: { - nextLink: { - serializedName: "nextLink", + notification: { + serializedName: "notification", type: { - name: "String" + name: "Composite", + className: "NotificationSetting" } }, - value: { - serializedName: "value", + resource: { + serializedName: "resource", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataVersionBase" - } - } + name: "Composite", + className: "MaterializationComputeResource" + } + }, + schedule: { + serializedName: "schedule", + type: { + name: "Composite", + className: "RecurrenceTrigger" + } + }, + sparkConfiguration: { + serializedName: "sparkConfiguration", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + storeType: { + serializedName: "storeType", + type: { + name: "String" } } } } }; -export const DatastoreResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const NotificationSetting: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatastoreResourceArmPaginatedResult", + className: "NotificationSetting", modelProperties: { - nextLink: { - serializedName: "nextLink", + emailOn: { + serializedName: "emailOn", + nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - value: { - serializedName: "value", + emails: { + serializedName: "emails", + nullable: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "Datastore" + name: "String" } } } + }, + webhooks: { + serializedName: "webhooks", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "Webhook" } } + } } } } }; -export const DatastoreCredentials: coreClient.CompositeMapper = { +export const Webhook: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatastoreCredentials", - uberParent: "DatastoreCredentials", + className: "Webhook", + uberParent: "Webhook", polymorphicDiscriminator: { - serializedName: "credentialsType", - clientName: "credentialsType" + serializedName: "webhookType", + clientName: "webhookType" }, modelProperties: { - credentialsType: { - serializedName: "credentialsType", + eventType: { + serializedName: "eventType", + nullable: true, + type: { + name: "String" + } + }, + webhookType: { + serializedName: "webhookType", required: true, type: { name: "String" @@ -2853,19 +3129,14 @@ export const DatastoreCredentials: coreClient.CompositeMapper = { } }; -export const DatastoreSecrets: coreClient.CompositeMapper = { +export const MaterializationComputeResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatastoreSecrets", - uberParent: "DatastoreSecrets", - polymorphicDiscriminator: { - serializedName: "secretsType", - clientName: "secretsType" - }, + className: "MaterializationComputeResource", modelProperties: { - secretsType: { - serializedName: "secretsType", - required: true, + instanceType: { + serializedName: "instanceType", + nullable: true, type: { name: "String" } @@ -2874,52 +3145,55 @@ export const DatastoreSecrets: coreClient.CompositeMapper = { } }; -export const EnvironmentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const RecurrenceSchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentContainerResourceArmPaginatedResult", + 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: "EnvironmentContainer" + name: "Number" } } } - } - } - } -}; - -export const EnvironmentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EnvironmentVersionResourceArmPaginatedResult", - modelProperties: { - nextLink: { - serializedName: "nextLink", + }, + monthDays: { + serializedName: "monthDays", + nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Number" + } + } } }, - value: { - serializedName: "value", + weekDays: { + serializedName: "weekDays", + nullable: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "EnvironmentVersion" + name: "String" } } } @@ -2928,194 +3202,185 @@ export const EnvironmentVersionResourceArmPaginatedResult: coreClient.CompositeM } }; -export const BuildContext: coreClient.CompositeMapper = { +export const TriggerBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildContext", + className: "TriggerBase", + uberParent: "TriggerBase", + polymorphicDiscriminator: { + serializedName: "triggerType", + clientName: "triggerType" + }, modelProperties: { - contextUri: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "contextUri", - required: true, + endTime: { + serializedName: "endTime", + nullable: true, type: { name: "String" } }, - dockerfilePath: { - defaultValue: "Dockerfile", - serializedName: "dockerfilePath", + startTime: { + serializedName: "startTime", + nullable: true, type: { name: "String" } - } - } - } -}; - -export const InferenceContainerProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "InferenceContainerProperties", - modelProperties: { - livenessRoute: { - serializedName: "livenessRoute", - type: { - name: "Composite", - className: "Route" - } }, - readinessRoute: { - serializedName: "readinessRoute", + timeZone: { + defaultValue: "UTC", + serializedName: "timeZone", type: { - name: "Composite", - className: "Route" + name: "String" } }, - scoringRoute: { - serializedName: "scoringRoute", + triggerType: { + serializedName: "triggerType", + required: true, type: { - name: "Composite", - className: "Route" + name: "String" } } } } }; -export const Route: coreClient.CompositeMapper = { +export const FeaturesetSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Route", + className: "FeaturesetSpecification", modelProperties: { path: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, serializedName: "path", - required: true, + nullable: true, type: { name: "String" } - }, - port: { - serializedName: "port", - required: true, - type: { - name: "Number" - } } } } }; -export const JobBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const FeaturesetVersionBackfillRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobBaseResourceArmPaginatedResult", + className: "FeaturesetVersionBackfillRequest", modelProperties: { - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - }, - value: { - serializedName: "value", + dataAvailabilityStatus: { + serializedName: "dataAvailabilityStatus", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "JobBase" + name: "String" } } } - } - } - } -}; - -export const IdentityConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IdentityConfiguration", - uberParent: "IdentityConfiguration", - polymorphicDiscriminator: { - serializedName: "identityType", - clientName: "identityType" - }, - modelProperties: { - identityType: { - serializedName: "identityType", - required: true, + }, + description: { + serializedName: "description", type: { name: "String" } - } - } - } -}; - -export const JobService: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobService", - modelProperties: { - endpoint: { - serializedName: "endpoint", - nullable: true, + }, + displayName: { + serializedName: "displayName", type: { name: "String" } }, - errorMessage: { - serializedName: "errorMessage", - readOnly: true, - nullable: true, + featureWindow: { + serializedName: "featureWindow", type: { - name: "String" + name: "Composite", + className: "FeatureWindow" } }, - jobServiceType: { - serializedName: "jobServiceType", - nullable: true, + jobId: { + serializedName: "jobId", type: { name: "String" } }, - port: { - serializedName: "port", - nullable: true, + properties: { + serializedName: "properties", type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "String" } } } }, - properties: { - serializedName: "properties", - nullable: true, + resource: { + serializedName: "resource", + type: { + name: "Composite", + className: "MaterializationComputeResource" + } + }, + sparkConfiguration: { + serializedName: "sparkConfiguration", type: { name: "Dictionary", value: { type: { name: "String" } } } }, - status: { - serializedName: "status", - readOnly: true, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const FeatureWindow: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeatureWindow", + modelProperties: { + featureWindowEnd: { + serializedName: "featureWindowEnd", nullable: true, type: { - name: "String" + name: "DateTime" + } + }, + featureWindowStart: { + serializedName: "featureWindowStart", + nullable: true, + type: { + name: "DateTime" } } } } }; -export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const FeaturesetVersionBackfillResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelContainerResourceArmPaginatedResult", + className: "FeaturesetVersionBackfillResponse", + modelProperties: { + jobIds: { + serializedName: "jobIds", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const FeaturestoreEntityContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturestoreEntityContainerResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -3130,7 +3395,7 @@ export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMappe element: { type: { name: "Composite", - className: "ModelContainer" + className: "FeaturestoreEntityContainer" } } } @@ -3139,10 +3404,10 @@ export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMappe } }; -export const ModelVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const FeaturestoreEntityVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelVersionResourceArmPaginatedResult", + className: "FeaturestoreEntityVersionResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -3157,7 +3422,7 @@ export const ModelVersionResourceArmPaginatedResult: coreClient.CompositeMapper element: { type: { name: "Composite", - className: "ModelVersion" + className: "FeaturestoreEntityVersion" } } } @@ -3166,27 +3431,32 @@ export const ModelVersionResourceArmPaginatedResult: coreClient.CompositeMapper } }; -export const FlavorData: coreClient.CompositeMapper = { +export const IndexColumn: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FlavorData", + className: "IndexColumn", modelProperties: { - data: { - serializedName: "data", + columnName: { + serializedName: "columnName", nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" + } + }, + dataType: { + serializedName: "dataType", + type: { + name: "String" } } } } }; -export const OnlineEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const InferencePoolTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointTrackedResourceArmPaginatedResult", + className: "InferencePoolTrackedResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -3201,7 +3471,7 @@ export const OnlineEndpointTrackedResourceArmPaginatedResult: coreClient.Composi element: { type: { name: "Composite", - className: "OnlineEndpoint" + className: "InferencePool" } } } @@ -3210,27 +3480,45 @@ export const OnlineEndpointTrackedResourceArmPaginatedResult: coreClient.Composi } }; -export const OnlineDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const PoolEnvironmentConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineDeploymentTrackedResourceArmPaginatedResult", + 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: "OnlineDeployment" - } - } + 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" } } } @@ -3281,10 +3569,26 @@ export const ProbeSettings: coreClient.CompositeMapper = { } }; -export const OnlineRequestSettings: coreClient.CompositeMapper = { +export const PoolModelConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineRequestSettings", + className: "PoolModelConfiguration", + modelProperties: { + modelId: { + serializedName: "modelId", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const RequestConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RequestConfiguration", modelProperties: { maxConcurrentRequestsPerInstance: { defaultValue: 1, @@ -3293,13 +3597,6 @@ export const OnlineRequestSettings: coreClient.CompositeMapper = { name: "Number" } }, - maxQueueWait: { - defaultValue: "PT0.5S", - serializedName: "maxQueueWait", - type: { - name: "TimeSpan" - } - }, requestTimeout: { defaultValue: "PT5S", serializedName: "requestTimeout", @@ -3311,136 +3608,98 @@ export const OnlineRequestSettings: coreClient.CompositeMapper = { } }; -export const OnlineScaleSettings: coreClient.CompositeMapper = { +export const PropertiesBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineScaleSettings", - uberParent: "OnlineScaleSettings", - polymorphicDiscriminator: { - serializedName: "scaleType", - clientName: "scaleType" - }, + className: "PropertiesBase", modelProperties: { - scaleType: { - serializedName: "scaleType", - required: true, + description: { + serializedName: "description", + nullable: true, type: { name: "String" } + }, + properties: { + serializedName: "properties", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } }; -export const PartialSku: coreClient.CompositeMapper = { +export const PoolStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartialSku", + className: "PoolStatus", modelProperties: { - capacity: { - serializedName: "capacity", + actualCapacity: { + defaultValue: 0, + serializedName: "actualCapacity", type: { name: "Number" } }, - family: { - serializedName: "family", - type: { - name: "String" - } - }, - name: { - serializedName: "name", + groupCount: { + defaultValue: 0, + serializedName: "groupCount", type: { - name: "String" + name: "Number" } }, - size: { - serializedName: "size", + requestedCapacity: { + defaultValue: 0, + serializedName: "requestedCapacity", type: { - name: "String" + name: "Number" } }, - tier: { - serializedName: "tier", + reservedCapacity: { + defaultValue: 0, + serializedName: "reservedCapacity", type: { - name: "Enum", - allowedValues: ["Free", "Basic", "Standard", "Premium"] + name: "Number" } } } } }; -export const DeploymentLogsRequest: coreClient.CompositeMapper = { +export const SkuResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentLogsRequest", + className: "SkuResourceArmPaginatedResult", modelProperties: { - containerType: { - serializedName: "containerType", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - tail: { - serializedName: "tail", - nullable: true, + value: { + serializedName: "value", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SkuResource" + } + } } } } } }; -export const DeploymentLogs: coreClient.CompositeMapper = { +export const SkuResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentLogs", - modelProperties: { - content: { - serializedName: "content", - nullable: true, - type: { - name: "String" - } - } - } - } -}; - -export const SkuResourceArmPaginatedResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SkuResourceArmPaginatedResult", - modelProperties: { - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - }, - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SkuResource" - } - } - } - } - } - } -}; - -export const SkuResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SkuResource", + className: "SkuResource", modelProperties: { capacity: { serializedName: "capacity", @@ -3511,7 +3770,8 @@ export const SkuSetting: coreClient.CompositeMapper = { modelProperties: { name: { constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 }, serializedName: "name", required: true, @@ -3530,70 +3790,131 @@ export const SkuSetting: coreClient.CompositeMapper = { } }; -export const RegenerateEndpointKeysRequest: coreClient.CompositeMapper = { +export const InferenceEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegenerateEndpointKeysRequest", + className: "InferenceEndpointTrackedResourceArmPaginatedResult", modelProperties: { - keyType: { - serializedName: "keyType", - required: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - keyValue: { - serializedName: "keyValue", - nullable: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InferenceEndpoint" + } + } } } } } }; -export const EndpointAuthToken: coreClient.CompositeMapper = { +export const InferenceGroupTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointAuthToken", + className: "InferenceGroupTrackedResourceArmPaginatedResult", modelProperties: { - accessToken: { - serializedName: "accessToken", - nullable: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - expiryTimeUtc: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InferenceGroup" + } + } + } + } + } + } +}; + +export const GroupStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GroupStatus", + modelProperties: { + actualCapacityInfo: { + serializedName: "actualCapacityInfo", + type: { + name: "Composite", + className: "ActualCapacityInfo" + } + }, + bonusExtraCapacity: { defaultValue: 0, - serializedName: "expiryTimeUtc", + serializedName: "bonusExtraCapacity", type: { name: "Number" } }, - refreshAfterTimeUtc: { + endpointCount: { defaultValue: 0, - serializedName: "refreshAfterTimeUtc", + serializedName: "endpointCount", type: { name: "Number" } }, - tokenType: { - serializedName: "tokenType", - nullable: true, + requestedCapacity: { + defaultValue: 0, + serializedName: "requestedCapacity", type: { - name: "String" + name: "Number" } } } } }; -export const ScheduleResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const ActualCapacityInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScheduleResourceArmPaginatedResult", + className: "ActualCapacityInfo", + modelProperties: { + allocated: { + defaultValue: 0, + serializedName: "allocated", + type: { + name: "Number" + } + }, + assignmentFailed: { + defaultValue: 0, + serializedName: "assignmentFailed", + type: { + name: "Number" + } + }, + assignmentSuccess: { + defaultValue: 0, + serializedName: "assignmentSuccess", + type: { + name: "Number" + } + } + } + } +}; + +export const JobBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobBaseResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -3608,7 +3929,7 @@ export const ScheduleResourceArmPaginatedResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Schedule" + className: "JobBase" } } } @@ -3617,18 +3938,18 @@ export const ScheduleResourceArmPaginatedResult: coreClient.CompositeMapper = { } }; -export const ScheduleActionBase: coreClient.CompositeMapper = { +export const IdentityConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScheduleActionBase", - uberParent: "ScheduleActionBase", + className: "IdentityConfiguration", + uberParent: "IdentityConfiguration", polymorphicDiscriminator: { - serializedName: "actionType", - clientName: "actionType" + serializedName: "identityType", + clientName: "identityType" }, modelProperties: { - actionType: { - serializedName: "actionType", + identityType: { + serializedName: "identityType", required: true, type: { name: "String" @@ -3638,96 +3959,82 @@ export const ScheduleActionBase: coreClient.CompositeMapper = { } }; -export const TriggerBase: coreClient.CompositeMapper = { +export const SecretConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TriggerBase", - uberParent: "TriggerBase", - polymorphicDiscriminator: { - serializedName: "triggerType", - clientName: "triggerType" - }, + className: "SecretConfiguration", modelProperties: { - endTime: { - serializedName: "endTime", + uri: { + serializedName: "uri", nullable: true, type: { name: "String" } }, - startTime: { - serializedName: "startTime", + workspaceSecretName: { + serializedName: "workspaceSecretName", nullable: true, type: { name: "String" } - }, - timeZone: { - defaultValue: "UTC", - serializedName: "timeZone", - type: { - name: "String" - } - }, - triggerType: { - serializedName: "triggerType", - required: true, - type: { - name: "String" - } } } } }; -export const ListAmlUserFeatureResult: coreClient.CompositeMapper = { +export const JobService: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListAmlUserFeatureResult", + className: "JobService", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + endpoint: { + serializedName: "endpoint", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AmlUserFeature" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + errorMessage: { + serializedName: "errorMessage", readOnly: true, + nullable: true, type: { name: "String" } - } - } - } -}; - -export const AmlUserFeature: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AmlUserFeature", - modelProperties: { - id: { - serializedName: "id", + }, + jobServiceType: { + serializedName: "jobServiceType", + nullable: true, type: { name: "String" } }, - displayName: { - serializedName: "displayName", + nodes: { + serializedName: "nodes", type: { - name: "String" + name: "Composite", + className: "Nodes" } }, - description: { - serializedName: "description", + 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" } @@ -3736,13 +4043,18 @@ export const AmlUserFeature: coreClient.CompositeMapper = { } }; -export const ResourceId: coreClient.CompositeMapper = { +export const Nodes: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceId", + className: "Nodes", + uberParent: "Nodes", + polymorphicDiscriminator: { + serializedName: "nodesValueType", + clientName: "nodesValueType" + }, modelProperties: { - id: { - serializedName: "id", + nodesValueType: { + serializedName: "nodesValueType", required: true, type: { name: "String" @@ -3752,96 +4064,142 @@ export const ResourceId: coreClient.CompositeMapper = { } }; -export const AKSSchema: coreClient.CompositeMapper = { +export const PartialJobBasePartialResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AKSSchema", + className: "PartialJobBasePartialResource", modelProperties: { properties: { serializedName: "properties", type: { name: "Composite", - className: "AKSSchemaProperties" + className: "PartialJobBase" } } } } }; -export const AKSSchemaProperties: coreClient.CompositeMapper = { +export const PartialJobBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AKSSchemaProperties", + className: "PartialJobBase", modelProperties: { - clusterFqdn: { - serializedName: "clusterFqdn", - nullable: true, + notificationSetting: { + serializedName: "notificationSetting", type: { - name: "String" + name: "Composite", + className: "PartialNotificationSetting" } - }, - systemServices: { - serializedName: "systemServices", - readOnly: true, + } + } + } +}; + +export const PartialNotificationSetting: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialNotificationSetting", + modelProperties: { + webhooks: { + serializedName: "webhooks", nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "Webhook" } } + } + } + } + } +}; + +export const LabelingJobResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelingJobResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SystemService" + className: "LabelingJob" } } } - }, - agentCount: { - constraints: { - InclusiveMinimum: 0 - }, - serializedName: "agentCount", - nullable: true, - type: { - name: "Number" - } - }, - agentVmSize: { - serializedName: "agentVmSize", + } + } + } +}; + +export const LabelingDataConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelingDataConfiguration", + modelProperties: { + dataId: { + serializedName: "dataId", nullable: true, type: { name: "String" } }, - clusterPurpose: { - defaultValue: "FastProd", - serializedName: "clusterPurpose", + incrementalDataRefresh: { + serializedName: "incrementalDataRefresh", type: { name: "String" } - }, - sslConfiguration: { - serializedName: "sslConfiguration", + } + } + } +}; + +export const LabelingJobInstructions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelingJobInstructions", + modelProperties: { + uri: { + serializedName: "uri", + nullable: true, type: { - name: "Composite", - className: "SslConfiguration" + name: "String" } - }, - aksNetworkingConfiguration: { - serializedName: "aksNetworkingConfiguration", + } + } + } +}; + +export const LabelCategory: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelCategory", + modelProperties: { + classes: { + serializedName: "classes", + nullable: true, type: { - name: "Composite", - className: "AksNetworkingConfiguration" + name: "Dictionary", + value: { type: { name: "Composite", className: "LabelClass" } } } }, - loadBalancerType: { - defaultValue: "PublicIp", - serializedName: "loadBalancerType", + displayName: { + serializedName: "displayName", + nullable: true, type: { name: "String" } }, - loadBalancerSubnet: { - serializedName: "loadBalancerSubnet", - nullable: true, + multiSelect: { + serializedName: "multiSelect", type: { name: "String" } @@ -3850,28 +4208,43 @@ export const AKSSchemaProperties: coreClient.CompositeMapper = { } }; -export const SystemService: coreClient.CompositeMapper = { +export const LabelClass: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemService", + className: "LabelClass", modelProperties: { - systemServiceType: { - serializedName: "systemServiceType", - readOnly: true, + displayName: { + serializedName: "displayName", + nullable: true, type: { name: "String" } }, - publicIpAddress: { - serializedName: "publicIpAddress", - readOnly: true, + subclasses: { + serializedName: "subclasses", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "Composite", className: "LabelClass" } } } - }, - version: { - serializedName: "version", - readOnly: true, + } + } + } +}; + +export const LabelingJobMediaProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelingJobMediaProperties", + uberParent: "LabelingJobMediaProperties", + polymorphicDiscriminator: { + serializedName: "mediaType", + clientName: "mediaType" + }, + modelProperties: { + mediaType: { + serializedName: "mediaType", + required: true, type: { name: "String" } @@ -3880,95 +4253,100 @@ export const SystemService: coreClient.CompositeMapper = { } }; -export const SslConfiguration: coreClient.CompositeMapper = { +export const MLAssistConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SslConfiguration", + className: "MLAssistConfiguration", + uberParent: "MLAssistConfiguration", + polymorphicDiscriminator: { + serializedName: "mlAssist", + clientName: "mlAssist" + }, modelProperties: { - status: { - serializedName: "status", + mlAssist: { + serializedName: "mlAssist", + required: true, type: { name: "String" } - }, - cert: { - serializedName: "cert", + } + } + } +}; + +export const ProgressMetrics: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProgressMetrics", + modelProperties: { + completedDatapointCount: { + serializedName: "completedDatapointCount", + readOnly: true, nullable: true, type: { - name: "String" + name: "Number" } }, - key: { - serializedName: "key", + incrementalDataLastRefreshDateTime: { + serializedName: "incrementalDataLastRefreshDateTime", + readOnly: true, nullable: true, type: { - name: "String" + name: "DateTime" } }, - cname: { - serializedName: "cname", + skippedDatapointCount: { + serializedName: "skippedDatapointCount", + readOnly: true, nullable: true, type: { - name: "String" + name: "Number" } }, - leafDomainLabel: { - serializedName: "leafDomainLabel", + totalDatapointCount: { + serializedName: "totalDatapointCount", + readOnly: true, nullable: true, type: { - name: "String" - } - }, - overwriteExistingDomain: { - serializedName: "overwriteExistingDomain", - type: { - name: "Boolean" + name: "Number" } } } } }; -export const AksNetworkingConfiguration: coreClient.CompositeMapper = { +export const StatusMessage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AksNetworkingConfiguration", + className: "StatusMessage", modelProperties: { - subnetId: { - serializedName: "subnetId", + code: { + serializedName: "code", + readOnly: true, + nullable: true, 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", + createdDateTime: { + serializedName: "createdDateTime", + readOnly: true, + nullable: true, type: { - name: "String" + name: "DateTime" } }, - 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", + level: { + serializedName: "level", + readOnly: true, 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", + message: { + serializedName: "message", + readOnly: true, + nullable: true, type: { name: "String" } @@ -3977,276 +4355,242 @@ export const AksNetworkingConfiguration: coreClient.CompositeMapper = { } }; -export const KubernetesSchema: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "KubernetesSchema", - modelProperties: { - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "KubernetesProperties" - } - } - } - } -}; - -export const KubernetesProperties: coreClient.CompositeMapper = { +export const ExportSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KubernetesProperties", + className: "ExportSummary", + uberParent: "ExportSummary", + polymorphicDiscriminator: { + serializedName: "format", + clientName: "format" + }, modelProperties: { - relayConnectionString: { - serializedName: "relayConnectionString", + endDateTime: { + serializedName: "endDateTime", + readOnly: true, nullable: true, type: { - name: "String" + name: "DateTime" } }, - serviceBusConnectionString: { - serializedName: "serviceBusConnectionString", + exportedRowCount: { + serializedName: "exportedRowCount", + readOnly: true, nullable: true, type: { - name: "String" + name: "Number" } }, - extensionPrincipalId: { - serializedName: "extensionPrincipalId", - nullable: true, + format: { + serializedName: "format", + required: true, type: { name: "String" } }, - extensionInstanceReleaseTrain: { - serializedName: "extensionInstanceReleaseTrain", + labelingJobId: { + serializedName: "labelingJobId", + readOnly: true, + nullable: true, type: { name: "String" } }, - vcName: { - serializedName: "vcName", + startDateTime: { + serializedName: "startDateTime", + readOnly: true, + nullable: true, type: { - name: "String" - } - }, - namespace: { - defaultValue: "default", - serializedName: "namespace", - type: { - name: "String" - } - }, - defaultInstanceType: { - serializedName: "defaultInstanceType", - type: { - name: "String" - } - }, - instanceTypes: { - serializedName: "instanceTypes", - type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "InstanceTypeSchema" } - } + name: "DateTime" } } } } }; -export const InstanceTypeSchema: coreClient.CompositeMapper = { +export const OnlineEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceTypeSchema", + className: "OnlineEndpointTrackedResourceArmPaginatedResult", 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: "OnlineEndpoint" + } + } } } } } }; -export const InstanceTypeSchemaResources: coreClient.CompositeMapper = { +export const OnlineDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceTypeSchemaResources", + className: "OnlineDeploymentTrackedResourceArmPaginatedResult", modelProperties: { - requests: { - serializedName: "requests", + nextLink: { + serializedName: "nextLink", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - limits: { - serializedName: "limits", + value: { + serializedName: "value", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OnlineDeployment" + } + } } } } } }; -export const AmlComputeProperties: coreClient.CompositeMapper = { +export const DataCollector: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeProperties", + className: "DataCollector", modelProperties: { - osType: { - defaultValue: "Linux", - serializedName: "osType", - type: { - name: "String" - } - }, - vmSize: { - serializedName: "vmSize", - type: { - name: "String" - } - }, - vmPriority: { - serializedName: "vmPriority", - type: { - name: "String" - } - }, - virtualMachineImage: { - serializedName: "virtualMachineImage", - type: { - name: "Composite", - className: "VirtualMachineImage" - } - }, - isolatedNetwork: { - serializedName: "isolatedNetwork", + collections: { + serializedName: "collections", + required: true, type: { - name: "Boolean" + name: "Dictionary", + value: { type: { name: "Composite", className: "Collection" } } } }, - scaleSettings: { - serializedName: "scaleSettings", + requestLogging: { + serializedName: "requestLogging", type: { name: "Composite", - className: "ScaleSettings" + className: "RequestLogging" } }, - userAccountCredentials: { - serializedName: "userAccountCredentials", + rollingRate: { + serializedName: "rollingRate", type: { - name: "Composite", - className: "UserAccountCredentials" + name: "String" } - }, - subnet: { - serializedName: "subnet", + } + } + } +}; + +export const Collection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Collection", + modelProperties: { + clientId: { + serializedName: "clientId", + nullable: true, type: { - name: "Composite", - className: "ResourceId" + name: "String" } }, - remoteLoginPortPublicAccess: { - defaultValue: "NotSpecified", - serializedName: "remoteLoginPortPublicAccess", + dataCollectionMode: { + serializedName: "dataCollectionMode", type: { name: "String" } }, - allocationState: { - serializedName: "allocationState", - readOnly: true, + dataId: { + serializedName: "dataId", + nullable: true, type: { name: "String" } }, - allocationStateTransitionTime: { - serializedName: "allocationStateTransitionTime", - readOnly: true, + samplingRate: { + defaultValue: 1, + serializedName: "samplingRate", type: { - name: "DateTime" + name: "Number" } - }, - errors: { - serializedName: "errors", - readOnly: true, + } + } + } +}; + +export const RequestLogging: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RequestLogging", + modelProperties: { + captureHeaders: { + serializedName: "captureHeaders", nullable: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ErrorResponse" + name: "String" } } } - }, - currentNodeCount: { - serializedName: "currentNodeCount", - readOnly: true, - nullable: true, - type: { - name: "Number" - } - }, - targetNodeCount: { - serializedName: "targetNodeCount", - readOnly: true, - nullable: true, + } + } + } +}; + +export const OnlineRequestSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineRequestSettings", + modelProperties: { + maxConcurrentRequestsPerInstance: { + defaultValue: 1, + serializedName: "maxConcurrentRequestsPerInstance", type: { name: "Number" } }, - nodeStateCounts: { - serializedName: "nodeStateCounts", - type: { - name: "Composite", - className: "NodeStateCounts" - } - }, - enableNodePublicIp: { - defaultValue: true, - serializedName: "enableNodePublicIp", - nullable: true, + maxQueueWait: { + defaultValue: "PT0.5S", + serializedName: "maxQueueWait", type: { - name: "Boolean" + name: "TimeSpan" } }, - propertyBag: { - serializedName: "propertyBag", - nullable: true, + requestTimeout: { + defaultValue: "PT5S", + serializedName: "requestTimeout", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "TimeSpan" } } } } }; -export const VirtualMachineImage: coreClient.CompositeMapper = { +export const OnlineScaleSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineImage", + className: "OnlineScaleSettings", + uberParent: "OnlineScaleSettings", + polymorphicDiscriminator: { + serializedName: "scaleType", + clientName: "scaleType" + }, modelProperties: { - id: { - serializedName: "id", + scaleType: { + serializedName: "scaleType", required: true, type: { name: "String" @@ -4256,26 +4600,36 @@ export const VirtualMachineImage: coreClient.CompositeMapper = { } }; -export const UserAccountCredentials: coreClient.CompositeMapper = { +export const DeploymentLogsRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserAccountCredentials", + className: "DeploymentLogsRequest", modelProperties: { - adminUserName: { - serializedName: "adminUserName", - required: true, + containerType: { + serializedName: "containerType", type: { name: "String" } }, - adminUserSshPublicKey: { - serializedName: "adminUserSshPublicKey", + tail: { + serializedName: "tail", + nullable: true, type: { - name: "String" + name: "Number" } - }, - adminUserPassword: { - serializedName: "adminUserPassword", + } + } + } +}; + +export const DeploymentLogs: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeploymentLogs", + modelProperties: { + content: { + serializedName: "content", + nullable: true, type: { name: "String" } @@ -4284,275 +4638,345 @@ export const UserAccountCredentials: coreClient.CompositeMapper = { } }; -export const NodeStateCounts: coreClient.CompositeMapper = { +export const RegenerateEndpointKeysRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NodeStateCounts", + className: "RegenerateEndpointKeysRequest", modelProperties: { - idleNodeCount: { - serializedName: "idleNodeCount", - readOnly: true, - type: { - name: "Number" + keyType: { + serializedName: "keyType", + required: true, + type: { + name: "String" } }, - runningNodeCount: { - serializedName: "runningNodeCount", - readOnly: true, + keyValue: { + serializedName: "keyValue", + nullable: true, type: { - name: "Number" + name: "String" } - }, - preparingNodeCount: { - serializedName: "preparingNodeCount", - readOnly: true, + } + } + } +}; + +export const EndpointAuthToken: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointAuthToken", + modelProperties: { + accessToken: { + serializedName: "accessToken", + nullable: true, type: { - name: "Number" + name: "String" } }, - unusableNodeCount: { - serializedName: "unusableNodeCount", - readOnly: true, + expiryTimeUtc: { + defaultValue: 0, + serializedName: "expiryTimeUtc", type: { name: "Number" } }, - leavingNodeCount: { - serializedName: "leavingNodeCount", - readOnly: true, + refreshAfterTimeUtc: { + defaultValue: 0, + serializedName: "refreshAfterTimeUtc", type: { name: "Number" } }, - preemptedNodeCount: { - serializedName: "preemptedNodeCount", - readOnly: true, + tokenType: { + serializedName: "tokenType", + nullable: true, type: { - name: "Number" + name: "String" } } } } }; -export const AmlComputeSchema: coreClient.CompositeMapper = { +export const ScheduleResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeSchema", + className: "ScheduleResourceArmPaginatedResult", modelProperties: { - properties: { - serializedName: "properties", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "AmlComputeProperties" + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Schedule" + } + } } } } } }; -export const ComputeInstanceProperties: coreClient.CompositeMapper = { +export const ScheduleActionBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceProperties", + className: "ScheduleActionBase", + uberParent: "ScheduleActionBase", + polymorphicDiscriminator: { + serializedName: "actionType", + clientName: "actionType" + }, modelProperties: { - vmSize: { - serializedName: "vmSize", + actionType: { + serializedName: "actionType", + required: true, type: { name: "String" } - }, - subnet: { - serializedName: "subnet", - type: { - name: "Composite", - className: "ResourceId" - } - }, - applicationSharingPolicy: { - defaultValue: "Shared", - serializedName: "applicationSharingPolicy", + } + } + } +}; + +export const ServerlessEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerlessEndpointTrackedResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - sshSettings: { - serializedName: "sshSettings", - type: { - name: "Composite", - className: "ComputeInstanceSshSettings" - } - }, - connectivityEndpoints: { - serializedName: "connectivityEndpoints", - type: { - name: "Composite", - className: "ComputeInstanceConnectivityEndpoints" - } - }, - applications: { - serializedName: "applications", - readOnly: true, + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ComputeInstanceApplication" + className: "ServerlessEndpoint" } } } + } + } + } +}; + +export const ServerlessEndpointProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerlessEndpointProperties", + modelProperties: { + authMode: { + serializedName: "authMode", + type: { + name: "String" + } }, - createdBy: { - serializedName: "createdBy", + capacityReservation: { + serializedName: "capacityReservation", type: { name: "Composite", - className: "ComputeInstanceCreatedBy" + className: "ServerlessEndpointCapacityReservation" } }, - errors: { - serializedName: "errors", - readOnly: true, + inferenceEndpoint: { + serializedName: "inferenceEndpoint", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorResponse" - } - } + name: "Composite", + className: "ServerlessInferenceEndpoint" } }, - state: { - serializedName: "state", + offer: { + serializedName: "offer", + type: { + name: "Composite", + className: "ServerlessOffer" + } + }, + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { name: "String" } - }, - computeInstanceAuthorizationType: { - defaultValue: "personal", - serializedName: "computeInstanceAuthorizationType", - nullable: true, + } + } + } +}; + +export const ServerlessEndpointCapacityReservation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerlessEndpointCapacityReservation", + modelProperties: { + capacityReservationGroupId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "capacityReservationGroupId", + required: true, type: { name: "String" } }, - personalComputeInstanceSettings: { - serializedName: "personalComputeInstanceSettings", + endpointReservedCapacity: { + serializedName: "endpointReservedCapacity", + nullable: true, type: { - name: "Composite", - className: "PersonalComputeInstanceSettings" + name: "Number" } - }, - setupScripts: { - serializedName: "setupScripts", + } + } + } +}; + +export const ServerlessInferenceEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerlessInferenceEndpoint", + modelProperties: { + headers: { + serializedName: "headers", + readOnly: true, + nullable: true, type: { - name: "Composite", - className: "SetupScripts" + name: "Dictionary", + value: { type: { name: "String" } } } }, - lastOperation: { - serializedName: "lastOperation", + uri: { + serializedName: "uri", + required: true, type: { - name: "Composite", - className: "ComputeInstanceLastOperation" + name: "String" } - }, - schedules: { - serializedName: "schedules", + } + } + } +}; + +export const ServerlessEndpointStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerlessEndpointStatus", + modelProperties: { + metrics: { + serializedName: "metrics", + readOnly: true, + nullable: true, type: { - name: "Composite", - className: "ComputeSchedules" + name: "Dictionary", + value: { type: { name: "String" } } } - }, - enableNodePublicIp: { - serializedName: "enableNodePublicIp", + } + } + } +}; + +export const RegistryTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryTrackedResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", type: { - name: "Boolean" + name: "String" } }, - containers: { - serializedName: "containers", - readOnly: true, - nullable: true, + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ComputeInstanceContainer" + className: "Registry" } } } - }, - dataDisks: { - serializedName: "dataDisks", - readOnly: true, - nullable: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeInstanceDataDisk" - } - } - } - }, - dataMounts: { - serializedName: "dataMounts", - readOnly: true, + } + } + } +}; + +export const ArmResourceId: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ArmResourceId", + modelProperties: { + resourceId: { + serializedName: "resourceId", nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeInstanceDataMount" - } - } - } - }, - versions: { - serializedName: "versions", - type: { - name: "Composite", - className: "ComputeInstanceVersion" + name: "String" } } } } }; -export const ComputeInstanceSshSettings: coreClient.CompositeMapper = { +export const RegistryPrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceSshSettings", + className: "RegistryPrivateEndpointConnection", modelProperties: { - sshPublicAccess: { - defaultValue: "Disabled", - serializedName: "sshPublicAccess", + id: { + serializedName: "id", + nullable: true, type: { name: "String" } }, - adminUserName: { - serializedName: "adminUserName", - readOnly: true, + location: { + serializedName: "location", + nullable: true, type: { name: "String" } }, - sshPort: { - serializedName: "sshPort", - readOnly: true, + groupIds: { + serializedName: "properties.groupIds", + nullable: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - adminPublicKey: { - serializedName: "adminPublicKey", + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpointResource" + } + }, + registryPrivateLinkServiceConnectionState: { + serializedName: "properties.registryPrivateLinkServiceConnectionState", + type: { + name: "Composite", + className: "RegistryPrivateLinkServiceConnectionState" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + nullable: true, type: { name: "String" } @@ -4561,23 +4985,14 @@ export const ComputeInstanceSshSettings: coreClient.CompositeMapper = { } }; -export const ComputeInstanceConnectivityEndpoints: coreClient.CompositeMapper = { +export const PrivateEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceConnectivityEndpoints", + className: "PrivateEndpoint", modelProperties: { - publicIpAddress: { - serializedName: "publicIpAddress", - readOnly: true, - nullable: true, - type: { - name: "String" - } - }, - privateIpAddress: { - serializedName: "privateIpAddress", + id: { + serializedName: "id", readOnly: true, - nullable: true, type: { name: "String" } @@ -4586,19 +5001,27 @@ export const ComputeInstanceConnectivityEndpoints: coreClient.CompositeMapper = } }; -export const ComputeInstanceApplication: coreClient.CompositeMapper = { +export const RegistryPrivateLinkServiceConnectionState: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceApplication", + className: "RegistryPrivateLinkServiceConnectionState", modelProperties: { - displayName: { - serializedName: "displayName", + actionsRequired: { + serializedName: "actionsRequired", + nullable: true, type: { name: "String" } }, - endpointUri: { - serializedName: "endpointUri", + description: { + serializedName: "description", + nullable: true, + type: { + name: "String" + } + }, + status: { + serializedName: "status", type: { name: "String" } @@ -4607,141 +5030,174 @@ export const ComputeInstanceApplication: coreClient.CompositeMapper = { } }; -export const ComputeInstanceCreatedBy: coreClient.CompositeMapper = { +export const RegistryRegionArmDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceCreatedBy", + className: "RegistryRegionArmDetails", modelProperties: { - userName: { - serializedName: "userName", - readOnly: true, + acrDetails: { + serializedName: "acrDetails", nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AcrDetails" + } + } } }, - userOrgId: { - serializedName: "userOrgId", - readOnly: true, + location: { + serializedName: "location", + nullable: true, type: { name: "String" } }, - userId: { - serializedName: "userId", - readOnly: true, + storageAccountDetails: { + serializedName: "storageAccountDetails", nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageAccountDetails" + } + } } } } } }; -export const PersonalComputeInstanceSettings: coreClient.CompositeMapper = { +export const AcrDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PersonalComputeInstanceSettings", + className: "AcrDetails", modelProperties: { - assignedUser: { - serializedName: "assignedUser", + systemCreatedAcrAccount: { + serializedName: "systemCreatedAcrAccount", type: { name: "Composite", - className: "AssignedUser" + className: "SystemCreatedAcrAccount" + } + }, + userCreatedAcrAccount: { + serializedName: "userCreatedAcrAccount", + type: { + name: "Composite", + className: "UserCreatedAcrAccount" } } } } }; -export const AssignedUser: coreClient.CompositeMapper = { +export const SystemCreatedAcrAccount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssignedUser", + className: "SystemCreatedAcrAccount", modelProperties: { - objectId: { - serializedName: "objectId", - required: true, + acrAccountName: { + serializedName: "acrAccountName", + nullable: true, type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", - required: true, + acrAccountSku: { + serializedName: "acrAccountSku", + nullable: true, type: { name: "String" } + }, + armResourceId: { + serializedName: "armResourceId", + type: { + name: "Composite", + className: "ArmResourceId" + } } } } }; -export const SetupScripts: coreClient.CompositeMapper = { +export const UserCreatedAcrAccount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SetupScripts", + className: "UserCreatedAcrAccount", modelProperties: { - scripts: { - serializedName: "scripts", + armResourceId: { + serializedName: "armResourceId", type: { name: "Composite", - className: "ScriptsToExecute" + className: "ArmResourceId" } } } } }; -export const ScriptsToExecute: coreClient.CompositeMapper = { +export const StorageAccountDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScriptsToExecute", + className: "StorageAccountDetails", modelProperties: { - startupScript: { - serializedName: "startupScript", + systemCreatedStorageAccount: { + serializedName: "systemCreatedStorageAccount", type: { name: "Composite", - className: "ScriptReference" + className: "SystemCreatedStorageAccount" } }, - creationScript: { - serializedName: "creationScript", + userCreatedStorageAccount: { + serializedName: "userCreatedStorageAccount", type: { name: "Composite", - className: "ScriptReference" + className: "UserCreatedStorageAccount" } } } } }; -export const ScriptReference: coreClient.CompositeMapper = { +export const SystemCreatedStorageAccount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScriptReference", + className: "SystemCreatedStorageAccount", modelProperties: { - scriptSource: { - serializedName: "scriptSource", + allowBlobPublicAccess: { + serializedName: "allowBlobPublicAccess", type: { - name: "String" + name: "Boolean" } }, - scriptData: { - serializedName: "scriptData", + armResourceId: { + serializedName: "armResourceId", type: { - name: "String" + name: "Composite", + className: "ArmResourceId" } }, - scriptArguments: { - serializedName: "scriptArguments", + storageAccountHnsEnabled: { + serializedName: "storageAccountHnsEnabled", + type: { + name: "Boolean" + } + }, + storageAccountName: { + serializedName: "storageAccountName", + nullable: true, type: { name: "String" } }, - timeout: { - serializedName: "timeout", + storageAccountType: { + serializedName: "storageAccountType", + nullable: true, type: { name: "String" } @@ -4750,274 +5206,300 @@ export const ScriptReference: coreClient.CompositeMapper = { } }; -export const ComputeInstanceLastOperation: coreClient.CompositeMapper = { +export const UserCreatedStorageAccount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceLastOperation", + className: "UserCreatedStorageAccount", modelProperties: { - operationName: { - serializedName: "operationName", + armResourceId: { + serializedName: "armResourceId", type: { - name: "String" + name: "Composite", + className: "ArmResourceId" } - }, - operationTime: { - serializedName: "operationTime", + } + } + } +}; + +export const PartialRegistryPartialTrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialRegistryPartialTrackedResource", + modelProperties: { + identity: { + serializedName: "identity", type: { - name: "DateTime" + name: "Composite", + className: "RegistryPartialManagedServiceIdentity" } }, - operationStatus: { - serializedName: "operationStatus", + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "PartialSku" } }, - operationTrigger: { - serializedName: "operationTrigger", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const ComputeSchedules: coreClient.CompositeMapper = { +export const ListAmlUserFeatureResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeSchedules", + className: "ListAmlUserFeatureResult", modelProperties: { - computeStartStop: { - serializedName: "computeStartStop", + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ComputeStartStopSchedule" + className: "AmlUserFeature" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const ComputeStartStopSchedule: coreClient.CompositeMapper = { +export const AmlUserFeature: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeStartStopSchedule", + className: "AmlUserFeature", modelProperties: { id: { serializedName: "id", - readOnly: true, - nullable: true, type: { name: "String" } }, - provisioningStatus: { - serializedName: "provisioningStatus", - readOnly: true, + displayName: { + serializedName: "displayName", type: { name: "String" } }, - status: { - serializedName: "status", + description: { + serializedName: "description", type: { name: "String" } + } + } + } +}; + +export const OperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } }, - action: { - serializedName: "action", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - triggerType: { - serializedName: "triggerType", + } + } + } +}; + +export const Operation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - recurrence: { - serializedName: "recurrence", + isDataAction: { + serializedName: "isDataAction", + readOnly: true, type: { - name: "Composite", - className: "RecurrenceTrigger" + name: "Boolean" } }, - cron: { - serializedName: "cron", + display: { + serializedName: "display", type: { name: "Composite", - className: "CronTrigger" + className: "OperationDisplay" } }, - schedule: { - serializedName: "schedule", + origin: { + serializedName: "origin", + readOnly: true, type: { - name: "Composite", - className: "ScheduleBase" + name: "String" + } + }, + actionType: { + serializedName: "actionType", + readOnly: true, + type: { + name: "String" } } } } }; -export const RecurrenceSchedule: coreClient.CompositeMapper = { +export const OperationDisplay: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecurrenceSchedule", + className: "OperationDisplay", modelProperties: { - hours: { - serializedName: "hours", - required: true, + provider: { + serializedName: "provider", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Number" - } - } + name: "String" } }, - minutes: { - serializedName: "minutes", - required: true, + resource: { + serializedName: "resource", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Number" - } - } + name: "String" } }, - monthDays: { - serializedName: "monthDays", - nullable: true, + operation: { + serializedName: "operation", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Number" - } - } + name: "String" } }, - weekDays: { - serializedName: "weekDays", - nullable: true, + description: { + serializedName: "description", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const ScheduleBase: coreClient.CompositeMapper = { +export const WorkspaceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScheduleBase", + className: "WorkspaceListResult", modelProperties: { - id: { - serializedName: "id", - nullable: true, - type: { - name: "String" - } - }, - provisioningStatus: { - serializedName: "provisioningStatus", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - status: { - serializedName: "status", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Workspace" + } + } } } } } }; -export const ComputeInstanceContainer: coreClient.CompositeMapper = { +export const EncryptionProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceContainer", + className: "EncryptionProperty", modelProperties: { - name: { - serializedName: "name", + cosmosDbResourceId: { + serializedName: "cosmosDbResourceId", type: { name: "String" } }, - autosave: { - serializedName: "autosave", + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "IdentityForCmk" } }, - gpu: { - serializedName: "gpu", + keyVaultProperties: { + serializedName: "keyVaultProperties", type: { - name: "String" + name: "Composite", + className: "KeyVaultProperties" } }, - network: { - serializedName: "network", + searchAccountResourceId: { + serializedName: "searchAccountResourceId", type: { name: "String" } }, - environment: { - serializedName: "environment", + status: { + serializedName: "status", + required: true, type: { - name: "Composite", - className: "ComputeInstanceEnvironmentInfo" + name: "String" } }, - services: { - serializedName: "services", - readOnly: true, + storageAccountResourceId: { + serializedName: "storageAccountResourceId", type: { - name: "Sequence", - element: { - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } + name: "String" } } } } }; -export const ComputeInstanceEnvironmentInfo: coreClient.CompositeMapper = { +export const IdentityForCmk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceEnvironmentInfo", + className: "IdentityForCmk", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - version: { - serializedName: "version", + userAssignedIdentity: { + serializedName: "userAssignedIdentity", type: { name: "String" } @@ -5026,32 +5508,35 @@ export const ComputeInstanceEnvironmentInfo: coreClient.CompositeMapper = { } }; -export const ComputeInstanceDataDisk: coreClient.CompositeMapper = { +export const KeyVaultProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceDataDisk", + className: "KeyVaultProperties", modelProperties: { - caching: { - serializedName: "caching", + identityClientId: { + serializedName: "identityClientId", type: { name: "String" } }, - diskSizeGB: { - serializedName: "diskSizeGB", - type: { - name: "Number" - } - }, - lun: { - serializedName: "lun", + keyIdentifier: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "keyIdentifier", + required: true, type: { - name: "Number" + name: "String" } }, - storageAccountType: { - defaultValue: "Standard_LRS", - serializedName: "storageAccountType", + keyVaultArmId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "keyVaultArmId", + required: true, type: { name: "String" } @@ -5060,188 +5545,177 @@ export const ComputeInstanceDataDisk: coreClient.CompositeMapper = { } }; -export const ComputeInstanceDataMount: coreClient.CompositeMapper = { +export const FeatureStoreSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceDataMount", + className: "FeatureStoreSettings", modelProperties: { - source: { - serializedName: "source", + computeRuntime: { + serializedName: "computeRuntime", type: { - name: "String" + name: "Composite", + className: "ComputeRuntimeDto" } }, - sourceType: { - serializedName: "sourceType", + offlineStoreConnectionName: { + serializedName: "offlineStoreConnectionName", type: { name: "String" } }, - mountName: { - serializedName: "mountName", + onlineStoreConnectionName: { + serializedName: "onlineStoreConnectionName", type: { name: "String" } - }, - mountAction: { - serializedName: "mountAction", + } + } + } +}; + +export const ComputeRuntimeDto: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeRuntimeDto", + modelProperties: { + sparkRuntimeVersion: { + serializedName: "sparkRuntimeVersion", type: { name: "String" } - }, - createdBy: { - serializedName: "createdBy", + } + } + } +}; + +export const ManagedNetworkSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedNetworkSettings", + modelProperties: { + isolationMode: { + serializedName: "isolationMode", type: { name: "String" } }, - mountPath: { - serializedName: "mountPath", + networkId: { + serializedName: "networkId", + readOnly: true, type: { name: "String" } }, - mountState: { - serializedName: "mountState", + outboundRules: { + serializedName: "outboundRules", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "Composite", className: "OutboundRule" } } } }, - mountedOn: { - serializedName: "mountedOn", + status: { + serializedName: "status", type: { - name: "DateTime" + name: "Composite", + className: "ManagedNetworkProvisionStatus" } }, - error: { - serializedName: "error", + changeableIsolationModes: { + serializedName: "changeableIsolationModes", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ComputeInstanceVersion: coreClient.CompositeMapper = { +export const OutboundRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceVersion", + className: "OutboundRule", + uberParent: "OutboundRule", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, modelProperties: { - runtime: { - serializedName: "runtime", - nullable: true, + category: { + serializedName: "category", type: { name: "String" } - } - } - } -}; - -export const ComputeInstanceSchema: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeInstanceSchema", - modelProperties: { - properties: { - serializedName: "properties", + }, + status: { + serializedName: "status", type: { - name: "Composite", - className: "ComputeInstanceProperties" + name: "String" } - } - } - } -}; - -export const VirtualMachineSchema: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineSchema", - modelProperties: { - properties: { - serializedName: "properties", + }, + type: { + serializedName: "type", + required: true, type: { - name: "Composite", - className: "VirtualMachineSchemaProperties" + name: "String" } } } } }; -export const VirtualMachineSchemaProperties: coreClient.CompositeMapper = { +export const ManagedNetworkProvisionStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSchemaProperties", + className: "ManagedNetworkProvisionStatus", modelProperties: { - virtualMachineSize: { - serializedName: "virtualMachineSize", - type: { - name: "String" - } - }, - sshPort: { - serializedName: "sshPort", - type: { - name: "Number" - } - }, - notebookServerPort: { - serializedName: "notebookServerPort", + sparkReady: { + serializedName: "sparkReady", type: { - name: "Number" + name: "Boolean" } }, - address: { - serializedName: "address", + status: { + serializedName: "status", type: { name: "String" } - }, - administratorAccount: { - serializedName: "administratorAccount", - type: { - name: "Composite", - className: "VirtualMachineSshCredentials" - } - }, - isNotebookInstanceCompute: { - serializedName: "isNotebookInstanceCompute", - type: { - name: "Boolean" - } } } } }; -export const VirtualMachineSshCredentials: coreClient.CompositeMapper = { +export const NotebookResourceInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSshCredentials", + className: "NotebookResourceInfo", modelProperties: { - username: { - serializedName: "username", + fqdn: { + serializedName: "fqdn", type: { name: "String" } }, - password: { - serializedName: "password", + isPrivateLinkEnabled: { + serializedName: "isPrivateLinkEnabled", type: { - name: "String" + name: "Boolean" } }, - publicKeyData: { - serializedName: "publicKeyData", + notebookPreparationError: { + serializedName: "notebookPreparationError", type: { - name: "String" + name: "Composite", + className: "NotebookPreparationError" } }, - privateKeyData: { - serializedName: "privateKeyData", + resourceId: { + serializedName: "resourceId", type: { name: "String" } @@ -5250,63 +5724,69 @@ export const VirtualMachineSshCredentials: coreClient.CompositeMapper = { } }; -export const HDInsightProperties: coreClient.CompositeMapper = { +export const NotebookPreparationError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HDInsightProperties", + className: "NotebookPreparationError", modelProperties: { - sshPort: { - serializedName: "sshPort", - type: { - name: "Number" - } - }, - address: { - serializedName: "address", + errorMessage: { + serializedName: "errorMessage", type: { name: "String" } }, - administratorAccount: { - serializedName: "administratorAccount", + statusCode: { + serializedName: "statusCode", type: { - name: "Composite", - className: "VirtualMachineSshCredentials" + name: "Number" } } } } }; -export const HDInsightSchema: coreClient.CompositeMapper = { +export const WorkspacePrivateEndpointResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HDInsightSchema", + className: "WorkspacePrivateEndpointResource", modelProperties: { - properties: { - serializedName: "properties", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Composite", - className: "HDInsightProperties" + name: "String" + } + }, + subnetArmId: { + serializedName: "subnetArmId", + readOnly: true, + type: { + name: "String" } } } } }; -export const DatabricksProperties: coreClient.CompositeMapper = { +export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabricksProperties", + className: "PrivateLinkServiceConnectionState", modelProperties: { - databricksAccessToken: { - serializedName: "databricksAccessToken", + actionsRequired: { + serializedName: "actionsRequired", type: { name: "String" } }, - workspaceUrl: { - serializedName: "workspaceUrl", + description: { + serializedName: "description", + type: { + name: "String" + } + }, + status: { + serializedName: "status", type: { name: "String" } @@ -5315,223 +5795,276 @@ export const DatabricksProperties: coreClient.CompositeMapper = { } }; -export const DatabricksSchema: coreClient.CompositeMapper = { +export const ServerlessComputeSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabricksSchema", + className: "ServerlessComputeSettings", modelProperties: { - properties: { - serializedName: "properties", + serverlessComputeCustomSubnet: { + serializedName: "serverlessComputeCustomSubnet", type: { - name: "Composite", - className: "DatabricksProperties" + name: "String" + } + }, + serverlessComputeNoPublicIP: { + serializedName: "serverlessComputeNoPublicIP", + type: { + name: "Boolean" } } } } }; -export const DataLakeAnalyticsSchema: coreClient.CompositeMapper = { +export const ServiceManagedResourcesSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataLakeAnalyticsSchema", + className: "ServiceManagedResourcesSettings", modelProperties: { - properties: { - serializedName: "properties", + cosmosDb: { + serializedName: "cosmosDb", type: { name: "Composite", - className: "DataLakeAnalyticsSchemaProperties" + className: "CosmosDbSettings" } } } } }; -export const DataLakeAnalyticsSchemaProperties: coreClient.CompositeMapper = { +export const CosmosDbSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataLakeAnalyticsSchemaProperties", + className: "CosmosDbSettings", modelProperties: { - dataLakeStoreAccountName: { - serializedName: "dataLakeStoreAccountName", + collectionsThroughput: { + serializedName: "collectionsThroughput", type: { - name: "String" + name: "Number" } } } } }; -export const SynapseSparkProperties: coreClient.CompositeMapper = { +export const SharedPrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SynapseSparkProperties", + className: "SharedPrivateLinkResource", modelProperties: { - autoScaleProperties: { - serializedName: "autoScaleProperties", + name: { + serializedName: "name", type: { - name: "Composite", - className: "AutoScaleProperties" + name: "String" } }, - autoPauseProperties: { - serializedName: "autoPauseProperties", + groupId: { + serializedName: "properties.groupId", type: { - name: "Composite", - className: "AutoPauseProperties" + name: "String" } }, - sparkVersion: { - serializedName: "sparkVersion", + privateLinkResourceId: { + serializedName: "properties.privateLinkResourceId", type: { name: "String" } }, - nodeCount: { - serializedName: "nodeCount", + requestMessage: { + serializedName: "properties.requestMessage", type: { - name: "Number" + name: "String" } }, - nodeSize: { - serializedName: "nodeSize", + status: { + serializedName: "properties.status", type: { name: "String" } + } + } + } +}; + +export const WorkspaceHubConfig: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceHubConfig", + modelProperties: { + additionalWorkspaceStorageAccounts: { + serializedName: "additionalWorkspaceStorageAccounts", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } }, - nodeSizeFamily: { - serializedName: "nodeSizeFamily", + defaultWorkspaceResourceGroup: { + serializedName: "defaultWorkspaceResourceGroup", type: { name: "String" } + } + } + } +}; + +export const WorkspaceUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceUpdateParameters", + modelProperties: { + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } }, - subscriptionId: { - serializedName: "subscriptionId", + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - resourceGroup: { - serializedName: "resourceGroup", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - workspaceName: { - serializedName: "workspaceName", + applicationInsights: { + serializedName: "properties.applicationInsights", type: { name: "String" } }, - poolName: { - serializedName: "poolName", + containerRegistry: { + serializedName: "properties.containerRegistry", type: { name: "String" } - } - } - } -}; - -export const AutoScaleProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutoScaleProperties", - modelProperties: { - minNodeCount: { - serializedName: "minNodeCount", + }, + description: { + serializedName: "properties.description", type: { - name: "Number" + name: "String" } }, - enabled: { - serializedName: "enabled", + enableDataIsolation: { + serializedName: "properties.enableDataIsolation", type: { name: "Boolean" } }, - maxNodeCount: { - serializedName: "maxNodeCount", + encryption: { + serializedName: "properties.encryption", type: { - name: "Number" + name: "Composite", + className: "EncryptionUpdateProperties" } - } - } - } -}; - -export const AutoPauseProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutoPauseProperties", - modelProperties: { - delayInMinutes: { - serializedName: "delayInMinutes", + }, + featureStoreSettings: { + serializedName: "properties.featureStoreSettings", type: { - name: "Number" + name: "Composite", + className: "FeatureStoreSettings" } }, - enabled: { - serializedName: "enabled", + friendlyName: { + serializedName: "properties.friendlyName", type: { - name: "Boolean" + name: "String" } - } - } - } -}; - -export const AksComputeSecretsProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AksComputeSecretsProperties", - modelProperties: { - userKubeConfig: { - serializedName: "userKubeConfig", + }, + imageBuildCompute: { + serializedName: "properties.imageBuildCompute", type: { name: "String" } }, - adminKubeConfig: { - serializedName: "adminKubeConfig", + managedNetwork: { + serializedName: "properties.managedNetwork", + type: { + name: "Composite", + className: "ManagedNetworkSettings" + } + }, + primaryUserAssignedIdentity: { + serializedName: "properties.primaryUserAssignedIdentity", type: { name: "String" } }, - imagePullSecretName: { - serializedName: "imagePullSecretName", - nullable: true, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { name: "String" } + }, + serverlessComputeSettings: { + serializedName: "properties.serverlessComputeSettings", + type: { + name: "Composite", + className: "ServerlessComputeSettings" + } + }, + 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 VirtualMachineSecretsSchema: coreClient.CompositeMapper = { +export const EncryptionUpdateProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSecretsSchema", + className: "EncryptionUpdateProperties", modelProperties: { - administratorAccount: { - serializedName: "administratorAccount", + keyVaultProperties: { + serializedName: "keyVaultProperties", type: { name: "Composite", - className: "VirtualMachineSshCredentials" + className: "EncryptionKeyVaultUpdateProperties" } } } } }; -export const DatabricksComputeSecretsProperties: coreClient.CompositeMapper = { +export const EncryptionKeyVaultUpdateProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabricksComputeSecretsProperties", + className: "EncryptionKeyVaultUpdateProperties", modelProperties: { - databricksAccessToken: { - serializedName: "databricksAccessToken", + keyIdentifier: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "keyIdentifier", + required: true, type: { name: "String" } @@ -5540,34 +6073,84 @@ export const DatabricksComputeSecretsProperties: coreClient.CompositeMapper = { } }; -export const WorkspaceConnectionUsernamePassword: coreClient.CompositeMapper = { +export const WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionUsernamePassword", + className: "WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult", modelProperties: { - username: { - serializedName: "username", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - password: { - serializedName: "password", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceConnectionPropertiesV2BasicResource" + } + } } } } } }; -export const WorkspaceConnectionPersonalAccessToken: coreClient.CompositeMapper = { +export const WorkspaceConnectionPropertiesV2: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionPersonalAccessToken", + className: "WorkspaceConnectionPropertiesV2", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: { + serializedName: "authType", + clientName: "authType" + }, modelProperties: { - pat: { - serializedName: "pat", + authType: { + serializedName: "authType", + required: true, + type: { + name: "String" + } + }, + category: { + serializedName: "category", + type: { + name: "String" + } + }, + createdByWorkspaceArmId: { + serializedName: "createdByWorkspaceArmId", + readOnly: true, + type: { + name: "String" + } + }, + expiryTime: { + serializedName: "expiryTime", + type: { + name: "DateTime" + } + }, + isSharedToAll: { + serializedName: "isSharedToAll", + type: { + name: "Boolean" + } + }, + metadata: { + serializedName: "metadata", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + target: { + serializedName: "target", type: { name: "String" } @@ -5576,339 +6159,272 @@ export const WorkspaceConnectionPersonalAccessToken: coreClient.CompositeMapper } }; -export const WorkspaceConnectionSharedAccessSignature: coreClient.CompositeMapper = { +export const WorkspaceConnectionUpdateParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionSharedAccessSignature", + className: "WorkspaceConnectionUpdateParameter", modelProperties: { - sas: { - serializedName: "sas", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "WorkspaceConnectionPropertiesV2" } } } } }; -export const WorkspaceConnectionManagedIdentity: coreClient.CompositeMapper = { +export const DiagnoseWorkspaceParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionManagedIdentity", + className: "DiagnoseWorkspaceParameters", modelProperties: { - resourceId: { - serializedName: "resourceId", - type: { - name: "String" - } - }, - clientId: { - serializedName: "clientId", + value: { + serializedName: "value", type: { - name: "String" + name: "Composite", + className: "DiagnoseRequestProperties" } } } } }; -export const AssetJobInput: coreClient.CompositeMapper = { +export const DiagnoseRequestProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssetJobInput", + className: "DiagnoseRequestProperties", modelProperties: { - mode: { - serializedName: "mode", + applicationInsights: { + serializedName: "applicationInsights", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - uri: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "uri", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const AssetJobOutput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AssetJobOutput", - modelProperties: { - mode: { - serializedName: "mode", + containerRegistry: { + serializedName: "containerRegistry", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - uri: { - serializedName: "uri", - nullable: true, - type: { - name: "String" - } - } - } - } -}; - -export const ForecastHorizon: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ForecastHorizon", - uberParent: "ForecastHorizon", - polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode" - }, - modelProperties: { - mode: { - serializedName: "mode", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const JobOutput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobOutput", - uberParent: "JobOutput", - polymorphicDiscriminator: { - serializedName: "jobOutputType", - clientName: "jobOutputType" - }, - modelProperties: { - description: { - serializedName: "description", - nullable: true, + dnsResolution: { + serializedName: "dnsResolution", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - jobOutputType: { - serializedName: "jobOutputType", - required: true, + keyVault: { + serializedName: "keyVault", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } - } - } - } -}; - -export const AutoMLVertical: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutoMLVertical", - uberParent: "AutoMLVertical", - polymorphicDiscriminator: { - serializedName: "taskType", - clientName: "taskType" - }, - modelProperties: { - logVerbosity: { - serializedName: "logVerbosity", + }, + nsg: { + serializedName: "nsg", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - targetColumnName: { - serializedName: "targetColumnName", - nullable: true, + others: { + serializedName: "others", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - taskType: { - serializedName: "taskType", - required: true, + requiredResourceProviders: { + serializedName: "requiredResourceProviders", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - trainingData: { - serializedName: "trainingData", + resourceLock: { + serializedName: "resourceLock", type: { - name: "Composite", - className: "MLTableJobInput" + name: "Dictionary", + value: { type: { name: "any" } } } - } - } - } -}; - -export const JobInput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobInput", - uberParent: "JobInput", - polymorphicDiscriminator: { - serializedName: "jobInputType", - clientName: "jobInputType" - }, - modelProperties: { - description: { - serializedName: "description", - nullable: true, + }, + storageAccount: { + serializedName: "storageAccount", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - jobInputType: { - serializedName: "jobInputType", - required: true, + udr: { + serializedName: "udr", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const NCrossValidations: coreClient.CompositeMapper = { +export const DiagnoseResponseResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NCrossValidations", - uberParent: "NCrossValidations", - polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode" - }, + className: "DiagnoseResponseResult", modelProperties: { - mode: { - serializedName: "mode", - required: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Composite", + className: "DiagnoseResponseResultValue" } } } } }; -export const Seasonality: coreClient.CompositeMapper = { +export const DiagnoseResponseResultValue: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Seasonality", - uberParent: "Seasonality", - polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode" - }, + className: "DiagnoseResponseResultValue", modelProperties: { - mode: { - serializedName: "mode", - required: true, + userDefinedRouteResults: { + serializedName: "userDefinedRouteResults", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } - } - } - } -}; - -export const TargetLags: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TargetLags", - uberParent: "TargetLags", - polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode" - }, - modelProperties: { - mode: { - serializedName: "mode", - required: true, + }, + networkSecurityRuleResults: { + serializedName: "networkSecurityRuleResults", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } - } - } - } -}; - -export const TargetRollingWindowSize: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TargetRollingWindowSize", - uberParent: "TargetRollingWindowSize", - polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode" - }, - modelProperties: { - mode: { - serializedName: "mode", - required: true, + }, + resourceLockResults: { + serializedName: "resourceLockResults", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } - } - } - } -}; - -export const EarlyTerminationPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EarlyTerminationPolicy", - uberParent: "EarlyTerminationPolicy", - polymorphicDiscriminator: { - serializedName: "policyType", - clientName: "policyType" - }, - modelProperties: { - delayEvaluation: { - defaultValue: 0, - serializedName: "delayEvaluation", + }, + dnsResolutionResults: { + serializedName: "dnsResolutionResults", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - evaluationInterval: { - defaultValue: 0, - serializedName: "evaluationInterval", + storageAccountResults: { + serializedName: "storageAccountResults", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - policyType: { - serializedName: "policyType", - required: true, + keyVaultResults: { + serializedName: "keyVaultResults", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } + } + }, + containerRegistryResults: { + serializedName: "containerRegistryResults", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } + } + }, + applicationInsightsResults: { + serializedName: "applicationInsightsResults", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } + } + }, + otherResults: { + serializedName: "otherResults", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } } } } }; -export const SamplingAlgorithm: coreClient.CompositeMapper = { +export const DiagnoseResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SamplingAlgorithm", - uberParent: "SamplingAlgorithm", - polymorphicDiscriminator: { - serializedName: "samplingAlgorithmType", - clientName: "samplingAlgorithmType" - }, + className: "DiagnoseResult", modelProperties: { - samplingAlgorithmType: { - serializedName: "samplingAlgorithmType", - required: true, + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String" + } + }, + level: { + serializedName: "level", + readOnly: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, type: { name: "String" } @@ -5917,86 +6433,77 @@ export const SamplingAlgorithm: coreClient.CompositeMapper = { } }; -export const TrainingSettings: coreClient.CompositeMapper = { +export const ListWorkspaceKeysResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrainingSettings", + className: "ListWorkspaceKeysResult", modelProperties: { - enableDnnTraining: { - defaultValue: false, - serializedName: "enableDnnTraining", - type: { - name: "Boolean" - } - }, - enableModelExplainability: { - defaultValue: true, - serializedName: "enableModelExplainability", - type: { - name: "Boolean" - } - }, - enableOnnxCompatibleModels: { - defaultValue: false, - serializedName: "enableOnnxCompatibleModels", + appInsightsInstrumentationKey: { + serializedName: "appInsightsInstrumentationKey", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - enableStackEnsemble: { - defaultValue: true, - serializedName: "enableStackEnsemble", + containerRegistryCredentials: { + serializedName: "containerRegistryCredentials", type: { - name: "Boolean" + name: "Composite", + className: "RegistryListCredentialsResult" } }, - enableVoteEnsemble: { - defaultValue: true, - serializedName: "enableVoteEnsemble", + notebookAccessKeys: { + serializedName: "notebookAccessKeys", type: { - name: "Boolean" + name: "Composite", + className: "ListNotebookKeysResult" } }, - ensembleModelDownloadTimeout: { - defaultValue: "PT5M", - serializedName: "ensembleModelDownloadTimeout", + userStorageArmId: { + serializedName: "userStorageArmId", + readOnly: true, type: { - name: "TimeSpan" + name: "String" } }, - stackEnsembleSettings: { - serializedName: "stackEnsembleSettings", + userStorageKey: { + serializedName: "userStorageKey", + readOnly: true, type: { - name: "Composite", - className: "StackEnsembleSettings" + name: "String" } } } } }; -export const StackEnsembleSettings: coreClient.CompositeMapper = { +export const RegistryListCredentialsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StackEnsembleSettings", + className: "RegistryListCredentialsResult", modelProperties: { - stackMetaLearnerKWargs: { - serializedName: "stackMetaLearnerKWargs", - nullable: true, + location: { + serializedName: "location", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - stackMetaLearnerTrainPercentage: { - defaultValue: 0.2, - serializedName: "stackMetaLearnerTrainPercentage", + passwords: { + serializedName: "passwords", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Password" + } + } } }, - stackMetaLearnerType: { - serializedName: "stackMetaLearnerType", + username: { + serializedName: "username", + readOnly: true, type: { name: "String" } @@ -6005,75 +6512,21 @@ export const StackEnsembleSettings: coreClient.CompositeMapper = { } }; -export const TableVertical: coreClient.CompositeMapper = { +export const Password: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TableVertical", + className: "Password", modelProperties: { - cvSplitColumnNames: { - serializedName: "cvSplitColumnNames", - nullable: true, + name: { + serializedName: "name", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - featurizationSettings: { - serializedName: "featurizationSettings", - type: { - name: "Composite", - className: "TableVerticalFeaturizationSettings" - } - }, - limitSettings: { - serializedName: "limitSettings", - type: { - name: "Composite", - className: "TableVerticalLimitSettings" - } - }, - nCrossValidations: { - serializedName: "nCrossValidations", - type: { - name: "Composite", - className: "NCrossValidations" - } - }, - testData: { - serializedName: "testData", - type: { - name: "Composite", - className: "MLTableJobInput" - } - }, - testDataSize: { - serializedName: "testDataSize", - nullable: true, - type: { - name: "Number" - } - }, - validationData: { - serializedName: "validationData", - type: { - name: "Composite", - className: "MLTableJobInput" - } - }, - validationDataSize: { - serializedName: "validationDataSize", - nullable: true, - type: { - name: "Number" - } - }, - weightColumnName: { - serializedName: "weightColumnName", - nullable: true, + value: { + serializedName: "value", + readOnly: true, type: { name: "String" } @@ -6082,122 +6535,102 @@ export const TableVertical: coreClient.CompositeMapper = { } }; -export const ColumnTransformer: coreClient.CompositeMapper = { +export const ListNotebookKeysResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ColumnTransformer", + className: "ListNotebookKeysResult", modelProperties: { - fields: { - serializedName: "fields", - nullable: true, + primaryAccessKey: { + serializedName: "primaryAccessKey", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - parameters: { - serializedName: "parameters", - nullable: true, + secondaryAccessKey: { + serializedName: "secondaryAccessKey", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } } } } }; -export const FeaturizationSettings: coreClient.CompositeMapper = { +export const NotebookAccessTokenResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FeaturizationSettings", + className: "NotebookAccessTokenResult", modelProperties: { - datasetLanguage: { - serializedName: "datasetLanguage", - nullable: true, + accessToken: { + serializedName: "accessToken", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const TableVerticalLimitSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TableVerticalLimitSettings", - modelProperties: { - enableEarlyTermination: { - defaultValue: true, - serializedName: "enableEarlyTermination", + }, + expiresIn: { + serializedName: "expiresIn", + readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - exitScore: { - serializedName: "exitScore", - nullable: true, + hostName: { + serializedName: "hostName", + readOnly: true, type: { - name: "Number" + name: "String" } }, - maxConcurrentTrials: { - defaultValue: 1, - serializedName: "maxConcurrentTrials", + notebookResourceId: { + serializedName: "notebookResourceId", + readOnly: true, type: { - name: "Number" + name: "String" } }, - maxCoresPerTrial: { - defaultValue: -1, - serializedName: "maxCoresPerTrial", + publicDns: { + serializedName: "publicDns", + readOnly: true, type: { - name: "Number" + name: "String" } }, - maxTrials: { - defaultValue: 1000, - serializedName: "maxTrials", + refreshToken: { + serializedName: "refreshToken", + readOnly: true, type: { - name: "Number" + name: "String" } }, - timeout: { - defaultValue: "PT6H", - serializedName: "timeout", + scope: { + serializedName: "scope", + readOnly: true, type: { - name: "TimeSpan" + name: "String" } }, - trialTimeout: { - defaultValue: "PT30M", - serializedName: "trialTimeout", + tokenType: { + serializedName: "tokenType", + readOnly: true, type: { - name: "TimeSpan" + name: "String" } } } } }; -export const DistributionConfiguration: coreClient.CompositeMapper = { +export const ListStorageAccountKeysResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DistributionConfiguration", - uberParent: "DistributionConfiguration", - polymorphicDiscriminator: { - serializedName: "distributionType", - clientName: "distributionType" - }, + className: "ListStorageAccountKeysResult", modelProperties: { - distributionType: { - serializedName: "distributionType", - required: true, + userStorageKey: { + serializedName: "userStorageKey", + readOnly: true, type: { name: "String" } @@ -6206,1269 +6639,1208 @@ export const DistributionConfiguration: coreClient.CompositeMapper = { } }; -export const JobLimits: coreClient.CompositeMapper = { +export const ExternalFqdnResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobLimits", - uberParent: "JobLimits", - polymorphicDiscriminator: { - serializedName: "jobLimitsType", - clientName: "jobLimitsType" - }, + className: "ExternalFqdnResponse", modelProperties: { - jobLimitsType: { - serializedName: "jobLimitsType", - required: true, - type: { - name: "String" - } - }, - timeout: { - serializedName: "timeout", - nullable: true, + value: { + serializedName: "value", type: { - name: "TimeSpan" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FqdnEndpointsPropertyBag" + } + } } } } } }; -export const ContainerResourceRequirements: coreClient.CompositeMapper = { +export const FqdnEndpointsPropertyBag: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContainerResourceRequirements", + className: "FqdnEndpointsPropertyBag", modelProperties: { - containerResourceLimits: { - serializedName: "containerResourceLimits", - type: { - name: "Composite", - className: "ContainerResourceSettings" - } - }, - containerResourceRequests: { - serializedName: "containerResourceRequests", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "ContainerResourceSettings" + className: "FqdnEndpoints" } } } } }; -export const ContainerResourceSettings: coreClient.CompositeMapper = { +export const FqdnEndpoints: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContainerResourceSettings", + className: "FqdnEndpoints", modelProperties: { - cpu: { - serializedName: "cpu", - nullable: true, - type: { - name: "String" - } - }, - gpu: { - serializedName: "gpu", - nullable: true, + category: { + serializedName: "category", type: { name: "String" } }, - memory: { - serializedName: "memory", - nullable: true, + endpoints: { + serializedName: "endpoints", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FqdnEndpoint" + } + } } } } } }; -export const ForecastingSettings: coreClient.CompositeMapper = { +export const FqdnEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ForecastingSettings", + className: "FqdnEndpoint", modelProperties: { - countryOrRegionForHolidays: { - serializedName: "countryOrRegionForHolidays", - nullable: true, + domainName: { + serializedName: "domainName", type: { name: "String" } }, - cvStepSize: { - serializedName: "cvStepSize", - nullable: true, + endpointDetails: { + serializedName: "endpointDetails", type: { - name: "Number" - } - }, - featureLags: { - serializedName: "featureLags", - 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" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FqdnEndpointDetail" + } + } } - }, - shortSeriesHandlingConfig: { - serializedName: "shortSeriesHandlingConfig", + } + } + } +}; + +export const FqdnEndpointDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FqdnEndpointDetail", + modelProperties: { + port: { + serializedName: "port", type: { - name: "String" + name: "Number" } - }, - targetAggregateFunction: { - serializedName: "targetAggregateFunction", + } + } + } +}; + +export const OutboundRuleListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OutboundRuleListResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - targetLags: { - serializedName: "targetLags", - type: { - name: "Composite", - className: "TargetLags" - } - }, - targetRollingWindowSize: { - serializedName: "targetRollingWindowSize", + value: { + serializedName: "value", type: { - name: "Composite", - className: "TargetRollingWindowSize" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutboundRuleBasicResource" + } + } } - }, - timeColumnName: { - serializedName: "timeColumnName", - nullable: true, + } + } + } +}; + +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } } - }, - timeSeriesIdColumnNames: { - serializedName: "timeSeriesIdColumnNames", - nullable: true, + } + } + } +}; + +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "PrivateLinkResource" } } } - }, - useStl: { - serializedName: "useStl", + } + } + } +}; + +export const ManagedNetworkProvisionOptions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedNetworkProvisionOptions", + modelProperties: { + includeSpark: { + serializedName: "includeSpark", type: { - name: "String" + name: "Boolean" } } } } }; -export const ImageModelSettings: coreClient.CompositeMapper = { +export const ResourceId: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageModelSettings", + className: "ResourceId", modelProperties: { - advancedSettings: { - serializedName: "advancedSettings", - nullable: true, + id: { + serializedName: "id", + required: true, type: { name: "String" } - }, - amsGradient: { - serializedName: "amsGradient", - nullable: true, + } + } + } +}; + +export const AKSSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AKSSchema", + modelProperties: { + properties: { + serializedName: "properties", type: { - name: "Boolean" + name: "Composite", + className: "AKSSchemaProperties" } - }, - augmentations: { - serializedName: "augmentations", + } + } + } +}; + +export const AKSSchemaProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AKSSchemaProperties", + modelProperties: { + clusterFqdn: { + serializedName: "clusterFqdn", nullable: true, type: { name: "String" } }, - beta1: { - serializedName: "beta1", - nullable: true, - type: { - name: "Number" - } - }, - beta2: { - serializedName: "beta2", + systemServices: { + serializedName: "systemServices", + readOnly: true, nullable: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SystemService" + } + } } }, - checkpointFrequency: { - serializedName: "checkpointFrequency", + agentCount: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "agentCount", nullable: true, type: { name: "Number" } }, - checkpointModel: { - serializedName: "checkpointModel", - type: { - name: "Composite", - className: "MLFlowModelJobInput" - } - }, - checkpointRunId: { - serializedName: "checkpointRunId", + agentVmSize: { + serializedName: "agentVmSize", nullable: true, type: { name: "String" } }, - distributed: { - serializedName: "distributed", - nullable: true, + clusterPurpose: { + defaultValue: "FastProd", + serializedName: "clusterPurpose", type: { - name: "Boolean" + name: "String" } }, - earlyStopping: { - serializedName: "earlyStopping", - nullable: true, + sslConfiguration: { + serializedName: "sslConfiguration", type: { - name: "Boolean" + name: "Composite", + className: "SslConfiguration" } }, - earlyStoppingDelay: { - serializedName: "earlyStoppingDelay", - nullable: true, + aksNetworkingConfiguration: { + serializedName: "aksNetworkingConfiguration", type: { - name: "Number" + name: "Composite", + className: "AksNetworkingConfiguration" } }, - earlyStoppingPatience: { - serializedName: "earlyStoppingPatience", - nullable: true, + loadBalancerType: { + defaultValue: "PublicIp", + serializedName: "loadBalancerType", type: { - name: "Number" + name: "String" } }, - enableOnnxNormalization: { - serializedName: "enableOnnxNormalization", + loadBalancerSubnet: { + serializedName: "loadBalancerSubnet", nullable: true, type: { - name: "Boolean" + name: "String" } - }, - 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", + } + } + } +}; + +export const SystemService: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SystemService", + modelProperties: { + systemServiceType: { + serializedName: "systemServiceType", + readOnly: true, type: { name: "String" } }, - modelName: { - serializedName: "modelName", - nullable: true, + publicIpAddress: { + serializedName: "publicIpAddress", + readOnly: true, type: { name: "String" } }, - momentum: { - serializedName: "momentum", - nullable: true, + version: { + serializedName: "version", + readOnly: true, type: { - name: "Number" + name: "String" } - }, - nesterov: { - serializedName: "nesterov", - nullable: true, + } + } + } +}; + +export const SslConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SslConfiguration", + modelProperties: { + status: { + serializedName: "status", type: { - name: "Boolean" + name: "String" } }, - numberOfEpochs: { - serializedName: "numberOfEpochs", + cert: { + serializedName: "cert", nullable: true, type: { - name: "Number" + name: "String" } }, - numberOfWorkers: { - serializedName: "numberOfWorkers", + key: { + serializedName: "key", nullable: true, - type: { - name: "Number" - } - }, - optimizer: { - serializedName: "optimizer", type: { name: "String" } }, - randomSeed: { - serializedName: "randomSeed", + cname: { + serializedName: "cname", nullable: true, type: { - name: "Number" + name: "String" } }, - stepLRGamma: { - serializedName: "stepLRGamma", + leafDomainLabel: { + serializedName: "leafDomainLabel", nullable: true, type: { - name: "Number" + name: "String" } }, - stepLRStepSize: { - serializedName: "stepLRStepSize", - nullable: true, + overwriteExistingDomain: { + serializedName: "overwriteExistingDomain", type: { - name: "Number" + name: "Boolean" } - }, - trainingBatchSize: { - serializedName: "trainingBatchSize", - nullable: true, + } + } + } +}; + +export const AksNetworkingConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AksNetworkingConfiguration", + modelProperties: { + subnetId: { + serializedName: "subnetId", type: { - name: "Number" + name: "String" } }, - validationBatchSize: { - serializedName: "validationBatchSize", - nullable: true, + 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" } }, - warmupCosineLRCycles: { - serializedName: "warmupCosineLRCycles", - nullable: true, + 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: "Number" + name: "String" } }, - warmupCosineLRWarmupEpochs: { - serializedName: "warmupCosineLRWarmupEpochs", - nullable: true, + 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: "Number" + name: "String" } - }, - weightDecay: { - serializedName: "weightDecay", - nullable: true, + } + } + } +}; + +export const KubernetesSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KubernetesSchema", + modelProperties: { + properties: { + serializedName: "properties", type: { - name: "Number" + name: "Composite", + className: "KubernetesProperties" } } } } }; -export const ImageModelDistributionSettings: coreClient.CompositeMapper = { +export const KubernetesProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageModelDistributionSettings", + className: "KubernetesProperties", modelProperties: { - amsGradient: { - serializedName: "amsGradient", + relayConnectionString: { + serializedName: "relayConnectionString", nullable: true, type: { name: "String" } }, - augmentations: { - serializedName: "augmentations", + serviceBusConnectionString: { + serializedName: "serviceBusConnectionString", nullable: true, type: { name: "String" } }, - beta1: { - serializedName: "beta1", + extensionPrincipalId: { + serializedName: "extensionPrincipalId", nullable: true, type: { name: "String" } }, - beta2: { - serializedName: "beta2", - nullable: true, + extensionInstanceReleaseTrain: { + serializedName: "extensionInstanceReleaseTrain", type: { name: "String" } }, - distributed: { - serializedName: "distributed", - nullable: true, + vcName: { + serializedName: "vcName", type: { name: "String" } }, - earlyStopping: { - serializedName: "earlyStopping", - nullable: true, + namespace: { + defaultValue: "default", + serializedName: "namespace", type: { name: "String" } }, - earlyStoppingDelay: { - serializedName: "earlyStoppingDelay", - nullable: true, + defaultInstanceType: { + serializedName: "defaultInstanceType", type: { name: "String" } }, - earlyStoppingPatience: { - serializedName: "earlyStoppingPatience", - nullable: true, + instanceTypes: { + serializedName: "instanceTypes", type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Composite", className: "InstanceTypeSchema" } + } } - }, - enableOnnxNormalization: { - serializedName: "enableOnnxNormalization", + } + } + } +}; + +export const InstanceTypeSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceTypeSchema", + modelProperties: { + nodeSelector: { + serializedName: "nodeSelector", nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - evaluationFrequency: { - serializedName: "evaluationFrequency", - nullable: true, + resources: { + serializedName: "resources", type: { - name: "String" + name: "Composite", + className: "InstanceTypeSchemaResources" } - }, - gradientAccumulationStep: { - serializedName: "gradientAccumulationStep", - nullable: true, + } + } + } +}; + +export const InstanceTypeSchemaResources: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceTypeSchemaResources", + modelProperties: { + requests: { + serializedName: "requests", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - layersToFreeze: { - serializedName: "layersToFreeze", - nullable: true, + limits: { + serializedName: "limits", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const AmlComputeProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlComputeProperties", + modelProperties: { + osType: { + defaultValue: "Linux", + serializedName: "osType", type: { name: "String" } }, - learningRate: { - serializedName: "learningRate", - nullable: true, + vmSize: { + serializedName: "vmSize", type: { name: "String" } }, - learningRateScheduler: { - serializedName: "learningRateScheduler", - nullable: true, + vmPriority: { + serializedName: "vmPriority", type: { name: "String" } }, - modelName: { - serializedName: "modelName", - nullable: true, + virtualMachineImage: { + serializedName: "virtualMachineImage", type: { - name: "String" + name: "Composite", + className: "VirtualMachineImage" } }, - momentum: { - serializedName: "momentum", - nullable: true, + isolatedNetwork: { + serializedName: "isolatedNetwork", type: { - name: "String" + name: "Boolean" } }, - nesterov: { - serializedName: "nesterov", - nullable: true, + scaleSettings: { + serializedName: "scaleSettings", type: { - name: "String" + name: "Composite", + className: "ScaleSettings" } }, - numberOfEpochs: { - serializedName: "numberOfEpochs", - nullable: true, + userAccountCredentials: { + serializedName: "userAccountCredentials", type: { - name: "String" + name: "Composite", + className: "UserAccountCredentials" } }, - numberOfWorkers: { - serializedName: "numberOfWorkers", - nullable: true, + subnet: { + serializedName: "subnet", type: { - name: "String" + name: "Composite", + className: "ResourceId" } }, - optimizer: { - serializedName: "optimizer", - nullable: true, + remoteLoginPortPublicAccess: { + defaultValue: "NotSpecified", + serializedName: "remoteLoginPortPublicAccess", type: { name: "String" } }, - randomSeed: { - serializedName: "randomSeed", - nullable: true, + allocationState: { + serializedName: "allocationState", + readOnly: true, type: { name: "String" } }, - stepLRGamma: { - serializedName: "stepLRGamma", - nullable: true, + allocationStateTransitionTime: { + serializedName: "allocationStateTransitionTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - stepLRStepSize: { - serializedName: "stepLRStepSize", + errors: { + serializedName: "errors", + readOnly: true, nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponse" + } + } } }, - trainingBatchSize: { - serializedName: "trainingBatchSize", + currentNodeCount: { + serializedName: "currentNodeCount", + readOnly: true, nullable: true, type: { - name: "String" + name: "Number" } }, - validationBatchSize: { - serializedName: "validationBatchSize", + targetNodeCount: { + serializedName: "targetNodeCount", + readOnly: true, nullable: true, type: { - name: "String" + name: "Number" } }, - warmupCosineLRCycles: { - serializedName: "warmupCosineLRCycles", - nullable: true, + nodeStateCounts: { + serializedName: "nodeStateCounts", type: { - name: "String" + name: "Composite", + className: "NodeStateCounts" } }, - warmupCosineLRWarmupEpochs: { - serializedName: "warmupCosineLRWarmupEpochs", + enableNodePublicIp: { + defaultValue: true, + serializedName: "enableNodePublicIp", nullable: true, type: { - name: "String" + name: "Boolean" } }, - weightDecay: { - serializedName: "weightDecay", + propertyBag: { + serializedName: "propertyBag", nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const ImageVertical: coreClient.CompositeMapper = { +export const VirtualMachineImage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageVertical", + className: "VirtualMachineImage", modelProperties: { - limitSettings: { - serializedName: "limitSettings", + id: { + serializedName: "id", + required: true, type: { - name: "Composite", - className: "ImageLimitSettings" + name: "String" } - }, - sweepSettings: { - serializedName: "sweepSettings", + } + } + } +}; + +export const UserAccountCredentials: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserAccountCredentials", + modelProperties: { + adminUserName: { + serializedName: "adminUserName", + required: true, type: { - name: "Composite", - className: "ImageSweepSettings" + name: "String" } }, - validationData: { - serializedName: "validationData", + adminUserSshPublicKey: { + serializedName: "adminUserSshPublicKey", type: { - name: "Composite", - className: "MLTableJobInput" + name: "String" } }, - validationDataSize: { - serializedName: "validationDataSize", - nullable: true, + adminUserPassword: { + serializedName: "adminUserPassword", type: { - name: "Number" + name: "String" } } } } }; -export const ImageLimitSettings: coreClient.CompositeMapper = { +export const NodeStateCounts: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageLimitSettings", + className: "NodeStateCounts", modelProperties: { - maxConcurrentTrials: { - defaultValue: 1, - serializedName: "maxConcurrentTrials", + idleNodeCount: { + serializedName: "idleNodeCount", + readOnly: true, type: { name: "Number" } }, - maxTrials: { - defaultValue: 1, - serializedName: "maxTrials", + runningNodeCount: { + serializedName: "runningNodeCount", + readOnly: true, type: { name: "Number" } }, - timeout: { - defaultValue: "P7D", - serializedName: "timeout", + preparingNodeCount: { + serializedName: "preparingNodeCount", + readOnly: true, type: { - name: "TimeSpan" + name: "Number" + } + }, + unusableNodeCount: { + serializedName: "unusableNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + leavingNodeCount: { + serializedName: "leavingNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + preemptedNodeCount: { + serializedName: "preemptedNodeCount", + readOnly: true, + type: { + name: "Number" } } } } }; -export const ImageSweepSettings: coreClient.CompositeMapper = { +export const AmlComputeSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageSweepSettings", + className: "AmlComputeSchema", modelProperties: { - earlyTermination: { - serializedName: "earlyTermination", - type: { - name: "Composite", - className: "EarlyTerminationPolicy" - } - }, - samplingAlgorithm: { - serializedName: "samplingAlgorithm", - required: true, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "AmlComputeProperties" } } } } }; -export const NlpVertical: coreClient.CompositeMapper = { +export const ComputeInstanceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NlpVertical", + className: "ComputeInstanceProperties", modelProperties: { - featurizationSettings: { - serializedName: "featurizationSettings", + vmSize: { + serializedName: "vmSize", type: { - name: "Composite", - className: "NlpVerticalFeaturizationSettings" + name: "String" } }, - limitSettings: { - serializedName: "limitSettings", + subnet: { + serializedName: "subnet", type: { name: "Composite", - className: "NlpVerticalLimitSettings" + className: "ResourceId" } }, - validationData: { - serializedName: "validationData", + applicationSharingPolicy: { + defaultValue: "Shared", + serializedName: "applicationSharingPolicy", type: { - name: "Composite", - className: "MLTableJobInput" + name: "String" } - } - } - } -}; - -export const NlpVerticalLimitSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NlpVerticalLimitSettings", - modelProperties: { - maxConcurrentTrials: { - defaultValue: 1, - serializedName: "maxConcurrentTrials", + }, + autologgerSettings: { + serializedName: "autologgerSettings", type: { - name: "Number" + name: "Composite", + className: "ComputeInstanceAutologgerSettings" } }, - maxTrials: { - defaultValue: 1, - serializedName: "maxTrials", + sshSettings: { + serializedName: "sshSettings", type: { - name: "Number" + name: "Composite", + className: "ComputeInstanceSshSettings" } }, - timeout: { - serializedName: "timeout", + customServices: { + serializedName: "customServices", + nullable: true, type: { - name: "TimeSpan" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CustomService" + } + } } - } - } - } -}; - -export const Objective: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Objective", - modelProperties: { - goal: { - serializedName: "goal", - required: true, + }, + osImageMetadata: { + serializedName: "osImageMetadata", type: { - name: "String" + name: "Composite", + className: "ImageMetadata" } }, - primaryMetric: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "primaryMetric", - required: true, + connectivityEndpoints: { + serializedName: "connectivityEndpoints", type: { - name: "String" + name: "Composite", + className: "ComputeInstanceConnectivityEndpoints" } - } - } - } -}; - -export const TrialComponent: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrialComponent", - modelProperties: { - codeId: { - serializedName: "codeId", - nullable: true, + }, + applications: { + serializedName: "applications", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeInstanceApplication" + } + } } }, - command: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]"), - MinLength: 1 - }, - serializedName: "command", - required: true, + createdBy: { + serializedName: "createdBy", type: { - name: "String" + name: "Composite", + className: "ComputeInstanceCreatedBy" } }, - distribution: { - serializedName: "distribution", + errors: { + serializedName: "errors", + readOnly: true, type: { - name: "Composite", - className: "DistributionConfiguration" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponse" + } + } } }, - environmentId: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "environmentId", - required: true, + state: { + serializedName: "state", + readOnly: true, type: { name: "String" } }, - environmentVariables: { - serializedName: "environmentVariables", + computeInstanceAuthorizationType: { + defaultValue: "personal", + serializedName: "computeInstanceAuthorizationType", nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - resources: { - serializedName: "resources", + enableOSPatching: { + defaultValue: false, + serializedName: "enableOSPatching", + nullable: true, type: { - name: "Composite", - className: "JobResourceConfiguration" + name: "Boolean" } - } - } - } -}; - -export const PrivateEndpointConnection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnection", - modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "identity", + }, + enableRootAccess: { + defaultValue: true, + serializedName: "enableRootAccess", + nullable: true, type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "Boolean" } }, - location: { - serializedName: "location", + enableSSO: { + defaultValue: true, + serializedName: "enableSSO", + nullable: true, type: { - name: "String" + name: "Boolean" } }, - tags: { - serializedName: "tags", + releaseQuotaOnStop: { + defaultValue: false, + serializedName: "releaseQuotaOnStop", + nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } }, - sku: { - serializedName: "sku", + personalComputeInstanceSettings: { + serializedName: "personalComputeInstanceSettings", type: { name: "Composite", - className: "Sku" + className: "PersonalComputeInstanceSettings" } }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + setupScripts: { + serializedName: "setupScripts", type: { name: "Composite", - className: "PrivateEndpoint" + className: "SetupScripts" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + lastOperation: { + serializedName: "lastOperation", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" + className: "ComputeInstanceLastOperation" } }, - 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", + schedules: { + serializedName: "schedules", type: { name: "Composite", - className: "ManagedServiceIdentity" + className: "ComputeSchedules" } }, - location: { - serializedName: "location", + idleTimeBeforeShutdown: { + serializedName: "idleTimeBeforeShutdown", type: { name: "String" } }, - tags: { - serializedName: "tags", + enableNodePublicIp: { + defaultValue: true, + serializedName: "enableNodePublicIp", + nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - workspaceId: { - serializedName: "properties.workspaceId", + containers: { + serializedName: "containers", readOnly: true, - type: { - name: "String" - } - }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - }, - friendlyName: { - serializedName: "properties.friendlyName", - type: { - name: "String" - } - }, - keyVault: { - serializedName: "properties.keyVault", - type: { - name: "String" - } - }, - applicationInsights: { - serializedName: "properties.applicationInsights", - type: { - name: "String" - } - }, - containerRegistry: { - serializedName: "properties.containerRegistry", nullable: true, type: { - name: "String" - } - }, - storageAccount: { - serializedName: "properties.storageAccount", - type: { - name: "String" - } - }, - discoveryUrl: { - serializedName: "properties.discoveryUrl", - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - encryption: { - serializedName: "properties.encryption", - type: { - name: "Composite", - className: "EncryptionProperty" - } - }, - hbiWorkspace: { - defaultValue: false, - serializedName: "properties.hbiWorkspace", - type: { - name: "Boolean" - } - }, - serviceProvisionedResourceGroup: { - serializedName: "properties.serviceProvisionedResourceGroup", - readOnly: true, - type: { - name: "String" - } - }, - privateLinkCount: { - serializedName: "properties.privateLinkCount", - readOnly: true, - type: { - name: "Number" - } - }, - imageBuildCompute: { - serializedName: "properties.imageBuildCompute", - type: { - name: "String" - } - }, - allowPublicAccessWhenBehindVnet: { - defaultValue: false, - serializedName: "properties.allowPublicAccessWhenBehindVnet", - type: { - name: "Boolean" - } - }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeInstanceContainer" + } + } } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", + dataDisks: { + serializedName: "dataDisks", readOnly: true, + nullable: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateEndpointConnection" + className: "ComputeInstanceDataDisk" } } } }, - sharedPrivateLinkResources: { - serializedName: "properties.sharedPrivateLinkResources", + dataMounts: { + serializedName: "dataMounts", + readOnly: true, + nullable: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SharedPrivateLinkResource" + className: "ComputeInstanceDataMount" } } } }, - notebookInfo: { - serializedName: "properties.notebookInfo", + versions: { + serializedName: "versions", type: { name: "Composite", - className: "NotebookResourceInfo" + className: "ComputeInstanceVersion" } - }, - serviceManagedResourcesSettings: { - serializedName: "properties.serviceManagedResourcesSettings", + } + } + } +}; + +export const ComputeInstanceAutologgerSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceAutologgerSettings", + modelProperties: { + mlflowAutologger: { + serializedName: "mlflowAutologger", type: { - name: "Composite", - className: "ServiceManagedResourcesSettings" + name: "String" } - }, - primaryUserAssignedIdentity: { - serializedName: "properties.primaryUserAssignedIdentity", + } + } + } +}; + +export const ComputeInstanceSshSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceSshSettings", + modelProperties: { + sshPublicAccess: { + defaultValue: "Disabled", + serializedName: "sshPublicAccess", type: { name: "String" } }, - tenantId: { - serializedName: "properties.tenantId", + adminUserName: { + serializedName: "adminUserName", readOnly: true, type: { name: "String" } }, - storageHnsEnabled: { - serializedName: "properties.storageHnsEnabled", + sshPort: { + serializedName: "sshPort", readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - mlFlowTrackingUri: { - serializedName: "properties.mlFlowTrackingUri", - readOnly: true, + adminPublicKey: { + serializedName: "adminPublicKey", type: { name: "String" } - }, - v1LegacyMode: { - defaultValue: false, - serializedName: "properties.v1LegacyMode", - type: { - name: "Boolean" - } } } } }; -export const ComputeResource: coreClient.CompositeMapper = { +export const ImageMetadata: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeResource", + className: "ImageMetadata", modelProperties: { - ...Resource.type.modelProperties, - ...ComputeResourceSchema.type.modelProperties, - identity: { - serializedName: "identity", + currentImageVersion: { + serializedName: "currentImageVersion", type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "String" } }, - location: { - serializedName: "location", + latestImageVersion: { + serializedName: "latestImageVersion", type: { name: "String" } }, - tags: { - serializedName: "tags", - nullable: true, + isLatestOsImageVersion: { + serializedName: "isLatestOsImageVersion", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } }, - sku: { - serializedName: "sku", + osPatchingStatus: { + serializedName: "osPatchingStatus", type: { name: "Composite", - className: "Sku" + className: "OsPatchingStatus" } } } } }; -export const PrivateLinkResource: coreClient.CompositeMapper = { +export const OsPatchingStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResource", + className: "OsPatchingStatus", modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - }, - location: { - serializedName: "location", + patchStatus: { + serializedName: "patchStatus", type: { name: "String" } }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - groupId: { - serializedName: "properties.groupId", - readOnly: true, + latestPatchTime: { + serializedName: "latestPatchTime", type: { name: "String" } }, - requiredMembers: { - serializedName: "properties.requiredMembers", - readOnly: true, + rebootPending: { + serializedName: "rebootPending", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", + scheduledRebootTime: { + serializedName: "scheduledRebootTime", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const WorkspaceConnectionPropertiesV2BasicResource: coreClient.CompositeMapper = { +export const ComputeInstanceConnectivityEndpoints: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionPropertiesV2BasicResource", + className: "ComputeInstanceConnectivityEndpoints", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + publicIpAddress: { + serializedName: "publicIpAddress", + readOnly: true, + nullable: true, type: { - name: "Composite", - className: "WorkspaceConnectionPropertiesV2" + name: "String" + } + }, + privateIpAddress: { + serializedName: "privateIpAddress", + readOnly: true, + nullable: true, + type: { + name: "String" } } } } }; -export const TrackedResource: coreClient.CompositeMapper = { +export const ComputeInstanceApplication: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrackedResource", + className: "ComputeInstanceApplication", modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", + displayName: { + serializedName: "displayName", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - location: { - serializedName: "location", - required: true, + endpointUri: { + serializedName: "endpointUri", type: { name: "String" } @@ -7477,528 +7849,824 @@ export const TrackedResource: coreClient.CompositeMapper = { } }; -export const CodeContainer: coreClient.CompositeMapper = { +export const ComputeInstanceCreatedBy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeContainer", + className: "ComputeInstanceCreatedBy", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + userName: { + serializedName: "userName", + readOnly: true, + nullable: true, type: { - name: "Composite", - className: "CodeContainerProperties" + name: "String" } - } - } - } -}; - -export const CodeVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CodeVersion", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + }, + userOrgId: { + serializedName: "userOrgId", + readOnly: true, type: { - name: "Composite", - className: "CodeVersionProperties" + name: "String" } - } - } - } -}; - -export const ComponentContainer: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComponentContainer", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + }, + userId: { + serializedName: "userId", + readOnly: true, + nullable: true, type: { - name: "Composite", - className: "ComponentContainerProperties" + name: "String" } } } } }; -export const ComponentVersion: coreClient.CompositeMapper = { +export const PersonalComputeInstanceSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentVersion", + className: "PersonalComputeInstanceSettings", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + assignedUser: { + serializedName: "assignedUser", type: { name: "Composite", - className: "ComponentVersionProperties" + className: "AssignedUser" } } } } }; -export const DataContainer: coreClient.CompositeMapper = { +export const AssignedUser: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataContainer", + className: "AssignedUser", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + objectId: { + serializedName: "objectId", + required: true, type: { - name: "Composite", - className: "DataContainerProperties" + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + required: true, + type: { + name: "String" } } } } }; -export const DataVersionBase: coreClient.CompositeMapper = { +export const SetupScripts: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataVersionBase", + className: "SetupScripts", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + scripts: { + serializedName: "scripts", type: { name: "Composite", - className: "DataVersionBaseProperties" + className: "ScriptsToExecute" } } } } }; -export const Datastore: coreClient.CompositeMapper = { +export const ScriptsToExecute: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Datastore", + className: "ScriptsToExecute", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + startupScript: { + serializedName: "startupScript", type: { name: "Composite", - className: "DatastoreProperties" + className: "ScriptReference" } - } - } - } -}; - -export const EnvironmentContainer: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EnvironmentContainer", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + }, + creationScript: { + serializedName: "creationScript", type: { name: "Composite", - className: "EnvironmentContainerProperties" + className: "ScriptReference" } } } } }; -export const EnvironmentVersion: coreClient.CompositeMapper = { +export const ScriptReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentVersion", + className: "ScriptReference", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + scriptSource: { + serializedName: "scriptSource", type: { - name: "Composite", - className: "EnvironmentVersionProperties" + name: "String" + } + }, + scriptData: { + serializedName: "scriptData", + type: { + name: "String" + } + }, + scriptArguments: { + serializedName: "scriptArguments", + type: { + name: "String" + } + }, + timeout: { + serializedName: "timeout", + type: { + name: "String" } } } } }; -export const JobBase: coreClient.CompositeMapper = { +export const ComputeInstanceLastOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobBase", + className: "ComputeInstanceLastOperation", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + operationName: { + serializedName: "operationName", type: { - name: "Composite", - className: "JobBaseProperties" + name: "String" + } + }, + operationTime: { + serializedName: "operationTime", + type: { + name: "DateTime" + } + }, + operationStatus: { + serializedName: "operationStatus", + type: { + name: "String" + } + }, + operationTrigger: { + serializedName: "operationTrigger", + type: { + name: "String" } } } } }; -export const ModelContainer: coreClient.CompositeMapper = { +export const ComputeSchedules: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelContainer", + className: "ComputeSchedules", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + computeStartStop: { + serializedName: "computeStartStop", type: { - name: "Composite", - className: "ModelContainerProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeStartStopSchedule" + } + } } } } } }; -export const ModelVersion: coreClient.CompositeMapper = { +export const ComputeStartStopSchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelVersion", + className: "ComputeStartStopSchedule", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + id: { + serializedName: "id", + readOnly: true, + nullable: true, type: { - name: "Composite", - className: "ModelVersionProperties" + name: "String" } - } + }, + provisioningStatus: { + serializedName: "provisioningStatus", + readOnly: true, + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + }, + action: { + serializedName: "action", + type: { + name: "String" + } + }, + triggerType: { + serializedName: "triggerType", + type: { + name: "String" + } + }, + recurrence: { + serializedName: "recurrence", + type: { + name: "Composite", + className: "Recurrence" + } + }, + cron: { + serializedName: "cron", + type: { + name: "Composite", + className: "Cron" + } + }, + schedule: { + serializedName: "schedule", + type: { + name: "Composite", + className: "ScheduleBase" + } + } } } }; -export const Schedule: coreClient.CompositeMapper = { +export const Recurrence: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Schedule", + className: "Recurrence", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + frequency: { + serializedName: "frequency", + type: { + name: "String" + } + }, + interval: { + serializedName: "interval", + type: { + name: "Number" + } + }, + startTime: { + serializedName: "startTime", + nullable: true, + type: { + name: "String" + } + }, + timeZone: { + defaultValue: "UTC", + serializedName: "timeZone", + type: { + name: "String" + } + }, + schedule: { + serializedName: "schedule", type: { name: "Composite", - className: "ScheduleProperties" + className: "ComputeRecurrenceSchedule" } } } } }; -export const Aks: coreClient.CompositeMapper = { - serializedName: "AKS", +export const ComputeRecurrenceSchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Aks", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "ComputeRecurrenceSchedule", modelProperties: { - ...Compute.type.modelProperties, - ...AKSSchema.type.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, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } }; -export const Kubernetes: coreClient.CompositeMapper = { - serializedName: "Kubernetes", +export const Cron: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Kubernetes", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "Cron", modelProperties: { - ...Compute.type.modelProperties, - ...KubernetesSchema.type.modelProperties + startTime: { + serializedName: "startTime", + nullable: true, + type: { + name: "String" + } + }, + timeZone: { + defaultValue: "UTC", + serializedName: "timeZone", + type: { + name: "String" + } + }, + expression: { + serializedName: "expression", + type: { + name: "String" + } + } } } }; -export const AmlCompute: coreClient.CompositeMapper = { - serializedName: "AmlCompute", +export const ScheduleBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlCompute", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "ScheduleBase", modelProperties: { - ...Compute.type.modelProperties, - ...AmlComputeSchema.type.modelProperties + id: { + serializedName: "id", + nullable: true, + type: { + name: "String" + } + }, + provisioningStatus: { + serializedName: "provisioningStatus", + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + } } } }; -export const ComputeInstance: coreClient.CompositeMapper = { - serializedName: "ComputeInstance", +export const ComputeInstanceContainer: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstance", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "ComputeInstanceContainer", modelProperties: { - ...Compute.type.modelProperties, - ...ComputeInstanceSchema.type.modelProperties + name: { + serializedName: "name", + type: { + name: "String" + } + }, + autosave: { + serializedName: "autosave", + type: { + name: "String" + } + }, + gpu: { + serializedName: "gpu", + type: { + name: "String" + } + }, + network: { + serializedName: "network", + type: { + name: "String" + } + }, + environment: { + serializedName: "environment", + type: { + name: "Composite", + className: "ComputeInstanceEnvironmentInfo" + } + }, + services: { + serializedName: "services", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } + } } } }; -export const VirtualMachine: coreClient.CompositeMapper = { - serializedName: "VirtualMachine", +export const ComputeInstanceEnvironmentInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachine", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "ComputeInstanceEnvironmentInfo", 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 + name: { + serializedName: "name", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } } } }; -export const DataFactory: coreClient.CompositeMapper = { - serializedName: "DataFactory", +export const ComputeInstanceDataDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataFactory", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "ComputeInstanceDataDisk", modelProperties: { - ...Compute.type.modelProperties + caching: { + serializedName: "caching", + type: { + name: "String" + } + }, + diskSizeGB: { + serializedName: "diskSizeGB", + type: { + name: "Number" + } + }, + lun: { + serializedName: "lun", + type: { + name: "Number" + } + }, + storageAccountType: { + defaultValue: "Standard_LRS", + serializedName: "storageAccountType", + type: { + name: "String" + } + } } } }; -export const Databricks: coreClient.CompositeMapper = { - serializedName: "Databricks", +export const ComputeInstanceDataMount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Databricks", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "ComputeInstanceDataMount", modelProperties: { - ...Compute.type.modelProperties, - ...DatabricksSchema.type.modelProperties + source: { + serializedName: "source", + type: { + name: "String" + } + }, + sourceType: { + serializedName: "sourceType", + type: { + name: "String" + } + }, + mountName: { + serializedName: "mountName", + type: { + name: "String" + } + }, + mountAction: { + serializedName: "mountAction", + type: { + name: "String" + } + }, + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + mountPath: { + serializedName: "mountPath", + type: { + name: "String" + } + }, + mountState: { + serializedName: "mountState", + type: { + name: "String" + } + }, + mountedOn: { + serializedName: "mountedOn", + type: { + name: "DateTime" + } + }, + error: { + serializedName: "error", + type: { + name: "String" + } + } } } }; -export const DataLakeAnalytics: coreClient.CompositeMapper = { - serializedName: "DataLakeAnalytics", +export const ComputeInstanceVersion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataLakeAnalytics", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "ComputeInstanceVersion", modelProperties: { - ...Compute.type.modelProperties, - ...DataLakeAnalyticsSchema.type.modelProperties + runtime: { + serializedName: "runtime", + nullable: true, + type: { + name: "String" + } + } } } }; -export const SynapseSpark: coreClient.CompositeMapper = { - serializedName: "SynapseSpark", +export const ComputeInstanceSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SynapseSpark", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "ComputeInstanceSchema", modelProperties: { - ...Compute.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "SynapseSparkProperties" + className: "ComputeInstanceProperties" } } } } }; -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", +export const VirtualMachineSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSecrets", - uberParent: "ComputeSecrets", - polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + className: "VirtualMachineSchema", modelProperties: { - ...ComputeSecrets.type.modelProperties, - ...VirtualMachineSecretsSchema.type.modelProperties + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "VirtualMachineSchemaProperties" + } + } } } }; -export const DatabricksComputeSecrets: coreClient.CompositeMapper = { - serializedName: "Databricks", +export const VirtualMachineSchemaProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabricksComputeSecrets", - uberParent: "ComputeSecrets", - polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + className: "VirtualMachineSchemaProperties", modelProperties: { - ...ComputeSecrets.type.modelProperties, - ...DatabricksComputeSecretsProperties.type.modelProperties + virtualMachineSize: { + serializedName: "virtualMachineSize", + type: { + name: "String" + } + }, + sshPort: { + serializedName: "sshPort", + type: { + name: "Number" + } + }, + notebookServerPort: { + serializedName: "notebookServerPort", + type: { + name: "Number" + } + }, + address: { + serializedName: "address", + type: { + name: "String" + } + }, + administratorAccount: { + serializedName: "administratorAccount", + type: { + name: "Composite", + className: "VirtualMachineSshCredentials" + } + }, + isNotebookInstanceCompute: { + serializedName: "isNotebookInstanceCompute", + type: { + name: "Boolean" + } + } } } }; -export const PATAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "PAT", +export const VirtualMachineSshCredentials: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PATAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + className: "VirtualMachineSshCredentials", modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", + username: { + serializedName: "username", type: { - name: "Composite", - className: "WorkspaceConnectionPersonalAccessToken" + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + }, + publicKeyData: { + serializedName: "publicKeyData", + type: { + name: "String" + } + }, + privateKeyData: { + serializedName: "privateKeyData", + type: { + name: "String" } } } } }; -export const SASAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "SAS", +export const HDInsightProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SASAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + className: "HDInsightProperties", modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", + sshPort: { + serializedName: "sshPort", + type: { + name: "Number" + } + }, + address: { + serializedName: "address", + type: { + name: "String" + } + }, + administratorAccount: { + serializedName: "administratorAccount", type: { name: "Composite", - className: "WorkspaceConnectionSharedAccessSignature" + className: "VirtualMachineSshCredentials" } } } } }; -export const UsernamePasswordAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "UsernamePassword", +export const HDInsightSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsernamePasswordAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + className: "HDInsightSchema", modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "WorkspaceConnectionUsernamePassword" + className: "HDInsightProperties" } } } } }; -export const NoneAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "None", +export const DatabricksProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NoneAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + className: "DatabricksProperties", modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties + databricksAccessToken: { + serializedName: "databricksAccessToken", + type: { + name: "String" + } + }, + workspaceUrl: { + serializedName: "workspaceUrl", + type: { + name: "String" + } + } } } }; -export const ManagedIdentityAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "ManagedIdentity", +export const DatabricksSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedIdentityAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + className: "DatabricksSchema", modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "WorkspaceConnectionManagedIdentity" + className: "DatabricksProperties" } } } } }; -export const BatchEndpointProperties: coreClient.CompositeMapper = { +export const DataLakeAnalyticsSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchEndpointProperties", + className: "DataLakeAnalyticsSchema", modelProperties: { - ...EndpointPropertiesBase.type.modelProperties, - defaults: { - serializedName: "defaults", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "BatchEndpointDefaults" + className: "DataLakeAnalyticsSchemaProperties" } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + } + } + } +}; + +export const DataLakeAnalyticsSchemaProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataLakeAnalyticsSchemaProperties", + modelProperties: { + dataLakeStoreAccountName: { + serializedName: "dataLakeStoreAccountName", type: { name: "String" } @@ -8007,96 +8675,144 @@ export const BatchEndpointProperties: coreClient.CompositeMapper = { } }; -export const OnlineEndpointProperties: coreClient.CompositeMapper = { +export const SynapseSparkProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointProperties", + className: "SynapseSparkProperties", modelProperties: { - ...EndpointPropertiesBase.type.modelProperties, - compute: { - serializedName: "compute", - nullable: true, + autoScaleProperties: { + serializedName: "autoScaleProperties", + type: { + name: "Composite", + className: "AutoScaleProperties" + } + }, + autoPauseProperties: { + serializedName: "autoPauseProperties", + type: { + name: "Composite", + className: "AutoPauseProperties" + } + }, + sparkVersion: { + serializedName: "sparkVersion", type: { name: "String" } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + nodeCount: { + serializedName: "nodeCount", + type: { + name: "Number" + } + }, + nodeSize: { + serializedName: "nodeSize", type: { name: "String" } }, - publicNetworkAccess: { - serializedName: "publicNetworkAccess", + nodeSizeFamily: { + serializedName: "nodeSizeFamily", type: { name: "String" } }, - traffic: { - serializedName: "traffic", - nullable: true, + subscriptionId: { + serializedName: "subscriptionId", type: { - name: "Dictionary", - value: { type: { name: "Number" } } + name: "String" + } + }, + resourceGroup: { + serializedName: "resourceGroup", + type: { + name: "String" + } + }, + workspaceName: { + serializedName: "workspaceName", + type: { + name: "String" + } + }, + poolName: { + serializedName: "poolName", + type: { + name: "String" } } } } }; -export const PartialMinimalTrackedResourceWithIdentity: coreClient.CompositeMapper = { +export const AutoScaleProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartialMinimalTrackedResourceWithIdentity", + className: "AutoScaleProperties", modelProperties: { - ...PartialMinimalTrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + minNodeCount: { + serializedName: "minNodeCount", type: { - name: "Composite", - className: "PartialManagedServiceIdentity" + name: "Number" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + maxNodeCount: { + serializedName: "maxNodeCount", + type: { + name: "Number" } } } } }; -export const PartialMinimalTrackedResourceWithSku: coreClient.CompositeMapper = { +export const AutoPauseProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartialMinimalTrackedResourceWithSku", + className: "AutoPauseProperties", modelProperties: { - ...PartialMinimalTrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + delayInMinutes: { + serializedName: "delayInMinutes", type: { - name: "Composite", - className: "PartialSku" + name: "Number" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" } } } } }; -export const DataPathAssetReference: coreClient.CompositeMapper = { - serializedName: "DataPath", +export const AksComputeSecretsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataPathAssetReference", - uberParent: "AssetReferenceBase", - polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + className: "AksComputeSecretsProperties", modelProperties: { - ...AssetReferenceBase.type.modelProperties, - datastoreId: { - serializedName: "datastoreId", - nullable: true, + userKubeConfig: { + serializedName: "userKubeConfig", type: { name: "String" } }, - path: { - serializedName: "path", + adminKubeConfig: { + serializedName: "adminKubeConfig", + type: { + name: "String" + } + }, + imagePullSecretName: { + serializedName: "imagePullSecretName", nullable: true, type: { name: "String" @@ -8106,48 +8822,50 @@ export const DataPathAssetReference: coreClient.CompositeMapper = { } }; -export const IdAssetReference: coreClient.CompositeMapper = { - serializedName: "Id", +export const VirtualMachineSecretsSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IdAssetReference", - uberParent: "AssetReferenceBase", - polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + className: "VirtualMachineSecretsSchema", modelProperties: { - ...AssetReferenceBase.type.modelProperties, - assetId: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "assetId", - required: true, + administratorAccount: { + serializedName: "administratorAccount", type: { - name: "String" + name: "Composite", + className: "VirtualMachineSshCredentials" } } } } }; -export const OutputPathAssetReference: coreClient.CompositeMapper = { - serializedName: "OutputPath", +export const DatabricksComputeSecretsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutputPathAssetReference", - uberParent: "AssetReferenceBase", - polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + className: "DatabricksComputeSecretsProperties", modelProperties: { - ...AssetReferenceBase.type.modelProperties, - jobId: { - serializedName: "jobId", - nullable: true, + databricksAccessToken: { + serializedName: "databricksAccessToken", type: { name: "String" } - }, - path: { - serializedName: "path", - nullable: true, + } + } + } +}; + +export const MonitoringFeatureFilterBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MonitoringFeatureFilterBase", + uberParent: "MonitoringFeatureFilterBase", + polymorphicDiscriminator: { + serializedName: "filterType", + clientName: "filterType" + }, + modelProperties: { + filterType: { + serializedName: "filterType", + required: true, type: { name: "String" } @@ -8156,35 +8874,45 @@ export const OutputPathAssetReference: coreClient.CompositeMapper = { } }; -export const DeploymentResourceConfiguration: coreClient.CompositeMapper = { +export const MonitorComputeIdentityBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentResourceConfiguration", + className: "MonitorComputeIdentityBase", + uberParent: "MonitorComputeIdentityBase", + polymorphicDiscriminator: { + serializedName: "computeIdentityType", + clientName: "computeIdentityType" + }, modelProperties: { - ...ResourceConfiguration.type.modelProperties + computeIdentityType: { + serializedName: "computeIdentityType", + required: true, + type: { + name: "String" + } + } } } }; -export const JobResourceConfiguration: coreClient.CompositeMapper = { +export const AssetJobInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobResourceConfiguration", + className: "AssetJobInput", modelProperties: { - ...ResourceConfiguration.type.modelProperties, - dockerArgs: { - serializedName: "dockerArgs", - nullable: true, + mode: { + serializedName: "mode", type: { name: "String" } }, - shmSize: { - defaultValue: "2g", + uri: { constraints: { - Pattern: new RegExp("\\d+[bBkKmMgG]") + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 }, - serializedName: "shmSize", + serializedName: "uri", + required: true, type: { name: "String" } @@ -8193,208 +8921,202 @@ export const JobResourceConfiguration: coreClient.CompositeMapper = { } }; -export const BatchDeploymentProperties: coreClient.CompositeMapper = { +export const AssetJobOutput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchDeploymentProperties", + className: "AssetJobOutput", modelProperties: { - ...EndpointDeploymentPropertiesBase.type.modelProperties, - compute: { - serializedName: "compute", + assetName: { + serializedName: "assetName", nullable: true, type: { name: "String" } }, - errorThreshold: { - defaultValue: -1, - serializedName: "errorThreshold", - type: { - name: "Number" - } - }, - loggingLevel: { - serializedName: "loggingLevel", + assetVersion: { + serializedName: "assetVersion", + nullable: true, type: { name: "String" } }, - maxConcurrencyPerInstance: { - defaultValue: 1, - serializedName: "maxConcurrencyPerInstance", - type: { - name: "Number" - } - }, - miniBatchSize: { - defaultValue: 10, - serializedName: "miniBatchSize", - type: { - name: "Number" - } - }, - model: { - serializedName: "model", + autoDeleteSetting: { + serializedName: "autoDeleteSetting", type: { name: "Composite", - className: "AssetReferenceBase" + className: "AutoDeleteSetting" } }, - outputAction: { - serializedName: "outputAction", + mode: { + serializedName: "mode", type: { name: "String" } }, - outputFileName: { - defaultValue: "predictions.csv", - serializedName: "outputFileName", + uri: { + serializedName: "uri", + nullable: true, type: { name: "String" } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + } + } + } +}; + +export const ForecastHorizon: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ForecastHorizon", + uberParent: "ForecastHorizon", + polymorphicDiscriminator: { + serializedName: "mode", + clientName: "mode" + }, + modelProperties: { + mode: { + serializedName: "mode", + required: 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", +export const JobOutput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineDeploymentProperties", - uberParent: "EndpointDeploymentPropertiesBase", + className: "JobOutput", + uberParent: "JobOutput", polymorphicDiscriminator: { - serializedName: "endpointComputeType", - clientName: "endpointComputeType" + serializedName: "jobOutputType", + clientName: "jobOutputType" }, modelProperties: { - ...EndpointDeploymentPropertiesBase.type.modelProperties, - appInsightsEnabled: { - defaultValue: false, - serializedName: "appInsightsEnabled", - type: { - name: "Boolean" - } - }, - egressPublicNetworkAccess: { - serializedName: "egressPublicNetworkAccess", + description: { + serializedName: "description", + nullable: true, type: { name: "String" } }, - endpointComputeType: { - serializedName: "endpointComputeType", + jobOutputType: { + serializedName: "jobOutputType", required: true, type: { name: "String" } - }, - instanceType: { - serializedName: "instanceType", - nullable: true, + } + } + } +}; + +export const QueueSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QueueSettings", + modelProperties: { + jobTier: { + serializedName: "jobTier", type: { name: "String" } }, - livenessProbe: { - serializedName: "livenessProbe", + priority: { + serializedName: "priority", + nullable: true, type: { - name: "Composite", - className: "ProbeSettings" + name: "Number" } - }, - model: { - serializedName: "model", - nullable: true, + } + } + } +}; + +export const AutoMLVertical: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutoMLVertical", + uberParent: "AutoMLVertical", + polymorphicDiscriminator: { + serializedName: "taskType", + clientName: "taskType" + }, + modelProperties: { + logVerbosity: { + serializedName: "logVerbosity", type: { name: "String" } }, - modelMountPath: { - serializedName: "modelMountPath", + targetColumnName: { + serializedName: "targetColumnName", nullable: true, type: { name: "String" } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + taskType: { + serializedName: "taskType", + required: true, type: { name: "String" } }, - readinessProbe: { - serializedName: "readinessProbe", - type: { - name: "Composite", - className: "ProbeSettings" - } - }, - requestSettings: { - serializedName: "requestSettings", - type: { - name: "Composite", - className: "OnlineRequestSettings" - } - }, - scaleSettings: { - serializedName: "scaleSettings", + trainingData: { + serializedName: "trainingData", type: { name: "Composite", - className: "OnlineScaleSettings" + className: "MLTableJobInput" } } } } }; -export const AssetContainer: coreClient.CompositeMapper = { +export const JobInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssetContainer", + className: "JobInput", + uberParent: "JobInput", + polymorphicDiscriminator: { + serializedName: "jobInputType", + clientName: "jobInputType" + }, modelProperties: { - ...ResourceBase.type.modelProperties, - isArchived: { - defaultValue: false, - serializedName: "isArchived", + description: { + serializedName: "description", + nullable: true, type: { - name: "Boolean" + name: "String" } }, - latestVersion: { - serializedName: "latestVersion", - readOnly: true, - nullable: true, + jobInputType: { + serializedName: "jobInputType", + required: true, type: { name: "String" } - }, - nextVersion: { - serializedName: "nextVersion", - readOnly: true, - nullable: true, + } + } + } +}; + +export const NCrossValidations: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NCrossValidations", + uberParent: "NCrossValidations", + polymorphicDiscriminator: { + serializedName: "mode", + clientName: "mode" + }, + modelProperties: { + mode: { + serializedName: "mode", + required: true, type: { name: "String" } @@ -8403,408 +9125,320 @@ export const AssetContainer: coreClient.CompositeMapper = { } }; -export const AssetBase: coreClient.CompositeMapper = { +export const Seasonality: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssetBase", + className: "Seasonality", + uberParent: "Seasonality", + polymorphicDiscriminator: { + serializedName: "mode", + clientName: "mode" + }, modelProperties: { - ...ResourceBase.type.modelProperties, - isAnonymous: { - defaultValue: false, - serializedName: "isAnonymous", - type: { - name: "Boolean" - } - }, - isArchived: { - defaultValue: false, - serializedName: "isArchived", + mode: { + serializedName: "mode", + required: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const DatastoreProperties: coreClient.CompositeMapper = { - serializedName: "DatastoreProperties", +export const TargetLags: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatastoreProperties", - uberParent: "ResourceBase", + className: "TargetLags", + uberParent: "TargetLags", polymorphicDiscriminator: { - serializedName: "datastoreType", - clientName: "datastoreType" + serializedName: "mode", + clientName: "mode" }, modelProperties: { - ...ResourceBase.type.modelProperties, - credentials: { - serializedName: "credentials", - type: { - name: "Composite", - className: "DatastoreCredentials" - } - }, - datastoreType: { - serializedName: "datastoreType", + mode: { + serializedName: "mode", required: true, type: { name: "String" } - }, - isDefault: { - serializedName: "isDefault", - readOnly: true, - type: { - name: "Boolean" - } } } } }; -export const JobBaseProperties: coreClient.CompositeMapper = { - serializedName: "JobBaseProperties", +export const TargetRollingWindowSize: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobBaseProperties", - uberParent: "ResourceBase", + className: "TargetRollingWindowSize", + uberParent: "TargetRollingWindowSize", polymorphicDiscriminator: { - serializedName: "jobType", - clientName: "jobType" + serializedName: "mode", + clientName: "mode" }, modelProperties: { - ...ResourceBase.type.modelProperties, - componentId: { - serializedName: "componentId", - nullable: true, + mode: { + serializedName: "mode", + required: true, type: { name: "String" } - }, - computeId: { - serializedName: "computeId", - nullable: true, + } + } + } +}; + +export const AutologgerSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutologgerSettings", + modelProperties: { + mlflowAutologger: { + serializedName: "mlflowAutologger", + required: true, type: { name: "String" } - }, - displayName: { - serializedName: "displayName", + } + } + } +}; + +export const AzureDatastore: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureDatastore", + modelProperties: { + resourceGroup: { + serializedName: "resourceGroup", nullable: true, type: { name: "String" } }, - experimentName: { - defaultValue: "Default", - serializedName: "experimentName", + subscriptionId: { + serializedName: "subscriptionId", + nullable: true, type: { name: "String" } - }, - identity: { - serializedName: "identity", + } + } + } +}; + +export const EarlyTerminationPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EarlyTerminationPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: { + serializedName: "policyType", + clientName: "policyType" + }, + modelProperties: { + delayEvaluation: { + defaultValue: 0, + serializedName: "delayEvaluation", type: { - name: "Composite", - className: "IdentityConfiguration" + name: "Number" } }, - isArchived: { - defaultValue: false, - serializedName: "isArchived", + evaluationInterval: { + defaultValue: 0, + serializedName: "evaluationInterval", type: { - name: "Boolean" + name: "Number" } }, - jobType: { - serializedName: "jobType", + policyType: { + serializedName: "policyType", required: true, type: { name: "String" } - }, - 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 = { +export const SamplingAlgorithm: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScheduleProperties", + className: "SamplingAlgorithm", + uberParent: "SamplingAlgorithm", + polymorphicDiscriminator: { + serializedName: "samplingAlgorithmType", + clientName: "samplingAlgorithmType" + }, modelProperties: { - ...ResourceBase.type.modelProperties, - action: { - serializedName: "action", - type: { - name: "Composite", - className: "ScheduleActionBase" - } - }, - displayName: { - serializedName: "displayName", - nullable: true, + samplingAlgorithmType: { + serializedName: "samplingAlgorithmType", + required: true, type: { name: "String" } - }, - isEnabled: { - defaultValue: true, - serializedName: "isEnabled", - type: { - name: "Boolean" - } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + } + } + } +}; + +export const DataDriftMetricThresholdBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataDriftMetricThresholdBase", + uberParent: "DataDriftMetricThresholdBase", + polymorphicDiscriminator: { + serializedName: "dataType", + clientName: "dataType" + }, + modelProperties: { + dataType: { + serializedName: "dataType", + required: true, type: { name: "String" } }, - trigger: { - serializedName: "trigger", + threshold: { + serializedName: "threshold", type: { name: "Composite", - className: "TriggerBase" + className: "MonitoringThreshold" } } } } }; -export const AccountKeyDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "AccountKey", +export const MonitoringThreshold: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccountKeyDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "MonitoringThreshold", modelProperties: { - ...DatastoreCredentials.type.modelProperties, - secrets: { - serializedName: "secrets", + value: { + serializedName: "value", + nullable: true, type: { - name: "Composite", - className: "AccountKeyDatastoreSecrets" + name: "Number" } } } } }; -export const CertificateDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "Certificate", +export const DataQualityMetricThresholdBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CertificateDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "DataQualityMetricThresholdBase", + uberParent: "DataQualityMetricThresholdBase", + polymorphicDiscriminator: { + serializedName: "dataType", + clientName: "dataType" + }, modelProperties: { - ...DatastoreCredentials.type.modelProperties, - authorityUrl: { - serializedName: "authorityUrl", - nullable: true, - type: { - name: "String" - } - }, - clientId: { - serializedName: "clientId", + dataType: { + serializedName: "dataType", required: true, - type: { - name: "Uuid" - } - }, - resourceUrl: { - serializedName: "resourceUrl", - nullable: true, type: { name: "String" } }, - secrets: { - serializedName: "secrets", + threshold: { + serializedName: "threshold", type: { name: "Composite", - className: "CertificateDatastoreSecrets" - } - }, - tenantId: { - serializedName: "tenantId", - required: true, - type: { - name: "Uuid" - } - }, - thumbprint: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "thumbprint", - required: true, - type: { - name: "String" + className: "MonitoringThreshold" } } } } }; -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", +export const PredictionDriftMetricThresholdBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SasDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "PredictionDriftMetricThresholdBase", + uberParent: "PredictionDriftMetricThresholdBase", + polymorphicDiscriminator: { + serializedName: "dataType", + clientName: "dataType" + }, modelProperties: { - ...DatastoreCredentials.type.modelProperties, - secrets: { - serializedName: "secrets", + dataType: { + serializedName: "dataType", + required: true, + type: { + name: "String" + } + }, + threshold: { + serializedName: "threshold", type: { name: "Composite", - className: "SasDatastoreSecrets" + className: "MonitoringThreshold" } } } } }; -export const ServicePrincipalDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "ServicePrincipal", +export const TrainingSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServicePrincipalDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "TrainingSettings", modelProperties: { - ...DatastoreCredentials.type.modelProperties, - authorityUrl: { - serializedName: "authorityUrl", - nullable: true, + enableDnnTraining: { + defaultValue: false, + serializedName: "enableDnnTraining", type: { - name: "String" + name: "Boolean" } }, - clientId: { - serializedName: "clientId", - required: true, + enableModelExplainability: { + defaultValue: true, + serializedName: "enableModelExplainability", type: { - name: "Uuid" + name: "Boolean" } }, - resourceUrl: { - serializedName: "resourceUrl", - nullable: true, + enableOnnxCompatibleModels: { + defaultValue: false, + serializedName: "enableOnnxCompatibleModels", type: { - name: "String" + name: "Boolean" } }, - secrets: { - serializedName: "secrets", + enableStackEnsemble: { + defaultValue: true, + serializedName: "enableStackEnsemble", type: { - name: "Composite", - className: "ServicePrincipalDatastoreSecrets" + name: "Boolean" } }, - tenantId: { - serializedName: "tenantId", - required: true, + enableVoteEnsemble: { + defaultValue: true, + serializedName: "enableVoteEnsemble", type: { - name: "Uuid" + name: "Boolean" } - } - } - } -}; - -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, + }, + ensembleModelDownloadTimeout: { + defaultValue: "PT5M", + serializedName: "ensembleModelDownloadTimeout", type: { - name: "String" + name: "TimeSpan" } - } - } - } -}; - -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, + }, + stackEnsembleSettings: { + serializedName: "stackEnsembleSettings", type: { - name: "String" + name: "Composite", + className: "StackEnsembleSettings" } - } - } - } -}; - -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, + }, + trainingMode: { + serializedName: "trainingMode", type: { name: "String" } @@ -8813,18 +9447,28 @@ export const SasDatastoreSecrets: coreClient.CompositeMapper = { } }; -export const ServicePrincipalDatastoreSecrets: coreClient.CompositeMapper = { - serializedName: "ServicePrincipal", +export const StackEnsembleSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServicePrincipalDatastoreSecrets", - uberParent: "DatastoreSecrets", - polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + className: "StackEnsembleSettings", modelProperties: { - ...DatastoreSecrets.type.modelProperties, - clientSecret: { - serializedName: "clientSecret", + stackMetaLearnerKWargs: { + serializedName: "stackMetaLearnerKWargs", nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + stackMetaLearnerTrainPercentage: { + defaultValue: 0.2, + serializedName: "stackMetaLearnerTrainPercentage", + type: { + name: "Number" + } + }, + stackMetaLearnerType: { + serializedName: "stackMetaLearnerType", type: { name: "String" } @@ -8833,135 +9477,130 @@ export const ServicePrincipalDatastoreSecrets: coreClient.CompositeMapper = { } }; -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", +export const TableVertical: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedIdentity", - uberParent: "IdentityConfiguration", - polymorphicDiscriminator: - IdentityConfiguration.type.polymorphicDiscriminator, + className: "TableVertical", modelProperties: { - ...IdentityConfiguration.type.modelProperties, - clientId: { - serializedName: "clientId", + cvSplitColumnNames: { + serializedName: "cvSplitColumnNames", nullable: true, type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - objectId: { - serializedName: "objectId", - nullable: true, + featurizationSettings: { + serializedName: "featurizationSettings", type: { - name: "Uuid" + name: "Composite", + className: "TableVerticalFeaturizationSettings" } }, - resourceId: { - serializedName: "resourceId", - nullable: true, + fixedParameters: { + serializedName: "fixedParameters", type: { - name: "String" + name: "Composite", + className: "TableFixedParameters" } - } - } - } -}; - -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", - 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", + }, + limitSettings: { + serializedName: "limitSettings", type: { - name: "Number" + name: "Composite", + className: "TableVerticalLimitSettings" } }, - minInstances: { - defaultValue: 1, - serializedName: "minInstances", + nCrossValidations: { + serializedName: "nCrossValidations", + type: { + name: "Composite", + className: "NCrossValidations" + } + }, + searchSpace: { + serializedName: "searchSpace", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TableParameterSubspace" + } + } + } + }, + sweepSettings: { + serializedName: "sweepSettings", + type: { + name: "Composite", + className: "TableSweepSettings" + } + }, + testData: { + serializedName: "testData", + type: { + name: "Composite", + className: "MLTableJobInput" + } + }, + testDataSize: { + serializedName: "testDataSize", + nullable: true, type: { name: "Number" } }, - pollingInterval: { - defaultValue: "PT1S", - serializedName: "pollingInterval", + validationData: { + serializedName: "validationData", type: { - name: "TimeSpan" + name: "Composite", + className: "MLTableJobInput" } }, - targetUtilizationPercentage: { - defaultValue: 70, - serializedName: "targetUtilizationPercentage", + validationDataSize: { + serializedName: "validationDataSize", + nullable: true, type: { name: "Number" } + }, + weightColumnName: { + serializedName: "weightColumnName", + nullable: true, + type: { + name: "String" + } } } } }; -export const EndpointScheduleAction: coreClient.CompositeMapper = { - serializedName: "InvokeBatchEndpoint", +export const ColumnTransformer: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointScheduleAction", - uberParent: "ScheduleActionBase", - polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, + className: "ColumnTransformer", modelProperties: { - ...ScheduleActionBase.type.modelProperties, - endpointInvocationDefinition: { - serializedName: "endpointInvocationDefinition", - required: true, + fields: { + serializedName: "fields", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + parameters: { + serializedName: "parameters", + nullable: true, type: { name: "Dictionary", value: { type: { name: "any" } } @@ -8971,393 +9610,8663 @@ export const EndpointScheduleAction: coreClient.CompositeMapper = { } }; -export const JobScheduleAction: coreClient.CompositeMapper = { - serializedName: "CreateJob", +export const FeaturizationSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleAction", - uberParent: "ScheduleActionBase", - polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, + className: "FeaturizationSettings", modelProperties: { - ...ScheduleActionBase.type.modelProperties, - jobDefinition: { - serializedName: "jobDefinition", + datasetLanguage: { + serializedName: "datasetLanguage", + nullable: true, type: { - name: "Composite", - className: "JobBaseProperties" + name: "String" } } } } }; -export const RecurrenceTrigger: coreClient.CompositeMapper = { - serializedName: "Recurrence", +export const TableFixedParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecurrenceTrigger", - uberParent: "TriggerBase", - polymorphicDiscriminator: TriggerBase.type.polymorphicDiscriminator, + className: "TableFixedParameters", modelProperties: { - ...TriggerBase.type.modelProperties, - frequency: { - serializedName: "frequency", - required: true, + booster: { + serializedName: "booster", + nullable: true, type: { name: "String" } }, - interval: { - serializedName: "interval", - required: true, + boostingType: { + serializedName: "boostingType", + nullable: true, + type: { + name: "String" + } + }, + growPolicy: { + serializedName: "growPolicy", + nullable: true, + type: { + name: "String" + } + }, + learningRate: { + serializedName: "learningRate", + nullable: true, type: { name: "Number" } }, - schedule: { - serializedName: "schedule", + maxBin: { + serializedName: "maxBin", + nullable: true, type: { - name: "Composite", - className: "RecurrenceSchedule" + name: "Number" } - } - } - } -}; - -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_]") - }, - serializedName: "expression", - required: true, + }, + maxDepth: { + serializedName: "maxDepth", + nullable: true, + type: { + name: "Number" + } + }, + maxLeaves: { + serializedName: "maxLeaves", + nullable: true, + type: { + name: "Number" + } + }, + minDataInLeaf: { + serializedName: "minDataInLeaf", + nullable: true, + type: { + name: "Number" + } + }, + minSplitGain: { + serializedName: "minSplitGain", + nullable: true, + type: { + name: "Number" + } + }, + modelName: { + serializedName: "modelName", + nullable: true, type: { name: "String" } - } - } - } -}; - -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 - } + }, + nEstimators: { + serializedName: "nEstimators", + nullable: true, + type: { + name: "Number" + } + }, + numLeaves: { + serializedName: "numLeaves", + nullable: true, + type: { + name: "Number" + } + }, + preprocessorName: { + serializedName: "preprocessorName", + nullable: true, + type: { + name: "String" + } + }, + regAlpha: { + serializedName: "regAlpha", + nullable: true, + type: { + name: "Number" + } + }, + regLambda: { + serializedName: "regLambda", + nullable: true, + type: { + name: "Number" + } + }, + subsample: { + serializedName: "subsample", + nullable: true, + type: { + name: "Number" + } + }, + subsampleFreq: { + serializedName: "subsampleFreq", + nullable: true, + type: { + name: "Number" + } + }, + treeMethod: { + serializedName: "treeMethod", + nullable: true, + type: { + name: "String" + } + }, + withMean: { + defaultValue: false, + serializedName: "withMean", + type: { + name: "Boolean" + } + }, + withStd: { + defaultValue: false, + serializedName: "withStd", + type: { + name: "Boolean" + } + } + } + } +}; + +export const TableVerticalLimitSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TableVerticalLimitSettings", + modelProperties: { + enableEarlyTermination: { + defaultValue: true, + serializedName: "enableEarlyTermination", + type: { + name: "Boolean" + } + }, + exitScore: { + serializedName: "exitScore", + nullable: true, + type: { + name: "Number" + } + }, + maxConcurrentTrials: { + defaultValue: 1, + serializedName: "maxConcurrentTrials", + type: { + name: "Number" + } + }, + maxCoresPerTrial: { + defaultValue: -1, + serializedName: "maxCoresPerTrial", + type: { + name: "Number" + } + }, + maxNodes: { + defaultValue: 1, + serializedName: "maxNodes", + type: { + 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 TableParameterSubspace: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TableParameterSubspace", + modelProperties: { + booster: { + serializedName: "booster", + nullable: true, + type: { + name: "String" + } + }, + boostingType: { + serializedName: "boostingType", + nullable: true, + type: { + name: "String" + } + }, + growPolicy: { + serializedName: "growPolicy", + nullable: true, + type: { + name: "String" + } + }, + learningRate: { + serializedName: "learningRate", + nullable: true, + type: { + name: "String" + } + }, + maxBin: { + serializedName: "maxBin", + nullable: true, + type: { + name: "String" + } + }, + maxDepth: { + serializedName: "maxDepth", + nullable: true, + type: { + name: "String" + } + }, + maxLeaves: { + serializedName: "maxLeaves", + nullable: true, + type: { + name: "String" + } + }, + minDataInLeaf: { + serializedName: "minDataInLeaf", + nullable: true, + type: { + name: "String" + } + }, + minSplitGain: { + serializedName: "minSplitGain", + nullable: true, + type: { + name: "String" + } + }, + modelName: { + serializedName: "modelName", + nullable: true, + type: { + name: "String" + } + }, + nEstimators: { + serializedName: "nEstimators", + nullable: true, + type: { + name: "String" + } + }, + numLeaves: { + serializedName: "numLeaves", + nullable: true, + type: { + name: "String" + } + }, + preprocessorName: { + serializedName: "preprocessorName", + nullable: true, + type: { + name: "String" + } + }, + regAlpha: { + serializedName: "regAlpha", + nullable: true, + type: { + name: "String" + } + }, + regLambda: { + serializedName: "regLambda", + nullable: true, + type: { + name: "String" + } + }, + subsample: { + serializedName: "subsample", + nullable: true, + type: { + name: "String" + } + }, + subsampleFreq: { + serializedName: "subsampleFreq", + nullable: true, + type: { + 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 TableSweepSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TableSweepSettings", + modelProperties: { + earlyTermination: { + serializedName: "earlyTermination", + type: { + name: "Composite", + className: "EarlyTerminationPolicy" + } + }, + samplingAlgorithm: { + serializedName: "samplingAlgorithm", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ModelPerformanceMetricThresholdBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelPerformanceMetricThresholdBase", + uberParent: "ModelPerformanceMetricThresholdBase", + polymorphicDiscriminator: { + serializedName: "modelType", + clientName: "modelType" + }, + modelProperties: { + modelType: { + serializedName: "modelType", + required: true, + type: { + name: "String" + } + }, + threshold: { + serializedName: "threshold", + type: { + name: "Composite", + className: "MonitoringThreshold" + } + } + } + } +}; + +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: "String" + } + } + } + } +}; + +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 ComponentConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentConfiguration", + modelProperties: { + pipelineSettings: { + serializedName: "pipelineSettings", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } + } +}; + +export const ContainerResourceRequirements: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContainerResourceRequirements", + modelProperties: { + containerResourceLimits: { + serializedName: "containerResourceLimits", + type: { + name: "Composite", + className: "ContainerResourceSettings" + } + }, + containerResourceRequests: { + serializedName: "containerResourceRequests", + type: { + name: "Composite", + className: "ContainerResourceSettings" + } + } + } + } +}; + +export const ContainerResourceSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContainerResourceSettings", + modelProperties: { + cpu: { + serializedName: "cpu", + nullable: true, + type: { + name: "String" + } + }, + gpu: { + serializedName: "gpu", + nullable: true, + type: { + name: "String" + } + }, + memory: { + serializedName: "memory", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const MonitorDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MonitorDefinition", + modelProperties: { + alertNotificationSettings: { + serializedName: "alertNotificationSettings", + type: { + name: "Composite", + className: "MonitorNotificationSettings" + } + }, + computeConfiguration: { + serializedName: "computeConfiguration", + type: { + name: "Composite", + className: "MonitorComputeConfigurationBase" + } + }, + monitoringTarget: { + serializedName: "monitoringTarget", + type: { + name: "Composite", + className: "MonitoringTarget" + } + }, + signals: { + serializedName: "signals", + required: true, + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "MonitoringSignalBase" } + } + } + } + } + } +}; + +export const MonitorNotificationSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MonitorNotificationSettings", + modelProperties: { + emailNotificationSettings: { + serializedName: "emailNotificationSettings", + type: { + name: "Composite", + className: "MonitorEmailNotificationSettings" + } + } + } + } +}; + +export const MonitorEmailNotificationSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MonitorEmailNotificationSettings", + modelProperties: { + emails: { + serializedName: "emails", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const MonitorComputeConfigurationBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MonitorComputeConfigurationBase", + uberParent: "MonitorComputeConfigurationBase", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, + modelProperties: { + computeType: { + serializedName: "computeType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const MonitoringTarget: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MonitoringTarget", + modelProperties: { + deploymentId: { + serializedName: "deploymentId", + nullable: true, + type: { + name: "String" + } + }, + modelId: { + serializedName: "modelId", + nullable: true, + type: { + name: "String" + } + }, + taskType: { + serializedName: "taskType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const MonitoringSignalBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MonitoringSignalBase", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: { + serializedName: "signalType", + clientName: "signalType" + }, + modelProperties: { + notificationTypes: { + serializedName: "notificationTypes", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + properties: { + serializedName: "properties", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + signalType: { + serializedName: "signalType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const OnlineInferenceConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineInferenceConfiguration", + modelProperties: { + configurations: { + serializedName: "configurations", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + entryScript: { + serializedName: "entryScript", + nullable: true, + type: { + name: "String" + } + }, + livenessRoute: { + serializedName: "livenessRoute", + type: { + name: "Composite", + className: "Route" + } + }, + readinessRoute: { + serializedName: "readinessRoute", + type: { + name: "Composite", + className: "Route" + } + }, + scoringRoute: { + serializedName: "scoringRoute", + type: { + name: "Composite", + className: "Route" + } + } + } + } +}; + +export const CustomMetricThreshold: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomMetricThreshold", + 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 MonitoringInputDataBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MonitoringInputDataBase", + uberParent: "MonitoringInputDataBase", + polymorphicDiscriminator: { + serializedName: "inputDataType", + clientName: "inputDataType" + }, + modelProperties: { + columns: { + serializedName: "columns", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + dataContext: { + serializedName: "dataContext", + nullable: true, + type: { + name: "String" + } + }, + inputDataType: { + serializedName: "inputDataType", + required: true, + type: { + name: "String" + } + }, + jobInputType: { + serializedName: "jobInputType", + required: true, + type: { + name: "String" + } + }, + uri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "uri", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const MonitoringWorkspaceConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MonitoringWorkspaceConnection", + modelProperties: { + environmentVariables: { + serializedName: "environmentVariables", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + secrets: { + serializedName: "secrets", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const MonitoringDataSegment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MonitoringDataSegment", + modelProperties: { + feature: { + serializedName: "feature", + nullable: true, + type: { + name: "String" + } + }, + values: { + serializedName: "values", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const FeatureImportanceSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeatureImportanceSettings", + modelProperties: { + mode: { + serializedName: "mode", + type: { + name: "String" + } + }, + targetColumn: { + serializedName: "targetColumn", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const DataImportSource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataImportSource", + uberParent: "DataImportSource", + polymorphicDiscriminator: { + serializedName: "sourceType", + clientName: "sourceType" + }, + modelProperties: { + connection: { + serializedName: "connection", + nullable: true, + type: { + name: "String" + } + }, + sourceType: { + serializedName: "sourceType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const FeatureAttributionMetricThreshold: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeatureAttributionMetricThreshold", + modelProperties: { + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + }, + threshold: { + serializedName: "threshold", + type: { + name: "Composite", + className: "MonitoringThreshold" + } + } + } + } +}; + +export const ForecastingSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ForecastingSettings", + 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 GenerationTokenUsageMetricThreshold: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GenerationTokenUsageMetricThreshold", + 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 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 ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +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", + 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" + } + }, + serverlessComputeSettings: { + serializedName: "properties.serverlessComputeSettings", + type: { + name: "Composite", + className: "ServerlessComputeSettings" + } + }, + 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 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 PartialMinimalTrackedResourceWithIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialMinimalTrackedResourceWithIdentity", + modelProperties: { + ...PartialMinimalTrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "PartialManagedServiceIdentity" + } + } + } + } +}; + +export const PartialMinimalTrackedResourceWithSku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialMinimalTrackedResourceWithSku", + modelProperties: { + ...PartialMinimalTrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "PartialSku" + } + } + } + } +}; + +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 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 InferenceEndpointProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InferenceEndpointProperties", + modelProperties: { + ...PropertiesBase.type.modelProperties, + authMode: { + serializedName: "authMode", + required: true, + type: { + name: "String" + } + }, + endpointUri: { + serializedName: "endpointUri", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + groupId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "groupId", + required: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const InferenceGroupProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InferenceGroupProperties", + modelProperties: { + ...PropertiesBase.type.modelProperties, + bonusExtraCapacity: { + defaultValue: 0, + serializedName: "bonusExtraCapacity", + type: { + name: "Number" + } + }, + metadata: { + serializedName: "metadata", + nullable: true, + type: { + name: "String" + } + }, + priority: { + defaultValue: 0, + serializedName: "priority", + type: { + name: "Number" + } + }, + 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 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 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" } } + } + }, + featureImportanceSettings: { + serializedName: "featureImportanceSettings", + type: { + name: "Composite", + className: "FeatureImportanceSettings" + } + }, + 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" } } + } + }, + featureImportanceSettings: { + serializedName: "featureImportanceSettings", + type: { + name: "Composite", + className: "FeatureImportanceSettings" + } + }, + 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, + featureDataTypeOverride: { + serializedName: "featureDataTypeOverride", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + featureImportanceSettings: { + serializedName: "featureImportanceSettings", + type: { + name: "Composite", + className: "FeatureImportanceSettings" + } + }, + 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 GenerationTokenUsageSignal: coreClient.CompositeMapper = { + serializedName: "GenerationTokenStatistics", + type: { + name: "Composite", + className: "GenerationTokenUsageSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringSignalBase.type.modelProperties, + metricThresholds: { + serializedName: "metricThresholds", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GenerationTokenUsageMetricThreshold" + } + } + } + }, + productionData: { + serializedName: "productionData", + nullable: true, + type: { + name: "Sequence", + element: { + 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, + featureDataTypeOverride: { + serializedName: "featureDataTypeOverride", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + metricThresholds: { + serializedName: "metricThresholds", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PredictionDriftMetricThresholdBase" + } + } + } + }, + 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 RollingInputData: coreClient.CompositeMapper = { + serializedName: "Rolling", + type: { + name: "Composite", + className: "RollingInputData", + 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 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 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 CapacityReservationGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CapacityReservationGroup", + 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: "CapacityReservationGroupProperties" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +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 InferenceEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InferenceEndpoint", + 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: "InferenceEndpointProperties" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +export const InferenceGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InferenceGroup", + 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: "InferenceGroupProperties" + } + }, + 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: "OnlineDeployment", + 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 MLFlowModelJobInput: coreClient.CompositeMapper = { - serializedName: "mlflow_model", +export const ServerlessEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MLFlowModelJobInput", - 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 Registry: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Registry", + 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 CodeContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CodeContainer", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CodeContainerProperties" + } + } + } + } +}; + +export const CodeVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CodeVersion", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CodeVersionProperties" + } + } + } + } +}; + +export const ComponentContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentContainer", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ComponentContainerProperties" + } + } + } + } +}; + +export const ComponentVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentVersion", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ComponentVersionProperties" + } + } + } + } +}; + +export const DataContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataContainer", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataContainerProperties" + } + } + } + } +}; + +export const DataVersionBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataVersionBase", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataVersionBaseProperties" + } + } + } + } +}; + +export const EnvironmentContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentContainer", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "EnvironmentContainerProperties" + } + } + } + } +}; + +export const EnvironmentVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentVersion", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "EnvironmentVersionProperties" + } + } + } + } +}; + +export const ModelContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelContainer", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ModelContainerProperties" + } + } } } }; -export const TritonModelJobInput: coreClient.CompositeMapper = { - serializedName: "triton_model", +export const ModelVersion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TritonModelJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + className: "ModelVersion", modelProperties: { - ...AssetJobInput.type.modelProperties, - ...JobInput.type.modelProperties + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ModelVersionProperties" + } + } } } }; -export const UriFileJobInput: coreClient.CompositeMapper = { - serializedName: "uri_file", +export const Datastore: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UriFileJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + className: "Datastore", modelProperties: { - ...AssetJobInput.type.modelProperties, - ...JobInput.type.modelProperties + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DatastoreProperties" + } + } } } }; -export const UriFolderJobInput: coreClient.CompositeMapper = { - serializedName: "uri_folder", +export const FeaturesetContainer: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UriFolderJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + className: "FeaturesetContainer", modelProperties: { - ...AssetJobInput.type.modelProperties, - ...JobInput.type.modelProperties + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "FeaturesetContainerProperties" + } + } } } }; -export const CustomModelJobOutput: coreClient.CompositeMapper = { - serializedName: "custom_model", +export const Feature: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomModelJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "Feature", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "FeatureProperties" + } + } } } }; -export const MLFlowModelJobOutput: coreClient.CompositeMapper = { - serializedName: "mlflow_model", +export const FeaturesetVersion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MLFlowModelJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "FeaturesetVersion", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "FeaturesetVersionProperties" + } + } } } }; -export const MLTableJobOutput: coreClient.CompositeMapper = { - serializedName: "mltable", +export const FeaturestoreEntityContainer: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MLTableJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "FeaturestoreEntityContainer", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "FeaturestoreEntityContainerProperties" + } + } } } }; -export const TritonModelJobOutput: coreClient.CompositeMapper = { - serializedName: "triton_model", +export const FeaturestoreEntityVersion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TritonModelJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "FeaturestoreEntityVersion", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "FeaturestoreEntityVersionProperties" + } + } } } }; -export const UriFileJobOutput: coreClient.CompositeMapper = { - serializedName: "uri_file", +export const JobBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UriFileJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "JobBase", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "JobBaseProperties" + } + } } } }; -export const UriFolderJobOutput: coreClient.CompositeMapper = { - serializedName: "uri_folder", +export const LabelingJob: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UriFolderJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "LabelingJob", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "LabelingJobProperties" + } + } } } }; -export const AutoForecastHorizon: coreClient.CompositeMapper = { - serializedName: "Auto", +export const Schedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoForecastHorizon", - uberParent: "ForecastHorizon", - polymorphicDiscriminator: ForecastHorizon.type.polymorphicDiscriminator, + className: "Schedule", modelProperties: { - ...ForecastHorizon.type.modelProperties + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ScheduleProperties" + } + } } } }; -export const CustomForecastHorizon: coreClient.CompositeMapper = { - serializedName: "Custom", +export const CodeContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomForecastHorizon", - uberParent: "ForecastHorizon", - polymorphicDiscriminator: ForecastHorizon.type.polymorphicDiscriminator, + className: "CodeContainerProperties", 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 ComponentContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Classification", - uberParent: "TableVertical", - polymorphicDiscriminator: TableVertical.type.polymorphicDiscriminator, + className: "ComponentContainerProperties", modelProperties: { - ...TableVertical.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - positiveLabel: { - serializedName: "positiveLabel", - nullable: true, + ...AssetContainer.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } - }, - primaryMetric: { - serializedName: "primaryMetric", + } + } + } +}; + +export const DataContainerProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataContainerProperties", + modelProperties: { + ...AssetContainer.type.modelProperties, + dataType: { + serializedName: "dataType", + required: true, type: { name: "String" } - }, - trainingSettings: { - serializedName: "trainingSettings", - type: { - name: "Composite", - className: "ClassificationTrainingSettings" - } } } } }; -export const Forecasting: coreClient.CompositeMapper = { - serializedName: "Forecasting", +export const EnvironmentContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Forecasting", - uberParent: "TableVertical", - polymorphicDiscriminator: TableVertical.type.polymorphicDiscriminator, + className: "EnvironmentContainerProperties", modelProperties: { - ...TableVertical.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - forecastingSettings: { - serializedName: "forecastingSettings", - type: { - name: "Composite", - className: "ForecastingSettings" - } - }, - primaryMetric: { - serializedName: "primaryMetric", + ...AssetContainer.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } - }, - trainingSettings: { - serializedName: "trainingSettings", - type: { - name: "Composite", - className: "ForecastingTrainingSettings" - } } } } }; -export const ImageClassificationBase: coreClient.CompositeMapper = { +export const ModelContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageClassificationBase", + className: "ModelContainerProperties", 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" - } - } + ...AssetContainer.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" } } } } }; -export const ImageClassification: coreClient.CompositeMapper = { - serializedName: "ImageClassification", +export const FeaturesetContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageClassification", - uberParent: "ImageClassificationBase", + className: "FeaturesetContainerProperties", modelProperties: { - ...ImageClassificationBase.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + ...AssetContainer.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } @@ -9365,22 +18274,16 @@ export const ImageClassification: coreClient.CompositeMapper = { } } }; -ImageClassificationBase.type.polymorphicDiscriminator = - ImageClassificationBase.type.polymorphicDiscriminator; -export const ImageClassificationMultilabel: coreClient.CompositeMapper = { - serializedName: "ImageClassificationMultilabel", +export const FeaturestoreEntityContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageClassificationMultilabel", - uberParent: "ImageClassificationBase", - polymorphicDiscriminator: - ImageClassificationBase.type.polymorphicDiscriminator, + className: "FeaturestoreEntityContainerProperties", modelProperties: { - ...ImageClassificationBase.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + ...AssetContainer.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } @@ -9389,68 +18292,54 @@ export const ImageClassificationMultilabel: coreClient.CompositeMapper = { } }; -export const ImageObjectDetectionBase: coreClient.CompositeMapper = { +export const CodeVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageObjectDetectionBase", + className: "CodeVersionProperties", modelProperties: { - ...ImageVertical.type.modelProperties, - modelSettings: { - serializedName: "modelSettings", + ...AssetBase.type.modelProperties, + codeUri: { + serializedName: "codeUri", + nullable: true, type: { - name: "Composite", - className: "ImageModelSettingsObjectDetection" + name: "String" } }, - searchSpace: { - serializedName: "searchSpace", - nullable: true, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ImageModelDistributionSettingsObjectDetection" - } - } + name: "String" } } } } }; -export const ImageInstanceSegmentation: coreClient.CompositeMapper = { - serializedName: "ImageInstanceSegmentation", +export const ComponentVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageInstanceSegmentation", - uberParent: "ImageObjectDetectionBase", - polymorphicDiscriminator: - ImageObjectDetectionBase.type.polymorphicDiscriminator, + className: "ComponentVersionProperties", modelProperties: { - ...ImageObjectDetectionBase.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + ...AssetBase.type.modelProperties, + componentSpec: { + serializedName: "componentSpec", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, 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", + }, + stage: { + serializedName: "stage", + nullable: true, type: { name: "String" } @@ -9458,48 +18347,123 @@ export const ImageObjectDetection: coreClient.CompositeMapper = { } } }; -ImageObjectDetectionBase.type.polymorphicDiscriminator = - ImageObjectDetectionBase.type.polymorphicDiscriminator; -export const Regression: coreClient.CompositeMapper = { - serializedName: "Regression", +export const DataVersionBaseProperties: coreClient.CompositeMapper = { + serializedName: "DataVersionBaseProperties", type: { name: "Composite", - className: "Regression", - uberParent: "TableVertical", - polymorphicDiscriminator: TableVertical.type.polymorphicDiscriminator, + className: "DataVersionBaseProperties", + uberParent: "AssetBase", + polymorphicDiscriminator: { + serializedName: "dataType", + clientName: "dataType" + }, modelProperties: { - ...TableVertical.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + ...AssetBase.type.modelProperties, + dataType: { + serializedName: "dataType", + required: true, type: { name: "String" } }, - trainingSettings: { - serializedName: "trainingSettings", + 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: "RegressionTrainingSettings" + className: "IntellectualProperty" + } + }, + stage: { + serializedName: "stage", + nullable: true, + type: { + name: "String" } } } } }; -export const TextClassification: coreClient.CompositeMapper = { - serializedName: "TextClassification", +export const EnvironmentVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TextClassification", - uberParent: "NlpVertical", - polymorphicDiscriminator: NlpVertical.type.polymorphicDiscriminator, + className: "EnvironmentVersionProperties", modelProperties: { - ...NlpVertical.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + ...AssetBase.type.modelProperties, + autoRebuild: { + serializedName: "autoRebuild", + type: { + name: "String" + } + }, + build: { + serializedName: "build", + type: { + name: "Composite", + className: "BuildContext" + } + }, + condaFile: { + serializedName: "condaFile", + type: { + name: "String" + } + }, + environmentType: { + serializedName: "environmentType", + readOnly: true, + type: { + name: "String" + } + }, + image: { + serializedName: "image", + type: { + name: "String" + } + }, + inferenceConfig: { + serializedName: "inferenceConfig", + type: { + name: "Composite", + className: "InferenceContainerProperties" + } + }, + intellectualProperty: { + serializedName: "intellectualProperty", + type: { + name: "Composite", + className: "IntellectualProperty" + } + }, + osType: { + serializedName: "osType", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + stage: { + serializedName: "stage", + nullable: true, type: { name: "String" } @@ -9508,63 +18472,108 @@ export const TextClassification: coreClient.CompositeMapper = { } }; -export const TextClassificationMultilabel: coreClient.CompositeMapper = { - serializedName: "TextClassificationMultilabel", +export const ModelVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TextClassificationMultilabel", - uberParent: "NlpVertical", - polymorphicDiscriminator: NlpVertical.type.polymorphicDiscriminator, + className: "ModelVersionProperties", modelProperties: { - ...NlpVertical.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + ...AssetBase.type.modelProperties, + flavors: { + serializedName: "flavors", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "FlavorData" } } + } + }, + intellectualProperty: { + serializedName: "intellectualProperty", + type: { + name: "Composite", + className: "IntellectualProperty" + } + }, + jobName: { + serializedName: "jobName", + nullable: true, + type: { + name: "String" + } + }, + modelType: { + serializedName: "modelType", + nullable: true, + type: { + name: "String" + } + }, + modelUri: { + serializedName: "modelUri", + nullable: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { name: "String" } + }, + stage: { + serializedName: "stage", + nullable: true, + type: { + name: "String" + } } } } }; -export const TextNer: coreClient.CompositeMapper = { - serializedName: "TextNER", +export const FeaturesetVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TextNer", - uberParent: "NlpVertical", - polymorphicDiscriminator: NlpVertical.type.polymorphicDiscriminator, + className: "FeaturesetVersionProperties", modelProperties: { - ...NlpVertical.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + ...AssetBase.type.modelProperties, + entities: { + serializedName: "entities", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + materializationSettings: { + serializedName: "materializationSettings", + type: { + name: "Composite", + className: "MaterializationSettings" + } + }, + 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, + }, + specification: { + serializedName: "specification", + type: { + name: "Composite", + className: "FeaturesetSpecification" + } + }, + stage: { + serializedName: "stage", + nullable: true, type: { name: "String" } @@ -9573,268 +18582,449 @@ 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 FeaturestoreEntityVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomNCrossValidations", - uberParent: "NCrossValidations", - polymorphicDiscriminator: NCrossValidations.type.polymorphicDiscriminator, + className: "FeaturestoreEntityVersionProperties", modelProperties: { - ...NCrossValidations.type.modelProperties, - value: { - serializedName: "value", - required: true, + ...AssetBase.type.modelProperties, + indexColumns: { + serializedName: "indexColumns", + nullable: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IndexColumn" + } + } + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + stage: { + serializedName: "stage", + nullable: true, + 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", +export const HdfsDatastore: coreClient.CompositeMapper = { + serializedName: "Hdfs", type: { name: "Composite", - className: "CustomSeasonality", - uberParent: "Seasonality", - polymorphicDiscriminator: Seasonality.type.polymorphicDiscriminator, + className: "HdfsDatastore", + uberParent: "DatastoreProperties", + polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, modelProperties: { - ...Seasonality.type.modelProperties, - value: { - serializedName: "value", + ...DatastoreProperties.type.modelProperties, + hdfsServerCertificate: { + serializedName: "hdfsServerCertificate", + nullable: true, + type: { + name: "String" + } + }, + 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 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 OneLakeDatastore: coreClient.CompositeMapper = { + serializedName: "OneLake", type: { name: "Composite", - className: "CustomTargetLags", - uberParent: "TargetLags", - polymorphicDiscriminator: TargetLags.type.polymorphicDiscriminator, + className: "OneLakeDatastore", + uberParent: "DatastoreProperties", + polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, modelProperties: { - ...TargetLags.type.modelProperties, - values: { - serializedName: "values", + ...DatastoreProperties.type.modelProperties, + artifact: { + serializedName: "artifact", + type: { + 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: "Sequence", - element: { - type: { - name: "Number" - } - } + name: "String" + } + }, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", + type: { + name: "String" } } } } }; -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", +export const LabelingJobProperties: coreClient.CompositeMapper = { + serializedName: "Labeling", type: { name: "Composite", - className: "CustomTargetRollingWindowSize", - uberParent: "TargetRollingWindowSize", - polymorphicDiscriminator: - TargetRollingWindowSize.type.polymorphicDiscriminator, + className: "LabelingJobProperties", + uberParent: "JobBaseProperties", + polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...TargetRollingWindowSize.type.modelProperties, - value: { - serializedName: "value", - required: true, + ...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: "Number" + name: "String" + } + }, + statusMessages: { + serializedName: "statusMessages", + readOnly: true, + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StatusMessage" + } + } } } } } }; -export const BanditPolicy: coreClient.CompositeMapper = { - serializedName: "Bandit", +export const AutoMLJob: coreClient.CompositeMapper = { + serializedName: "AutoML", type: { name: "Composite", - className: "BanditPolicy", - uberParent: "EarlyTerminationPolicy", - polymorphicDiscriminator: - EarlyTerminationPolicy.type.polymorphicDiscriminator, + className: "AutoMLJob", + uberParent: "JobBaseProperties", + polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...EarlyTerminationPolicy.type.modelProperties, - slackAmount: { - defaultValue: 0, - serializedName: "slackAmount", + ...JobBaseProperties.type.modelProperties, + environmentId: { + serializedName: "environmentId", + nullable: true, type: { - name: "Number" + name: "String" } }, - slackFactor: { - defaultValue: 0, - serializedName: "slackFactor", + environmentVariables: { + serializedName: "environmentVariables", + nullable: true, type: { - name: "Number" + 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 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 CommandJob: coreClient.CompositeMapper = { + serializedName: "Command", type: { name: "Composite", - className: "TruncationSelectionPolicy", - uberParent: "EarlyTerminationPolicy", - polymorphicDiscriminator: - EarlyTerminationPolicy.type.polymorphicDiscriminator, + className: "CommandJob", + uberParent: "JobBaseProperties", + polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...EarlyTerminationPolicy.type.modelProperties, - truncationPercentage: { - defaultValue: 0, - serializedName: "truncationPercentage", + ...JobBaseProperties.type.modelProperties, + autologgerSettings: { + serializedName: "autologgerSettings", type: { - name: "Number" + 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" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + nullable: true, + type: { + 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 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", +export const PipelineJob: coreClient.CompositeMapper = { + serializedName: "Pipeline", type: { name: "Composite", - className: "RandomSamplingAlgorithm", - uberParent: "SamplingAlgorithm", - polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, + className: "PipelineJob", + uberParent: "JobBaseProperties", + polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...SamplingAlgorithm.type.modelProperties, - rule: { - serializedName: "rule", + ...JobBaseProperties.type.modelProperties, + inputs: { + serializedName: "inputs", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobInput" } } + } + }, + jobs: { + serializedName: "jobs", + nullable: true, + type: { + 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: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - seed: { - serializedName: "seed", + sourceJobId: { + serializedName: "sourceJobId", nullable: true, type: { - name: "Number" + name: "String" } } } } }; -export const ClassificationTrainingSettings: coreClient.CompositeMapper = { +export const SparkJob: coreClient.CompositeMapper = { + serializedName: "Spark", type: { name: "Composite", - className: "ClassificationTrainingSettings", + 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", @@ -9845,8 +19035,56 @@ export const ClassificationTrainingSettings: 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" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + files: { + serializedName: "files", nullable: true, type: { name: "Sequence", @@ -9856,19 +19094,17 @@ export const ClassificationTrainingSettings: coreClient.CompositeMapper = { } } } - } - } - } -}; - -export const ForecastingTrainingSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ForecastingTrainingSettings", - 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", @@ -9879,8 +19115,16 @@ export const ForecastingTrainingSettings: 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", @@ -9890,53 +19134,193 @@ export const ForecastingTrainingSettings: coreClient.CompositeMapper = { } } } + }, + queueSettings: { + serializedName: "queueSettings", + type: { + name: "Composite", + className: "QueueSettings" + } + }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "SparkResourceConfiguration" + } } } } }; -export const RegressionTrainingSettings: coreClient.CompositeMapper = { +export const SweepJob: coreClient.CompositeMapper = { + serializedName: "Sweep", type: { name: "Composite", - className: "RegressionTrainingSettings", + className: "SweepJob", + uberParent: "JobBaseProperties", + polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...TrainingSettings.type.modelProperties, - allowedTrainingAlgorithms: { - serializedName: "allowedTrainingAlgorithms", + ...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" } } } }, - blockedTrainingAlgorithms: { - serializedName: "blockedTrainingAlgorithms", + limits: { + serializedName: "limits", + type: { + name: "Composite", + className: "SweepJobLimits" + } + }, + objective: { + serializedName: "objective", + type: { + name: "Composite", + className: "Objective" + } + }, + outputs: { + serializedName: "outputs", nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Dictionary", + value: { type: { name: "Composite", className: "JobOutput" } } + } + }, + queueSettings: { + serializedName: "queueSettings", + type: { + name: "Composite", + className: "QueueSettings" + } + }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "JobResourceConfiguration" + } + }, + samplingAlgorithm: { + serializedName: "samplingAlgorithm", + type: { + name: "Composite", + className: "SamplingAlgorithm" + } + }, + searchSpace: { + serializedName: "searchSpace", + required: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + trial: { + serializedName: "trial", + type: { + name: "Composite", + className: "TrialComponent" + } + } + } + } +}; + +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: "Composite", + className: "ContainerResourceRequirements" + } + } + } + } +}; + +export const ManagedOnlineDeployment: coreClient.CompositeMapper = { + serializedName: "Managed", + type: { + name: "Composite", + className: "ManagedOnlineDeployment", + uberParent: "OnlineDeploymentProperties", + polymorphicDiscriminator: + OnlineDeploymentProperties.type.polymorphicDiscriminator, + modelProperties: { + ...OnlineDeploymentProperties.type.modelProperties + } + } +}; + +export const DataImport: coreClient.CompositeMapper = { + serializedName: "uri_folder", + type: { + name: "Composite", + className: "DataImport", + uberParent: "DataVersionBaseProperties", + polymorphicDiscriminator: + DataVersionBaseProperties.type.polymorphicDiscriminator, + modelProperties: { + ...DataVersionBaseProperties.type.modelProperties, + assetName: { + serializedName: "assetName", + nullable: true, + type: { + name: "String" + } + }, + source: { + serializedName: "source", + type: { + name: "Composite", + className: "DataImportSource" } } } } }; -export const TableVerticalFeaturizationSettings: coreClient.CompositeMapper = { +export const MLTableData: coreClient.CompositeMapper = { + serializedName: "mltable", type: { name: "Composite", - className: "TableVerticalFeaturizationSettings", + className: "MLTableData", + uberParent: "DataVersionBaseProperties", + polymorphicDiscriminator: + DataVersionBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...FeaturizationSettings.type.modelProperties, - blockedTransformers: { - serializedName: "blockedTransformers", + ...DataVersionBaseProperties.type.modelProperties, + referencedUris: { + serializedName: "referencedUris", nullable: true, type: { name: "Sequence", @@ -9946,204 +19330,165 @@ export const TableVerticalFeaturizationSettings: coreClient.CompositeMapper = { } } } - }, - 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 = { +export const UriFileDataVersion: coreClient.CompositeMapper = { + serializedName: "uri_file", type: { name: "Composite", - className: "NlpVerticalFeaturizationSettings", + className: "UriFileDataVersion", + uberParent: "DataVersionBaseProperties", + polymorphicDiscriminator: + DataVersionBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...FeaturizationSettings.type.modelProperties + ...DataVersionBaseProperties.type.modelProperties } } }; -export const Mpi: coreClient.CompositeMapper = { - serializedName: "Mpi", +export const UriFolderDataVersion: coreClient.CompositeMapper = { + serializedName: "uri_folder", type: { name: "Composite", - className: "Mpi", - uberParent: "DistributionConfiguration", + className: "UriFolderDataVersion", + uberParent: "DataVersionBaseProperties", polymorphicDiscriminator: - DistributionConfiguration.type.polymorphicDiscriminator, + DataVersionBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...DistributionConfiguration.type.modelProperties, - processCountPerInstance: { - serializedName: "processCountPerInstance", - nullable: true, - type: { - name: "Number" - } - } + ...DataVersionBaseProperties.type.modelProperties } } }; -export const PyTorch: coreClient.CompositeMapper = { - serializedName: "PyTorch", +export const ComputeCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PyTorch", - uberParent: "DistributionConfiguration", - polymorphicDiscriminator: - DistributionConfiguration.type.polymorphicDiscriminator, + className: "ComputeCreateOrUpdateHeaders", modelProperties: { - ...DistributionConfiguration.type.modelProperties, - processCountPerInstance: { - serializedName: "processCountPerInstance", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { - name: "Number" + name: "String" } } } } }; -export const TensorFlow: coreClient.CompositeMapper = { - serializedName: "TensorFlow", +export const ComputeDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TensorFlow", - uberParent: "DistributionConfiguration", - polymorphicDiscriminator: - DistributionConfiguration.type.polymorphicDiscriminator, + className: "ComputeDeleteHeaders", modelProperties: { - ...DistributionConfiguration.type.modelProperties, - parameterServerCount: { - defaultValue: 0, - serializedName: "parameterServerCount", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { - name: "Number" + name: "String" } }, - workerCount: { - serializedName: "workerCount", - nullable: true, + location: { + serializedName: "location", type: { - name: "Number" + name: "String" } } } } }; -export const CommandJobLimits: coreClient.CompositeMapper = { - serializedName: "Command", +export const ComputeResizeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CommandJobLimits", - uberParent: "JobLimits", - polymorphicDiscriminator: JobLimits.type.polymorphicDiscriminator, + className: "ComputeResizeHeaders", modelProperties: { - ...JobLimits.type.modelProperties + location: { + serializedName: "location", + type: { + name: "String" + } + } } } }; -export const SweepJobLimits: coreClient.CompositeMapper = { - serializedName: "Sweep", +export const RegistryCodeContainersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SweepJobLimits", - uberParent: "JobLimits", - polymorphicDiscriminator: JobLimits.type.polymorphicDiscriminator, + className: "RegistryCodeContainersDeleteHeaders", modelProperties: { - ...JobLimits.type.modelProperties, - maxConcurrentTrials: { - serializedName: "maxConcurrentTrials", - nullable: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Number" + name: "TimeSpan" } }, - maxTotalTrials: { - serializedName: "maxTotalTrials", - nullable: true, + location: { + serializedName: "location", type: { - name: "Number" + name: "String" } }, - trialTimeout: { - serializedName: "trialTimeout", - nullable: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "TimeSpan" + name: "Number" } } } } }; -export const ImageModelSettingsClassification: coreClient.CompositeMapper = { +export const RegistryCodeContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageModelSettingsClassification", + className: "RegistryCodeContainersCreateOrUpdateHeaders", modelProperties: { - ...ImageModelSettings.type.modelProperties, - trainingCropSize: { - serializedName: "trainingCropSize", - nullable: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Number" + name: "TimeSpan" } }, - validationCropSize: { - serializedName: "validationCropSize", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { - name: "Number" + name: "String" + } + } + } + } +}; + +export const RegistryCodeVersionsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryCodeVersionsDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" } }, - validationResizeSize: { - serializedName: "validationResizeSize", - nullable: true, + location: { + serializedName: "location", type: { - name: "Number" + name: "String" } }, - weightedLoss: { - serializedName: "weightedLoss", - nullable: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { name: "Number" } @@ -10152,97 +19497,123 @@ export const ImageModelSettingsClassification: coreClient.CompositeMapper = { } }; -export const ImageModelSettingsObjectDetection: coreClient.CompositeMapper = { +export const RegistryCodeVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageModelSettingsObjectDetection", + className: "RegistryCodeVersionsCreateOrUpdateHeaders", modelProperties: { - ...ImageModelSettings.type.modelProperties, - boxDetectionsPerImage: { - serializedName: "boxDetectionsPerImage", - nullable: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Number" + name: "TimeSpan" } }, - boxScoreThreshold: { - serializedName: "boxScoreThreshold", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { - name: "Number" + name: "String" } - }, - imageSize: { - serializedName: "imageSize", - nullable: true, + } + } + } +}; + +export const RegistryComponentContainersDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryComponentContainersDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Number" + name: "TimeSpan" } }, - maxSize: { - serializedName: "maxSize", - nullable: true, + location: { + serializedName: "location", type: { - name: "Number" + name: "String" } }, - minSize: { - serializedName: "minSize", - nullable: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { name: "Number" } - }, - modelSize: { - serializedName: "modelSize", + } + } + } +}; + +export const RegistryComponentContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryComponentContainersCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - multiScale: { - serializedName: "multiScale", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { - name: "Boolean" + name: "String" } - }, - nmsIouThreshold: { - serializedName: "nmsIouThreshold", - nullable: true, + } + } + } +}; + +export const RegistryComponentVersionsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryComponentVersionsDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Number" + name: "TimeSpan" } }, - tileGridSize: { - serializedName: "tileGridSize", - nullable: true, + location: { + serializedName: "location", type: { name: "String" } }, - tileOverlapRatio: { - serializedName: "tileOverlapRatio", - nullable: true, - type: { - name: "Number" - } - }, - tilePredictionsNmsThreshold: { - serializedName: "tilePredictionsNmsThreshold", - nullable: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { name: "Number" } - }, - validationIouThreshold: { - serializedName: "validationIouThreshold", - nullable: true, + } + } + } +}; + +export const RegistryComponentVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryComponentVersionsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Number" + name: "TimeSpan" } }, - validationMetricType: { - serializedName: "validationMetricType", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -10251,36 +19622,50 @@ export const ImageModelSettingsObjectDetection: coreClient.CompositeMapper = { } }; -export const ImageModelDistributionSettingsClassification: coreClient.CompositeMapper = { +export const RegistryDataContainersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageModelDistributionSettingsClassification", + className: "RegistryDataContainersDeleteHeaders", 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 RegistryDataContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryDataContainersCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" } }, - weightedLoss: { - serializedName: "weightedLoss", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -10289,99 +19674,154 @@ export const ImageModelDistributionSettingsClassification: coreClient.CompositeM } }; -export const ImageModelDistributionSettingsObjectDetection: coreClient.CompositeMapper = { +export const RegistryDataVersionsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageModelDistributionSettingsObjectDetection", + className: "RegistryDataVersionsDeleteHeaders", 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 RegistryDataVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryDataVersionsCreateOrUpdateHeaders", + 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 RegistryEnvironmentContainersDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryEnvironmentContainersDeleteHeaders", + 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 RegistryEnvironmentContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryEnvironmentContainersCreateOrUpdateHeaders", + 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" } + } + } + } +}; + +export const RegistryEnvironmentVersionsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryEnvironmentVersionsDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } }, - tilePredictionsNmsThreshold: { - serializedName: "tilePredictionsNmsThreshold", - nullable: true, + location: { + serializedName: "location", type: { name: "String" } }, - validationIouThreshold: { - serializedName: "validationIouThreshold", - nullable: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const RegistryEnvironmentVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryEnvironmentVersionsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - validationMetricType: { - serializedName: "validationMetricType", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -10390,476 +19830,526 @@ export const ImageModelDistributionSettingsObjectDetection: coreClient.Composite } }; -export const BatchEndpoint: coreClient.CompositeMapper = { +export const RegistryModelContainersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchEndpoint", + className: "RegistryModelContainersDeleteHeaders", 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: "BatchEndpointProperties" - } - }, - sku: { - serializedName: "sku", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Composite", - className: "Sku" + name: "Number" } } } } }; -export const BatchDeployment: coreClient.CompositeMapper = { +export const RegistryModelContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchDeployment", + className: "RegistryModelContainersCreateOrUpdateHeaders", 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: "BatchDeploymentProperties" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } } } } }; -export const OnlineEndpoint: coreClient.CompositeMapper = { +export const RegistryModelVersionsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpoint", + className: "RegistryModelVersionsDeleteHeaders", 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: "OnlineEndpointProperties" - } - }, - sku: { - serializedName: "sku", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Composite", - className: "Sku" + name: "Number" } } } } }; -export const OnlineDeployment: coreClient.CompositeMapper = { +export const RegistryModelVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineDeployment", + className: "RegistryModelVersionsCreateOrUpdateHeaders", 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: "OnlineDeploymentProperties" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } } } } }; -export const KubernetesOnlineDeployment: coreClient.CompositeMapper = { - serializedName: "Kubernetes", +export const RegistryModelVersionsPackageHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KubernetesOnlineDeployment", - uberParent: "OnlineDeploymentProperties", - polymorphicDiscriminator: - OnlineDeploymentProperties.type.polymorphicDiscriminator, + className: "RegistryModelVersionsPackageHeaders", modelProperties: { - ...OnlineDeploymentProperties.type.modelProperties, - containerResourceRequirements: { - serializedName: "containerResourceRequirements", + location: { + serializedName: "location", type: { - name: "Composite", - className: "ContainerResourceRequirements" + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" } } } } }; -export const ManagedOnlineDeployment: coreClient.CompositeMapper = { - serializedName: "Managed", +export const BatchEndpointsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedOnlineDeployment", - uberParent: "OnlineDeploymentProperties", - polymorphicDiscriminator: - OnlineDeploymentProperties.type.polymorphicDiscriminator, + className: "BatchEndpointsDeleteHeaders", modelProperties: { - ...OnlineDeploymentProperties.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 CodeContainerProperties: coreClient.CompositeMapper = { +export const BatchEndpointsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeContainerProperties", + className: "BatchEndpointsUpdateHeaders", 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 BatchEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentContainerProperties", + className: "BatchEndpointsCreateOrUpdateHeaders", 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 BatchDeploymentsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataContainerProperties", + className: "BatchDeploymentsDeleteHeaders", 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: "String" + name: "Number" } } } } }; -export const EnvironmentContainerProperties: coreClient.CompositeMapper = { +export const BatchDeploymentsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentContainerProperties", + className: "BatchDeploymentsUpdateHeaders", 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 ModelContainerProperties: coreClient.CompositeMapper = { +export const BatchDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelContainerProperties", + className: "BatchDeploymentsCreateOrUpdateHeaders", modelProperties: { - ...AssetContainer.type.modelProperties + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } } } }; -export const CodeVersionProperties: coreClient.CompositeMapper = { +export const FeaturesetContainersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeVersionProperties", + className: "FeaturesetContainersDeleteHeaders", 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 FeaturesetContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentVersionProperties", + className: "FeaturesetContainersCreateOrUpdateHeaders", 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" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" } } } } }; -export const DataVersionBaseProperties: coreClient.CompositeMapper = { - serializedName: "DataVersionBaseProperties", +export const FeaturesetVersionsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataVersionBaseProperties", - uberParent: "AssetBase", - polymorphicDiscriminator: { - serializedName: "dataType", - clientName: "dataType" - }, + className: "FeaturesetVersionsDeleteHeaders", modelProperties: { - ...AssetBase.type.modelProperties, - dataType: { - serializedName: "dataType", - required: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", type: { name: "String" } }, - dataUri: { + retryAfter: { constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") + InclusiveMaximum: 600, + InclusiveMinimum: 10 }, - serializedName: "dataUri", - required: true, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } } }; -export const EnvironmentVersionProperties: coreClient.CompositeMapper = { +export const FeaturesetVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentVersionProperties", + className: "FeaturesetVersionsCreateOrUpdateHeaders", modelProperties: { - ...AssetBase.type.modelProperties, - autoRebuild: { - serializedName: "autoRebuild", - type: { - name: "String" - } - }, - build: { - serializedName: "build", - type: { - name: "Composite", - className: "BuildContext" - } - }, - condaFile: { - serializedName: "condaFile", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - environmentType: { - serializedName: "environmentType", - readOnly: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } - }, - image: { - serializedName: "image", + } + } + } +}; + +export const FeaturesetVersionsBackfillHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturesetVersionsBackfillHeaders", + modelProperties: { + location: { + serializedName: "location", type: { name: "String" } }, - inferenceConfig: { - serializedName: "inferenceConfig", - type: { - name: "Composite", - className: "InferenceContainerProperties" - } - }, - osType: { - serializedName: "osType", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } } }; -export const ModelVersionProperties: coreClient.CompositeMapper = { +export const FeaturestoreEntityContainersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelVersionProperties", + className: "FeaturestoreEntityContainersDeleteHeaders", modelProperties: { - ...AssetBase.type.modelProperties, - flavors: { - serializedName: "flavors", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "FlavorData" } } - } - }, - jobName: { - serializedName: "jobName", - nullable: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - modelType: { - serializedName: "modelType", - nullable: true, + location: { + serializedName: "location", type: { name: "String" } }, - modelUri: { - serializedName: "modelUri", - nullable: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } } }; -export const AzureBlobDatastore: coreClient.CompositeMapper = { - serializedName: "AzureBlob", +export const FeaturestoreEntityContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureBlobDatastore", - uberParent: "DatastoreProperties", - polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, + className: "FeaturestoreEntityContainersCreateOrUpdateHeaders", 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, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } - }, - endpoint: { - serializedName: "endpoint", - nullable: true, + } + } + } +}; + +export const FeaturestoreEntityVersionsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturestoreEntityVersionsDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - protocol: { - serializedName: "protocol", - nullable: true, + location: { + serializedName: "location", type: { name: "String" } }, - serviceDataAccessAuthIdentity: { - serializedName: "serviceDataAccessAuthIdentity", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } } }; -export const AzureDataLakeGen1Datastore: coreClient.CompositeMapper = { - serializedName: "AzureDataLakeGen1", +export const FeaturestoreEntityVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDataLakeGen1Datastore", - uberParent: "DatastoreProperties", - polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, + className: "FeaturestoreEntityVersionsCreateOrUpdateHeaders", modelProperties: { - ...DatastoreProperties.type.modelProperties, - serviceDataAccessAuthIdentity: { - serializedName: "serviceDataAccessAuthIdentity", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - storeName: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "storeName", - required: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -10868,104 +20358,81 @@ export const AzureDataLakeGen1Datastore: coreClient.CompositeMapper = { } }; -export const AzureDataLakeGen2Datastore: coreClient.CompositeMapper = { - serializedName: "AzureDataLakeGen2", +export const InferencePoolsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDataLakeGen2Datastore", - uberParent: "DatastoreProperties", - polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, + className: "InferencePoolsDeleteHeaders", 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, - type: { - name: "String" - } - }, - protocol: { - serializedName: "protocol", - nullable: true, - type: { - name: "String" - } - }, - serviceDataAccessAuthIdentity: { - serializedName: "serviceDataAccessAuthIdentity", + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } } }; -export const AzureFileDatastore: coreClient.CompositeMapper = { - serializedName: "AzureFile", +export const InferencePoolsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureFileDatastore", - uberParent: "DatastoreProperties", - polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, + className: "InferencePoolsUpdateHeaders", 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 InferencePoolsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InferencePoolsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - serviceDataAccessAuthIdentity: { - serializedName: "serviceDataAccessAuthIdentity", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -10974,197 +20441,164 @@ export const AzureFileDatastore: coreClient.CompositeMapper = { } }; -export const AutoMLJob: coreClient.CompositeMapper = { - serializedName: "AutoML", +export const InferenceEndpointsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoMLJob", - uberParent: "JobBaseProperties", - polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, + className: "InferenceEndpointsDeleteHeaders", 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 InferenceEndpointsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CommandJob", - uberParent: "JobBaseProperties", - polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, + className: "InferenceEndpointsUpdateHeaders", modelProperties: { - ...JobBaseProperties.type.modelProperties, - codeId: { - serializedName: "codeId", - nullable: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - command: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]"), - MinLength: 1 - }, - serializedName: "command", - required: true, + location: { + serializedName: "location", type: { name: "String" } }, - distribution: { - serializedName: "distribution", - type: { - name: "Composite", - className: "DistributionConfiguration" - } - }, - environmentId: { + retryAfter: { constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") + InclusiveMaximum: 600, + InclusiveMinimum: 10 }, - serializedName: "environmentId", - required: true, - type: { - name: "String" - } - }, - environmentVariables: { - serializedName: "environmentVariables", - nullable: true, + serializedName: "retry-after", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Number" } - }, - inputs: { - serializedName: "inputs", - nullable: true, + } + } + } +}; + +export const InferenceEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InferenceEndpointsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobInput" } } + name: "TimeSpan" } }, - limits: { - serializedName: "limits", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { - name: "Composite", - className: "CommandJobLimits" + name: "String" } - }, - outputs: { - serializedName: "outputs", - 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: "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 InferenceGroupsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PipelineJob", - uberParent: "JobBaseProperties", - polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, + className: "InferenceGroupsUpdateHeaders", 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, + location: { + serializedName: "location", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } }, - outputs: { - serializedName: "outputs", - nullable: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobOutput" } } + name: "Number" } - }, - settings: { - serializedName: "settings", - nullable: true, + } + } + } +}; + +export const InferenceGroupsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InferenceGroupsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "TimeSpan" } }, - sourceJobId: { - serializedName: "sourceJobId", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -11173,137 +20607,200 @@ export const PipelineJob: coreClient.CompositeMapper = { } }; -export const SweepJob: coreClient.CompositeMapper = { - serializedName: "Sweep", +export const JobsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SweepJob", - uberParent: "JobBaseProperties", - polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, + className: "JobsDeleteHeaders", 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 JobsCancelHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobsCancelHeaders", + modelProperties: { + location: { + serializedName: "location", type: { - name: "Composite", - className: "Objective" + name: "String" } }, - outputs: { - serializedName: "outputs", - nullable: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobOutput" } } + name: "Number" } - }, - samplingAlgorithm: { - serializedName: "samplingAlgorithm", + } + } + } +}; + +export const LabelingJobsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelingJobsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "SamplingAlgorithm" + name: "TimeSpan" } }, - searchSpace: { - serializedName: "searchSpace", - required: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" + } + } + } + } +}; + +export const LabelingJobsExportLabelsHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelingJobsExportLabelsHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + 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 LabelingJobsResumeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MLTableData", - uberParent: "DataVersionBaseProperties", - polymorphicDiscriminator: - DataVersionBaseProperties.type.polymorphicDiscriminator, + className: "LabelingJobsResumeHeaders", 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 ModelVersionsPackageHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UriFileDataVersion", - uberParent: "DataVersionBaseProperties", - polymorphicDiscriminator: - DataVersionBaseProperties.type.polymorphicDiscriminator, + className: "ModelVersionsPackageHeaders", modelProperties: { - ...DataVersionBaseProperties.type.modelProperties + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } } } }; -export const UriFolderDataVersion: coreClient.CompositeMapper = { - serializedName: "uri_folder", +export const OnlineEndpointsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UriFolderDataVersion", - uberParent: "DataVersionBaseProperties", - polymorphicDiscriminator: - DataVersionBaseProperties.type.polymorphicDiscriminator, + className: "OnlineEndpointsDeleteHeaders", modelProperties: { - ...DataVersionBaseProperties.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 WorkspacesDiagnoseHeaders: coreClient.CompositeMapper = { +export const OnlineEndpointsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspacesDiagnoseHeaders", + className: "OnlineEndpointsUpdateHeaders", modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, location: { serializedName: "location", type: { @@ -11324,11 +20821,17 @@ export const WorkspacesDiagnoseHeaders: coreClient.CompositeMapper = { } }; -export const ComputeCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const OnlineEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeCreateOrUpdateHeaders", + className: "OnlineEndpointsCreateOrUpdateHeaders", modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { @@ -11339,31 +20842,35 @@ export const ComputeCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ComputeDeleteHeaders: coreClient.CompositeMapper = { +export const OnlineEndpointsRegenerateKeysHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeDeleteHeaders", + className: "OnlineEndpointsRegenerateKeysHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String" } }, - location: { - serializedName: "location", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } } }; -export const BatchEndpointsDeleteHeaders: coreClient.CompositeMapper = { +export const OnlineDeploymentsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchEndpointsDeleteHeaders", + className: "OnlineDeploymentsDeleteHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11391,10 +20898,10 @@ export const BatchEndpointsDeleteHeaders: coreClient.CompositeMapper = { } }; -export const BatchEndpointsUpdateHeaders: coreClient.CompositeMapper = { +export const OnlineDeploymentsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchEndpointsUpdateHeaders", + className: "OnlineDeploymentsUpdateHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11422,10 +20929,10 @@ export const BatchEndpointsUpdateHeaders: coreClient.CompositeMapper = { } }; -export const BatchEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const OnlineDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchEndpointsCreateOrUpdateHeaders", + className: "OnlineDeploymentsCreateOrUpdateHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11443,10 +20950,10 @@ export const BatchEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const BatchDeploymentsDeleteHeaders: coreClient.CompositeMapper = { +export const SchedulesDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchDeploymentsDeleteHeaders", + className: "SchedulesDeleteHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11474,10 +20981,10 @@ export const BatchDeploymentsDeleteHeaders: coreClient.CompositeMapper = { } }; -export const BatchDeploymentsUpdateHeaders: coreClient.CompositeMapper = { +export const SchedulesCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchDeploymentsUpdateHeaders", + className: "SchedulesCreateOrUpdateHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11485,30 +20992,20 @@ export const BatchDeploymentsUpdateHeaders: coreClient.CompositeMapper = { name: "TimeSpan" } }, - location: { - serializedName: "location", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } - }, - retryAfter: { - constraints: { - InclusiveMaximum: 600, - InclusiveMinimum: 10 - }, - serializedName: "retry-after", - type: { - name: "Number" - } } } } }; -export const BatchDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const ServerlessEndpointsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchDeploymentsCreateOrUpdateHeaders", + className: "ServerlessEndpointsDeleteHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11516,20 +21013,30 @@ export const BatchDeploymentsCreateOrUpdateHeaders: 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 JobsDeleteHeaders: coreClient.CompositeMapper = { +export const ServerlessEndpointsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobsDeleteHeaders", + className: "ServerlessEndpointsUpdateHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11557,10 +21064,31 @@ export const JobsDeleteHeaders: coreClient.CompositeMapper = { } }; -export const JobsCancelHeaders: coreClient.CompositeMapper = { +export const ServerlessEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobsCancelHeaders", + className: "ServerlessEndpointsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const ServerlessEndpointsRegenerateKeysHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerlessEndpointsRegenerateKeysHeaders", modelProperties: { location: { serializedName: "location", @@ -11582,10 +21110,10 @@ export const JobsCancelHeaders: coreClient.CompositeMapper = { } }; -export const OnlineEndpointsDeleteHeaders: coreClient.CompositeMapper = { +export const RegistriesDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointsDeleteHeaders", + className: "RegistriesDeleteHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11613,10 +21141,10 @@ export const OnlineEndpointsDeleteHeaders: coreClient.CompositeMapper = { } }; -export const OnlineEndpointsUpdateHeaders: coreClient.CompositeMapper = { +export const RegistriesRemoveRegionsHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointsUpdateHeaders", + className: "RegistriesRemoveRegionsHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11644,31 +21172,31 @@ export const OnlineEndpointsUpdateHeaders: coreClient.CompositeMapper = { } }; -export const OnlineEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const WorkspacesDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointsCreateOrUpdateHeaders", + className: "WorkspacesDeleteHeaders", modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", + location: { + serializedName: "location", type: { - name: "TimeSpan" + name: "String" } }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + retryAfter: { + serializedName: "retry-after", type: { - name: "String" + 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 +21218,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 +21243,36 @@ 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", + location: { + serializedName: "location", type: { - name: "TimeSpan" + name: "String" } }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const WorkspacesResyncKeysHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspacesResyncKeysHeaders", + modelProperties: { location: { serializedName: "location", type: { @@ -11752,38 +21293,57 @@ export const OnlineDeploymentsUpdateHeaders: coreClient.CompositeMapper = { } }; -export const OnlineDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const WorkspaceConnectionsTestConnectionHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineDeploymentsCreateOrUpdateHeaders", + className: "WorkspaceConnectionsTestConnectionHeaders", modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", + location: { + serializedName: "location", type: { - name: "TimeSpan" + name: "String" } }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + retryAfter: { + 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" } }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const ManagedNetworkSettingsRuleCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedNetworkSettingsRuleCreateOrUpdateHeaders", + modelProperties: { location: { serializedName: "location", type: { @@ -11804,21 +21364,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 +21392,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, @@ -11846,8 +21423,18 @@ export let discriminators = { TargetRollingWindowSize: TargetRollingWindowSize, 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 +21448,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 +21547,59 @@ export let discriminators = { "TargetLags.Custom": CustomTargetLags, "TargetRollingWindowSize.Auto": AutoTargetRollingWindowSize, "TargetRollingWindowSize.Custom": CustomTargetRollingWindowSize, + "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": GenerationTokenUsageSignal, + "MonitoringSignalBase.ModelPerformance": ModelPerformanceSignal, + "MonitoringSignalBase.PredictionDrift": PredictionDriftMonitoringSignal, + "MonitoringInputDataBase.Fixed": FixedInputData, + "MonitoringInputDataBase.Rolling": RollingInputData, + "MonitoringInputDataBase.Static": StaticInputData, + "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..24455a4631a2 100644 --- a/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts +++ b/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts @@ -12,36 +12,59 @@ 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, + PartialMinimalTrackedResourceWithSkuAndIdentity as PartialMinimalTrackedResourceWithSkuAndIdentityMapper, + CapacityReservationGroup as CapacityReservationGroupMapper, 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, + InferencePool as InferencePoolMapper, + InferenceEndpoint as InferenceEndpointMapper, + PartialMinimalTrackedResourceWithSku as PartialMinimalTrackedResourceWithSkuMapper, + InferenceGroup as InferenceGroupMapper, + 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 +94,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 +117,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 +131,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 +157,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 +215,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 +236,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 groupId: OperationURLParameter = { + parameterPath: "groupId", mapper: { - serializedName: "connectionName", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "groupId", required: true, type: { name: "String" @@ -252,40 +277,23 @@ export const connectionName: OperationURLParameter = { } }; -export const target: OperationQueryParameter = { - parameterPath: ["options", "target"], - mapper: { - serializedName: "target", - type: { - name: "String" - } - } -}; - -export const category: OperationQueryParameter = { - parameterPath: ["options", "category"], - mapper: { - serializedName: "category", - type: { - name: "String" - } - } +export const body: OperationParameter = { + parameterPath: "body", + mapper: PartialMinimalTrackedResourceWithSkuAndIdentityMapper }; -export const count: OperationQueryParameter = { - parameterPath: ["options", "count"], - mapper: { - serializedName: "count", - type: { - name: "Number" - } - } +export const body1: OperationParameter = { + parameterPath: "body", + mapper: CapacityReservationGroupMapper }; -export const endpointName: OperationURLParameter = { - parameterPath: "endpointName", +export const registryName: OperationURLParameter = { + parameterPath: "registryName", mapper: { - serializedName: "endpointName", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{2,32}$") + }, + serializedName: "registryName", required: true, type: { name: "String" @@ -293,18 +301,13 @@ export const endpointName: OperationURLParameter = { } }; -export const body: OperationParameter = { - parameterPath: "body", - mapper: PartialMinimalTrackedResourceWithIdentityMapper -}; - -export const endpointName1: OperationURLParameter = { - parameterPath: "endpointName", +export const codeName: OperationURLParameter = { + parameterPath: "codeName", mapper: { constraints: { Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") }, - serializedName: "endpointName", + serializedName: "codeName", required: true, type: { name: "String" @@ -312,9 +315,9 @@ export const endpointName1: OperationURLParameter = { } }; -export const body1: OperationParameter = { +export const body2: OperationParameter = { parameterPath: "body", - mapper: BatchEndpointMapper + mapper: CodeContainerMapper }; export const orderBy: OperationQueryParameter = { @@ -337,10 +340,10 @@ export const top: OperationQueryParameter = { } }; -export const deploymentName: OperationURLParameter = { - parameterPath: "deploymentName", +export const version: OperationURLParameter = { + parameterPath: "version", mapper: { - serializedName: "deploymentName", + serializedName: "version", required: true, type: { name: "String" @@ -348,18 +351,23 @@ export const deploymentName: OperationURLParameter = { } }; -export const body2: OperationParameter = { +export const body3: OperationParameter = { parameterPath: "body", - mapper: PartialBatchDeploymentPartialMinimalTrackedResourceWithPropertiesMapper + mapper: CodeVersionMapper }; -export const deploymentName1: OperationURLParameter = { - parameterPath: "deploymentName", +export const body4: 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: "deploymentName", + serializedName: "componentName", required: true, type: { name: "String" @@ -367,9 +375,34 @@ export const deploymentName1: OperationURLParameter = { } }; -export const body3: OperationParameter = { +export const body5: OperationParameter = { parameterPath: "body", - mapper: BatchDeploymentMapper + mapper: ComponentContainerMapper +}; + +export const stage: OperationQueryParameter = { + parameterPath: ["options", "stage"], + mapper: { + serializedName: "stage", + type: { + name: "String" + } + } +}; + +export const body6: OperationParameter = { + parameterPath: "body", + mapper: ComponentVersionMapper +}; + +export const listViewType: OperationQueryParameter = { + parameterPath: ["options", "listViewType"], + mapper: { + serializedName: "listViewType", + type: { + name: "String" + } + } }; export const name: OperationURLParameter = { @@ -383,9 +416,9 @@ export const name: OperationURLParameter = { } }; -export const body4: OperationParameter = { +export const body7: OperationParameter = { parameterPath: "body", - mapper: CodeContainerMapper + mapper: DataContainerMapper }; export const name1: OperationURLParameter = { @@ -402,66 +435,218 @@ 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 body8: 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 = { +export const body9: OperationParameter = { parameterPath: "body", - mapper: ComponentVersionMapper + mapper: EnvironmentContainerMapper }; -export const body8: OperationParameter = { +export const body10: 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" } } }; -export const body9: OperationParameter = { +export const body11: OperationParameter = { parameterPath: "body", - mapper: DataVersionBaseMapper + mapper: ModelContainerMapper }; -export const count1: OperationQueryParameter = { - parameterPath: ["options", "count"], +export const version1: OperationQueryParameter = { + parameterPath: ["options", "version"], + mapper: { + serializedName: "version", + type: { + name: "String" + } + } +}; + +export const description: OperationQueryParameter = { + parameterPath: ["options", "description"], + mapper: { + 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 body12: OperationParameter = { + parameterPath: "body", + mapper: ModelVersionMapper +}; + +export const body13: OperationParameter = { + parameterPath: "body", + mapper: PackageRequestMapper +}; + +export const count: OperationQueryParameter = { + parameterPath: ["options", "count"], mapper: { - defaultValue: 30, + serializedName: "count", + type: { + name: "Number" + } + } +}; + +export const endpointName: OperationURLParameter = { + parameterPath: "endpointName", + mapper: { + serializedName: "endpointName", + required: true, + type: { + name: "String" + } + } +}; + +export const body14: 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 body15: OperationParameter = { + parameterPath: "body", + mapper: BatchEndpointMapper +}; + +export const deploymentName: OperationURLParameter = { + parameterPath: "deploymentName", + mapper: { + serializedName: "deploymentName", + required: true, + type: { + name: "String" + } + } +}; + +export const body16: 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 body17: 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" @@ -526,7 +711,7 @@ export const orderByAsc: OperationQueryParameter = { } }; -export const body10: OperationParameter = { +export const body18: OperationParameter = { parameterPath: "body", mapper: DatastoreMapper }; @@ -542,14 +727,246 @@ 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 body19: 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 body20: OperationParameter = { parameterPath: "body", - mapper: EnvironmentVersionMapper + mapper: FeaturesetVersionMapper +}; + +export const body21: OperationParameter = { + parameterPath: "body", + mapper: FeaturesetVersionBackfillRequestMapper +}; + +export const body22: OperationParameter = { + parameterPath: "body", + mapper: FeaturestoreEntityContainerMapper +}; + +export const body23: OperationParameter = { + parameterPath: "body", + mapper: FeaturestoreEntityVersionMapper +}; + +export const orderBy2: OperationQueryParameter = { + parameterPath: ["options", "orderBy"], + mapper: { + serializedName: "orderBy", + type: { + name: "String" + } + } +}; + +export const inferencePoolName: OperationURLParameter = { + parameterPath: "inferencePoolName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "inferencePoolName", + required: true, + type: { + name: "String" + } + } +}; + +export const inferencePoolName1: OperationURLParameter = { + parameterPath: "inferencePoolName", + mapper: { + serializedName: "inferencePoolName", + required: true, + type: { + name: "String" + } + } +}; + +export const body24: 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 body25: OperationParameter = { + parameterPath: "body", + mapper: { + serializedName: "body", + required: true, + type: { + name: "any" + } + } +}; + +export const body26: OperationParameter = { + parameterPath: "body", + mapper: InferenceEndpointMapper +}; + +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 body27: OperationParameter = { + parameterPath: "body", + mapper: PartialMinimalTrackedResourceWithSkuMapper +}; + +export const poolName1: OperationURLParameter = { + parameterPath: "poolName", + mapper: { + serializedName: "poolName", + required: true, + type: { + name: "String" + } + } +}; + +export const groupName1: OperationURLParameter = { + parameterPath: "groupName", + mapper: { + serializedName: "groupName", + required: true, + type: { + name: "String" + } + } +}; + +export const body28: OperationParameter = { + parameterPath: "body", + mapper: InferenceGroupMapper }; export const jobType: OperationQueryParameter = { @@ -572,6 +989,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 +1030,12 @@ export const id: OperationURLParameter = { } }; -export const body13: OperationParameter = { +export const body29: OperationParameter = { + parameterPath: "body", + mapper: PartialJobBasePartialResourceMapper +}; + +export const body30: OperationParameter = { parameterPath: "body", mapper: JobBaseMapper }; @@ -602,142 +1054,222 @@ export const id1: OperationURLParameter = { } }; -export const body14: OperationParameter = { +export const body31: OperationParameter = { parameterPath: "body", - mapper: ModelContainerMapper + mapper: LabelingJobMapper }; -export const version1: OperationQueryParameter = { - parameterPath: ["options", "version"], +export const body32: 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 body33: OperationParameter = { + parameterPath: "body", + mapper: OnlineEndpointMapper +}; + +export const body34: OperationParameter = { + parameterPath: "body", + mapper: RegenerateEndpointKeysRequestMapper +}; + +export const body35: OperationParameter = { + parameterPath: "body", + mapper: OnlineDeploymentMapper +}; + +export const body36: 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 body37: OperationParameter = { + parameterPath: "body", + mapper: ScheduleMapper +}; + +export const body38: OperationParameter = { + parameterPath: "body", + mapper: ServerlessEndpointMapper +}; + +export const body39: OperationParameter = { + parameterPath: "body", + mapper: PartialRegistryPartialTrackedResourceMapper +}; + +export const body40: 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 body41: OperationParameter = { parameterPath: "body", - mapper: ModelVersionMapper + mapper: WorkspaceUpdateParametersMapper }; -export const name2: OperationQueryParameter = { - parameterPath: ["options", "name"], +export const body42: OperationParameter = { + parameterPath: "body", + mapper: WorkspaceMapper +}; + +export const body43: 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 aoaiModelsToDeploy: OperationQueryParameter = { + parameterPath: ["options", "aoaiModelsToDeploy"], + mapper: { + serializedName: "aoaiModelsToDeploy", + type: { + name: "String" + } + } }; -export const body17: OperationParameter = { - parameterPath: "body", - mapper: RegenerateEndpointKeysRequestMapper +export const body44: OperationParameter = { + parameterPath: ["options", "body"], + mapper: WorkspaceConnectionUpdateParameterMapper }; -export const body18: OperationParameter = { - parameterPath: "body", - mapper: PartialMinimalTrackedResourceWithSkuMapper +export const body45: 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 body46: 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 body47: OperationParameter = { parameterPath: "body", - mapper: ScheduleMapper + mapper: PrivateEndpointConnectionMapper +}; + +export const body48: 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..79ac4e37ca05 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.body16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -656,7 +668,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body3, + requestBody: Parameters.body17, 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..d54bc2dee451 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.body14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -604,7 +616,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body1, + requestBody: Parameters.body15, 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/capacityReservationGroups.ts b/sdk/machinelearning/arm-machinelearning/src/operations/capacityReservationGroups.ts new file mode 100644 index 000000000000..02c30ecda30a --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/capacityReservationGroups.ts @@ -0,0 +1,463 @@ +/* + * 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 { CapacityReservationGroups } 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 { + CapacityReservationGroup, + CapacityReservationGroupsListBySubscriptionNextOptionalParams, + CapacityReservationGroupsListBySubscriptionOptionalParams, + CapacityReservationGroupsListBySubscriptionResponse, + CapacityReservationGroupsListNextOptionalParams, + CapacityReservationGroupsListOptionalParams, + CapacityReservationGroupsListResponse, + CapacityReservationGroupsDeleteOptionalParams, + CapacityReservationGroupsGetOptionalParams, + CapacityReservationGroupsGetResponse, + PartialMinimalTrackedResourceWithSkuAndIdentity, + CapacityReservationGroupsUpdateOptionalParams, + CapacityReservationGroupsUpdateResponse, + CapacityReservationGroupsCreateOrUpdateOptionalParams, + CapacityReservationGroupsCreateOrUpdateResponse, + CapacityReservationGroupsListBySubscriptionNextResponse, + CapacityReservationGroupsListNextResponse +} from "../models"; + +/// +/** Class containing CapacityReservationGroups operations. */ +export class CapacityReservationGroupsImpl + implements CapacityReservationGroups { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class CapacityReservationGroups class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** @param options The options parameters. */ + public listBySubscription( + options?: CapacityReservationGroupsListBySubscriptionOptionalParams + ): 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?: CapacityReservationGroupsListBySubscriptionOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: CapacityReservationGroupsListBySubscriptionResponse; + 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?: CapacityReservationGroupsListBySubscriptionOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + options?: CapacityReservationGroupsListOptionalParams + ): 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?: CapacityReservationGroupsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: CapacityReservationGroupsListResponse; + 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?: CapacityReservationGroupsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(resourceGroupName, options)) { + yield* page; + } + } + + /** @param options The options parameters. */ + private _listBySubscription( + options?: CapacityReservationGroupsListBySubscriptionOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec + ); + } + + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + options?: CapacityReservationGroupsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listOperationSpec + ); + } + + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param groupId + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + groupId: string, + options?: CapacityReservationGroupsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, groupId, options }, + deleteOperationSpec + ); + } + + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param groupId + * @param options The options parameters. + */ + get( + resourceGroupName: string, + groupId: string, + options?: CapacityReservationGroupsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, groupId, options }, + getOperationSpec + ); + } + + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param groupId + * @param body Strictly used in update requests. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + groupId: string, + body: PartialMinimalTrackedResourceWithSkuAndIdentity, + options?: CapacityReservationGroupsUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, groupId, body, options }, + updateOperationSpec + ); + } + + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param groupId + * @param body + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + groupId: string, + body: CapacityReservationGroup, + options?: CapacityReservationGroupsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, groupId, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: CapacityReservationGroupsListBySubscriptionNextOptionalParams + ): 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?: CapacityReservationGroupsListNextOptionalParams + ): 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/capacityReserverationGroups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: + Mappers.CapacityReservationGroupTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/capacityReserverationGroups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: + Mappers.CapacityReservationGroupTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/capacityReserverationGroups/{groupId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.groupId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/capacityReserverationGroups/{groupId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CapacityReservationGroup + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.groupId + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/capacityReserverationGroups/{groupId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.CapacityReservationGroup + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.groupId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/capacityReserverationGroups/{groupId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.CapacityReservationGroup + }, + 201: { + bodyMapper: Mappers.CapacityReservationGroup + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.groupId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: + Mappers.CapacityReservationGroupTrackedResourceArmPaginatedResult + }, + 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.CapacityReservationGroupTrackedResourceArmPaginatedResult + }, + 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/codeContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/codeContainers.ts index 67e964d179c1..fd87044e957a 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.body2, 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..cdbda36a1ff3 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.body3, 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.body4, + 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..b48c5bce4caf 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.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/componentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/componentVersions.ts index 4f84d94d01f1..8b09aa3df8ac 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.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", @@ -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..539b86b60961 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.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/dataVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/dataVersions.ts index 30559627d079..0e4873a8dfd0 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.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", @@ -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..1455be18a475 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.body18, 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..ceef3f26c289 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.body9, 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..c65c0a99a9b5 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.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", @@ -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..0ef38fcbc83c --- /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.body19, + 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..73c86f214ba9 --- /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.body20, + 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.body21, + 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..55de2affb4cb --- /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.body22, + 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..39b3811e300f --- /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.body23, + 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..05a2cd36989e 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/index.ts @@ -6,15 +6,21 @@ * 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 "./capacityReservationGroups"; +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 +32,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 "./inferenceEndpoints"; +export * from "./inferenceGroups"; 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..3e94e1c26c48 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/inferenceEndpoints.ts @@ -0,0 +1,701 @@ +/* + * 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 { + InferenceEndpoint, + 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 options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + poolName: string, + options?: InferenceEndpointsListOptionalParams + ): 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?: InferenceEndpointsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: InferenceEndpointsListResponse; + 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?: InferenceEndpointsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + poolName, + 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 options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + poolName: string, + options?: InferenceEndpointsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, poolName, 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 endpointName InferenceEndpoint name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + poolName: string, + endpointName: 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, + endpointName, + 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 endpointName InferenceEndpoint name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + endpointName: string, + options?: InferenceEndpointsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + poolName, + endpointName, + 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 endpointName InferenceEndpoint name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + poolName: string, + endpointName: string, + options?: InferenceEndpointsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, poolName, endpointName, 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 endpointName InferenceEndpoint name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + workspaceName: string, + poolName: string, + endpointName: 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, + endpointName, + 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 endpointName InferenceEndpoint name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + endpointName: string, + body: any, + options?: InferenceEndpointsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + poolName, + endpointName, + 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 endpointName InferenceEndpoint name. + * @param body InferenceEndpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + poolName: string, + endpointName: string, + body: InferenceEndpoint, + 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, + endpointName, + 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 endpointName InferenceEndpoint name. + * @param body InferenceEndpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + endpointName: string, + body: InferenceEndpoint, + options?: InferenceEndpointsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + poolName, + endpointName, + 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 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?: InferenceEndpointsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, poolName, 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}/endpoints", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InferenceEndpointTrackedResourceArmPaginatedResult + }, + 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}/endpoints/{endpointName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName1, + Parameters.poolName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{poolName}/endpoints/{endpointName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InferenceEndpoint + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName1, + Parameters.poolName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{poolName}/endpoints/{endpointName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.InferenceEndpoint + }, + 201: { + bodyMapper: Mappers.InferenceEndpoint + }, + 202: { + bodyMapper: Mappers.InferenceEndpoint + }, + 204: { + bodyMapper: Mappers.InferenceEndpoint + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body25, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName1, + Parameters.poolName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{poolName}/endpoints/{endpointName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.InferenceEndpoint + }, + 201: { + bodyMapper: Mappers.InferenceEndpoint + }, + 202: { + bodyMapper: Mappers.InferenceEndpoint + }, + 204: { + bodyMapper: Mappers.InferenceEndpoint + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body26, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName1, + Parameters.poolName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InferenceEndpointTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.poolName + ], + 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..79620f348534 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/inferenceGroups.ts @@ -0,0 +1,948 @@ +/* + * 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 { + InferenceGroup, + 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 groupName Inference Group name. + * @param options The options parameters. + */ + public listSkus( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + options?: InferenceGroupsListSkusOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listSkusPagingAll( + 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.listSkusPagingPage( + resourceGroupName, + workspaceName, + poolName, + groupName, + options, + settings + ); + } + }; + } + + private async *listSkusPagingPage( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + options?: InferenceGroupsListSkusOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: InferenceGroupsListSkusResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listSkus( + resourceGroupName, + workspaceName, + poolName, + groupName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listSkusNext( + resourceGroupName, + workspaceName, + poolName, + groupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listSkusPagingAll( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + options?: InferenceGroupsListSkusOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listSkusPagingPage( + resourceGroupName, + workspaceName, + poolName, + groupName, + 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 groupName InferenceGroup name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: 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, groupName, 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 groupName InferenceGroup name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + options?: InferenceGroupsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + poolName, + groupName, + 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 groupName InferenceGroup name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + options?: InferenceGroupsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, poolName, groupName, 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 groupName InferenceGroup 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, + 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, + groupName, + 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 groupName InferenceGroup 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, + body: PartialMinimalTrackedResourceWithSku, + options?: InferenceGroupsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + poolName, + groupName, + 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 groupName InferenceGroup name. + * @param body InferenceGroup entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + body: InferenceGroup, + 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, + groupName, + 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 groupName InferenceGroup name. + * @param body InferenceGroup entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + body: InferenceGroup, + options?: InferenceGroupsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + poolName, + groupName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * 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 groupName InferenceGroup name. + * @param options The options parameters. + */ + getStatus( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + options?: InferenceGroupsGetStatusOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, poolName, groupName, options }, + getStatusOperationSpec + ); + } + + /** + * 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 groupName Inference Group name. + * @param options The options parameters. + */ + private _listSkus( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + options?: InferenceGroupsListSkusOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, poolName, groupName, options }, + listSkusOperationSpec + ); + } + + /** + * 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 groupName 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, + groupName: string, + nextLink: string, + options?: InferenceGroupsListSkusNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + poolName, + groupName, + 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.InferenceGroupTrackedResourceArmPaginatedResult + }, + 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/{groupName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + 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}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InferenceGroup + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + 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}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.InferenceGroup + }, + 201: { + bodyMapper: Mappers.InferenceGroup + }, + 202: { + bodyMapper: Mappers.InferenceGroup + }, + 204: { + bodyMapper: Mappers.InferenceGroup + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body27, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.poolName1, + Parameters.groupName1 + ], + 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}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.InferenceGroup + }, + 201: { + bodyMapper: Mappers.InferenceGroup + }, + 202: { + bodyMapper: Mappers.InferenceGroup + }, + 204: { + bodyMapper: Mappers.InferenceGroup + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body28, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.poolName, + Parameters.groupName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getStatusOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{poolName}/groups/{groupName}/getStatus", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.GroupStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.poolName1, + Parameters.groupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listSkusOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{poolName}/groups/{groupName}/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.poolName1, + Parameters.groupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InferenceGroupTrackedResourceArmPaginatedResult + }, + 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.poolName1, + Parameters.groupName1 + ], + 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..70d7462e56e4 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/inferencePools.ts @@ -0,0 +1,883 @@ +/* + * 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 inferencePoolName Inference Group name. + * @param options The options parameters. + */ + public listSkus( + resourceGroupName: string, + workspaceName: string, + inferencePoolName: string, + options?: InferencePoolsListSkusOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listSkusPagingAll( + resourceGroupName, + workspaceName, + inferencePoolName, + 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, + inferencePoolName, + options, + settings + ); + } + }; + } + + private async *listSkusPagingPage( + resourceGroupName: string, + workspaceName: string, + inferencePoolName: string, + options?: InferencePoolsListSkusOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: InferencePoolsListSkusResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listSkus( + resourceGroupName, + workspaceName, + inferencePoolName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listSkusNext( + resourceGroupName, + workspaceName, + inferencePoolName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listSkusPagingAll( + resourceGroupName: string, + workspaceName: string, + inferencePoolName: string, + options?: InferencePoolsListSkusOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listSkusPagingPage( + resourceGroupName, + workspaceName, + inferencePoolName, + 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 inferencePoolName Name of InferencePool + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + inferencePoolName: 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, inferencePoolName, 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 inferencePoolName Name of InferencePool + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + inferencePoolName: string, + options?: InferencePoolsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + inferencePoolName, + 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 inferencePoolName Name of InferencePool + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + inferencePoolName: string, + options?: InferencePoolsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, inferencePoolName, 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 inferencePoolName Name of InferencePool + * @param body Inference Pool entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + workspaceName: string, + inferencePoolName: 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, + inferencePoolName, + 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 inferencePoolName Name of InferencePool + * @param body Inference Pool entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + inferencePoolName: string, + body: PartialMinimalTrackedResourceWithSkuAndIdentity, + options?: InferencePoolsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + inferencePoolName, + 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 inferencePoolName Name of InferencePool + * @param body InferencePool entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + inferencePoolName: 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, + inferencePoolName, + 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 inferencePoolName Name of InferencePool + * @param body InferencePool entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + inferencePoolName: string, + body: InferencePool, + options?: InferencePoolsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + inferencePoolName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * 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 inferencePoolName Name of InferencePool + * @param options The options parameters. + */ + getStatus( + resourceGroupName: string, + workspaceName: string, + inferencePoolName: string, + options?: InferencePoolsGetStatusOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, inferencePoolName, options }, + getStatusOperationSpec + ); + } + + /** + * 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 inferencePoolName Inference Group name. + * @param options The options parameters. + */ + private _listSkus( + resourceGroupName: string, + workspaceName: string, + inferencePoolName: string, + options?: InferencePoolsListSkusOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, inferencePoolName, options }, + listSkusOperationSpec + ); + } + + /** + * 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 inferencePoolName 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, + inferencePoolName: string, + nextLink: string, + options?: InferencePoolsListSkusNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + inferencePoolName, + 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/{inferencePoolName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.inferencePoolName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{inferencePoolName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InferencePool + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.inferencePoolName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{inferencePoolName}", + 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.body, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.inferencePoolName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{inferencePoolName}", + 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.body24, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.inferencePoolName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getStatusOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{inferencePoolName}/getStatus", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PoolStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.inferencePoolName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listSkusOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{inferencePoolName}/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.inferencePoolName1 + ], + 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.inferencePoolName1 + ], + 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..28dae2bfb047 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.body29, + 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.body30, 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..a3a1ae30ca36 --- /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.body31, + 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.body32, + 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..0069a4b1f348 --- /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 Azure Machine Learning Workspace Name + * @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 Azure Machine Learning Workspace Name + * @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.body48, + 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..72afb2b38584 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkSettingsRule.ts @@ -0,0 +1,497 @@ +/* + * 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 Azure Machine Learning Workspace Name + * @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 Azure Machine Learning Workspace Name + * @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 Azure Machine Learning Workspace Name + * @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, + resourceLocationConfig: "location" + }); + 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 Azure Machine Learning Workspace Name + * @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 Azure Machine Learning Workspace Name + * @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 Azure Machine Learning Workspace Name + * @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 Azure Machine Learning Workspace Name + * @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 Azure Machine Learning Workspace 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, + 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.body46, + 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..b6dade9a8501 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.body11, 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..2278f9dd5f84 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.body12, 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.body13, + 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..6d8782c8fa0f 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.body27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -853,7 +865,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body19, + requestBody: Parameters.body35, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -879,7 +891,7 @@ const getLogsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body20, + requestBody: Parameters.body36, 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..bb04702c7d3d 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.body14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -729,7 +741,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body16, + requestBody: Parameters.body33, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -778,7 +790,7 @@ const regenerateKeysOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body17, + requestBody: Parameters.body34, 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..50f46b62a1c7 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/operations.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/operations.ts @@ -11,9 +11,9 @@ 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, + Operation, OperationsListOptionalParams, OperationsListResponse } from "../models"; @@ -21,23 +21,23 @@ 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( options?: OperationsListOptionalParams - ): PagedAsyncIterableIterator { + ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -58,7 +58,7 @@ export class OperationsImpl implements Operations { private async *listPagingPage( options?: OperationsListOptionalParams, _settings?: PageSettings - ): AsyncIterableIterator { + ): AsyncIterableIterator { let result: OperationsListResponse; result = await this._list(options); yield result.value || []; @@ -66,14 +66,14 @@ export class OperationsImpl implements Operations { private async *listPagingAll( options?: OperationsListOptionalParams - ): AsyncIterableIterator { + ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; } } /** - * 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( @@ -90,7 +90,7 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AmlOperationListResult + bodyMapper: Mappers.OperationListResult }, default: { bodyMapper: Mappers.ErrorResponse diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/privateEndpointConnections.ts b/sdk/machinelearning/arm-machinelearning/src/operations/privateEndpointConnections.ts index ce71a81f37c6..687665bbf44e 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/privateEndpointConnections.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/privateEndpointConnections.ts @@ -11,36 +11,36 @@ 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 workspaceName Azure Machine Learning Workspace Name * @param options The options parameters. */ public list( @@ -96,9 +96,9 @@ 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 workspaceName Azure Machine Learning Workspace Name * @param options The options parameters. */ private _list( @@ -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 workspaceName Azure Machine Learning Workspace Name + * @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 workspaceName Azure Machine Learning Workspace Name + * @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 workspaceName Azure Machine Learning Workspace Name + * @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.body47, 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..822cfe79fc6a 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 workspaceName Azure Machine Learning Workspace Name * @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 Azure Machine Learning Workspace Name + * @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..f6f22654f01c --- /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.body39, + 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.body40, + 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.body40, + 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..a0032c3dd912 --- /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.body2, + 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..bddc7d8bd5d7 --- /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.body3, + 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.body4, + 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..3a63d083e6df --- /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.body5, + 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..159bce0d794b --- /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.body6, + 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..6ede7cc3ae6b --- /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.body7, + 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..a62f888f1752 --- /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.body8, + 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.body4, + 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..8a45525db227 --- /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.body9, + 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..61a146a93bd1 --- /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.body10, + 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..7414c9b0317a --- /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.body11, + 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..cacb6c513618 --- /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.body12, + 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.body13, + 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.body4, + 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..f5a6231b304f 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.body37, 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..653b53cfc79d --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/serverlessEndpoints.ts @@ -0,0 +1,857 @@ +/* + * 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, + ServerlessEndpointsGetStatusOptionalParams, + ServerlessEndpointsGetStatusResponse, + 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(); + } + + /** + * Status of the model backing the 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. + */ + getStatus( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ServerlessEndpointsGetStatusOptionalParams + ): 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?: 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.body, + 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.body38, + 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.body34, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getStatusOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/serverlessEndpoints/{name}/getStatus", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ServerlessEndpointStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept], + 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..830e41918517 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts @@ -12,36 +12,49 @@ 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 { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { WorkspaceConnectionPropertiesV2BasicResource, WorkspaceConnectionsListNextOptionalParams, WorkspaceConnectionsListOptionalParams, WorkspaceConnectionsListResponse, - WorkspaceConnectionsCreateOptionalParams, - WorkspaceConnectionsCreateResponse, + WorkspaceConnectionsDeleteOptionalParams, WorkspaceConnectionsGetOptionalParams, WorkspaceConnectionsGetResponse, - WorkspaceConnectionsDeleteOptionalParams, + WorkspaceConnectionsUpdateOptionalParams, + WorkspaceConnectionsUpdateResponse, + WorkspaceConnectionsCreateOptionalParams, + WorkspaceConnectionsCreateResponse, + WorkspaceConnectionsListSecretsOptionalParams, + WorkspaceConnectionsListSecretsResponse, + WorkspaceConnectionsTestConnectionOptionalParams, + WorkspaceConnectionsTestConnectionResponse, 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 workspaceName Azure Machine Learning Workspace Name * @param options The options parameters. */ public list( @@ -115,28 +128,45 @@ 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 Azure Machine Learning Workspace Name + * @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 workspaceName Azure Machine Learning Workspace Name * @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 workspaceName Azure Machine Learning Workspace Name * @param connectionName Friendly name of the workspace connection * @param options The options parameters. */ @@ -153,43 +183,161 @@ 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 workspaceName Azure Machine Learning Workspace Name * @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 workspaceName Azure Machine Learning Workspace Name + * @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 Azure Machine Learning Workspace Name + * @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 ); } + /** + * Test machine learning workspaces connections under the specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Azure Machine Learning Workspace Name + * @param connectionName Friendly name of the workspace connection + * @param options The options parameters. + */ + async beginTestConnection( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsTestConnectionOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceConnectionsTestConnectionResponse + > + > { + 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, connectionName, options }, + spec: testConnectionOperationSpec + }); + const poller = await createHttpPoller< + WorkspaceConnectionsTestConnectionResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Test machine learning workspaces connections under the specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Azure Machine Learning Workspace Name + * @param connectionName Friendly name of the workspace connection + * @param options The options parameters. + */ + async beginTestConnectionAndWait( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsTestConnectionOptionalParams + ): Promise { + const poller = await this.beginTestConnection( + resourceGroupName, + workspaceName, + connectionName, + 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 workspaceName Azure Machine Learning Workspace Name * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ @@ -208,19 +356,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 +402,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.connectionName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; const getOperationSpec: coreClient.OperationSpec = { @@ -245,7 +417,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.aoaiModelsToDeploy], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -256,17 +428,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.body44, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -275,36 +449,92 @@ 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.body45, + 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, Parameters.aoaiModelsToDeploy], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, + Parameters.connectionName ], headerParameters: [Parameters.accept], serializer }; +const testConnectionOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}/testconnection", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.WorkspaceConnectionsTestConnectionHeaders + }, + 201: { + headersMapper: Mappers.WorkspaceConnectionsTestConnectionHeaders + }, + 202: { + headersMapper: Mappers.WorkspaceConnectionsTestConnectionHeaders + }, + 204: { + headersMapper: Mappers.WorkspaceConnectionsTestConnectionHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body45, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.connectionName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -317,17 +547,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..422d9ba87abf 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 workspaceName Azure Machine Learning Workspace Name * @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,59 +268,81 @@ export class WorkspacesImpl implements Workspaces { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; } /** - * 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 workspaceName Azure Machine Learning Workspace Name * @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 workspaceName Azure Machine Learning Workspace Name * @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 Azure Machine Learning Workspace Name + * @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 +375,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 +392,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 workspaceName Azure Machine Learning Workspace Name + * @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 workspaceName Azure Machine Learning Workspace Name + * @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,60 +470,49 @@ 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 workspaceName Azure Machine Learning Workspace Name + * @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. - * @param workspaceName Name of Azure Machine Learning workspace. + * @param workspaceName Azure Machine Learning Workspace Name * @param options The options parameters. */ async beginDiagnose( @@ -495,8 +520,8 @@ export class WorkspacesImpl implements Workspaces { workspaceName: string, options?: WorkspacesDiagnoseOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesDiagnoseResponse > > { @@ -506,7 +531,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 +564,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; @@ -556,7 +584,7 @@ export class WorkspacesImpl implements Workspaces { /** * Diagnose workspace setup issue. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName Name of Azure Machine Learning workspace. + * @param workspaceName Azure Machine Learning Workspace Name * @param options The options parameters. */ async beginDiagnoseAndWait( @@ -574,9 +602,9 @@ 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 workspaceName Azure Machine Learning Workspace Name * @param options The options parameters. */ listKeys( @@ -591,123 +619,78 @@ 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 workspaceName Azure Machine Learning Workspace Name * @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 workspaceName Azure Machine Learning Workspace Name * @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 Azure Machine Learning Workspace Name * @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 workspaceName Azure Machine Learning Workspace Name * @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 workspaceName Azure Machine Learning Workspace Name * @param options The options parameters. */ async beginPrepareNotebook( @@ -715,8 +698,8 @@ export class WorkspacesImpl implements Workspaces { workspaceName: string, options?: WorkspacesPrepareNotebookOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesPrepareNotebookResponse > > { @@ -726,7 +709,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,24 +742,27 @@ 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 workspaceName Azure Machine Learning Workspace Name * @param options The options parameters. */ async beginPrepareNotebookAndWait( @@ -793,54 +779,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 workspaceName Azure Machine Learning Workspace Name * @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 workspaceName Azure Machine Learning Workspace Name * @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 +894,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 +949,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 +1002,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters1, + requestBody: Parameters.body41, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -990,25 +1014,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.body42, + 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 +1068,7 @@ const diagnoseOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters2, + requestBody: Parameters.body43, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1066,15 +1102,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 +1124,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 +1146,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 +1168,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 +1190,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 +1221,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 +1244,7 @@ const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.Operatio headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -1236,17 +1255,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 +1274,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/capacityReservationGroups.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/capacityReservationGroups.ts new file mode 100644 index 000000000000..799bfc8d53f1 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/capacityReservationGroups.ts @@ -0,0 +1,83 @@ +/* + * 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 { + CapacityReservationGroup, + CapacityReservationGroupsListBySubscriptionOptionalParams, + CapacityReservationGroupsListOptionalParams, + CapacityReservationGroupsDeleteOptionalParams, + CapacityReservationGroupsGetOptionalParams, + CapacityReservationGroupsGetResponse, + PartialMinimalTrackedResourceWithSkuAndIdentity, + CapacityReservationGroupsUpdateOptionalParams, + CapacityReservationGroupsUpdateResponse, + CapacityReservationGroupsCreateOrUpdateOptionalParams, + CapacityReservationGroupsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a CapacityReservationGroups. */ +export interface CapacityReservationGroups { + /** @param options The options parameters. */ + listBySubscription( + options?: CapacityReservationGroupsListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + options?: CapacityReservationGroupsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param groupId + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + groupId: string, + options?: CapacityReservationGroupsDeleteOptionalParams + ): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param groupId + * @param options The options parameters. + */ + get( + resourceGroupName: string, + groupId: string, + options?: CapacityReservationGroupsGetOptionalParams + ): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param groupId + * @param body Strictly used in update requests. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + groupId: string, + body: PartialMinimalTrackedResourceWithSkuAndIdentity, + options?: CapacityReservationGroupsUpdateOptionalParams + ): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param groupId + * @param body + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + groupId: string, + body: CapacityReservationGroup, + options?: CapacityReservationGroupsCreateOrUpdateOptionalParams + ): Promise; +} 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..05a2cd36989e 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts @@ -6,15 +6,21 @@ * 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 "./capacityReservationGroups"; +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 +32,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 "./inferenceEndpoints"; +export * from "./inferenceGroups"; 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..71ea00682c6f --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/inferenceEndpoints.ts @@ -0,0 +1,162 @@ +/* + * 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 { + InferenceEndpoint, + 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 options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + poolName: 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 endpointName InferenceEndpoint name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + poolName: string, + endpointName: 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 endpointName InferenceEndpoint name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + endpointName: 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 endpointName InferenceEndpoint name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + poolName: string, + endpointName: 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 endpointName InferenceEndpoint name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + workspaceName: string, + poolName: string, + endpointName: 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 endpointName InferenceEndpoint name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + endpointName: 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 endpointName InferenceEndpoint name. + * @param body InferenceEndpoint entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + poolName: string, + endpointName: string, + body: InferenceEndpoint, + 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 endpointName InferenceEndpoint name. + * @param body InferenceEndpoint entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + endpointName: string, + body: InferenceEndpoint, + 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..ec8297fa4849 --- /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 { + InferenceGroup, + 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 groupName Inference Group name. + * @param options The options parameters. + */ + listSkus( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: 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 groupName InferenceGroup name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: 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 groupName InferenceGroup name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: 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 groupName InferenceGroup name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: 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 groupName InferenceGroup name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: 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 groupName InferenceGroup name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: 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 groupName InferenceGroup name. + * @param body InferenceGroup entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + body: InferenceGroup, + 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 groupName InferenceGroup name. + * @param body InferenceGroup entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + body: InferenceGroup, + 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 groupName InferenceGroup name. + * @param options The options parameters. + */ + getStatus( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: 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..adfe1a192a35 --- /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 inferencePoolName Inference Group name. + * @param options The options parameters. + */ + listSkus( + resourceGroupName: string, + workspaceName: string, + inferencePoolName: 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 inferencePoolName Name of InferencePool + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + inferencePoolName: 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 inferencePoolName Name of InferencePool + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + inferencePoolName: 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 inferencePoolName Name of InferencePool + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + inferencePoolName: 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 inferencePoolName Name of InferencePool + * @param body Inference Pool entity to apply during operation. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + workspaceName: string, + inferencePoolName: 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 inferencePoolName Name of InferencePool + * @param body Inference Pool entity to apply during operation. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + inferencePoolName: 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 inferencePoolName Name of InferencePool + * @param body InferencePool entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + inferencePoolName: 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 inferencePoolName Name of InferencePool + * @param body InferencePool entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + inferencePoolName: 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 inferencePoolName Name of InferencePool + * @param options The options parameters. + */ + getStatus( + resourceGroupName: string, + workspaceName: string, + inferencePoolName: 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..e69ad03990d8 --- /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 Azure Machine Learning Workspace Name + * @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 Azure Machine Learning Workspace Name + * @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..1f46701283af --- /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 Azure Machine Learning Workspace Name + * @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 Azure Machine Learning Workspace Name + * @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 Azure Machine Learning Workspace Name + * @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 Azure Machine Learning Workspace Name + * @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 Azure Machine Learning Workspace Name + * @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 Azure Machine Learning Workspace Name + * @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..0eb6c8905e9c 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/operations.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/operations.ts @@ -7,16 +7,16 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { AmlOperation, OperationsListOptionalParams } from "../models"; +import { Operation, 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( options?: OperationsListOptionalParams - ): PagedAsyncIterableIterator; + ): PagedAsyncIterableIterator; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateEndpointConnections.ts index e36e60ff73cb..fd88a2a80f98 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateEndpointConnections.ts @@ -10,20 +10,20 @@ 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 workspaceName Azure Machine Learning Workspace Name * @param options The options parameters. */ list( @@ -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 workspaceName Azure Machine Learning Workspace Name + * @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 workspaceName Azure Machine Learning Workspace Name + * @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 workspaceName Azure Machine Learning Workspace Name + * @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..0644739ba9f0 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateLinkResources.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateLinkResources.ts @@ -6,22 +6,29 @@ * 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 workspaceName Azure Machine Learning Workspace Name * @param options The options parameters. */ list( 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..d3ad030d4880 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/serverlessEndpoints.ts @@ -0,0 +1,215 @@ +/* + * 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, + ServerlessEndpointsGetStatusOptionalParams, + ServerlessEndpointsGetStatusResponse +} 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; + /** + * Status of the model backing the 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. + */ + getStatus( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ServerlessEndpointsGetStatusOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaceConnections.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaceConnections.ts index 1b33ac27cf3e..e3daed592f44 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaceConnections.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaceConnections.ts @@ -7,22 +7,30 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { WorkspaceConnectionPropertiesV2BasicResource, WorkspaceConnectionsListOptionalParams, - WorkspaceConnectionsCreateOptionalParams, - WorkspaceConnectionsCreateResponse, + WorkspaceConnectionsDeleteOptionalParams, WorkspaceConnectionsGetOptionalParams, WorkspaceConnectionsGetResponse, - WorkspaceConnectionsDeleteOptionalParams + WorkspaceConnectionsUpdateOptionalParams, + WorkspaceConnectionsUpdateResponse, + WorkspaceConnectionsCreateOptionalParams, + WorkspaceConnectionsCreateResponse, + WorkspaceConnectionsListSecretsOptionalParams, + WorkspaceConnectionsListSecretsResponse, + WorkspaceConnectionsTestConnectionOptionalParams, + WorkspaceConnectionsTestConnectionResponse } 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 workspaceName Azure Machine Learning Workspace Name * @param options The options parameters. */ list( @@ -31,22 +39,22 @@ 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 workspaceName Azure Machine Learning Workspace Name * @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 workspaceName Azure Machine Learning Workspace Name * @param connectionName Friendly name of the workspace connection * @param options The options parameters. */ @@ -57,15 +65,73 @@ 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 workspaceName Azure Machine Learning Workspace Name * @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 Azure Machine Learning Workspace Name + * @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 Azure Machine Learning Workspace Name + * @param connectionName Friendly name of the workspace connection + * @param options The options parameters. + */ + listSecrets( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsListSecretsOptionalParams + ): Promise; + /** + * Test machine learning workspaces connections under the specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Azure Machine Learning Workspace Name + * @param connectionName Friendly name of the workspace connection + * @param options The options parameters. + */ + beginTestConnection( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsTestConnectionOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceConnectionsTestConnectionResponse + > + >; + /** + * Test machine learning workspaces connections under the specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Azure Machine Learning Workspace Name + * @param connectionName Friendly name of the workspace connection + * @param options The options parameters. + */ + beginTestConnectionAndWait( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsTestConnectionOptionalParams + ): Promise; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaces.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaces.ts index 39e9d916b20b..50b66e7cfc1b 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaces.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaces.ts @@ -7,48 +7,39 @@ */ 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 resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - listByResourceGroup( - resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams - ): PagedAsyncIterableIterator; /** * Lists all the available machine learning workspaces under the specified subscription. * @param options The options parameters. @@ -57,104 +48,113 @@ export interface Workspaces { options?: WorkspacesListBySubscriptionOptionalParams ): PagedAsyncIterableIterator; /** - * Gets the properties of the specified machine learning workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - workspaceName: string, - options?: WorkspacesGetOptionalParams - ): Promise; - /** - * Creates or updates a workspace with the specified parameters. + * 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 parameters The parameters for creating or updating a machine learning workspace. * @param options The options parameters. */ - beginCreateOrUpdate( + listByResourceGroup( resourceGroupName: string, - workspaceName: string, - parameters: Workspace, - options?: WorkspacesCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - WorkspacesCreateOrUpdateResponse - > - >; + options?: WorkspacesListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator; /** - * 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 workspaceName Azure Machine Learning Workspace Name * @param options The options parameters. */ - beginCreateOrUpdateAndWait( + beginDelete( resourceGroupName: string, workspaceName: string, - parameters: Workspace, - options?: WorkspacesCreateOrUpdateOptionalParams - ): Promise; + options?: WorkspacesDeleteOptionalParams + ): Promise, void>>; /** * Deletes a machine learning workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName Name of Azure Machine Learning workspace. + * @param workspaceName Azure Machine Learning Workspace Name * @param options The options parameters. */ - beginDelete( + beginDeleteAndWait( resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams - ): Promise, void>>; + ): Promise; /** - * 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 workspaceName Azure Machine Learning Workspace Name * @param options The options parameters. */ - beginDeleteAndWait( + get( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams - ): Promise; + options?: WorkspacesGetOptionalParams + ): Promise; /** * Updates a machine learning workspace with the specified parameters. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param parameters The parameters for updating a machine learning workspace. + * @param workspaceName Azure Machine Learning Workspace Name + * @param body The parameters for updating a machine learning workspace. * @param options The options parameters. */ beginUpdate( resourceGroupName: string, workspaceName: string, - parameters: WorkspaceUpdateParameters, + body: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesUpdateResponse > >; /** * Updates a machine learning workspace with the specified parameters. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param parameters The parameters for updating a machine learning workspace. + * @param workspaceName Azure Machine Learning Workspace Name + * @param body The parameters for updating a machine learning workspace. * @param options The options parameters. */ beginUpdateAndWait( resourceGroupName: string, workspaceName: string, - parameters: WorkspaceUpdateParameters, + body: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams ): Promise; + /** + * Creates or updates a workspace with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Azure Machine Learning Workspace Name + * @param body The parameters for creating or updating a machine learning workspace. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + body: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + WorkspacesCreateOrUpdateResponse + > + >; + /** + * Creates or updates a workspace with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Azure Machine Learning Workspace Name + * @param body The parameters for creating or updating a machine learning workspace. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + body: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise; /** * Diagnose workspace setup issue. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName Name of Azure Machine Learning workspace. + * @param workspaceName Azure Machine Learning Workspace Name * @param options The options parameters. */ beginDiagnose( @@ -162,15 +162,15 @@ export interface Workspaces { workspaceName: string, options?: WorkspacesDiagnoseOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesDiagnoseResponse > >; /** * Diagnose workspace setup issue. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName Name of Azure Machine Learning workspace. + * @param workspaceName Azure Machine Learning Workspace Name * @param options The options parameters. */ beginDiagnoseAndWait( @@ -180,9 +180,9 @@ 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 workspaceName Azure Machine Learning Workspace Name * @param options The options parameters. */ listKeys( @@ -191,44 +191,54 @@ 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 workspaceName Azure Machine Learning Workspace Name * @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 workspaceName Azure Machine Learning Workspace Name * @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 workspaceName Azure Machine Learning Workspace Name * @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 Azure Machine Learning Workspace Name + * @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 workspaceName Azure Machine Learning Workspace Name * @param options The options parameters. */ beginPrepareNotebook( @@ -236,15 +246,15 @@ 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 workspaceName Azure Machine Learning Workspace Name * @param options The options parameters. */ beginPrepareNotebookAndWait( @@ -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 workspaceName Azure Machine Learning Workspace Name * @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 workspaceName Azure Machine Learning Workspace Name * @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"