From ae0a9a084d3f4a15575299b63d6cac9358f5c418 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 19 Sep 2023 21:57:58 +0000 Subject: [PATCH] CodeGen from PR 25801 in Azure/azure-rest-api-specs Merge 0dcc0d6ab9208f0f24add7657ee47e49088e26fc into 2a2c6b0c27db4880a74e5a2bf360b451db2f8917 --- common/config/rush/pnpm-lock.yaml | 136 +- .../arm-machinelearning/CHANGELOG.md | 488 +- .../arm-machinelearning/LICENSE | 2 +- .../arm-machinelearning/README.md | 24 +- .../arm-machinelearning/_meta.json | 8 +- .../arm-machinelearning/package.json | 35 +- .../review/arm-machinelearning.api.md | 2459 ++- ...ces.ts => azureMachineLearningServices.ts} | 76 +- .../arm-machinelearning/src/index.ts | 2 +- .../arm-machinelearning/src/lroImpl.ts | 54 +- .../arm-machinelearning/src/models/index.ts | 4377 ++++- .../arm-machinelearning/src/models/mappers.ts | 13513 ++++++++++------ .../src/models/parameters.ts | 409 +- .../src/operations/batchDeployments.ts | 94 +- .../src/operations/batchEndpoints.ts | 89 +- .../src/operations/codeContainers.ts | 9 +- .../src/operations/codeVersions.ts | 215 +- .../src/operations/componentContainers.ts | 13 +- .../src/operations/componentVersions.ts | 160 +- .../src/operations/computeOperations.ts | 147 +- .../src/operations/dataContainers.ts | 13 +- .../src/operations/dataVersions.ts | 161 +- .../src/operations/datastores.ts | 18 +- .../src/operations/environmentContainers.ts | 13 +- .../src/operations/environmentVersions.ts | 160 +- .../src/operations/index.ts | 14 + .../src/operations/jobs.ts | 66 +- .../operations/managedNetworkProvisions.ts | 163 + .../operations/managedNetworkSettingsRule.ts | 496 + .../src/operations/modelContainers.ts | 18 +- .../src/operations/modelVersions.ts | 168 +- .../src/operations/onlineDeployments.ts | 97 +- .../src/operations/onlineEndpoints.ts | 124 +- .../src/operations/operations.ts | 16 +- .../operations/privateEndpointConnections.ts | 6 +- .../src/operations/privateLinkResources.ts | 6 +- .../src/operations/quotas.ts | 7 +- .../src/operations/registries.ts | 758 + .../src/operations/registryCodeContainers.ts | 494 + .../src/operations/registryCodeVersions.ts | 596 + .../operations/registryComponentContainers.ts | 495 + .../operations/registryComponentVersions.ts | 551 + .../src/operations/registryDataContainers.ts | 498 + .../src/operations/registryDataReferences.ts | 83 + .../src/operations/registryDataVersions.ts | 586 + .../registryEnvironmentContainers.ts | 499 + .../operations/registryEnvironmentVersions.ts | 552 + .../src/operations/registryModelContainers.ts | 498 + .../src/operations/registryModelVersions.ts | 601 + .../src/operations/schedules.ts | 68 +- .../src/operations/usages.ts | 7 +- .../src/operations/virtualMachineSizes.ts | 6 +- .../src/operations/workspaceConnections.ts | 11 +- .../src/operations/workspaceFeatures.ts | 7 +- .../src/operations/workspaces.ts | 150 +- .../operationsInterfaces/batchDeployments.ts | 12 +- .../operationsInterfaces/batchEndpoints.ts | 12 +- .../src/operationsInterfaces/codeVersions.ts | 59 +- .../operationsInterfaces/componentVersions.ts | 39 +- .../operationsInterfaces/computeOperations.ts | 19 +- .../src/operationsInterfaces/dataVersions.ts | 39 +- .../environmentVersions.ts | 39 +- .../src/operationsInterfaces/index.ts | 14 + .../src/operationsInterfaces/jobs.ts | 7 +- .../managedNetworkProvisions.ts | 44 + .../managedNetworkSettingsRule.ts | 111 + .../src/operationsInterfaces/modelVersions.ts | 39 +- .../operationsInterfaces/onlineDeployments.ts | 12 +- .../operationsInterfaces/onlineEndpoints.ts | 16 +- .../src/operationsInterfaces/operations.ts | 4 +- .../src/operationsInterfaces/registries.ts | 154 + .../registryCodeContainers.ts | 109 + .../registryCodeVersions.ts | 141 + .../registryComponentContainers.ts | 109 + .../registryComponentVersions.ts | 121 + .../registryDataContainers.ts | 109 + .../registryDataReferences.ts | 34 + .../registryDataVersions.ts | 141 + .../registryEnvironmentContainers.ts | 109 + .../registryEnvironmentVersions.ts | 121 + .../registryModelContainers.ts | 109 + .../registryModelVersions.ts | 141 + .../src/operationsInterfaces/schedules.ts | 8 +- .../src/operationsInterfaces/workspaces.ts | 22 +- .../arm-machinelearning/src/pagingHelper.ts | 8 +- .../arm-machinelearning/tsconfig.json | 10 +- 86 files changed, 25359 insertions(+), 6869 deletions(-) rename sdk/machinelearning/arm-machinelearning/src/{azureMachineLearningWorkspaces.ts => azureMachineLearningServices.ts} (71%) 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/registryDataReferences.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/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/registryDataReferences.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 diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 7ee096fcdc10..ef007372fa07 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1906,6 +1906,18 @@ packages: resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} dev: false + /@isaacs/cliui@8.0.2: + resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} + engines: {node: '>=12'} + dependencies: + string-width: 5.1.2 + string-width-cjs: /string-width@4.2.3 + strip-ansi: 7.1.0 + strip-ansi-cjs: /strip-ansi@6.0.1 + wrap-ansi: 8.1.0 + wrap-ansi-cjs: /wrap-ansi@7.0.0 + dev: false + /@istanbuljs/load-nyc-config@1.1.0: resolution: {integrity: sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==} engines: {node: '>=8'} @@ -2330,6 +2342,13 @@ packages: '@opentelemetry/core': 1.17.0(@opentelemetry/api@1.6.0) dev: false + /@pkgjs/parseargs@0.11.0: + resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} + engines: {node: '>=14'} + requiresBuild: true + dev: false + optional: true + /@protobufjs/aspromise@1.1.2: resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==} dev: false @@ -3407,6 +3426,11 @@ packages: engines: {node: '>=8'} dev: false + /ansi-regex@6.0.1: + resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} + engines: {node: '>=12'} + dev: false + /ansi-styles@3.2.1: resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} engines: {node: '>=4'} @@ -3421,6 +3445,11 @@ packages: color-convert: 2.0.1 dev: false + /ansi-styles@6.2.1: + resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} + engines: {node: '>=12'} + dev: false + /anymatch@3.1.3: resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} engines: {node: '>= 8'} @@ -4451,6 +4480,10 @@ packages: typescript: 5.3.0-dev.20230919 dev: false + /eastasianwidth@0.2.0: + resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} + dev: false + /ecdsa-sig-formatter@1.0.11: resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==} dependencies: @@ -4477,6 +4510,10 @@ packages: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} dev: false + /emoji-regex@9.2.2: + resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} + dev: false + /encodeurl@1.0.2: resolution: {integrity: sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==} engines: {node: '>= 0.8'} @@ -5229,6 +5266,14 @@ packages: signal-exit: 3.0.7 dev: false + /foreground-child@3.1.1: + resolution: {integrity: sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==} + engines: {node: '>=14'} + dependencies: + cross-spawn: 7.0.3 + signal-exit: 4.1.0 + dev: false + /form-data-encoder@1.7.2: resolution: {integrity: sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==} dev: false @@ -5430,6 +5475,18 @@ packages: resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==} dev: false + /glob@10.3.4: + resolution: {integrity: sha512-6LFElP3A+i/Q8XQKEvZjkEWEOTgAIALR9AO2rwT8bgPhDd1anmqDJDZ6lLddI4ehxxxR1S5RIqKe1uapMQfYaQ==} + engines: {node: '>=16 || 14 >=14.17'} + hasBin: true + dependencies: + foreground-child: 3.1.1 + jackspeak: 2.3.3 + minimatch: 9.0.3 + minipass: 7.0.3 + path-scurry: 1.10.1 + dev: false + /glob@7.1.3: resolution: {integrity: sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==} dependencies: @@ -6131,6 +6188,15 @@ packages: istanbul-lib-report: 3.0.1 dev: false + /jackspeak@2.3.3: + resolution: {integrity: sha512-R2bUw+kVZFS/h1AZqBKrSgDmdmjApzgY0AlCPumopFiAlbUxE2gf+SCuBzQ0cP5hHmUmFYF5yw55T97Th5Kstg==} + engines: {node: '>=14'} + dependencies: + '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 + dev: false + /jju@1.4.0: resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==} dev: false @@ -6622,6 +6688,11 @@ packages: get-func-name: 2.0.0 dev: false + /lru-cache@10.0.1: + resolution: {integrity: sha512-IJ4uwUTi2qCccrioU6g9g/5rvvVl13bsdczUUcqbciD9iLr095yj8DQKdObriEvuNSx325N1rV1O0sJFszx75g==} + engines: {node: 14 || >=16.14} + dev: false + /lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} dependencies: @@ -6871,6 +6942,13 @@ packages: brace-expansion: 2.0.1 dev: false + /minimatch@9.0.3: + resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + brace-expansion: 2.0.1 + dev: false + /minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} dev: false @@ -6880,6 +6958,11 @@ packages: engines: {node: '>=8'} dev: false + /minipass@7.0.3: + resolution: {integrity: sha512-LhbbwCfz3vsb12j/WkWQPZfKTsgqIe1Nf/ti1pKjYESGLHIVjWU96G9/ljLH4F9mWNVhlQOm0VySdAWzf05dpg==} + engines: {node: '>=16 || 14 >=14.17'} + dev: false + /mitt@3.0.0: resolution: {integrity: sha512-7dX2/10ITVyqh4aOSVI9gdape+t9l2/8QxHrFmUXu4EEUpdlxl6RudZUPZoc+zuY2hk1j7XxVroIVIan/pD/SQ==} dev: false @@ -7570,6 +7653,14 @@ packages: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} dev: false + /path-scurry@1.10.1: + resolution: {integrity: sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + lru-cache: 10.0.1 + minipass: 7.0.3 + dev: false + /path-scurry@1.6.3: resolution: {integrity: sha512-RAmB+n30SlN+HnNx6EbcpoDy9nwdpcGPnEKrJnu6GZoDWBdIjo1UQMVtW2ybtC7LC2oKLcMq8y5g8WnKLiod9g==} engines: {node: '>=16 || 14 >=14.17'} @@ -8158,6 +8249,14 @@ packages: glob: 7.2.3 dev: false + /rimraf@5.0.1: + resolution: {integrity: sha512-OfFZdwtd3lZ+XZzYP/6gTACubwFcHdLRqS9UX3UwpU2dnGQYkPFISRwvM3w9IiB2w7bW5qGo/uAwE4SmXXSKvg==} + engines: {node: '>=14'} + hasBin: true + dependencies: + glob: 10.3.4 + dev: false + /rollup-plugin-polyfill-node@0.12.0(rollup@2.79.1): resolution: {integrity: sha512-PWEVfDxLEKt8JX1nZ0NkUAgXpkZMTb85rO/Ru9AQ69wYW8VUCfDgP4CGRXXWYni5wDF0vIeR1UoF3Jmw/Lt3Ug==} peerDependencies: @@ -8407,6 +8506,11 @@ packages: resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} dev: false + /signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + dev: false + /simple-concat@1.0.1: resolution: {integrity: sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==} dev: false @@ -8600,6 +8704,15 @@ packages: strip-ansi: 6.0.1 dev: false + /string-width@5.1.2: + resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} + engines: {node: '>=12'} + dependencies: + eastasianwidth: 0.2.0 + emoji-regex: 9.2.2 + strip-ansi: 7.1.0 + dev: false + /string.prototype.padend@3.1.4: resolution: {integrity: sha512-67otBXoksdjsnXXRUq+KMVTdlVRZ2af422Y0aTyTjVaoQkGr3mxl2Bc5emi7dOQ3OGVVQQskmLEWwFXwommpNw==} engines: {node: '>= 0.4'} @@ -8671,6 +8784,13 @@ packages: ansi-regex: 5.0.1 dev: false + /strip-ansi@7.1.0: + resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} + engines: {node: '>=12'} + dependencies: + ansi-regex: 6.0.1 + dev: false + /strip-bom@3.0.0: resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} engines: {node: '>=4'} @@ -9361,6 +9481,15 @@ packages: strip-ansi: 6.0.1 dev: false + /wrap-ansi@8.1.0: + resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} + engines: {node: '>=12'} + dependencies: + ansi-styles: 6.2.1 + string-width: 5.1.2 + strip-ansi: 7.1.0 + dev: false + /wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} dev: false @@ -13824,7 +13953,7 @@ packages: dev: false file:projects/arm-machinelearning.tgz: - resolution: {integrity: sha512-Xx3JWFcuUoNn3AK9vUwtq92vfEdJPg3ABvtjFQFIwpoa+h/FRhb1EzSHMzFRBJkM0Ghj5kpusFbDXKuFeU3H3w==, tarball: file:projects/arm-machinelearning.tgz} + resolution: {integrity: sha512-EVH4dESegOK3l8PQ1saqUmfft8r9GbRELcF/yCtzoiyRQUWcGnzEcP83SkPVPN6e07d+FC8SNKsW/ZzDjtMr8g==, tarball: file:projects/arm-machinelearning.tgz} name: '@rush-temp/arm-machinelearning' version: 0.0.0 dependencies: @@ -13838,9 +13967,10 @@ packages: '@types/node': 14.18.56 chai: 4.3.8 cross-env: 7.0.3 - mkdirp: 1.0.4 + dotenv: 16.3.1 + mkdirp: 2.1.6 mocha: 7.2.0 - rimraf: 3.0.2 + rimraf: 5.0.1 rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3(@types/node@14.18.56)(rollup@2.79.1) ts-node: 10.9.1(@types/node@14.18.56)(typescript@5.0.4) diff --git a/sdk/machinelearning/arm-machinelearning/CHANGELOG.md b/sdk/machinelearning/arm-machinelearning/CHANGELOG.md index 1a059d33be9a..66473d74bb20 100644 --- a/sdk/machinelearning/arm-machinelearning/CHANGELOG.md +++ b/sdk/machinelearning/arm-machinelearning/CHANGELOG.md @@ -1,15 +1,487 @@ # Release History + +## 3.0.0 (2023-09-19) + +**Features** -## 2.1.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - 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 RegistryDataReferences + - Added operation group RegistryDataVersions + - Added operation group RegistryEnvironmentContainers + - Added operation group RegistryEnvironmentVersions + - Added operation group RegistryModelContainers + - Added operation group RegistryModelVersions + - Added operation CodeVersions.beginPublish + - Added operation CodeVersions.beginPublishAndWait + - Added operation CodeVersions.createOrGetStartPendingUpload + - Added operation ComponentVersions.beginPublish + - Added operation ComponentVersions.beginPublishAndWait + - Added operation DataVersions.beginPublish + - Added operation DataVersions.beginPublishAndWait + - Added operation EnvironmentVersions.beginPublish + - Added operation EnvironmentVersions.beginPublishAndWait + - Added operation ModelVersions.beginPublish + - Added operation ModelVersions.beginPublishAndWait + - Added Interface AcrDetails + - Added Interface AllFeatures + - Added Interface AllNodes + - Added Interface AmlTokenComputeIdentity + - Added Interface AnonymousAccessCredential + - Added Interface ArmResourceId + - Added Interface AzureDatastore + - Added Interface AzureMachineLearningServicesOptionalParams + - Added Interface BindOptions + - Added Interface BlobReferenceForConsumptionDto + - Added Interface CategoricalDataDriftMetricThreshold + - Added Interface CategoricalDataQualityMetricThreshold + - Added Interface CategoricalPredictionDriftMetricThreshold + - Added Interface CodeVersionsCreateOrGetStartPendingUploadOptionalParams + - Added Interface CodeVersionsPublishHeaders + - Added Interface CodeVersionsPublishOptionalParams + - Added Interface ComponentVersionsPublishHeaders + - Added Interface ComponentVersionsPublishOptionalParams + - Added Interface CreateMonitorAction + - Added Interface Cron + - Added Interface CustomMetricThreshold + - Added Interface CustomMonitoringSignal + - Added Interface CustomService + - Added Interface DataDriftMetricThresholdBase + - Added Interface DataDriftMonitoringSignal + - Added Interface DataQualityMetricThresholdBase + - Added Interface DataQualityMonitoringSignal + - Added Interface DataReferenceCredential + - Added Interface DataVersionsPublishHeaders + - Added Interface DataVersionsPublishOptionalParams + - Added Interface DestinationAsset + - Added Interface Docker + - Added Interface DockerCredential + - Added Interface Endpoint + - Added Interface EnvironmentVariable + - Added Interface EnvironmentVersionsPublishHeaders + - Added Interface EnvironmentVersionsPublishOptionalParams + - Added Interface FeatureAttributionDriftMonitoringSignal + - Added Interface FeatureAttributionMetricThreshold + - Added Interface FeatureImportanceSettings + - Added Interface FeatureSubset + - Added Interface FixedInputData + - Added Interface FqdnOutboundRule + - Added Interface GetBlobReferenceForConsumptionDto + - Added Interface GetBlobReferenceSASRequestDto + - Added Interface GetBlobReferenceSASResponseDto + - Added Interface IdleShutdownSetting + - Added Interface Image_2 + - Added Interface ImageMetadata + - Added Interface ManagedComputeIdentity + - Added Interface ManagedIdentityCredential + - 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 ModelVersionsPublishHeaders + - Added Interface ModelVersionsPublishOptionalParams + - Added Interface MonitorComputeConfigurationBase + - Added Interface MonitorComputeIdentityBase + - Added Interface MonitorDefinition + - Added Interface MonitorEmailNotificationSettings + - Added Interface MonitoringFeatureFilterBase + - Added Interface MonitoringInputDataBase + - Added Interface MonitoringSignalBase + - Added Interface MonitoringTarget + - Added Interface MonitoringThreshold + - Added Interface MonitorNotificationSettings + - Added Interface MonitorServerlessSparkCompute + - Added Interface Nodes + - Added Interface NumericalDataDriftMetricThreshold + - Added Interface NumericalDataQualityMetricThreshold + - Added Interface NumericalPredictionDriftMetricThreshold + - Added Interface Operation + - Added Interface OperationDisplay + - Added Interface OperationListResult + - Added Interface OutboundRule + - Added Interface OutboundRuleBasicResource + - Added Interface OutboundRuleListResult + - Added Interface PartialRegistryPartialTrackedResource + - Added Interface PendingUploadCredentialDto + - Added Interface PendingUploadRequestDto + - Added Interface PendingUploadResponseDto + - Added Interface PredictionDriftMetricThresholdBase + - Added Interface PredictionDriftMonitoringSignal + - Added Interface PrivateEndpointDestination + - Added Interface PrivateEndpointOutboundRule + - Added Interface PrivateEndpointResource + - Added Interface QueueSettings + - 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 RegistryDataReferencesGetBlobReferenceSASOptionalParams + - 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 RegistryPartialManagedServiceIdentity + - Added Interface RegistryPrivateEndpointConnection + - Added Interface RegistryPrivateLinkServiceConnectionState + - Added Interface RegistryRegionArmDetails + - Added Interface RegistryTrackedResourceArmPaginatedResult + - Added Interface RollingInputData + - Added Interface SASCredential + - Added Interface SASCredentialDto + - Added Interface ServiceTagDestination + - Added Interface ServiceTagOutboundRule + - Added Interface StaticInputData + - Added Interface StorageAccountDetails + - Added Interface SystemCreatedAcrAccount + - Added Interface SystemCreatedStorageAccount + - Added Interface TmpfsOptions + - Added Interface TopNFeaturesByAttribution + - Added Interface UserCreatedAcrAccount + - Added Interface UserCreatedStorageAccount + - Added Interface VolumeDefinition + - Added Interface VolumeOptions + - Added Interface WorkspacesCreateOrUpdateHeaders + - Added Interface WorkspacesPrepareNotebookHeaders + - Added Interface WorkspacesResyncKeysHeaders + - Added Interface WorkspacesUpdateHeaders + - Added Class AzureMachineLearningServices + - Added Type Alias ActionType + - Added Type Alias AssetProvisioningState + - Added Type Alias CategoricalDataDriftMetric + - Added Type Alias CategoricalDataQualityMetric + - Added Type Alias CategoricalPredictionDriftMetric + - Added Type Alias CodeVersionsCreateOrGetStartPendingUploadResponse + - Added Type Alias DataDriftMetricThresholdBaseUnion + - Added Type Alias DataQualityMetricThresholdBaseUnion + - Added Type Alias DataReferenceCredentialType + - Added Type Alias DataReferenceCredentialUnion + - Added Type Alias EndpointServiceConnectionStatus + - Added Type Alias EnvironmentVariableType + - Added Type Alias FeatureAttributionMetric + - Added Type Alias FeatureImportanceMode + - Added Type Alias ImageType + - Added Type Alias IsolationMode + - Added Type Alias JobTier + - 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 ModelTaskType + - 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 MonitoringNotificationType + - Added Type Alias MonitoringSignalBaseUnion + - Added Type Alias MonitoringSignalType + - Added Type Alias NodesUnion + - Added Type Alias NodesValueType + - Added Type Alias NumericalDataDriftMetric + - Added Type Alias NumericalDataQualityMetric + - Added Type Alias NumericalPredictionDriftMetric + - Added Type Alias Origin + - Added Type Alias OutboundRuleUnion + - Added Type Alias PendingUploadCredentialDtoUnion + - Added Type Alias PendingUploadCredentialType + - Added Type Alias PendingUploadType + - Added Type Alias PredictionDriftMetricThresholdBaseUnion + - 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 RegistryDataReferencesGetBlobReferenceSASResponse + - 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 RuleAction + - Added Type Alias RuleCategory + - Added Type Alias RuleStatus + - Added Type Alias RuleType + - Added Type Alias VolumeDefinitionType + - Interface AutoMLJob has a new optional parameter queueSettings + - 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 queueSettings + - Interface ComponentContainerProperties has a new optional parameter provisioningState + - Interface ComponentVersionProperties has a new optional parameter provisioningState + - Interface ComputeInstanceProperties has a new optional parameter customServices + - Interface ComputeInstanceProperties has a new optional parameter osImageMetadata + - Interface EnvironmentContainerProperties has a new optional parameter provisioningState + - Interface EnvironmentVersionProperties has a new optional parameter provisioningState + - Interface EnvironmentVersionProperties has a new optional parameter stage + - Interface JobService has a new optional parameter nodes + - Interface JobsListOptionalParams has a new optional parameter properties + - Interface ModelContainerProperties has a new optional parameter provisioningState + - Interface ModelVersionProperties has a new optional parameter provisioningState + - Interface ModelVersionProperties has a new optional parameter stage + - Interface OnlineEndpointProperties has a new optional parameter mirrorTraffic + - Interface SweepJob has a new optional parameter queueSettings + - Interface Workspace has a new optional parameter managedNetwork + - Interface WorkspacesDeleteOptionalParams has a new optional parameter forceToPurge + - Type of parameter actionType of interface ScheduleActionBase is changed from "InvokeBatchEndpoint" | "CreateJob" to "CreateMonitor" | "InvokeBatchEndpoint" | "CreateJob" + - Type of parameter triggerType of interface TriggerBase is changed from "Recurrence" | "Cron" to "Cron" | "Recurrence" + - Added Enum KnownActionType + - Added Enum KnownAssetProvisioningState + - Added Enum KnownCategoricalDataDriftMetric + - Added Enum KnownCategoricalDataQualityMetric + - Added Enum KnownCategoricalPredictionDriftMetric + - Added Enum KnownDataReferenceCredentialType + - Added Enum KnownEndpointServiceConnectionStatus + - Added Enum KnownEnvironmentVariableType + - Added Enum KnownFeatureAttributionMetric + - Added Enum KnownFeatureImportanceMode + - Added Enum KnownImageType + - Added Enum KnownIsolationMode + - Added Enum KnownJobTier + - Added Enum KnownManagedNetworkStatus + - Added Enum KnownModelTaskType + - Added Enum KnownMonitorComputeIdentityType + - Added Enum KnownMonitorComputeType + - Added Enum KnownMonitoringFeatureDataType + - Added Enum KnownMonitoringFeatureFilterType + - Added Enum KnownMonitoringInputDataType + - Added Enum KnownMonitoringNotificationType + - Added Enum KnownMonitoringSignalType + - Added Enum KnownNodesValueType + - Added Enum KnownNumericalDataDriftMetric + - Added Enum KnownNumericalDataQualityMetric + - Added Enum KnownNumericalPredictionDriftMetric + - Added Enum KnownOrigin + - Added Enum KnownPendingUploadCredentialType + - Added Enum KnownPendingUploadType + - Added Enum KnownProtocol + - Added Enum KnownRuleAction + - Added Enum KnownRuleCategory + - Added Enum KnownRuleStatus + - Added Enum KnownRuleType + - Added Enum KnownVolumeDefinitionType + - Enum KnownScheduleActionType has a new value CreateMonitor -### Other Changes +**Breaking Changes** + - 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 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 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 WorkspaceConnectionsListNextOptionalParams no longer has parameter category + - Interface WorkspaceConnectionsListNextOptionalParams no longer has parameter target + - 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 + + ## 2.1.1 (2022-11-28) **Features** diff --git a/sdk/machinelearning/arm-machinelearning/LICENSE b/sdk/machinelearning/arm-machinelearning/LICENSE index 5d1d36e0af80..3a1d9b6f24f7 100644 --- a/sdk/machinelearning/arm-machinelearning/LICENSE +++ b/sdk/machinelearning/arm-machinelearning/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 Microsoft +Copyright (c) 2023 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/machinelearning/arm-machinelearning/README.md b/sdk/machinelearning/arm-machinelearning/README.md index c7c7e6faee9e..17cd50197d7d 100644 --- a/sdk/machinelearning/arm-machinelearning/README.md +++ b/sdk/machinelearning/arm-machinelearning/README.md @@ -1,6 +1,6 @@ -# 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. @@ -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..a477437b30ee 100644 --- a/sdk/machinelearning/arm-machinelearning/_meta.json +++ b/sdk/machinelearning/arm-machinelearning/_meta.json @@ -1,8 +1,8 @@ { - "commit": "1fefe3f5cee88319b17c08a2dbf95e1e983a9f8c", + "commit": "9276af836eba14d73ffaa248640d927d50272469", "readme": "specification/machinelearningservices/resource-manager/readme.md", - "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\machinelearningservices\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md --use=@autorest/typescript@^6.0.4", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", - "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", + "use": "@autorest/typescript@^6.0.4" } \ No newline at end of file diff --git a/sdk/machinelearning/arm-machinelearning/package.json b/sdk/machinelearning/arm-machinelearning/package.json index 6b5e704d6f45..938c8b0a9d19 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", "engines": { "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.2.0", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", + "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-rest-pipeline": "^1.12.0", "tslib": "^2.2.0" }, "keywords": [ @@ -33,12 +33,13 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-multi-entry": "^6.0.0", "@rollup/plugin-node-resolve": "^13.1.3", - "mkdirp": "^1.0.4", + "mkdirp": "^2.1.2", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", "typescript": "~5.0.0", "uglify-js": "^3.4.9", - "rimraf": "^3.0.0", + "rimraf": "^5.0.0", + "dotenv": "^16.0.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", @@ -47,10 +48,9 @@ "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^14.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0" + "ts-node": "^10.0.0", + "@azure/dev-tool": "^1.0.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-machinelearning", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" @@ -84,7 +84,7 @@ "extract-api": "api-extractor run --local", "lint": "echo skipped", "audit": "echo skipped", - "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", "build:test": "echo skipped", @@ -106,18 +106,11 @@ "//metadata": { "constantPaths": [ { - "path": "src/azureMachineLearningWorkspaces.ts", + "path": "src/azureMachineLearningServices.ts", "prefix": "packageDetails" } ] }, "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-machinelearning?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-machinelearning" +} \ No newline at end of file diff --git a/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md b/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md index 550802b181a7..b35042496b46 100644 --- a/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md +++ b/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md @@ -6,9 +6,9 @@ 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 export interface AccountKeyDatastoreCredentials extends DatastoreCredentials { @@ -22,6 +22,15 @@ export interface AccountKeyDatastoreSecrets extends DatastoreSecrets { secretsType: "AccountKey"; } +// @public +export interface AcrDetails { + systemCreatedAcrAccount?: SystemCreatedAcrAccount; + userCreatedAcrAccount?: UserCreatedAcrAccount; +} + +// @public +export type ActionType = string; + // @public export interface Aks extends Compute, AKSSchema { computeType: "AKS"; @@ -65,6 +74,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 +135,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,9 +151,19 @@ export interface AmlUserFeature { id?: string; } +// @public +export interface AnonymousAccessCredential extends DataReferenceCredential { + credentialType: "NoCredentials"; +} + // @public export type ApplicationSharingPolicy = string; +// @public +export interface ArmResourceId { + resourceId?: string; +} + // @public (undocumented) export interface AssetBase extends ResourceBase { isAnonymous?: boolean; @@ -175,6 +189,9 @@ export interface AssetJobOutput { uri?: string; } +// @public +export type AssetProvisioningState = string; + // @public export interface AssetReferenceBase { referenceType: "DataPath" | "Id" | "OutputPath"; @@ -204,6 +221,7 @@ export interface AutoMLJob extends JobBaseProperties { outputs?: { [propertyName: string]: JobOutputUnion | null; }; + queueSettings?: QueueSettings; resources?: JobResourceConfiguration; taskDetails: AutoMLVerticalUnion; } @@ -264,26 +282,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 +306,14 @@ export interface AzureDataLakeGen2Datastore extends DatastoreProperties { } // @public -export interface AzureFileDatastore extends DatastoreProperties { +export interface AzureDatastore { + resourceGroup?: string; + subscriptionId?: string; +} + +// @public +export interface AzureFileDatastore extends AzureDatastore, DatastoreProperties { accountName: string; - datastoreType: "AzureFile"; endpoint?: string; fileShareName: string; protocol?: string; @@ -301,10 +321,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) @@ -334,6 +354,10 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { // (undocumented) jobs: Jobs; // (undocumented) + managedNetworkProvisions: ManagedNetworkProvisions; + // (undocumented) + managedNetworkSettingsRule: ManagedNetworkSettingsRule; + // (undocumented) modelContainers: ModelContainers; // (undocumented) modelVersions: ModelVersions; @@ -350,6 +374,30 @@ 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) + registryDataReferences: RegistryDataReferences; + // (undocumented) + registryDataVersions: RegistryDataVersions; + // (undocumented) + registryEnvironmentContainers: RegistryEnvironmentContainers; + // (undocumented) + registryEnvironmentVersions: RegistryEnvironmentVersions; + // (undocumented) + registryModelContainers: RegistryModelContainers; + // (undocumented) + registryModelVersions: RegistryModelVersions; + // (undocumented) schedules: Schedules; // (undocumented) subscriptionId: string; @@ -366,7 +414,7 @@ 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; @@ -404,11 +452,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 +499,6 @@ export type BatchDeploymentsGetResponse = BatchDeployment; // @public export interface BatchDeploymentsListNextOptionalParams extends coreClient.OperationOptions { - orderBy?: string; - skip?: string; - top?: number; } // @public @@ -512,11 +557,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 +612,6 @@ export type BatchEndpointsListKeysResponse = EndpointAuthKeys; // @public export interface BatchEndpointsListNextOptionalParams extends coreClient.OperationOptions { - count?: number; - skip?: string; } // @public @@ -625,6 +668,20 @@ export interface BayesianSamplingAlgorithm extends SamplingAlgorithm { // @public export type BillingCurrency = string; +// @public +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 +694,33 @@ export interface BuildContext { // @public export type Caching = string; +// @public +export type CategoricalDataDriftMetric = string; + +// @public (undocumented) +export interface CategoricalDataDriftMetricThreshold extends DataDriftMetricThresholdBase { + dataType: "Categorical"; + metric: CategoricalDataDriftMetric; +} + +// @public +export type CategoricalDataQualityMetric = string; + +// @public (undocumented) +export interface CategoricalDataQualityMetricThreshold extends DataQualityMetricThresholdBase { + dataType: "Categorical"; + metric: CategoricalDataQualityMetric; +} + +// @public +export type CategoricalPredictionDriftMetric = string; + +// @public (undocumented) +export interface CategoricalPredictionDriftMetricThreshold extends PredictionDriftMetricThresholdBase { + dataType: "Categorical"; + metric: CategoricalPredictionDriftMetric; +} + // @public export interface CertificateDatastoreCredentials extends DatastoreCredentials { authorityUrl?: string; @@ -697,6 +781,7 @@ export interface CodeContainer extends Resource { // @public export interface CodeContainerProperties extends AssetContainer { + readonly provisioningState?: AssetProvisioningState; } // @public @@ -733,7 +818,6 @@ export type CodeContainersGetResponse = CodeContainer; // @public export interface CodeContainersListNextOptionalParams extends coreClient.OperationOptions { - skip?: string; } // @public @@ -755,6 +839,7 @@ export interface CodeVersion extends Resource { // @public export interface CodeVersionProperties extends AssetBase { codeUri?: string; + readonly provisioningState?: AssetProvisioningState; } // @public @@ -765,12 +850,22 @@ export interface CodeVersionResourceArmPaginatedResult { // @public export interface CodeVersions { + beginPublish(resourceGroupName: string, workspaceName: string, name: string, version: string, body: DestinationAsset, options?: CodeVersionsPublishOptionalParams): Promise, void>>; + beginPublishAndWait(resourceGroupName: string, workspaceName: string, name: string, version: string, body: DestinationAsset, options?: CodeVersionsPublishOptionalParams): Promise; + 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 +886,6 @@ export type CodeVersionsGetResponse = CodeVersion; // @public export interface CodeVersionsListNextOptionalParams extends coreClient.OperationOptions { - orderBy?: string; - skip?: string; - top?: number; } // @public @@ -801,6 +893,8 @@ export type CodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult // @public export interface CodeVersionsListOptionalParams extends coreClient.OperationOptions { + hash?: string; + hashVersion?: string; orderBy?: string; skip?: string; top?: number; @@ -809,6 +903,18 @@ export interface CodeVersionsListOptionalParams extends coreClient.OperationOpti // @public export type CodeVersionsListResponse = CodeVersionResourceArmPaginatedResult; +// @public +export interface CodeVersionsPublishHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface CodeVersionsPublishOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + // @public export interface ColumnTransformer { fields?: string[]; @@ -833,6 +939,7 @@ export interface CommandJob extends JobBaseProperties { [propertyName: string]: JobOutputUnion | null; }; readonly parameters?: Record; + queueSettings?: QueueSettings; resources?: JobResourceConfiguration; } @@ -848,6 +955,7 @@ export interface ComponentContainer extends Resource { // @public export interface ComponentContainerProperties extends AssetContainer { + readonly provisioningState?: AssetProvisioningState; } // @public @@ -884,8 +992,6 @@ export type ComponentContainersGetResponse = ComponentContainer; // @public export interface ComponentContainersListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - skip?: string; } // @public @@ -908,6 +1014,7 @@ export interface ComponentVersion extends Resource { // @public export interface ComponentVersionProperties extends AssetBase { componentSpec?: Record; + readonly provisioningState?: AssetProvisioningState; } // @public @@ -918,6 +1025,8 @@ export interface ComponentVersionResourceArmPaginatedResult { // @public export interface ComponentVersions { + beginPublish(resourceGroupName: string, workspaceName: string, name: string, version: string, body: DestinationAsset, options?: ComponentVersionsPublishOptionalParams): Promise, void>>; + beginPublishAndWait(resourceGroupName: string, workspaceName: string, name: string, version: string, body: DestinationAsset, options?: ComponentVersionsPublishOptionalParams): Promise; createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, version: string, body: ComponentVersion, options?: ComponentVersionsCreateOrUpdateOptionalParams): Promise; delete(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: ComponentVersionsDeleteOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: ComponentVersionsGetOptionalParams): Promise; @@ -944,10 +1053,6 @@ export type ComponentVersionsGetResponse = ComponentVersion; // @public export interface ComponentVersionsListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - orderBy?: string; - skip?: string; - top?: number; } // @public @@ -964,6 +1069,18 @@ export interface ComponentVersionsListOptionalParams extends coreClient.Operatio // @public export type ComponentVersionsListResponse = ComponentVersionResourceArmPaginatedResult; +// @public +export interface ComponentVersionsPublishHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface ComponentVersionsPublishOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + // @public export interface Compute { computeLocation?: string; @@ -1091,13 +1208,15 @@ export interface ComputeInstanceProperties { readonly connectivityEndpoints?: ComputeInstanceConnectivityEndpoints; readonly containers?: ComputeInstanceContainer[]; readonly createdBy?: ComputeInstanceCreatedBy; + customServices?: CustomService[]; readonly dataDisks?: ComputeInstanceDataDisk[]; readonly dataMounts?: ComputeInstanceDataMount[]; enableNodePublicIp?: boolean; readonly errors?: ErrorResponse[]; readonly lastOperation?: ComputeInstanceLastOperation; + readonly osImageMetadata?: ImageMetadata; personalComputeInstanceSettings?: PersonalComputeInstanceSettings; - readonly schedules?: ComputeSchedules; + schedules?: ComputeSchedules; setupScripts?: SetupScripts; sshSettings?: ComputeInstanceSshSettings; readonly state?: ComputeInstanceState; @@ -1136,7 +1255,6 @@ export type ComputeListKeysResponse = ComputeSecretsUnion; // @public export interface ComputeListNextOptionalParams extends coreClient.OperationOptions { - skip?: string; } // @public @@ -1166,17 +1284,17 @@ 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>>; + 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; list(resourceGroupName: string, workspaceName: string, options?: ComputeListOptionalParams): PagedAsyncIterableIterator; @@ -1230,10 +1348,10 @@ export interface ComputeStartOptionalParams extends coreClient.OperationOptions // @public export interface ComputeStartStopSchedule { action?: ComputePowerAction; - cron?: CronTrigger; + cron?: Cron; readonly id?: string; readonly provisioningStatus?: ProvisioningStatus; - recurrence?: RecurrenceTrigger; + recurrence?: Recurrence; schedule?: ScheduleBase; status?: ScheduleStatus; triggerType?: TriggerType; @@ -1290,9 +1408,22 @@ export interface CosmosDbSettings { // @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; @@ -1305,6 +1436,12 @@ export interface CustomForecastHorizon extends ForecastHorizon { value: number; } +// @public (undocumented) +export interface CustomMetricThreshold { + metric: string; + threshold?: MonitoringThreshold; +} + // @public (undocumented) export interface CustomModelJobInput extends AssetJobInput, JobInput { } @@ -1313,6 +1450,19 @@ 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"; +} + // @public export interface CustomNCrossValidations extends NCrossValidations { mode: "Custom"; @@ -1325,6 +1475,19 @@ export interface CustomSeasonality extends Seasonality { value: number; } +// @public +export interface CustomService { + [property: string]: any; + docker?: Docker; + endpoints?: Endpoint[]; + environmentVariables?: { + [propertyName: string]: EnvironmentVariable; + }; + image?: Image_2; + name?: string; + volumes?: VolumeDefinition[]; +} + // @public (undocumented) export interface CustomTargetLags extends TargetLags { mode: "Custom"; @@ -1407,8 +1570,6 @@ export type DataContainersGetResponse = DataContainer; // @public export interface DataContainersListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - skip?: string; } // @public @@ -1423,6 +1584,28 @@ 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 { + featureDataTypeOverride?: { + [propertyName: string]: MonitoringFeatureDataType; + }; + featureImportanceSettings?: FeatureImportanceSettings; + features?: MonitoringFeatureFilterBaseUnion; + metricThresholds: DataDriftMetricThresholdBaseUnion[]; + productionData: MonitoringInputDataBaseUnion; + referenceData: MonitoringInputDataBaseUnion; + signalType: "DataDrift"; +} + // @public export interface DataFactory extends Compute { computeType: "DataFactory"; @@ -1451,6 +1634,39 @@ 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 +export interface DataReferenceCredential { + credentialType: "NoCredentials" | "DockerCredentials" | "ManagedIdentity" | "SAS"; +} + +// @public +export type DataReferenceCredentialType = string; + +// @public (undocumented) +export type DataReferenceCredentialUnion = DataReferenceCredential | AnonymousAccessCredential | DockerCredential | ManagedIdentityCredential | SASCredential; + // @public export interface Datastore extends Resource { properties: DatastorePropertiesUnion; @@ -1518,13 +1734,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 @@ -1579,6 +1788,8 @@ export interface DataVersionBaseResourceArmPaginatedResult { // @public export interface DataVersions { + beginPublish(resourceGroupName: string, workspaceName: string, name: string, version: string, body: DestinationAsset, options?: DataVersionsPublishOptionalParams): Promise, void>>; + beginPublishAndWait(resourceGroupName: string, workspaceName: string, name: string, version: string, body: DestinationAsset, options?: DataVersionsPublishOptionalParams): Promise; createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, version: string, body: DataVersionBase, options?: DataVersionsCreateOrUpdateOptionalParams): Promise; delete(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: DataVersionsDeleteOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: DataVersionsGetOptionalParams): Promise; @@ -1605,11 +1816,6 @@ export type DataVersionsGetResponse = DataVersionBase; // @public export interface DataVersionsListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - orderBy?: string; - skip?: string; - tags?: string; - top?: number; } // @public @@ -1627,6 +1833,18 @@ export interface DataVersionsListOptionalParams extends coreClient.OperationOpti // @public export type DataVersionsListResponse = DataVersionBaseResourceArmPaginatedResult; +// @public +export interface DataVersionsPublishHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface DataVersionsPublishOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + // @public (undocumented) export interface DefaultScaleSettings extends OnlineScaleSettings { scaleType: "Default"; @@ -1650,6 +1868,13 @@ export type DeploymentProvisioningState = string; export interface DeploymentResourceConfiguration extends ResourceConfiguration { } +// @public +export interface DestinationAsset { + destinationName?: string; + destinationVersion?: string; + registryName?: string; +} + // @public (undocumented) export interface DiagnoseRequestProperties { applicationInsights?: { @@ -1735,6 +1960,19 @@ export type DistributionConfigurationUnion = DistributionConfiguration | Mpi | P // @public export type DistributionType = string; +// @public +export interface Docker { + [property: string]: any; + privileged?: boolean; +} + +// @public +export interface DockerCredential extends DataReferenceCredential { + credentialType: "DockerCredentials"; + password?: string; + userName?: string; +} + // @public export interface EarlyTerminationPolicy { delayEvaluation?: number; @@ -1768,6 +2006,15 @@ export interface EncryptionProperty { // @public export type EncryptionStatus = string; +// @public +export interface Endpoint { + hostIp?: string; + name?: string; + protocol?: Protocol; + published?: number; + target?: number; +} + // @public export interface EndpointAuthKeys { primaryKey?: string; @@ -1822,6 +2069,9 @@ export interface EndpointScheduleAction extends ScheduleActionBase { endpointInvocationDefinition: Record; } +// @public +export type EndpointServiceConnectionStatus = string; + // @public export interface EnvironmentContainer extends Resource { properties: EnvironmentContainerProperties; @@ -1829,6 +2079,7 @@ export interface EnvironmentContainer extends Resource { // @public export interface EnvironmentContainerProperties extends AssetContainer { + readonly provisioningState?: AssetProvisioningState; } // @public @@ -1865,8 +2116,6 @@ export type EnvironmentContainersGetResponse = EnvironmentContainer; // @public export interface EnvironmentContainersListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - skip?: string; } // @public @@ -1884,6 +2133,16 @@ export type EnvironmentContainersListResponse = EnvironmentContainerResourceArmP // @public export type EnvironmentType = string; +// @public +export interface EnvironmentVariable { + [property: string]: any; + type?: EnvironmentVariableType; + value?: string; +} + +// @public +export type EnvironmentVariableType = string; + // @public export interface EnvironmentVersion extends Resource { properties: EnvironmentVersionProperties; @@ -1898,6 +2157,8 @@ export interface EnvironmentVersionProperties extends AssetBase { image?: string; inferenceConfig?: InferenceContainerProperties; osType?: OperatingSystemType; + readonly provisioningState?: AssetProvisioningState; + stage?: string; } // @public @@ -1908,6 +2169,8 @@ export interface EnvironmentVersionResourceArmPaginatedResult { // @public export interface EnvironmentVersions { + beginPublish(resourceGroupName: string, workspaceName: string, name: string, version: string, body: DestinationAsset, options?: EnvironmentVersionsPublishOptionalParams): Promise, void>>; + beginPublishAndWait(resourceGroupName: string, workspaceName: string, name: string, version: string, body: DestinationAsset, options?: EnvironmentVersionsPublishOptionalParams): Promise; createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, version: string, body: EnvironmentVersion, options?: EnvironmentVersionsCreateOrUpdateOptionalParams): Promise; delete(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: EnvironmentVersionsDeleteOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: EnvironmentVersionsGetOptionalParams): Promise; @@ -1934,10 +2197,6 @@ export type EnvironmentVersionsGetResponse = EnvironmentVersion; // @public export interface EnvironmentVersionsListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - orderBy?: string; - skip?: string; - top?: number; } // @public @@ -1954,6 +2213,18 @@ export interface EnvironmentVersionsListOptionalParams extends coreClient.Operat // @public export type EnvironmentVersionsListResponse = EnvironmentVersionResourceArmPaginatedResult; +// @public +export interface EnvironmentVersionsPublishHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface EnvironmentVersionsPublishOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + // @public export interface ErrorAdditionalInfo { readonly info?: Record; @@ -1994,9 +2265,45 @@ export interface ExternalFqdnResponse { value?: FqdnEndpoints[]; } +// @public (undocumented) +export interface FeatureAttributionDriftMonitoringSignal extends MonitoringSignalBase { + featureDataTypeOverride?: { + [propertyName: string]: MonitoringFeatureDataType; + }; + featureImportanceSettings: FeatureImportanceSettings; + metricThreshold: FeatureAttributionMetricThreshold; + productionData: MonitoringInputDataBaseUnion[]; + referenceData: MonitoringInputDataBaseUnion; + signalType: "FeatureAttributionDrift"; +} + +// @public +export type FeatureAttributionMetric = string; + +// @public (undocumented) +export interface FeatureAttributionMetricThreshold { + metric: FeatureAttributionMetric; + threshold?: MonitoringThreshold; +} + +// @public +export type FeatureImportanceMode = string; + +// @public (undocumented) +export interface FeatureImportanceSettings { + mode?: FeatureImportanceMode; + targetColumn?: string; +} + // @public export type FeatureLags = string; +// @public (undocumented) +export interface FeatureSubset extends MonitoringFeatureFilterBase { + features: string[]; + filterType: "FeatureSubset"; +} + // @public export type FeaturizationMode = string; @@ -2005,6 +2312,11 @@ export interface FeaturizationSettings { datasetLanguage?: string; } +// @public +export interface FixedInputData extends MonitoringInputDataBase { + inputDataType: "Fixed"; +} + // @public (undocumented) export interface FlavorData { data?: { @@ -2088,23 +2400,48 @@ export interface FqdnEndpointsProperties { } // @public -export function getContinuationToken(page: unknown): string | undefined; +export interface FqdnOutboundRule extends OutboundRule { + // (undocumented) + destination?: string; + type: "FQDN"; +} -// @public -export type Goal = string; +// @public (undocumented) +export interface GetBlobReferenceForConsumptionDto { + blobUri?: string; + credential?: DataReferenceCredentialUnion; + storageAccountArmId?: string; +} // @public -export interface GridSamplingAlgorithm extends SamplingAlgorithm { - samplingAlgorithmType: "Grid"; +export interface GetBlobReferenceSASRequestDto { + assetId?: string; + blobUri?: string; } // @public -export interface HDInsight extends Compute, HDInsightSchema { - computeType: "HDInsight"; +export interface GetBlobReferenceSASResponseDto { + blobReferenceForConsumption?: GetBlobReferenceForConsumptionDto; } // @public -export interface HDInsightProperties { +export function getContinuationToken(page: unknown): string | undefined; + +// @public +export type Goal = string; + +// @public +export interface GridSamplingAlgorithm extends SamplingAlgorithm { + samplingAlgorithmType: "Grid"; +} + +// @public +export interface HDInsight extends Compute, HDInsightSchema { + computeType: "HDInsight"; +} + +// @public +export interface HDInsightProperties { address?: string; administratorAccount?: VirtualMachineSshCredentials; sshPort?: number; @@ -2137,6 +2474,19 @@ export interface IdentityForCmk { userAssignedIdentity?: string; } +// @public +export interface IdleShutdownSetting { + idleTimeBeforeShutdown?: string; +} + +// @public +interface Image_2 { + [property: string]: any; + reference?: string; + type?: ImageType; +} +export { Image_2 as Image } + // @public export interface ImageClassification extends ImageClassificationBase, AutoMLVertical { primaryMetric?: ClassificationPrimaryMetrics; @@ -2165,6 +2515,13 @@ export interface ImageLimitSettings { timeout?: string; } +// @public +export interface ImageMetadata { + currentImageVersion?: string; + isLatestOsImageVersion?: boolean; + latestImageVersion?: string; +} + // @public export interface ImageModelDistributionSettings { amsGradient?: string; @@ -2300,6 +2657,9 @@ export interface ImageSweepSettings { samplingAlgorithm: SamplingAlgorithmType; } +// @public +export type ImageType = string; + // @public export interface ImageVertical { limitSettings: ImageLimitSettings; @@ -2339,6 +2699,9 @@ export interface InstanceTypeSchemaResources { }; } +// @public +export type IsolationMode = string; + // @public export interface JobBase extends Resource { properties: JobBasePropertiesUnion; @@ -2412,9 +2775,9 @@ export interface JobResourceConfiguration extends ResourceConfiguration { // @public export interface Jobs { - beginCancel(resourceGroupName: string, workspaceName: string, id: string, options?: JobsCancelOptionalParams): Promise, void>>; + 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>>; + 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; @@ -2464,6 +2827,7 @@ export interface JobService { endpoint?: string; readonly errorMessage?: string; jobServiceType?: string; + nodes?: NodesUnion; port?: number; properties?: { [propertyName: string]: string | null; @@ -2480,10 +2844,6 @@ export type JobsGetResponse = JobBase; // @public export interface JobsListNextOptionalParams extends coreClient.OperationOptions { - jobType?: string; - listViewType?: ListViewType; - skip?: string; - tag?: string; } // @public @@ -2493,6 +2853,7 @@ export type JobsListNextResponse = JobBaseResourceArmPaginatedResult; export interface JobsListOptionalParams extends coreClient.OperationOptions { jobType?: string; listViewType?: ListViewType; + properties?: string; skip?: string; tag?: string; } @@ -2503,6 +2864,9 @@ export type JobsListResponse = JobBaseResourceArmPaginatedResult; // @public export type JobStatus = string; +// @public +export type JobTier = string; + // @public export type JobType = string; @@ -2510,6 +2874,11 @@ export type JobType = string; type KeyType_2 = string; export { KeyType_2 as KeyType } +// @public +export enum KnownActionType { + Internal = "Internal" +} + // @public export enum KnownAllocationState { Resizing = "Resizing", @@ -2522,6 +2891,16 @@ export enum KnownApplicationSharingPolicy { Shared = "Shared" } +// @public +export enum KnownAssetProvisioningState { + Canceled = "Canceled", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed", + Succeeded = "Succeeded", + Updating = "Updating" +} + // @public export enum KnownAutoRebuildSetting { Disabled = "Disabled", @@ -2574,6 +2953,27 @@ export enum KnownCaching { 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 KnownClassificationModels { BernoulliNaiveBayes = "BernoulliNaiveBayes", @@ -2700,6 +3100,14 @@ export enum KnownCredentialsType { ServicePrincipal = "ServicePrincipal" } +// @public +export enum KnownDataReferenceCredentialType { + DockerCredentials = "DockerCredentials", + ManagedIdentity = "ManagedIdentity", + NoCredentials = "NoCredentials", + SAS = "SAS" +} + // @public export enum KnownDatastoreType { AzureBlob = "AzureBlob", @@ -2783,12 +3191,36 @@ export enum KnownEndpointProvisioningState { Updating = "Updating" } +// @public +export enum KnownEndpointServiceConnectionStatus { + Approved = "Approved", + Disconnected = "Disconnected", + Pending = "Pending", + Rejected = "Rejected" +} + // @public export enum KnownEnvironmentType { Curated = "Curated", UserCreated = "UserCreated" } +// @public +export enum KnownEnvironmentVariableType { + Local = "local" +} + +// @public +export enum KnownFeatureAttributionMetric { + NormalizedDiscountedCumulativeGain = "NormalizedDiscountedCumulativeGain" +} + +// @public +export enum KnownFeatureImportanceMode { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownFeatureLags { Auto = "Auto", @@ -2852,6 +3284,12 @@ export enum KnownIdentityConfigurationType { UserIdentity = "UserIdentity" } +// @public +export enum KnownImageType { + Azureml = "azureml", + Docker = "docker" +} + // @public export enum KnownInputDeliveryMode { Direct = "Direct", @@ -2867,6 +3305,13 @@ export enum KnownInstanceSegmentationPrimaryMetrics { MeanAveragePrecision = "MeanAveragePrecision" } +// @public +export enum KnownIsolationMode { + AllowInternetOutbound = "AllowInternetOutbound", + AllowOnlyApprovedOutbound = "AllowOnlyApprovedOutbound", + Disabled = "Disabled" +} + // @public export enum KnownJobInputType { CustomModel = "custom_model", @@ -2912,6 +3357,15 @@ export enum KnownJobStatus { Unknown = "Unknown" } +// @public +export enum KnownJobTier { + Basic = "Basic", + Null = "Null", + Premium = "Premium", + Spot = "Spot", + Standard = "Standard" +} + // @public export enum KnownJobType { AutoML = "AutoML", @@ -2956,6 +3410,12 @@ export enum KnownLogVerbosity { Warning = "Warning" } +// @public +export enum KnownManagedNetworkStatus { + Active = "Active", + Inactive = "Inactive" +} + // @public export enum KnownManagedServiceIdentityType { None = "None", @@ -2973,6 +3433,57 @@ export enum KnownModelSize { Small = "Small" } +// @public +export enum KnownModelTaskType { + Classification = "Classification", + 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 KnownMonitoringNotificationType { + AmlNotification = "AmlNotification" +} + +// @public +export enum KnownMonitoringSignalType { + Custom = "Custom", + DataDrift = "DataDrift", + DataQuality = "DataQuality", + FeatureAttributionDrift = "FeatureAttributionDrift", + PredictionDrift = "PredictionDrift" +} + // @public export enum KnownMountAction { Mount = "Mount", @@ -3011,6 +3522,34 @@ export enum KnownNodeState { Unusable = "unusable" } +// @public +export enum KnownNodesValueType { + All = "All" +} + +// @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" @@ -3059,6 +3598,13 @@ export enum KnownOrderString { UpdatedAtDesc = "UpdatedAtDesc" } +// @public +export enum KnownOrigin { + System = "system", + User = "user", + UserSystem = "user,system" +} + // @public export enum KnownOsType { Linux = "Linux", @@ -3071,6 +3617,17 @@ export enum KnownOutputDeliveryMode { Upload = "Upload" } +// @public +export enum KnownPendingUploadCredentialType { + SAS = "SAS" +} + +// @public +export enum KnownPendingUploadType { + None = "None", + TemporaryBlobReference = "TemporaryBlobReference" +} + // @public export enum KnownPrivateEndpointConnectionProvisioningState { Creating = "Creating", @@ -3088,6 +3645,13 @@ export enum KnownPrivateEndpointServiceConnectionStatus { Timeout = "Timeout" } +// @public +export enum KnownProtocol { + Http = "http", + Tcp = "tcp", + Udp = "udp" +} + // @public export enum KnownProvisioningState { Canceled = "Canceled", @@ -3174,6 +3738,32 @@ export enum KnownRemoteLoginPortPublicAccess { NotSpecified = "NotSpecified" } +// @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", @@ -3190,6 +3780,7 @@ export enum KnownScaleType { // @public export enum KnownScheduleActionType { CreateJob = "CreateJob", + CreateMonitor = "CreateMonitor", InvokeBatchEndpoint = "InvokeBatchEndpoint" } @@ -3413,6 +4004,14 @@ export enum KnownVMTier { Standard = "Standard" } +// @public +export enum KnownVolumeDefinitionType { + Bind = "bind", + Npipe = "npipe", + Tmpfs = "tmpfs", + Volume = "volume" +} + // @public export enum KnownWeekDay { Friday = "Friday", @@ -3510,6 +4109,12 @@ export type LoadBalancerType = string; // @public export type LogVerbosity = string; +// @public +export interface ManagedComputeIdentity extends MonitorComputeIdentityBase { + computeIdentityType: "ManagedIdentity"; + identity?: ManagedServiceIdentity; +} + // @public export interface ManagedIdentity extends IdentityConfiguration { clientId?: string; @@ -3525,6 +4130,121 @@ export interface ManagedIdentityAuthTypeWorkspaceConnectionProperties extends Wo credentials?: WorkspaceConnectionManagedIdentity; } +// @public +export interface ManagedIdentityCredential extends DataReferenceCredential { + credentialType: "ManagedIdentity"; + managedIdentityType?: string; + userManagedIdentityClientId?: string; + userManagedIdentityPrincipalId?: string; + userManagedIdentityResourceId?: string; + userManagedIdentityTenantId?: string; +} + +// @public +export interface ManagedNetworkProvisionOptions { + // (undocumented) + includeSpark?: boolean; +} + +// @public +export interface ManagedNetworkProvisions { + beginProvisionManagedNetwork(resourceGroupName: string, workspaceName: string, options?: ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams): Promise, ManagedNetworkProvisionsProvisionManagedNetworkResponse>>; + beginProvisionManagedNetworkAndWait(resourceGroupName: string, workspaceName: string, options?: ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams): Promise; +} + +// @public +export interface ManagedNetworkProvisionsProvisionManagedNetworkHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams extends coreClient.OperationOptions { + body?: ManagedNetworkProvisionOptions; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedNetworkProvisionsProvisionManagedNetworkResponse = ManagedNetworkProvisionStatus; + +// @public +export interface ManagedNetworkProvisionStatus { + // (undocumented) + sparkReady?: boolean; + status?: ManagedNetworkStatus; +} + +// @public +export interface ManagedNetworkSettings { + isolationMode?: IsolationMode; + readonly networkId?: string; + outboundRules?: { + [propertyName: string]: OutboundRuleUnion; + }; + status?: ManagedNetworkProvisionStatus; +} + +// @public +export interface ManagedNetworkSettingsRule { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, ruleName: string, body: OutboundRuleBasicResource, options?: ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams): Promise, ManagedNetworkSettingsRuleCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, ruleName: string, body: OutboundRuleBasicResource, options?: ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, ruleName: string, options?: ManagedNetworkSettingsRuleDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, ruleName: string, options?: ManagedNetworkSettingsRuleDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, ruleName: string, options?: ManagedNetworkSettingsRuleGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: ManagedNetworkSettingsRuleListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ManagedNetworkSettingsRuleCreateOrUpdateHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedNetworkSettingsRuleCreateOrUpdateResponse = OutboundRuleBasicResource; + +// @public +export interface ManagedNetworkSettingsRuleDeleteHeaders { + location?: string; +} + +// @public +export interface ManagedNetworkSettingsRuleDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ManagedNetworkSettingsRuleGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedNetworkSettingsRuleGetResponse = OutboundRuleBasicResource; + +// @public +export interface ManagedNetworkSettingsRuleListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedNetworkSettingsRuleListNextResponse = OutboundRuleListResult; + +// @public +export interface ManagedNetworkSettingsRuleListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedNetworkSettingsRuleListResponse = OutboundRuleListResult; + +// @public +export type ManagedNetworkStatus = string; + // @public export interface ManagedOnlineDeployment extends OnlineDeploymentProperties { endpointComputeType: "Managed"; @@ -3577,6 +4297,7 @@ export interface ModelContainer extends Resource { // @public (undocumented) export interface ModelContainerProperties extends AssetContainer { + readonly provisioningState?: AssetProvisioningState; } // @public @@ -3613,9 +4334,6 @@ export type ModelContainersGetResponse = ModelContainer; // @public export interface ModelContainersListNextOptionalParams extends coreClient.OperationOptions { - count?: number; - listViewType?: ListViewType; - skip?: string; } // @public @@ -3634,6 +4352,9 @@ export type ModelContainersListResponse = ModelContainerResourceArmPaginatedResu // @public export type ModelSize = string; +// @public +export type ModelTaskType = string; + // @public export interface ModelVersion extends Resource { properties: ModelVersionProperties; @@ -3647,6 +4368,8 @@ export interface ModelVersionProperties extends AssetBase { jobName?: string; modelType?: string; modelUri?: string; + readonly provisioningState?: AssetProvisioningState; + stage?: string; } // @public @@ -3657,6 +4380,8 @@ export interface ModelVersionResourceArmPaginatedResult { // @public export interface ModelVersions { + beginPublish(resourceGroupName: string, workspaceName: string, name: string, version: string, body: DestinationAsset, options?: ModelVersionsPublishOptionalParams): Promise, void>>; + beginPublishAndWait(resourceGroupName: string, workspaceName: string, name: string, version: string, body: DestinationAsset, options?: ModelVersionsPublishOptionalParams): 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; @@ -3683,16 +4408,6 @@ export type ModelVersionsGetResponse = ModelVersion; // @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; } // @public @@ -3716,10 +4431,133 @@ export interface ModelVersionsListOptionalParams extends coreClient.OperationOpt export type ModelVersionsListResponse = ModelVersionResourceArmPaginatedResult; // @public -export type MountAction = string; - -// @public -export type MountState = string; +export interface ModelVersionsPublishHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface ModelVersionsPublishOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @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 +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 MonitoringNotificationType = string; + +// @public (undocumented) +export interface MonitoringSignalBase { + notificationTypes?: MonitoringNotificationType[]; + properties?: { + [propertyName: string]: string | null; + }; + signalType: "Custom" | "DataDrift" | "DataQuality" | "FeatureAttributionDrift" | "PredictionDrift"; +} + +// @public (undocumented) +export type MonitoringSignalBaseUnion = MonitoringSignalBase | CustomMonitoringSignal | DataDriftMonitoringSignal | DataQualityMonitoringSignal | FeatureAttributionDriftMonitoringSignal | PredictionDriftMonitoringSignal; + +// @public +export type MonitoringSignalType = string; + +// @public +export interface MonitoringTarget { + deploymentId?: string; + modelId?: string; + taskType: ModelTaskType; +} + +// @public (undocumented) +export interface MonitoringThreshold { + value?: number; +} + +// @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 { @@ -3759,6 +4597,11 @@ export interface NlpVerticalLimitSettings { timeout?: string; } +// @public +export interface Nodes { + nodesValueType: "All"; +} + // @public export type NodeState = string; @@ -3772,6 +4615,12 @@ export interface NodeStateCounts { readonly unusableNodeCount?: number; } +// @public (undocumented) +export type NodesUnion = Nodes | AllNodes; + +// @public +export type NodesValueType = string; + // @public (undocumented) export interface NoneAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { authType: "None"; @@ -3810,6 +4659,33 @@ export interface NotebookResourceInfo { resourceId?: string; } +// @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 type ObjectDetectionPrimaryMetrics = string; @@ -3847,11 +4723,11 @@ export type OnlineDeploymentPropertiesUnion = OnlineDeploymentProperties | Kuber // @public export interface OnlineDeployments { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: OnlineDeployment, options?: OnlineDeploymentsCreateOrUpdateOptionalParams): Promise, OnlineDeploymentsCreateOrUpdateResponse>>; + 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>>; + 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>>; + 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; @@ -3903,9 +4779,6 @@ export type OnlineDeploymentsGetResponse = OnlineDeployment; // @public export interface OnlineDeploymentsListNextOptionalParams extends coreClient.OperationOptions { - orderBy?: string; - skip?: string; - top?: number; } // @public @@ -3923,8 +4796,6 @@ export type OnlineDeploymentsListResponse = OnlineDeploymentTrackedResourceArmPa // @public export interface OnlineDeploymentsListSkusNextOptionalParams extends coreClient.OperationOptions { - count?: number; - skip?: string; } // @public @@ -3972,6 +4843,9 @@ export interface OnlineEndpoint extends TrackedResource { // @public export interface OnlineEndpointProperties extends EndpointPropertiesBase { compute?: string; + mirrorTraffic?: { + [propertyName: string]: number; + }; readonly provisioningState?: EndpointProvisioningState; publicNetworkAccess?: PublicNetworkAccessType; traffic?: { @@ -3981,13 +4855,13 @@ export interface OnlineEndpointProperties extends EndpointPropertiesBase { // @public export interface OnlineEndpoints { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, body: OnlineEndpoint, options?: OnlineEndpointsCreateOrUpdateOptionalParams): Promise, OnlineEndpointsCreateOrUpdateResponse>>; + 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>>; + 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>>; + 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>>; + 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; @@ -4046,13 +4920,6 @@ export type OnlineEndpointsListKeysResponse = EndpointAuthKeys; // @public export interface OnlineEndpointsListNextOptionalParams extends coreClient.OperationOptions { - computeType?: EndpointComputeType; - count?: number; - name?: string; - orderBy?: OrderString; - properties?: string; - skip?: string; - tags?: string; } // @public @@ -4124,12 +4991,35 @@ export type OnlineScaleSettingsUnion = OnlineScaleSettings | DefaultScaleSetting // @public export type OperatingSystemType = string; +// @public +export interface Operation { + readonly actionType?: ActionType; + display?: OperationDisplay; + readonly isDataAction?: boolean; + readonly name?: string; + readonly origin?: Origin; +} + +// @public +export interface OperationDisplay { + readonly description?: string; + readonly operation?: string; + readonly provider?: string; + readonly resource?: string; +} + +// @public +export interface OperationListResult { + readonly nextLink?: string; + readonly value?: Operation[]; +} + // @public export type OperationName = string; // @public export interface Operations { - list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; + list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -4137,7 +5027,7 @@ export interface OperationsListOptionalParams extends coreClient.OperationOption } // @public -export type OperationsListResponse = AmlOperationListResult; +export type OperationsListResponse = OperationListResult; // @public export type OperationStatus = string; @@ -4148,9 +5038,33 @@ export type OperationTrigger = string; // @public export type OrderString = string; +// @public +export type Origin = string; + // @public export type OsType = string; +// @public +export interface OutboundRule { + category?: RuleCategory; + status?: RuleStatus; + type: "PrivateEndpoint" | "ServiceTag" | "FQDN"; +} + +// @public +export interface OutboundRuleBasicResource extends Resource { + properties: OutboundRuleUnion; +} + +// @public +export interface OutboundRuleListResult { + nextLink?: string; + value?: OutboundRuleBasicResource[]; +} + +// @public (undocumented) +export type OutboundRuleUnion = OutboundRule | PrivateEndpointOutboundRule | ServiceTagOutboundRule | FqdnOutboundRule; + // @public export type OutputDeliveryMode = string; @@ -4205,6 +5119,15 @@ export interface PartialMinimalTrackedResourceWithSku extends PartialMinimalTrac sku?: PartialSku; } +// @public +export interface PartialRegistryPartialTrackedResource { + identity?: RegistryPartialManagedServiceIdentity; + sku?: PartialSku; + tags?: { + [propertyName: string]: string | null; + }; +} + // @public export interface PartialSku { capacity?: number; @@ -4227,6 +5150,33 @@ export interface PATAuthTypeWorkspaceConnectionProperties extends WorkspaceConne credentials?: WorkspaceConnectionPersonalAccessToken; } +// @public (undocumented) +export interface PendingUploadCredentialDto { + credentialType: "SAS"; +} + +// @public (undocumented) +export type PendingUploadCredentialDtoUnion = PendingUploadCredentialDto | SASCredentialDto; + +// @public +export type PendingUploadCredentialType = string; + +// @public (undocumented) +export interface PendingUploadRequestDto { + pendingUploadId?: string; + pendingUploadType?: PendingUploadType; +} + +// @public (undocumented) +export interface PendingUploadResponseDto { + blobReferenceForConsumption?: BlobReferenceForConsumptionDto; + pendingUploadId?: string; + pendingUploadType?: PendingUploadType; +} + +// @public +export type PendingUploadType = string; + // @public export interface PersonalComputeInstanceSettings { assignedUser?: AssignedUser; @@ -4248,10 +5198,29 @@ export interface PipelineJob extends JobBaseProperties { sourceJobId?: string; } +// @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 interface PrivateEndpoint { readonly id?: string; - readonly subnetArmId?: string; } // @public @@ -4268,201 +5237,1039 @@ export interface PrivateEndpointConnection extends Resource { } // @public -export interface PrivateEndpointConnectionListResult { - value?: PrivateEndpointConnection[]; +export interface PrivateEndpointConnectionListResult { + value?: PrivateEndpointConnection[]; +} + +// @public +export type PrivateEndpointConnectionProvisioningState = string; + +// @public +export interface PrivateEndpointConnections { + createOrUpdate(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: PrivateEndpointConnectionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; + +// @public +export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; + +// @public +export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; + +// @public +export interface PrivateEndpointDestination { + // (undocumented) + serviceResourceId?: string; + // (undocumented) + sparkEnabled?: boolean; + sparkStatus?: RuleStatus; + // (undocumented) + subresourceTarget?: string; +} + +// @public +export interface PrivateEndpointOutboundRule extends OutboundRule { + destination?: PrivateEndpointDestination; + type: "PrivateEndpoint"; +} + +// @public +export interface PrivateEndpointResource extends PrivateEndpoint { + subnetArmId?: string; +} + +// @public +export type PrivateEndpointServiceConnectionStatus = string; + +// @public +export interface PrivateLinkResource extends Resource { + readonly groupId?: string; + identity?: ManagedServiceIdentity; + location?: string; + readonly requiredMembers?: string[]; + requiredZoneNames?: string[]; + sku?: Sku; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export interface PrivateLinkResourceListResult { + value?: PrivateLinkResource[]; +} + +// @public +export interface PrivateLinkResources { + list(resourceGroupName: string, workspaceName: string, options?: PrivateLinkResourcesListOptionalParams): Promise; +} + +// @public +export interface PrivateLinkResourcesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; + +// @public +export interface PrivateLinkServiceConnectionState { + actionsRequired?: string; + description?: string; + status?: PrivateEndpointServiceConnectionStatus; +} + +// @public +export interface ProbeSettings { + failureThreshold?: number; + initialDelay?: string; + period?: string; + successThreshold?: number; + timeout?: string; +} + +// @public +export type Protocol = string; + +// @public +export type ProvisioningState = string; + +// @public +export type ProvisioningStatus = string; + +// @public +export type PublicNetworkAccess = string; + +// @public +export type PublicNetworkAccessType = string; + +// @public +export interface PyTorch extends DistributionConfiguration { + distributionType: "PyTorch"; + processCountPerInstance?: number; +} + +// @public (undocumented) +export interface QueueSettings { + jobTier?: JobTier; +} + +// @public +export interface QuotaBaseProperties { + id?: string; + limit?: number; + type?: string; + unit?: QuotaUnit; +} + +// @public +export interface Quotas { + list(location: string, options?: QuotasListOptionalParams): PagedAsyncIterableIterator; + update(location: string, parameters: QuotaUpdateParameters, options?: QuotasUpdateOptionalParams): Promise; +} + +// @public +export interface QuotasListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type QuotasListNextResponse = ListWorkspaceQuotas; + +// @public +export interface QuotasListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type QuotasListResponse = ListWorkspaceQuotas; + +// @public +export interface QuotasUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult; + +// @public +export type QuotaUnit = string; + +// @public +export interface QuotaUpdateParameters { + location?: string; + value?: QuotaBaseProperties[]; +} + +// @public +export interface RandomSamplingAlgorithm extends SamplingAlgorithm { + rule?: RandomSamplingAlgorithmRule; + samplingAlgorithmType: "Random"; + seed?: number; +} + +// @public +export type RandomSamplingAlgorithmRule = string; + +// @public +export interface Recurrence { + frequency?: RecurrenceFrequency; + interval?: number; + schedule?: RecurrenceSchedule; + startTime?: string; + timeZone?: string; +} + +// @public +export type RecurrenceFrequency = string; + +// @public (undocumented) +export interface RecurrenceSchedule { + hours: number[]; + minutes: number[]; + monthDays?: number[]; + weekDays?: WeekDay[]; +} + +// @public (undocumented) +export interface RecurrenceTrigger extends TriggerBase { + frequency: RecurrenceFrequency; + interval: number; + schedule?: RecurrenceSchedule; + triggerType: "Recurrence"; +} + +// @public +export type ReferenceType = string; + +// @public (undocumented) +export interface RegenerateEndpointKeysRequest { + keyType: KeyType_2; + keyValue?: string; +} + +// @public +export interface Registries { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, body: Registry, options?: RegistriesCreateOrUpdateOptionalParams): Promise, RegistriesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, body: Registry, options?: RegistriesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, options?: RegistriesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, options?: RegistriesDeleteOptionalParams): Promise; + beginRemoveRegions(resourceGroupName: string, registryName: string, body: Registry, options?: RegistriesRemoveRegionsOptionalParams): Promise, RegistriesRemoveRegionsResponse>>; + beginRemoveRegionsAndWait(resourceGroupName: string, registryName: string, body: Registry, options?: RegistriesRemoveRegionsOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, options?: RegistriesGetOptionalParams): Promise; + list(resourceGroupName: string, options?: RegistriesListOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: RegistriesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, registryName: string, body: PartialRegistryPartialTrackedResource, options?: RegistriesUpdateOptionalParams): Promise; +} + +// @public +export interface RegistriesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type RegistriesCreateOrUpdateResponse = Registry; + +// @public +export interface RegistriesDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface RegistriesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface RegistriesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistriesGetResponse = Registry; + +// @public +export interface RegistriesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistriesListBySubscriptionNextResponse = RegistryTrackedResourceArmPaginatedResult; + +// @public +export interface RegistriesListBySubscriptionOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistriesListBySubscriptionResponse = RegistryTrackedResourceArmPaginatedResult; + +// @public +export interface RegistriesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistriesListNextResponse = RegistryTrackedResourceArmPaginatedResult; + +// @public +export interface RegistriesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistriesListResponse = RegistryTrackedResourceArmPaginatedResult; + +// @public +export interface RegistriesRemoveRegionsHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface RegistriesRemoveRegionsOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type RegistriesRemoveRegionsResponse = Registry; + +// @public +export interface RegistriesUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistriesUpdateResponse = Registry; + +// @public (undocumented) +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 RegistryCodeContainers { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, codeName: string, body: CodeContainer, options?: RegistryCodeContainersCreateOrUpdateOptionalParams): Promise, RegistryCodeContainersCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, codeName: string, body: CodeContainer, options?: RegistryCodeContainersCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, codeName: string, options?: RegistryCodeContainersDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, codeName: string, options?: RegistryCodeContainersDeleteOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, codeName: string, options?: RegistryCodeContainersGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, options?: RegistryCodeContainersListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface RegistryCodeContainersCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface RegistryCodeContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type RegistryCodeContainersCreateOrUpdateResponse = CodeContainer; + +// @public +export interface RegistryCodeContainersDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface RegistryCodeContainersDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface RegistryCodeContainersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistryCodeContainersGetResponse = CodeContainer; + +// @public +export interface RegistryCodeContainersListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistryCodeContainersListNextResponse = CodeContainerResourceArmPaginatedResult; + +// @public +export interface RegistryCodeContainersListOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type RegistryCodeContainersListResponse = CodeContainerResourceArmPaginatedResult; + +// @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 +export interface RegistryCodeVersionsCreateOrGetStartPendingUploadOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistryCodeVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; + +// @public +export interface RegistryCodeVersionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface RegistryCodeVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type RegistryCodeVersionsCreateOrUpdateResponse = CodeVersion; + +// @public +export interface RegistryCodeVersionsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface RegistryCodeVersionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface RegistryCodeVersionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistryCodeVersionsGetResponse = CodeVersion; + +// @public +export interface RegistryCodeVersionsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistryCodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult; + +// @public +export interface RegistryCodeVersionsListOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type RegistryCodeVersionsListResponse = CodeVersionResourceArmPaginatedResult; + +// @public +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 interface RegistryComponentContainersCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface RegistryComponentContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type RegistryComponentContainersCreateOrUpdateResponse = ComponentContainer; + +// @public +export interface RegistryComponentContainersDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface RegistryComponentContainersDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface RegistryComponentContainersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistryComponentContainersGetResponse = ComponentContainer; + +// @public +export interface RegistryComponentContainersListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistryComponentContainersListNextResponse = ComponentContainerResourceArmPaginatedResult; + +// @public +export interface RegistryComponentContainersListOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type RegistryComponentContainersListResponse = ComponentContainerResourceArmPaginatedResult; + +// @public +export interface RegistryComponentVersions { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, componentName: string, version: string, body: ComponentVersion, options?: RegistryComponentVersionsCreateOrUpdateOptionalParams): Promise, RegistryComponentVersionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, componentName: string, version: string, body: ComponentVersion, options?: RegistryComponentVersionsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, componentName: string, version: string, options?: RegistryComponentVersionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, componentName: string, version: string, options?: RegistryComponentVersionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, componentName: string, version: string, options?: RegistryComponentVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, componentName: string, options?: RegistryComponentVersionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface RegistryComponentVersionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface RegistryComponentVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type RegistryComponentVersionsCreateOrUpdateResponse = ComponentVersion; + +// @public +export interface RegistryComponentVersionsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface RegistryComponentVersionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface RegistryComponentVersionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistryComponentVersionsGetResponse = ComponentVersion; + +// @public +export interface RegistryComponentVersionsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistryComponentVersionsListNextResponse = ComponentVersionResourceArmPaginatedResult; + +// @public +export interface RegistryComponentVersionsListOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type RegistryComponentVersionsListResponse = ComponentVersionResourceArmPaginatedResult; + +// @public +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 interface RegistryDataContainersCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface RegistryDataContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type RegistryDataContainersCreateOrUpdateResponse = DataContainer; + +// @public +export interface RegistryDataContainersDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface RegistryDataContainersDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface RegistryDataContainersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistryDataContainersGetResponse = DataContainer; + +// @public +export interface RegistryDataContainersListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistryDataContainersListNextResponse = DataContainerResourceArmPaginatedResult; + +// @public +export interface RegistryDataContainersListOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + skip?: string; +} + +// @public +export type RegistryDataContainersListResponse = DataContainerResourceArmPaginatedResult; + +// @public +export interface RegistryDataReferences { + getBlobReferenceSAS(resourceGroupName: string, registryName: string, name: string, version: string, body: GetBlobReferenceSASRequestDto, options?: RegistryDataReferencesGetBlobReferenceSASOptionalParams): Promise; +} + +// @public +export interface RegistryDataReferencesGetBlobReferenceSASOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistryDataReferencesGetBlobReferenceSASResponse = GetBlobReferenceSASResponseDto; + +// @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 RegistryDataVersionsCreateOrGetStartPendingUploadOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistryDataVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; + +// @public +export interface RegistryDataVersionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface RegistryDataVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type RegistryDataVersionsCreateOrUpdateResponse = DataVersionBase; + +// @public +export interface RegistryDataVersionsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface RegistryDataVersionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface RegistryDataVersionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistryDataVersionsGetResponse = DataVersionBase; + +// @public +export interface RegistryDataVersionsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistryDataVersionsListNextResponse = DataVersionBaseResourceArmPaginatedResult; + +// @public +export interface RegistryDataVersionsListOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + orderBy?: string; + skip?: string; + tags?: string; + top?: number; +} + +// @public +export type RegistryDataVersionsListResponse = DataVersionBaseResourceArmPaginatedResult; + +// @public +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 RegistryEnvironmentContainersCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface RegistryEnvironmentContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type RegistryEnvironmentContainersCreateOrUpdateResponse = EnvironmentContainer; + +// @public +export interface RegistryEnvironmentContainersDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface RegistryEnvironmentContainersDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface RegistryEnvironmentContainersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistryEnvironmentContainersGetResponse = EnvironmentContainer; + +// @public +export interface RegistryEnvironmentContainersListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegistryEnvironmentContainersListNextResponse = EnvironmentContainerResourceArmPaginatedResult; + +// @public +export interface RegistryEnvironmentContainersListOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + skip?: string; +} + +// @public +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 RegistryEnvironmentVersionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface RegistryEnvironmentVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type PrivateEndpointConnectionProvisioningState = string; +export type RegistryEnvironmentVersionsCreateOrUpdateResponse = EnvironmentVersion; // @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 interface RegistryEnvironmentVersionsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface RegistryEnvironmentVersionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; +export interface RegistryEnvironmentVersionsGetOptionalParams extends coreClient.OperationOptions { +} // @public -export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { -} +export type RegistryEnvironmentVersionsGetResponse = EnvironmentVersion; // @public -export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions { +export interface RegistryEnvironmentVersionsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; +export type RegistryEnvironmentVersionsListNextResponse = EnvironmentVersionResourceArmPaginatedResult; // @public -export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions { +export interface RegistryEnvironmentVersionsListOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + orderBy?: string; + skip?: string; + top?: number; } // @public -export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; +export type RegistryEnvironmentVersionsListResponse = EnvironmentVersionResourceArmPaginatedResult; -// @public -export type PrivateEndpointServiceConnectionStatus = string; +// @public (undocumented) +export interface RegistryListCredentialsResult { + readonly location?: string; + // (undocumented) + passwords?: Password[]; + readonly username?: string; +} // @public -export interface PrivateLinkResource extends Resource { - readonly groupId?: string; - identity?: ManagedServiceIdentity; - location?: string; - readonly requiredMembers?: string[]; - requiredZoneNames?: string[]; - sku?: Sku; - tags?: { - [propertyName: string]: string; - }; +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 PrivateLinkResourceListResult { - value?: PrivateLinkResource[]; +export interface RegistryModelContainersCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } // @public -export interface PrivateLinkResources { - list(resourceGroupName: string, workspaceName: string, options?: PrivateLinkResourcesListOptionalParams): Promise; +export interface RegistryModelContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface PrivateLinkResourcesListOptionalParams extends coreClient.OperationOptions { -} +export type RegistryModelContainersCreateOrUpdateResponse = ModelContainer; // @public -export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; +export interface RegistryModelContainersDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} // @public -export interface PrivateLinkServiceConnectionState { - actionsRequired?: string; - description?: string; - status?: PrivateEndpointServiceConnectionStatus; +export interface RegistryModelContainersDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface ProbeSettings { - failureThreshold?: number; - initialDelay?: string; - period?: string; - successThreshold?: number; - timeout?: string; +export interface RegistryModelContainersGetOptionalParams extends coreClient.OperationOptions { } // @public -export type ProvisioningState = string; +export type RegistryModelContainersGetResponse = ModelContainer; // @public -export type ProvisioningStatus = string; +export interface RegistryModelContainersListNextOptionalParams extends coreClient.OperationOptions { +} // @public -export type PublicNetworkAccess = string; +export type RegistryModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult; // @public -export type PublicNetworkAccessType = string; +export interface RegistryModelContainersListOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + skip?: string; +} // @public -export interface PyTorch extends DistributionConfiguration { - distributionType: "PyTorch"; - processCountPerInstance?: number; +export type RegistryModelContainersListResponse = ModelContainerResourceArmPaginatedResult; + +// @public +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; + 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 interface QuotaBaseProperties { - id?: string; - limit?: number; - type?: string; - unit?: QuotaUnit; +export interface RegistryModelVersionsCreateOrGetStartPendingUploadOptionalParams extends coreClient.OperationOptions { } // @public -export interface Quotas { - list(location: string, options?: QuotasListOptionalParams): PagedAsyncIterableIterator; - update(location: string, parameters: QuotaUpdateParameters, options?: QuotasUpdateOptionalParams): Promise; +export type RegistryModelVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; + +// @public +export interface RegistryModelVersionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } // @public -export interface QuotasListNextOptionalParams extends coreClient.OperationOptions { +export interface RegistryModelVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type QuotasListNextResponse = ListWorkspaceQuotas; +export type RegistryModelVersionsCreateOrUpdateResponse = ModelVersion; // @public -export interface QuotasListOptionalParams extends coreClient.OperationOptions { +export interface RegistryModelVersionsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export type QuotasListResponse = ListWorkspaceQuotas; +export interface RegistryModelVersionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public -export interface QuotasUpdateOptionalParams extends coreClient.OperationOptions { +export interface RegistryModelVersionsGetOptionalParams extends coreClient.OperationOptions { } // @public -export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult; +export type RegistryModelVersionsGetResponse = ModelVersion; // @public -export type QuotaUnit = string; +export interface RegistryModelVersionsListNextOptionalParams extends coreClient.OperationOptions { +} // @public -export interface QuotaUpdateParameters { - location?: string; - value?: QuotaBaseProperties[]; -} +export type RegistryModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult; // @public -export interface RandomSamplingAlgorithm extends SamplingAlgorithm { - rule?: RandomSamplingAlgorithmRule; - samplingAlgorithmType: "Random"; - seed?: number; +export interface RegistryModelVersionsListOptionalParams extends coreClient.OperationOptions { + description?: string; + listViewType?: ListViewType; + orderBy?: string; + properties?: string; + skip?: string; + tags?: string; + top?: number; + version?: string; } // @public -export type RandomSamplingAlgorithmRule = string; +export type RegistryModelVersionsListResponse = ModelVersionResourceArmPaginatedResult; // @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 @@ -4535,12 +6342,32 @@ export interface ResourceQuota { readonly unit?: QuotaUnit; } +// @public +export interface RollingInputData extends MonitoringInputDataBase { + inputDataType: "Rolling"; + preprocessingComponentId?: string; + windowOffset: string; + windowSize: 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 +6386,18 @@ export interface SASAuthTypeWorkspaceConnectionProperties extends WorkspaceConne credentials?: WorkspaceConnectionSharedAccessSignature; } +// @public +export interface SASCredential extends DataReferenceCredential { + credentialType: "SAS"; + sasUri?: string; +} + +// @public (undocumented) +export interface SASCredentialDto extends PendingUploadCredentialDto { + credentialType: "SAS"; + sasUri?: string; +} + // @public export interface SasDatastoreCredentials extends DatastoreCredentials { credentialsType: "Sas"; @@ -4593,11 +6432,11 @@ export interface Schedule extends Resource { // @public (undocumented) export interface ScheduleActionBase { - actionType: "InvokeBatchEndpoint" | "CreateJob"; + actionType: "CreateMonitor" | "InvokeBatchEndpoint" | "CreateJob"; } // @public (undocumented) -export type ScheduleActionBaseUnion = ScheduleActionBase | EndpointScheduleAction | JobScheduleAction; +export type ScheduleActionBaseUnion = ScheduleActionBase | CreateMonitorAction | EndpointScheduleAction | JobScheduleAction; // @public export type ScheduleActionType = string; @@ -4635,9 +6474,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 +6519,6 @@ export type SchedulesGetResponse = Schedule; // @public export interface SchedulesListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ScheduleListViewType; - skip?: string; } // @public @@ -4751,6 +6588,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; @@ -4839,12 +6694,26 @@ 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 type StochasticOptimizer = string; +// @public +export interface StorageAccountDetails { + systemCreatedStorageAccount?: SystemCreatedStorageAccount; + userCreatedStorageAccount?: UserCreatedStorageAccount; +} + // @public export type StorageAccountType = string; @@ -4860,6 +6729,7 @@ export interface SweepJob extends JobBaseProperties { outputs?: { [propertyName: string]: JobOutputUnion | null; }; + queueSettings?: QueueSettings; samplingAlgorithm: SamplingAlgorithmUnion; searchSpace: Record; trial: TrialComponent; @@ -4894,6 +6764,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; @@ -5007,6 +6893,17 @@ export interface TextNer extends NlpVertical, AutoMLVertical { readonly primaryMetric?: ClassificationPrimaryMetrics; } +// @public +export interface TmpfsOptions { + size?: number; +} + +// @public (undocumented) +export interface TopNFeaturesByAttribution extends MonitoringFeatureFilterBase { + filterType: "TopNByAttribution"; + top?: number; +} + // @public export interface TrackedResource extends Resource { location: string; @@ -5043,11 +6940,11 @@ export interface TriggerBase { endTime?: string; startTime?: string; timeZone?: string; - triggerType: "Recurrence" | "Cron"; + triggerType: "Cron" | "Recurrence"; } // @public (undocumented) -export type TriggerBaseUnion = TriggerBase | RecurrenceTrigger | CronTrigger; +export type TriggerBaseUnion = TriggerBase | CronTrigger | RecurrenceTrigger; // @public export type TriggerType = string; @@ -5165,6 +7062,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"; @@ -5271,6 +7178,26 @@ export type VmPriority = string; // @public export type VMTier = string; +// @public +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 +export interface VolumeOptions { + nocopy?: boolean; +} + // @public export type WeekDay = string; @@ -5288,6 +7215,7 @@ export interface Workspace extends Resource { imageBuildCompute?: string; keyVault?: string; location?: string; + managedNetwork?: ManagedNetworkSettings; readonly mlFlowTrackingUri?: string; readonly notebookInfo?: NotebookResourceInfo; primaryUserAssignedIdentity?: string; @@ -5387,8 +7315,6 @@ export interface WorkspaceConnectionSharedAccessSignature { // @public export interface WorkspaceConnectionsListNextOptionalParams extends coreClient.OperationOptions { - category?: string; - target?: string; } // @public @@ -5438,17 +7364,17 @@ export interface WorkspaceListResult { // @public export interface Workspaces { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise, WorkspacesCreateOrUpdateResponse>>; + 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>>; + 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>>; + beginUpdate(resourceGroupName: string, workspaceName: string, parameters: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams): Promise, WorkspacesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, workspaceName: string, parameters: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, options?: WorkspacesGetOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: WorkspacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; @@ -5460,6 +7386,12 @@ export interface Workspaces { listStorageAccountKeys(resourceGroupName: string, workspaceName: string, options?: WorkspacesListStorageAccountKeysOptionalParams): Promise; } +// @public +export interface WorkspacesCreateOrUpdateHeaders { + location?: string; + retryAfter?: number; +} + // @public export interface WorkspacesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -5471,6 +7403,7 @@ export type WorkspacesCreateOrUpdateResponse = Workspace; // @public export interface WorkspacesDeleteOptionalParams extends coreClient.OperationOptions { + forceToPurge?: boolean; resumeFrom?: string; updateIntervalInMs?: number; } @@ -5500,7 +7433,6 @@ export type WorkspacesGetResponse = Workspace; // @public export interface WorkspacesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { - skip?: string; } // @public @@ -5516,7 +7448,6 @@ export type WorkspacesListByResourceGroupResponse = WorkspaceListResult; // @public export interface WorkspacesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { - skip?: string; } // @public @@ -5565,6 +7496,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,12 +7511,24 @@ 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; updateIntervalInMs?: number; } +// @public +export interface WorkspacesUpdateHeaders { + location?: string; + retryAfter?: number; +} + // @public export interface WorkspacesUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; diff --git a/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts b/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningServices.ts similarity index 71% rename from sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts rename to sdk/machinelearning/arm-machinelearning/src/azureMachineLearningServices.ts index 141a281ef475..42e677ec728a 100644 --- a/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts +++ b/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningServices.ts @@ -24,6 +24,19 @@ import { PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, WorkspaceConnectionsImpl, + ManagedNetworkSettingsRuleImpl, + ManagedNetworkProvisionsImpl, + RegistryCodeContainersImpl, + RegistryCodeVersionsImpl, + RegistryComponentContainersImpl, + RegistryComponentVersionsImpl, + RegistryDataContainersImpl, + RegistryDataVersionsImpl, + RegistryDataReferencesImpl, + RegistryEnvironmentContainersImpl, + RegistryEnvironmentVersionsImpl, + RegistryModelContainersImpl, + RegistryModelVersionsImpl, BatchEndpointsImpl, BatchDeploymentsImpl, CodeContainersImpl, @@ -41,6 +54,7 @@ import { OnlineEndpointsImpl, OnlineDeploymentsImpl, SchedulesImpl, + RegistriesImpl, WorkspaceFeaturesImpl } from "./operations"; import { @@ -53,6 +67,19 @@ import { PrivateEndpointConnections, PrivateLinkResources, WorkspaceConnections, + ManagedNetworkSettingsRule, + ManagedNetworkProvisions, + RegistryCodeContainers, + RegistryCodeVersions, + RegistryComponentContainers, + RegistryComponentVersions, + RegistryDataContainers, + RegistryDataVersions, + RegistryDataReferences, + RegistryEnvironmentContainers, + RegistryEnvironmentVersions, + RegistryModelContainers, + RegistryModelVersions, BatchEndpoints, BatchDeployments, CodeContainers, @@ -70,17 +97,18 @@ import { OnlineEndpoints, OnlineDeployments, Schedules, + Registries, WorkspaceFeatures } 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 +116,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 +129,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`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -159,7 +187,7 @@ 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.apiVersion = options.apiVersion || "2023-10-01"; this.operations = new OperationsImpl(this); this.workspaces = new WorkspacesImpl(this); this.usages = new UsagesImpl(this); @@ -169,6 +197,25 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); this.workspaceConnections = new WorkspaceConnectionsImpl(this); + this.managedNetworkSettingsRule = new ManagedNetworkSettingsRuleImpl(this); + this.managedNetworkProvisions = new ManagedNetworkProvisionsImpl(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.registryDataReferences = new RegistryDataReferencesImpl(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); @@ -186,6 +233,7 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { this.onlineEndpoints = new OnlineEndpointsImpl(this); this.onlineDeployments = new OnlineDeploymentsImpl(this); this.schedules = new SchedulesImpl(this); + this.registries = new RegistriesImpl(this); this.workspaceFeatures = new WorkspaceFeaturesImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -227,6 +275,19 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { privateEndpointConnections: PrivateEndpointConnections; privateLinkResources: PrivateLinkResources; workspaceConnections: WorkspaceConnections; + managedNetworkSettingsRule: ManagedNetworkSettingsRule; + managedNetworkProvisions: ManagedNetworkProvisions; + registryCodeContainers: RegistryCodeContainers; + registryCodeVersions: RegistryCodeVersions; + registryComponentContainers: RegistryComponentContainers; + registryComponentVersions: RegistryComponentVersions; + registryDataContainers: RegistryDataContainers; + registryDataVersions: RegistryDataVersions; + registryDataReferences: RegistryDataReferences; + registryEnvironmentContainers: RegistryEnvironmentContainers; + registryEnvironmentVersions: RegistryEnvironmentVersions; + registryModelContainers: RegistryModelContainers; + registryModelVersions: RegistryModelVersions; batchEndpoints: BatchEndpoints; batchDeployments: BatchDeployments; codeContainers: CodeContainers; @@ -244,5 +305,6 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { onlineEndpoints: OnlineEndpoints; onlineDeployments: OnlineDeployments; schedules: Schedules; + registries: Registries; workspaceFeatures: WorkspaceFeatures; } 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..234de542f3e7 100644 --- a/sdk/machinelearning/arm-machinelearning/src/models/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/models/index.ts @@ -8,6 +8,11 @@ import * as coreClient from "@azure/core-client"; +export type OutboundRuleUnion = + | OutboundRule + | PrivateEndpointOutboundRule + | ServiceTagOutboundRule + | FqdnOutboundRule; export type ComputeUnion = | Compute | Aks @@ -32,6 +37,15 @@ export type WorkspaceConnectionPropertiesV2Union = | UsernamePasswordAuthTypeWorkspaceConnectionProperties | NoneAuthTypeWorkspaceConnectionProperties | ManagedIdentityAuthTypeWorkspaceConnectionProperties; +export type PendingUploadCredentialDtoUnion = + | PendingUploadCredentialDto + | SASCredentialDto; +export type DataReferenceCredentialUnion = + | DataReferenceCredential + | AnonymousAccessCredential + | DockerCredential + | ManagedIdentityCredential + | SASCredential; export type AssetReferenceBaseUnion = | AssetReferenceBase | DataPathAssetReference @@ -55,15 +69,26 @@ export type IdentityConfigurationUnion = | AmlToken | ManagedIdentity | UserIdentity; +export type NodesUnion = Nodes | AllNodes; export type OnlineScaleSettingsUnion = | OnlineScaleSettings | DefaultScaleSettings | TargetUtilizationScaleSettings; export type ScheduleActionBaseUnion = | ScheduleActionBase + | CreateMonitorAction | EndpointScheduleAction | JobScheduleAction; -export type TriggerBaseUnion = TriggerBase | RecurrenceTrigger | CronTrigger; +export type TriggerBaseUnion = TriggerBase | CronTrigger | RecurrenceTrigger; +export type MonitoringFeatureFilterBaseUnion = + | MonitoringFeatureFilterBase + | AllFeatures + | FeatureSubset + | TopNFeaturesByAttribution; +export type MonitorComputeIdentityBaseUnion = + | MonitorComputeIdentityBase + | AmlTokenComputeIdentity + | ManagedComputeIdentity; export type ForecastHorizonUnion = | ForecastHorizon | AutoForecastHorizon @@ -120,16 +145,39 @@ 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 DistributionConfigurationUnion = | DistributionConfiguration | Mpi | PyTorch | 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 + | PredictionDriftMonitoringSignal; +export type MonitoringInputDataBaseUnion = + | MonitoringInputDataBase + | FixedInputData + | RollingInputData + | StaticInputData; export type DatastorePropertiesUnion = | DatastoreProperties | AzureBlobDatastore @@ -142,38 +190,78 @@ export type JobBasePropertiesUnion = | CommandJob | PipelineJob | SweepJob; +export type OnlineDeploymentPropertiesUnion = + | OnlineDeploymentProperties + | KubernetesOnlineDeployment + | ManagedOnlineDeployment; export type DataVersionBasePropertiesUnion = | DataVersionBaseProperties | 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[]; +/** 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; } -/** 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; +/** Details of a REST API operation, returned from the Resource Provider Operations API */ +export interface Operation { + /** + * 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 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; +} + +/** 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; } /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ @@ -256,11 +344,6 @@ export interface PrivateEndpoint { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; - /** - * The ARM identifier for Subnet resource that private endpoint links to - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly subnetArmId?: string; } /** A collection of information about the state of the connection between service consumer and provider. */ @@ -395,6 +478,35 @@ export interface CosmosDbSettings { collectionsThroughput?: number; } +/** 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; +} + +/** 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: "PrivateEndpoint" | "ServiceTag" | "FQDN"; + /** 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; +} + +/** 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; +} + /** The parameters for updating a machine learning workspace. */ export interface WorkspaceUpdateParameters { /** The resource tags for the machine learning workspace. */ @@ -1005,6 +1117,209 @@ export interface FqdnEndpointDetail { port?: number; } +/** 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[]; +} + +/** Managed Network Provisioning options for managed network of a machine learning workspace. */ +export interface ManagedNetworkProvisionOptions { + includeSpark?: boolean; +} + +/** A paginated list of CodeContainer entities. */ +export interface CodeContainerResourceArmPaginatedResult { + /** The link to the next page of CodeContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type CodeContainer. */ + value?: CodeContainer[]; +} + +export interface ResourceBase { + /** The asset description text. */ + description?: string; + /** The asset property dictionary. */ + properties?: { [propertyName: string]: string | null }; + /** Tag dictionary. Tags can be added, removed, and updated. */ + tags?: { [propertyName: string]: string | null }; +} + +/** A paginated list of CodeVersion entities. */ +export interface CodeVersionResourceArmPaginatedResult { + /** The link to the next page of CodeVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type CodeVersion. */ + value?: CodeVersion[]; +} + +export interface PendingUploadRequestDto { + /** If PendingUploadId = null then random guid will be used. */ + pendingUploadId?: string; + /** TemporaryBlobReference is the only supported type */ + pendingUploadType?: PendingUploadType; +} + +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 BlobReferenceForConsumptionDto { + /** + * Blob URI path for client to upload data. + * Example: https://blob.windows.core.net/Container/Path + */ + blobUri?: string; + /** Credential info to access storage account */ + credential?: PendingUploadCredentialDtoUnion; + /** Arm ID of the storage account to use */ + storageAccountArmId?: string; +} + +export interface PendingUploadCredentialDto { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialType: "SAS"; +} + +/** A paginated list of ComponentContainer entities. */ +export interface ComponentContainerResourceArmPaginatedResult { + /** The link to the next page of ComponentContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type ComponentContainer. */ + value?: ComponentContainer[]; +} + +/** A paginated list of ComponentVersion entities. */ +export interface ComponentVersionResourceArmPaginatedResult { + /** The link to the next page of ComponentVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type ComponentVersion. */ + value?: ComponentVersion[]; +} + +/** A paginated list of DataContainer entities. */ +export interface DataContainerResourceArmPaginatedResult { + /** The link to the next page of DataContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type DataContainer. */ + value?: DataContainer[]; +} + +/** A paginated list of DataVersionBase entities. */ +export interface DataVersionBaseResourceArmPaginatedResult { + /** The link to the next page of DataVersionBase objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type DataVersionBase. */ + value?: DataVersionBase[]; +} + +/** BlobReferenceSASRequest for getBlobReferenceSAS API */ +export interface GetBlobReferenceSASRequestDto { + /** Id of the asset to be accessed */ + assetId?: string; + /** Blob uri of the asset to be accessed */ + blobUri?: string; +} + +/** BlobReferenceSASResponse for getBlobReferenceSAS API */ +export interface GetBlobReferenceSASResponseDto { + /** Blob reference for consumption details */ + blobReferenceForConsumption?: GetBlobReferenceForConsumptionDto; +} + +export interface GetBlobReferenceForConsumptionDto { + /** Blob uri, example: https://blob.windows.core.net/Container/Path */ + blobUri?: string; + /** Credential info to access storage account */ + credential?: DataReferenceCredentialUnion; + /** The ARM id of the storage account */ + storageAccountArmId?: string; +} + +/** DataReferenceCredential base class */ +export interface DataReferenceCredential { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialType: + | "NoCredentials" + | "DockerCredentials" + | "ManagedIdentity" + | "SAS"; +} + +/** A paginated list of EnvironmentContainer entities. */ +export interface EnvironmentContainerResourceArmPaginatedResult { + /** The link to the next page of EnvironmentContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type EnvironmentContainer. */ + value?: EnvironmentContainer[]; +} + +/** A paginated list of EnvironmentVersion entities. */ +export interface EnvironmentVersionResourceArmPaginatedResult { + /** The link to the next page of EnvironmentVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type EnvironmentVersion. */ + value?: EnvironmentVersion[]; +} + +/** Configuration settings for Docker build context */ +export interface BuildContext { + /** + * [Required] URI of the Docker build context used to build the image. Supports blob URIs on environment creation and may return blob or Git URIs. + * + */ + contextUri: string; + /** + * Path to the Dockerfile in the build context. + * + */ + dockerfilePath?: string; +} + +export interface InferenceContainerProperties { + /** The route to check the liveness of the inference server container. */ + livenessRoute?: Route; + /** The route to check the readiness of the inference server container. */ + readinessRoute?: Route; + /** The port to send the scoring requests to, within the inference server container. */ + scoringRoute?: Route; +} + +export interface Route { + /** [Required] The path for the route. */ + path: string; + /** [Required] The port for the route. */ + port: number; +} + +/** A paginated list of ModelContainer entities. */ +export interface ModelContainerResourceArmPaginatedResult { + /** The link to the next page of ModelContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type ModelContainer. */ + value?: ModelContainer[]; +} + +/** A paginated list of ModelVersion entities. */ +export interface ModelVersionResourceArmPaginatedResult { + /** The link to the next page of ModelVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type ModelVersion. */ + value?: ModelVersion[]; +} + +export interface FlavorData { + /** Model flavor-specific data. */ + data?: { [propertyName: string]: string | null }; +} + /** 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. */ @@ -1136,140 +1451,47 @@ export interface PartialBatchDeployment { description?: string; } -/** A paginated list of CodeContainer entities. */ -export interface CodeContainerResourceArmPaginatedResult { - /** The link to the next page of CodeContainer objects. If null, there are no additional pages. */ +/** Publishing destination registry asset information */ +export interface DestinationAsset { + /** Destination asset name */ + destinationName?: string; + /** Destination asset version */ + destinationVersion?: string; + /** Destination registry name */ + registryName?: 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 CodeContainer. */ - value?: CodeContainer[]; + /** An array of objects of type Datastore. */ + value?: Datastore[]; } -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 }; +/** 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"; } -/** 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[]; +/** Base definition for datastore secrets. */ +export interface DatastoreSecrets { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: "AccountKey" | "Certificate" | "Sas" | "ServicePrincipal"; } -/** A paginated list of ComponentContainer entities. */ -export interface ComponentContainerResourceArmPaginatedResult { - /** The link to the next page of ComponentContainer objects. If null, there are no additional pages. */ +/** 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 ComponentContainer. */ - value?: ComponentContainer[]; -} - -/** A paginated list of ComponentVersion entities. */ -export interface ComponentVersionResourceArmPaginatedResult { - /** The link to the next page of ComponentVersion objects. If null, there are no additional pages. */ - nextLink?: string; - /** An array of objects of type ComponentVersion. */ - value?: ComponentVersion[]; -} - -/** A paginated list of DataContainer entities. */ -export interface DataContainerResourceArmPaginatedResult { - /** The link to the next page of DataContainer objects. If null, there are no additional pages. */ - nextLink?: string; - /** An array of objects of type DataContainer. */ - value?: DataContainer[]; -} - -/** A paginated list of DataVersionBase entities. */ -export interface DataVersionBaseResourceArmPaginatedResult { - /** The link to the next page of DataVersionBase objects. If null, there are no additional pages. */ - nextLink?: string; - /** An array of objects of type DataVersionBase. */ - value?: DataVersionBase[]; -} - -/** A paginated list of Datastore entities. */ -export interface DatastoreResourceArmPaginatedResult { - /** The link to the next page of Datastore objects. If null, there are no additional pages. */ - 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"; -} - -/** A paginated list of EnvironmentContainer entities. */ -export interface EnvironmentContainerResourceArmPaginatedResult { - /** The link to the next page of EnvironmentContainer objects. If null, there are no additional pages. */ - nextLink?: string; - /** An array of objects of type EnvironmentContainer. */ - value?: EnvironmentContainer[]; -} - -/** A paginated list of EnvironmentVersion entities. */ -export interface EnvironmentVersionResourceArmPaginatedResult { - /** The link to the next page of EnvironmentVersion objects. If null, there are no additional pages. */ - nextLink?: string; - /** An array of objects of type EnvironmentVersion. */ - value?: EnvironmentVersion[]; -} - -/** Configuration settings for Docker build context */ -export interface BuildContext { - /** - * [Required] URI of the Docker build context used to build the image. Supports blob URIs on environment creation and may return blob or Git URIs. - * - */ - contextUri: string; - /** - * Path to the Dockerfile in the build context. - * - */ - dockerfilePath?: string; -} - -export interface InferenceContainerProperties { - /** The route to check the liveness of the inference server container. */ - livenessRoute?: Route; - /** The route to check the readiness of the inference server container. */ - readinessRoute?: Route; - /** The port to send the scoring requests to, within the inference server container. */ - scoringRoute?: Route; -} - -export interface Route { - /** [Required] The path for the route. */ - path: string; - /** [Required] The port for the route. */ - port: number; -} - -/** A paginated list of 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[]; + /** An array of objects of type JobBase. */ + value?: JobBase[]; } /** Base definition for identity configuration. */ @@ -1289,6 +1511,11 @@ export interface JobService { readonly errorMessage?: string; /** Endpoint type. */ jobServiceType?: string; + /** + * 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. + */ + nodes?: NodesUnion; /** Port for endpoint. */ port?: number; /** Additional properties to set on the endpoint. */ @@ -1300,25 +1527,10 @@ export interface JobService { 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. */ - nextLink?: string; - /** An array of objects of type ModelContainer. */ - value?: ModelContainer[]; -} - -/** A paginated list of ModelVersion entities. */ -export interface ModelVersionResourceArmPaginatedResult { - /** The link to the next page of ModelVersion objects. If null, there are no additional pages. */ - nextLink?: string; - /** An array of objects of type ModelVersion. */ - value?: ModelVersion[]; -} - -export interface FlavorData { - /** Model flavor-specific data. */ - data?: { [propertyName: string]: string | null }; +/** Abstract Nodes definition */ +export interface Nodes { + /** Polymorphic discriminator, which specifies the different types this object can be */ + nodesValueType: "All"; } /** A paginated list of OnlineEndpoint entities. */ @@ -1469,12 +1681,12 @@ export interface ScheduleResourceArmPaginatedResult { export interface ScheduleActionBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - actionType: "InvokeBatchEndpoint" | "CreateJob"; + actionType: "CreateMonitor" | "InvokeBatchEndpoint" | "CreateJob"; } export interface TriggerBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - triggerType: "Recurrence" | "Cron"; + triggerType: "Cron" | "Recurrence"; /** * Specifies end time of schedule in ISO 8601, but without a UTC offset. Refer https://en.wikipedia.org/wiki/ISO_8601. * Recommented format would be "2022-06-01T00:00:01" @@ -1490,6 +1702,130 @@ export interface TriggerBase { timeZone?: string; } +/** A paginated list of Registry entities. */ +export interface RegistryTrackedResourceArmPaginatedResult { + /** The link to the next page of Registry objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type Registry. */ + value?: Registry[]; +} + +/** ARM ResourceId of a resource */ +export interface ArmResourceId { + /** + * 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; +} + +/** 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; +} + +/** 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; +} + +/** Details for each region the registry is in */ +export interface RegistryRegionArmDetails { + /** List of ACR accounts */ + acrDetails?: AcrDetails[]; + /** The location where the registry exists */ + location?: string; + /** List of storage accounts */ + storageAccountDetails?: StorageAccountDetails[]; +} + +/** Details of 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; +} + +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; + /** + * 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 { /** @@ -1761,6 +2097,13 @@ export interface ComputeInstanceProperties { applicationSharingPolicy?: ApplicationSharingPolicy; /** Specifies policy and settings for SSH access. */ sshSettings?: ComputeInstanceSshSettings; + /** List of Custom Services added to the compute. */ + customServices?: CustomService[]; + /** + * 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 osImageMetadata?: ImageMetadata; /** * Describes all connectivity endpoints available for this ComputeInstance. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1797,11 +2140,8 @@ export interface ComputeInstanceProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastOperation?: ComputeInstanceLastOperation; - /** - * The list of schedules to be applied on the computes. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly schedules?: ComputeSchedules; + /** The list of schedules to be applied on the computes. */ + 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; /** @@ -1844,6 +2184,118 @@ export interface ComputeInstanceSshSettings { adminPublicKey?: 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 Image Specifications */ +export interface Image { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** Type of the image. Possible values are: docker - For docker images. azureml - For AzureML images */ + type?: ImageType; + /** Image reference */ + reference?: string; +} + +/** Environment Variables for the container */ +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; +} + +/** Docker container configuration */ +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; +} + +/** Describes the endpoint configuration for the container */ +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; +} + +/** Describes the volume configuration for the container */ +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; +} + +/** Describes the bind options for the container */ +export interface BindOptions { + /** Type of Bind Option */ + propagation?: string; + /** Indicate whether to create host path. */ + createHostPath?: boolean; + /** Mention the selinux options. */ + selinux?: string; +} + +/** Describes the volume options for the container */ +export interface VolumeOptions { + /** Indicate whether volume is nocopy */ + nocopy?: boolean; +} + +/** Describes the tmpfs options for the container */ +export interface TmpfsOptions { + /** Mention the Tmpfs size */ + size?: number; +} + +/** 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; +} + /** Defines all connectivity endpoints and properties for an ComputeInstance. */ export interface ComputeInstanceConnectivityEndpoints { /** @@ -1962,13 +2414,30 @@ export interface ComputeStartStopSchedule { /** [Required] The schedule trigger type. */ triggerType?: TriggerType; /** Required if triggerType is Recurrence. */ - recurrence?: RecurrenceTrigger; + recurrence?: Recurrence; /** Required if triggerType is Cron. */ - cron?: CronTrigger; + cron?: Cron; /** [Deprecated] Not used any more. */ schedule?: ScheduleBase; } +/** The workflow trigger recurrence for ComputeStartStop schedule type. */ +export interface Recurrence { + /** [Required] The frequency to trigger schedule. */ + frequency?: RecurrenceFrequency; + /** [Required] Specifies schedule interval in conjunction with frequency */ + interval?: number; + /** The start time in yyyy-MM-ddTHH:mm:ss format. */ + startTime?: string; + /** + * Specifies time zone in which the schedule runs. + * TimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11 + */ + timeZone?: string; + /** [Required] The recurrence schedule. */ + schedule?: RecurrenceSchedule; +} + export interface RecurrenceSchedule { /** [Required] List of hours for the schedule. */ hours: number[]; @@ -1980,6 +2449,22 @@ export interface RecurrenceSchedule { weekDays?: WeekDay[]; } +/** 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; +} + export interface ScheduleBase { /** A system assigned id for the schedule. */ id?: string; @@ -2187,6 +2672,35 @@ export interface DatabricksComputeSecretsProperties { databricksAccessToken?: string; } +/** 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; +} + +/** 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; +} + +/** 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 { username?: string; password?: string; @@ -2205,6 +2719,17 @@ export interface WorkspaceConnectionManagedIdentity { clientId?: string; } +export interface MonitoringFeatureFilterBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + filterType: "AllFeatures" | "FeatureSubset" | "TopNByAttribution"; +} + +/** Monitor compute identity base definition. */ +export interface MonitorComputeIdentityBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeIdentityType: "AmlToken" | "ManagedIdentity"; +} + /** Asset input type. */ export interface AssetJobInput { /** Input Asset Delivery Mode. */ @@ -2241,6 +2766,11 @@ export interface JobOutput { description?: string; } +export interface QueueSettings { + /** Controls the compute job tier */ + jobTier?: JobTier; +} + /** * AutoML vertical class. * Base class for AutoML verticals - TableVertical/ImageVertical/NLPVertical @@ -2308,6 +2838,14 @@ export interface TargetRollingWindowSize { mode: "Auto" | "Custom"; } +/** Base definition for Azure datastore contents configuration. */ +export interface AzureDatastore { + /** Azure Resource Group name */ + resourceGroup?: string; + /** Azure Subscription Id */ + subscriptionId?: 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 */ @@ -2327,6 +2865,32 @@ export interface SamplingAlgorithm { samplingAlgorithmType: "Bayesian" | "Grid" | "Random"; } +export interface DataDriftMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "Categorical" | "Numerical"; + /** The threshold value. If null, a default value will be set depending on the selected metric. */ + threshold?: MonitoringThreshold; +} + +export interface MonitoringThreshold { + /** The threshold value. If null, the set default is dependent on the metric type. */ + value?: number; +} + +export interface DataQualityMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "Categorical" | "Numerical"; + /** The threshold value. If null, a default value will be set depending on the selected metric. */ + threshold?: MonitoringThreshold; +} + +export interface PredictionDriftMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "Categorical" | "Numerical"; + /** The threshold value. If null, a default value will be set depending on the selected metric. */ + threshold?: MonitoringThreshold; +} + /** Training related configuration. */ export interface TrainingSettings { /** Enable recommendation of DNN models. */ @@ -2465,18 +3029,104 @@ export interface ContainerResourceSettings { memory?: string; } -/** 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. - */ +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 entities targeted by the monitor. */ + monitoringTarget?: MonitoringTarget; + /** [Required] The signals to monitor. */ + signals: { [propertyName: string]: MonitoringSignalBaseUnion | null }; +} + +export interface MonitorNotificationSettings { + /** The AML notification email settings. */ + emailNotificationSettings?: MonitorEmailNotificationSettings; +} + +export interface MonitorEmailNotificationSettings { + /** The email recipient list which has a limitation of 499 characters in total. */ + emails?: string[]; +} + +/** Monitor compute configuration base definition. */ +export interface MonitorComputeConfigurationBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "ServerlessSpark"; +} + +/** Monitoring target definition. */ +export interface MonitoringTarget { + /** Reference to the deployment asset targeted by this monitor. */ + deploymentId?: string; + /** Reference to the model asset targeted by this monitor. */ + modelId?: string; + /** [Required] The machine learning task type of the monitored model. */ + taskType: ModelTaskType; +} + +export interface MonitoringSignalBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + signalType: + | "Custom" + | "DataDrift" + | "DataQuality" + | "FeatureAttributionDrift" + | "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 }; +} + +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; +} + +/** 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; +} + +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 FeatureAttributionMetricThreshold { + /** [Required] The feature attribution metric to calculate. */ + metric: FeatureAttributionMetric; + /** The threshold value. If null, a default value will be set depending on the selected metric. */ + threshold?: MonitoringThreshold; +} + +/** Forecasting 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; @@ -2606,11 +3256,11 @@ export interface ImageModelSettings { * 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: @@ -2780,6 +3430,16 @@ export interface TrialComponent { resources?: JobResourceConfiguration; } +/** 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; +} + +/** Managed service identity (system assigned and/or user assigned identities) */ +export interface RegistryPartialManagedServiceIdentity + extends ManagedServiceIdentity {} + /** The Private Endpoint Connection resource. */ export interface PrivateEndpointConnection extends Resource { /** The identity of the resource. */ @@ -2888,6 +3548,8 @@ export interface Workspace extends Resource { readonly mlFlowTrackingUri?: string; /** Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. */ v1LegacyMode?: boolean; + /** Managed Network settings for a machine learning workspace. */ + managedNetwork?: ManagedNetworkSettings; } /** Machine Learning compute object wrapped into ARM resource envelope. */ @@ -2930,12 +3592,10 @@ export interface WorkspaceConnectionPropertiesV2BasicResource extends Resource { properties: WorkspaceConnectionPropertiesV2Union; } -/** 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; +/** Outbound Rule Basic Resource for the managed network of a machine learning workspace. */ +export interface OutboundRuleBasicResource extends Resource { + /** Outbound Rule for the managed network of a machine learning workspace. */ + properties: OutboundRuleUnion; } /** Azure Resource Manager resource envelope. */ @@ -2974,12 +3634,6 @@ export interface DataVersionBase extends Resource { properties: DataVersionBasePropertiesUnion; } -/** Azure Resource Manager resource envelope. */ -export interface Datastore extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: DatastorePropertiesUnion; -} - /** Azure Resource Manager resource envelope. */ export interface EnvironmentContainer extends Resource { /** [Required] Additional attributes of the entity. */ @@ -2992,12 +3646,6 @@ export interface EnvironmentVersion extends Resource { properties: EnvironmentVersionProperties; } -/** Azure Resource Manager resource envelope. */ -export interface JobBase extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: JobBasePropertiesUnion; -} - /** Azure Resource Manager resource envelope. */ export interface ModelContainer extends Resource { /** [Required] Additional attributes of the entity. */ @@ -3010,12 +3658,55 @@ export interface ModelVersion extends Resource { properties: ModelVersionProperties; } +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResource extends Resource { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The geo-location where the resource lives */ + location: string; +} + +/** Azure Resource Manager resource envelope. */ +export interface Datastore extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: DatastorePropertiesUnion; +} + +/** Azure Resource Manager resource envelope. */ +export interface JobBase extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: JobBasePropertiesUnion; +} + /** Azure Resource Manager resource envelope. */ export interface Schedule extends Resource { /** [Required] Additional attributes of the entity. */ properties: ScheduleProperties; } +/** 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; +} + +/** 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; +} + /** A Machine Learning compute based on AKS. */ export interface Aks extends Compute, AKSSchema { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -3135,6 +3826,136 @@ export interface ManagedIdentityAuthTypeWorkspaceConnectionProperties credentials?: WorkspaceConnectionManagedIdentity; } +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 { + /** If the name version are system generated (anonymous registration). */ + isAnonymous?: boolean; + /** Is the asset archived? */ + 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; + /** + * 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; +} + +/** 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; +} + +/** 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; +} + +/** Access credential with no credentials */ +export interface AnonymousAccessCredential extends DataReferenceCredential { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialType: "NoCredentials"; +} + +/** Credential for docker with username and password */ +export interface DockerCredential extends DataReferenceCredential { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialType: "DockerCredentials"; + /** DockerCredential user password */ + password?: string; + /** DockerCredential user name */ + userName?: string; +} + +/** Credential for user managed identity */ +export interface ManagedIdentityCredential extends DataReferenceCredential { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialType: "ManagedIdentity"; + /** ManagedIdentityCredential identity type */ + managedIdentityType?: string; + /** ClientId for the UAMI. For ManagedIdentityType = SystemManaged, this field is null. */ + userManagedIdentityClientId?: string; + /** PrincipalId for the UAMI. For ManagedIdentityType = SystemManaged, this field is null. */ + userManagedIdentityPrincipalId?: string; + /** Full arm scope for the Id. For ManagedIdentityType = SystemManaged, this field is null. */ + userManagedIdentityResourceId?: string; + /** TenantId for the UAMI. For ManagedIdentityType = SystemManaged, this field is null. */ + userManagedIdentityTenantId?: string; +} + +/** Access with full SAS uri */ +export interface SASCredential extends DataReferenceCredential { + /** 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; +} + /** Batch endpoint configuration. */ export interface BatchEndpointProperties extends EndpointPropertiesBase { /** Default values for Batch Endpoint */ @@ -3153,6 +3974,8 @@ export interface OnlineEndpointProperties extends EndpointPropertiesBase { * 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. @@ -3296,119 +4119,36 @@ export interface OnlineDeploymentProperties scaleSettings?: OnlineScaleSettingsUnion; } -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; +/** 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; } -export interface AssetBase extends ResourceBase { - /** If the name version are system generated (anonymous registration). */ - isAnonymous?: boolean; - /** Is the asset archived? */ - isArchived?: boolean; +/** 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; } -/** 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; -} - -/** 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; -} - -/** 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; -} - -/** 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; -} - -/** Empty/none datastore credentials. */ -export interface NoneDatastoreCredentials extends DatastoreCredentials { - /** Polymorphic discriminator, which specifies the different types this object can be */ - credentialsType: "None"; +/** 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. */ @@ -3492,6 +4232,12 @@ export interface UserIdentity extends IdentityConfiguration { 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"; +} + export interface DefaultScaleSettings extends OnlineScaleSettings { /** Polymorphic discriminator, which specifies the different types this object can be */ scaleType: "Default"; @@ -3510,6 +4256,13 @@ export interface TargetUtilizationScaleSettings extends OnlineScaleSettings { 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"; @@ -3527,6 +4280,16 @@ export interface JobScheduleAction extends ScheduleActionBase { jobDefinition: JobBasePropertiesUnion; } +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; +} + export interface RecurrenceTrigger extends TriggerBase { /** Polymorphic discriminator, which specifies the different types this object can be */ triggerType: "Recurrence"; @@ -3538,14 +4301,37 @@ export interface RecurrenceTrigger extends TriggerBase { schedule?: RecurrenceSchedule; } -export interface CronTrigger extends TriggerBase { +export interface AllFeatures extends MonitoringFeatureFilterBase { /** 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; + 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"; + /** The identity which will be leveraged by the monitoring jobs. */ + identity?: ManagedServiceIdentity; } export interface MLTableJobInput extends AssetJobInput, JobInput {} @@ -3755,6 +4541,64 @@ export interface CustomTargetRollingWindowSize extends TargetRollingWindowSize { 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 */ @@ -3801,6 +4645,54 @@ export interface RandomSamplingAlgorithm extends SamplingAlgorithm { 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. */ @@ -3891,6 +4783,133 @@ export interface SweepJobLimits extends JobLimits { 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] Reference to the component asset 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[]; +} + +export interface DataDriftMonitoringSignal extends MonitoringSignalBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + signalType: "DataDrift"; + /** 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; + }; + /** [Required] 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; +} + +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"; + /** Reference to the component asset 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 rolling 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"; + /** Reference to the component asset 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; +} + /** * Settings used for training the model. * For more information on the available settings please visit the official documentation: @@ -3985,11 +5004,11 @@ export interface ImageModelSettingsObjectDetection extends ImageModelSettings { * 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: @@ -4014,11 +5033,11 @@ export interface ImageModelDistributionSettingsClassification * 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: @@ -4150,28 +5169,52 @@ export interface OnlineDeployment extends TrackedResource { sku?: Sku; } -/** 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 Registry extends TrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: Sku; + /** Discovery URL for the Registry */ + discoveryUrl?: string; + /** IntellectualPropertyPublisher for the registry */ + intellectualPropertyPublisher?: string; + /** ResourceId of the managed RG if the registry has system created resources */ + managedResourceGroup?: ArmResourceId; + /** MLFlow Registry URI for the Registry */ + mlFlowRegistryUri?: string; + /** Private endpoint connections info used for pending connections in private link portal */ + registryPrivateEndpointConnections?: RegistryPrivateEndpointConnection[]; + /** + * Is the Registry accessible from the internet? + * Possible values: "Enabled" or "Disabled" + */ + publicNetworkAccess?: string; + /** Details of each region the registry is in */ + regionDetails?: RegistryRegionArmDetails[]; } /** Container for code asset versions. */ -export interface CodeContainerProperties extends AssetContainer {} +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 {} +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 { @@ -4180,14 +5223,31 @@ export interface DataContainerProperties extends AssetContainer { } /** Container for environment specification versions. */ -export interface EnvironmentContainerProperties extends AssetContainer {} +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 {} +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; +} /** 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. */ @@ -4197,13 +5257,18 @@ export interface ComponentVersionProperties extends AssetBase { * */ 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; } /** 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 */ + /** [Required] Uri of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330 */ dataUri: string; } @@ -4233,6 +5298,13 @@ export interface EnvironmentVersionProperties extends AssetBase { inferenceConfig?: InferenceContainerProperties; /** 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. */ @@ -4245,72 +5317,21 @@ export interface ModelVersionProperties extends AssetBase { 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; } -/** Azure Blob datastore configuration. */ -export interface AzureBlobDatastore extends DatastoreProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - datastoreType: "AzureBlob"; - /** Storage account name. */ - accountName?: string; - /** Storage account container name. */ - containerName?: string; - /** Azure cloud endpoint for the storage account. */ - endpoint?: string; - /** Protocol used to communicate with the storage account. */ - protocol?: string; - /** Indicates which identity to use to authenticate service data access to customer's storage. */ - serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; -} - -/** Azure Data Lake Gen1 datastore configuration. */ -export interface AzureDataLakeGen1Datastore extends DatastoreProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - datastoreType: "AzureDataLakeGen1"; - /** Indicates which identity to use to authenticate service data access to customer's storage. */ - serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; - /** [Required] Azure Data Lake store name. */ - storeName: string; -} - -/** 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; -} - -/** 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; -} - -/** - * 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 { +/** + * 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"; /** @@ -4322,6 +5343,8 @@ export interface AutoMLJob extends JobBaseProperties { 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 */ @@ -4353,6 +5376,8 @@ export interface CommandJob extends JobBaseProperties { * 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; } @@ -4387,6 +5412,8 @@ export interface SweepJob extends JobBaseProperties { objective: Objective; /** Mapping of output data bindings used in the job. */ outputs?: { [propertyName: string]: JobOutputUnion | null }; + /** Queue settings for the job */ + queueSettings?: QueueSettings; /** [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 */ @@ -4395,6 +5422,20 @@ export interface SweepJob extends JobBaseProperties { 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"; +} + /** MLTable data definition */ export interface MLTableData extends DataVersionBaseProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -4415,6 +5456,22 @@ export interface UriFolderDataVersion extends DataVersionBaseProperties { dataType: "uri_folder"; } +/** 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_update operation. */ +export interface WorkspacesUpdateHeaders { + /** 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. */ @@ -4423,6 +5480,22 @@ export interface WorkspacesDiagnoseHeaders { 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 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 Compute_createOrUpdate operation. */ export interface ComputeCreateOrUpdateHeaders { /** URI to poll for asynchronous operation status. */ @@ -4437,8 +5510,30 @@ export interface ComputeDeleteHeaders { location?: string; } -/** Defines headers for BatchEndpoints_delete operation. */ -export interface BatchEndpointsDeleteHeaders { +/** Defines headers for ManagedNetworkSettingsRule_delete operation. */ +export interface ManagedNetworkSettingsRuleDeleteHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; +} + +/** Defines headers for ManagedNetworkSettingsRule_createOrUpdate operation. */ +export interface ManagedNetworkSettingsRuleCreateOrUpdateHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for ManagedNetworkProvisions_provisionManagedNetwork operation. */ +export interface ManagedNetworkProvisionsProvisionManagedNetworkHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** 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. */ @@ -4447,8 +5542,16 @@ export interface BatchEndpointsDeleteHeaders { retryAfter?: number; } -/** Defines headers for BatchEndpoints_update operation. */ -export interface BatchEndpointsUpdateHeaders { +/** 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. */ @@ -4457,16 +5560,16 @@ export interface BatchEndpointsUpdateHeaders { retryAfter?: number; } -/** Defines headers for BatchEndpoints_createOrUpdate operation. */ -export interface BatchEndpointsCreateOrUpdateHeaders { +/** 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 BatchDeployments_delete operation. */ -export interface BatchDeploymentsDeleteHeaders { +/** 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. */ @@ -4475,8 +5578,16 @@ export interface BatchDeploymentsDeleteHeaders { retryAfter?: number; } -/** Defines headers for BatchDeployments_update operation. */ -export interface BatchDeploymentsUpdateHeaders { +/** 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. */ @@ -4485,16 +5596,16 @@ export interface BatchDeploymentsUpdateHeaders { retryAfter?: number; } -/** Defines headers for BatchDeployments_createOrUpdate operation. */ -export interface BatchDeploymentsCreateOrUpdateHeaders { +/** 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 Jobs_delete operation. */ -export interface JobsDeleteHeaders { +/** 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. */ @@ -4503,16 +5614,34 @@ export interface JobsDeleteHeaders { retryAfter?: number; } -/** Defines headers for Jobs_cancel operation. */ -export interface JobsCancelHeaders { +/** 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 OnlineEndpoints_delete operation. */ -export interface OnlineEndpointsDeleteHeaders { +/** 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. */ @@ -4521,8 +5650,16 @@ export interface OnlineEndpointsDeleteHeaders { retryAfter?: number; } -/** Defines headers for OnlineEndpoints_update operation. */ -export interface OnlineEndpointsUpdateHeaders { +/** 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. */ @@ -4531,24 +5668,34 @@ export interface OnlineEndpointsUpdateHeaders { retryAfter?: number; } -/** Defines headers for OnlineEndpoints_createOrUpdate operation. */ -export interface OnlineEndpointsCreateOrUpdateHeaders { +/** 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 OnlineEndpoints_regenerateKeys operation. */ -export interface OnlineEndpointsRegenerateKeysHeaders { +/** 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 OnlineDeployments_delete operation. */ -export interface OnlineDeploymentsDeleteHeaders { +/** 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. */ @@ -4557,8 +5704,16 @@ export interface OnlineDeploymentsDeleteHeaders { retryAfter?: number; } -/** Defines headers for OnlineDeployments_update operation. */ -export interface OnlineDeploymentsUpdateHeaders { +/** 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 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. */ @@ -4567,16 +5722,26 @@ export interface OnlineDeploymentsUpdateHeaders { retryAfter?: number; } -/** Defines headers for OnlineDeployments_createOrUpdate operation. */ -export interface OnlineDeploymentsCreateOrUpdateHeaders { +/** 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 Schedules_delete operation. */ -export interface SchedulesDeleteHeaders { +/** 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. */ @@ -4585,57 +5750,263 @@ export interface SchedulesDeleteHeaders { retryAfter?: number; } -/** Defines headers for Schedules_createOrUpdate operation. */ -export interface SchedulesCreateOrUpdateHeaders { +/** 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; } -/** 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 headers for CodeVersions_publish operation. */ +export interface CodeVersionsPublishHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; } -/** - * 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; +/** Defines headers for ComponentVersions_publish operation. */ +export interface ComponentVersionsPublishHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} -/** Known values of {@link EncryptionStatus} that the service accepts. */ -export enum KnownEncryptionStatus { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Defines headers for DataVersions_publish operation. */ +export interface DataVersionsPublishHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; } -/** - * Defines values for EncryptionStatus. \ +/** Defines headers for EnvironmentVersions_publish operation. */ +export interface EnvironmentVersionsPublishHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** 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 ModelVersions_publish operation. */ +export interface ModelVersionsPublishHeaders { + /** 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 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; +} + +/** Known values of {@link Origin} that the service accepts. */ +export enum KnownOrigin { + /** User */ + User = "user", + /** System */ + System = "system", + /** UserSystem */ + UserSystem = "user,system" +} + +/** + * 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 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 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 @@ -4761,6 +6132,105 @@ export enum KnownCreatedByType { */ export type CreatedByType = string; +/** Known values of {@link IsolationMode} that the service accepts. */ +export enum KnownIsolationMode { + /** Disabled */ + Disabled = "Disabled", + /** AllowInternetOutbound */ + AllowInternetOutbound = "AllowInternetOutbound", + /** AllowOnlyApprovedOutbound */ + AllowOnlyApprovedOutbound = "AllowOnlyApprovedOutbound" +} + +/** + * Defines values for IsolationMode. \ + * {@link KnownIsolationMode} can be used interchangeably with IsolationMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **AllowInternetOutbound** \ + * **AllowOnlyApprovedOutbound** + */ +export type IsolationMode = string; + +/** Known values of {@link RuleCategory} that the service accepts. */ +export enum KnownRuleCategory { + /** Required */ + Required = "Required", + /** Recommended */ + Recommended = "Recommended", + /** UserDefined */ + UserDefined = "UserDefined" +} + +/** + * Defines values for RuleCategory. \ + * {@link KnownRuleCategory} can be used interchangeably with RuleCategory, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Required** \ + * **Recommended** \ + * **UserDefined** + */ +export type RuleCategory = string; + +/** Known values of {@link RuleStatus} that the service accepts. */ +export enum KnownRuleStatus { + /** Inactive */ + Inactive = "Inactive", + /** Active */ + Active = "Active" +} + +/** + * Defines values for RuleStatus. \ + * {@link KnownRuleStatus} can be used interchangeably with RuleStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Inactive** \ + * **Active** + */ +export type RuleStatus = string; + +/** Known values of {@link RuleType} that the service accepts. */ +export enum KnownRuleType { + /** Fqdn */ + Fqdn = "FQDN", + /** PrivateEndpoint */ + PrivateEndpoint = "PrivateEndpoint", + /** ServiceTag */ + ServiceTag = "ServiceTag" +} + +/** + * Defines values for RuleType. \ + * {@link KnownRuleType} can be used interchangeably with RuleType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **FQDN** \ + * **PrivateEndpoint** \ + * **ServiceTag** + */ +export type RuleType = string; + +/** Known values of {@link ManagedNetworkStatus} that the service accepts. */ +export enum KnownManagedNetworkStatus { + /** Inactive */ + Inactive = "Inactive", + /** Active */ + Active = "Active" +} + +/** + * Defines values for ManagedNetworkStatus. \ + * {@link KnownManagedNetworkStatus} can be used interchangeably with ManagedNetworkStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Inactive** \ + * **Active** + */ +export type ManagedNetworkStatus = string; + /** Known values of {@link DiagnoseResultLevel} that the service accepts. */ export enum KnownDiagnoseResultLevel { /** Warning */ @@ -5070,49 +6540,232 @@ export enum KnownValueFormat { */ export type ValueFormat = string; -/** Known values of {@link EndpointProvisioningState} that the service accepts. */ -export enum KnownEndpointProvisioningState { - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", +/** 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", - /** Canceled */ - Canceled = "Canceled" + /** Deleting */ + Deleting = "Deleting" } /** - * Defines values for EndpointProvisioningState. \ - * {@link KnownEndpointProvisioningState} can be used interchangeably with EndpointProvisioningState, + * 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 - * **Creating** \ - * **Deleting** \ * **Succeeded** \ * **Failed** \ + * **Canceled** \ + * **Creating** \ * **Updating** \ - * **Canceled** + * **Deleting** */ -export type EndpointProvisioningState = string; +export type AssetProvisioningState = 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 PendingUploadType} that the service accepts. */ +export enum KnownPendingUploadType { + /** None */ + None = "None", + /** TemporaryBlobReference */ + TemporaryBlobReference = "TemporaryBlobReference" } /** - * Defines values for EndpointAuthMode. \ - * {@link KnownEndpointAuthMode} can be used interchangeably with EndpointAuthMode, + * 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 DataReferenceCredentialType} that the service accepts. */ +export enum KnownDataReferenceCredentialType { + /** SAS */ + SAS = "SAS", + /** DockerCredentials */ + DockerCredentials = "DockerCredentials", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** NoCredentials */ + NoCredentials = "NoCredentials" +} + +/** + * Defines values for DataReferenceCredentialType. \ + * {@link KnownDataReferenceCredentialType} can be used interchangeably with DataReferenceCredentialType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SAS** \ + * **DockerCredentials** \ + * **ManagedIdentity** \ + * **NoCredentials** + */ +export type DataReferenceCredentialType = 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 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** \ @@ -5214,48 +6867,6 @@ export enum KnownDeploymentProvisioningState { */ export type DeploymentProvisioningState = 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 CredentialsType} that the service accepts. */ export enum KnownCredentialsType { /** AccountKey */ @@ -5331,104 +6942,65 @@ export enum KnownSecretsType { */ export type SecretsType = string; -/** Known values of {@link AutoRebuildSetting} that the service accepts. */ -export enum KnownAutoRebuildSetting { - /** Disabled */ - Disabled = "Disabled", - /** OnBaseImageUpdate */ - OnBaseImageUpdate = "OnBaseImageUpdate" +/** Known values of {@link IdentityConfigurationType} that the service accepts. */ +export enum KnownIdentityConfigurationType { + /** Managed */ + Managed = "Managed", + /** AMLToken */ + AMLToken = "AMLToken", + /** UserIdentity */ + UserIdentity = "UserIdentity" } /** - * Defines values for AutoRebuildSetting. \ - * {@link KnownAutoRebuildSetting} can be used interchangeably with AutoRebuildSetting, + * 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 - * **Disabled** \ - * **OnBaseImageUpdate** + * **Managed** \ + * **AMLToken** \ + * **UserIdentity** */ -export type AutoRebuildSetting = string; +export type IdentityConfigurationType = string; -/** Known values of {@link EnvironmentType} that the service accepts. */ -export enum KnownEnvironmentType { - /** Curated */ - Curated = "Curated", - /** UserCreated */ - UserCreated = "UserCreated" +/** Known values of {@link JobType} that the service accepts. */ +export enum KnownJobType { + /** AutoML */ + AutoML = "AutoML", + /** Command */ + Command = "Command", + /** Sweep */ + Sweep = "Sweep", + /** Pipeline */ + Pipeline = "Pipeline" } /** - * Defines values for EnvironmentType. \ - * {@link KnownEnvironmentType} can be used interchangeably with EnvironmentType, + * 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 - * **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 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** + * **AutoML** \ + * **Command** \ + * **Sweep** \ + * **Pipeline** */ -export type IdentityConfigurationType = string; +export type JobType = 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 NodesValueType} that the service accepts. */ +export enum KnownNodesValueType { + /** All */ + All = "All" } /** - * Defines values for JobType. \ - * {@link KnownJobType} can be used interchangeably with JobType, + * 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 - * **AutoML** \ - * **Command** \ - * **Sweep** \ - * **Pipeline** + * **All** */ -export type JobType = string; +export type NodesValueType = string; /** Known values of {@link JobStatus} that the service accepts. */ export enum KnownJobStatus { @@ -5670,7 +7242,9 @@ export enum KnownScheduleActionType { /** CreateJob */ CreateJob = "CreateJob", /** InvokeBatchEndpoint */ - InvokeBatchEndpoint = "InvokeBatchEndpoint" + InvokeBatchEndpoint = "InvokeBatchEndpoint", + /** CreateMonitor */ + CreateMonitor = "CreateMonitor" } /** @@ -5679,7 +7253,8 @@ export enum KnownScheduleActionType { * this enum contains the known values that the service supports. * ### Known values supported by the service * **CreateJob** \ - * **InvokeBatchEndpoint** + * **InvokeBatchEndpoint** \ + * **CreateMonitor** */ export type ScheduleActionType = string; @@ -5731,6 +7306,30 @@ export enum KnownTriggerType { */ export type TriggerType = 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" +} + +/** + * 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** + */ +export type EndpointServiceConnectionStatus = string; + /** Known values of {@link ClusterPurpose} that the service accepts. */ export enum KnownClusterPurpose { /** FastProd */ @@ -5902,6 +7501,84 @@ export enum KnownSshPublicAccess { */ export type SshPublicAccess = 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 ComputeInstanceState} that the service accepts. */ export enum KnownComputeInstanceState { /** Creating */ @@ -6346,6 +8023,63 @@ export enum KnownMountState { */ export type MountState = string; +/** Known values of {@link RuleAction} that the service accepts. */ +export enum KnownRuleAction { + /** Allow */ + Allow = "Allow", + /** Deny */ + Deny = "Deny" +} + +/** + * Defines values for RuleAction. \ + * {@link KnownRuleAction} can be used interchangeably with RuleAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Allow** \ + * **Deny** + */ +export type RuleAction = string; + +/** Known values of {@link MonitoringFeatureFilterType} that the service accepts. */ +export enum KnownMonitoringFeatureFilterType { + /** Includes all features. */ + AllFeatures = "AllFeatures", + /** Only includes the top contributing features, measured by feature attribution. */ + TopNByAttribution = "TopNByAttribution", + /** Includes a user-defined subset of features. */ + FeatureSubset = "FeatureSubset" +} + +/** + * Defines values for MonitoringFeatureFilterType. \ + * {@link KnownMonitoringFeatureFilterType} can be used interchangeably with MonitoringFeatureFilterType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AllFeatures**: Includes all features. \ + * **TopNByAttribution**: Only includes the top contributing features, measured by feature attribution. \ + * **FeatureSubset**: Includes a user-defined subset of features. + */ +export type MonitoringFeatureFilterType = string; + +/** Known values of {@link MonitorComputeIdentityType} that the service accepts. */ +export enum KnownMonitorComputeIdentityType { + /** Authenticates through user's AML token. */ + AmlToken = "AmlToken", + /** Authenticates through a user-provided managed identity. */ + ManagedIdentity = "ManagedIdentity" +} + +/** + * Defines values for MonitorComputeIdentityType. \ + * {@link KnownMonitorComputeIdentityType} can be used interchangeably with MonitorComputeIdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AmlToken**: Authenticates through user's AML token. \ + * **ManagedIdentity**: Authenticates through a user-provided managed identity. + */ +export type MonitorComputeIdentityType = string; + /** Known values of {@link InputDeliveryMode} that the service accepts. */ export enum KnownInputDeliveryMode { /** ReadOnlyMount */ @@ -6442,6 +8176,33 @@ export enum KnownJobOutputType { */ export type JobOutputType = string; +/** Known values of {@link JobTier} that the service accepts. */ +export enum KnownJobTier { + /** Null */ + Null = "Null", + /** Spot */ + Spot = "Spot", + /** Basic */ + Basic = "Basic", + /** Standard */ + Standard = "Standard", + /** Premium */ + Premium = "Premium" +} + +/** + * Defines values for JobTier. \ + * {@link KnownJobTier} can be used interchangeably with JobTier, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Null** \ + * **Spot** \ + * **Basic** \ + * **Standard** \ + * **Premium** + */ +export type JobTier = string; + /** Known values of {@link LogVerbosity} that the service accepts. */ export enum KnownLogVerbosity { /** No logs emitted. */ @@ -6714,6 +8475,87 @@ export enum KnownSamplingAlgorithmType { */ export type SamplingAlgorithmType = string; +/** Known values of {@link CategoricalDataDriftMetric} that the service accepts. */ +export enum KnownCategoricalDataDriftMetric { + /** The Jensen Shannon Distance (JSD) metric. */ + JensenShannonDistance = "JensenShannonDistance", + /** The Population Stability Index (PSI) metric. */ + PopulationStabilityIndex = "PopulationStabilityIndex", + /** The Pearsons Chi Squared Test metric. */ + PearsonsChiSquaredTest = "PearsonsChiSquaredTest" +} + +/** + * Defines values for CategoricalDataDriftMetric. \ + * {@link KnownCategoricalDataDriftMetric} can be used interchangeably with CategoricalDataDriftMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **JensenShannonDistance**: The Jensen Shannon Distance (JSD) metric. \ + * **PopulationStabilityIndex**: The Population Stability Index (PSI) metric. \ + * **PearsonsChiSquaredTest**: The Pearsons Chi Squared Test metric. + */ +export type CategoricalDataDriftMetric = string; + +/** Known values of {@link MonitoringFeatureDataType} that the service accepts. */ +export enum KnownMonitoringFeatureDataType { + /** Used for features of numerical data type. */ + Numerical = "Numerical", + /** Used for features of categorical data type. */ + Categorical = "Categorical" +} + +/** + * Defines values for MonitoringFeatureDataType. \ + * {@link KnownMonitoringFeatureDataType} can be used interchangeably with MonitoringFeatureDataType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Numerical**: Used for features of numerical data type. \ + * **Categorical**: Used for features of categorical data type. + */ +export type MonitoringFeatureDataType = string; + +/** Known values of {@link CategoricalDataQualityMetric} that the service accepts. */ +export enum KnownCategoricalDataQualityMetric { + /** Calculates the rate of null values. */ + NullValueRate = "NullValueRate", + /** Calculates the rate of data type errors. */ + DataTypeErrorRate = "DataTypeErrorRate", + /** Calculates the rate values are out of bounds. */ + OutOfBoundsRate = "OutOfBoundsRate" +} + +/** + * Defines values for CategoricalDataQualityMetric. \ + * {@link KnownCategoricalDataQualityMetric} can be used interchangeably with CategoricalDataQualityMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NullValueRate**: Calculates the rate of null values. \ + * **DataTypeErrorRate**: Calculates the rate of data type errors. \ + * **OutOfBoundsRate**: Calculates the rate values are out of bounds. + */ +export type CategoricalDataQualityMetric = string; + +/** Known values of {@link CategoricalPredictionDriftMetric} that the service accepts. */ +export enum KnownCategoricalPredictionDriftMetric { + /** The Jensen Shannon Distance (JSD) metric. */ + JensenShannonDistance = "JensenShannonDistance", + /** The Population Stability Index (PSI) metric. */ + PopulationStabilityIndex = "PopulationStabilityIndex", + /** The Pearsons Chi Squared Test metric. */ + PearsonsChiSquaredTest = "PearsonsChiSquaredTest" +} + +/** + * Defines values for CategoricalPredictionDriftMetric. \ + * {@link KnownCategoricalPredictionDriftMetric} can be used interchangeably with CategoricalPredictionDriftMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **JensenShannonDistance**: The Jensen Shannon Distance (JSD) metric. \ + * **PopulationStabilityIndex**: The Population Stability Index (PSI) metric. \ + * **PearsonsChiSquaredTest**: The Pearsons Chi Squared Test metric. + */ +export type CategoricalPredictionDriftMetric = string; + /** Known values of {@link ClassificationPrimaryMetrics} that the service accepts. */ export enum KnownClassificationPrimaryMetrics { /** @@ -6892,9 +8734,9 @@ export enum KnownBlockedTransformers { 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. */ + /** 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. */ + /** 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", @@ -6984,6 +8826,135 @@ export enum KnownJobLimitsType { */ export type JobLimitsType = string; +/** Known values of {@link MonitorComputeType} that the service accepts. */ +export enum KnownMonitorComputeType { + /** Serverless Spark compute. */ + ServerlessSpark = "ServerlessSpark" +} + +/** + * Defines values for MonitorComputeType. \ + * {@link KnownMonitorComputeType} can be used interchangeably with MonitorComputeType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ServerlessSpark**: Serverless Spark compute. + */ +export type MonitorComputeType = string; + +/** Known values of {@link ModelTaskType} that the service accepts. */ +export enum KnownModelTaskType { + /** Classification */ + Classification = "Classification", + /** Regression */ + Regression = "Regression" +} + +/** + * Defines values for ModelTaskType. \ + * {@link KnownModelTaskType} can be used interchangeably with ModelTaskType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Classification** \ + * **Regression** + */ +export type ModelTaskType = string; + +/** Known values of {@link MonitoringNotificationType} that the service accepts. */ +export enum KnownMonitoringNotificationType { + /** Enables email notifications through AML notifications. */ + AmlNotification = "AmlNotification" +} + +/** + * 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 + * **AmlNotification**: Enables email notifications through AML notifications. + */ +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" +} + +/** + * Defines values for MonitoringSignalType. \ + * {@link KnownMonitoringSignalType} can be used interchangeably with MonitoringSignalType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **DataDrift**: Tracks model input data distribution change, comparing against training data or past production data. \ + * **PredictionDrift**: Tracks prediction result data distribution change, comparing against validation\/test label data or past production data. \ + * **DataQuality**: Tracks model input data integrity. \ + * **FeatureAttributionDrift**: Tracks feature importance change in production, comparing against feature importance at training time. \ + * **Custom**: Tracks a custom signal provided by users. + */ +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 + * **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 MonitoringInputDataType = string; + +/** 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 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 + * **Disabled**: Disables computing feature importance within a signal. \ + * **Enabled**: Enables computing feature importance within a signal. + */ +export type FeatureImportanceMode = string; + +/** Known values of {@link FeatureAttributionMetric} that the service accepts. */ +export enum KnownFeatureAttributionMetric { + /** The Normalized Discounted Cumulative Gain metric. */ + NormalizedDiscountedCumulativeGain = "NormalizedDiscountedCumulativeGain" +} + +/** + * Defines values for FeatureAttributionMetric. \ + * {@link KnownFeatureAttributionMetric} can be used interchangeably with FeatureAttributionMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NormalizedDiscountedCumulativeGain**: The Normalized Discounted Cumulative Gain metric. + */ +export type FeatureAttributionMetric = string; + /** Known values of {@link FeatureLags} that the service accepts. */ export enum KnownFeatureLags { /** No feature lags generated. */ @@ -7004,7 +8975,7 @@ export type FeatureLags = string; /** Known values of {@link ShortSeriesHandlingConfiguration} that the service accepts. */ export enum KnownShortSeriesHandlingConfiguration { - /** Represents no/null value. */ + /** 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", @@ -7121,11 +9092,11 @@ export enum KnownForecastingModels { /** 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. + * 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: 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", @@ -7377,6 +9348,75 @@ export enum KnownObjectDetectionPrimaryMetrics { */ export type ObjectDetectionPrimaryMetrics = string; +/** Known values of {@link NumericalDataDriftMetric} that the service accepts. */ +export enum KnownNumericalDataDriftMetric { + /** The Jensen Shannon Distance (JSD) metric. */ + JensenShannonDistance = "JensenShannonDistance", + /** The Population Stability Index (PSI) metric. */ + PopulationStabilityIndex = "PopulationStabilityIndex", + /** The Normalized Wasserstein Distance metric. */ + NormalizedWassersteinDistance = "NormalizedWassersteinDistance", + /** The Two Sample Kolmogorov-Smirnov Test (two-sample K–S) metric. */ + TwoSampleKolmogorovSmirnovTest = "TwoSampleKolmogorovSmirnovTest" +} + +/** + * Defines values for NumericalDataDriftMetric. \ + * {@link KnownNumericalDataDriftMetric} can be used interchangeably with NumericalDataDriftMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **JensenShannonDistance**: The Jensen Shannon Distance (JSD) metric. \ + * **PopulationStabilityIndex**: The Population Stability Index (PSI) metric. \ + * **NormalizedWassersteinDistance**: The Normalized Wasserstein Distance metric. \ + * **TwoSampleKolmogorovSmirnovTest**: The Two Sample Kolmogorov-Smirnov Test (two-sample K–S) metric. + */ +export type NumericalDataDriftMetric = string; + +/** Known values of {@link NumericalDataQualityMetric} that the service accepts. */ +export enum KnownNumericalDataQualityMetric { + /** Calculates the rate of null values. */ + NullValueRate = "NullValueRate", + /** Calculates the rate of data type errors. */ + DataTypeErrorRate = "DataTypeErrorRate", + /** Calculates the rate values are out of bounds. */ + OutOfBoundsRate = "OutOfBoundsRate" +} + +/** + * Defines values for NumericalDataQualityMetric. \ + * {@link KnownNumericalDataQualityMetric} can be used interchangeably with NumericalDataQualityMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NullValueRate**: Calculates the rate of null values. \ + * **DataTypeErrorRate**: Calculates the rate of data type errors. \ + * **OutOfBoundsRate**: Calculates the rate values are out of bounds. + */ +export type NumericalDataQualityMetric = string; + +/** Known values of {@link NumericalPredictionDriftMetric} that the service accepts. */ +export enum KnownNumericalPredictionDriftMetric { + /** The Jensen Shannon Distance (JSD) metric. */ + JensenShannonDistance = "JensenShannonDistance", + /** The Population Stability Index (PSI) metric. */ + PopulationStabilityIndex = "PopulationStabilityIndex", + /** The Normalized Wasserstein Distance metric. */ + NormalizedWassersteinDistance = "NormalizedWassersteinDistance", + /** The Two Sample Kolmogorov-Smirnov Test (two-sample K–S) metric. */ + TwoSampleKolmogorovSmirnovTest = "TwoSampleKolmogorovSmirnovTest" +} + +/** + * Defines values for NumericalPredictionDriftMetric. \ + * {@link KnownNumericalPredictionDriftMetric} can be used interchangeably with NumericalPredictionDriftMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **JensenShannonDistance**: The Jensen Shannon Distance (JSD) metric. \ + * **PopulationStabilityIndex**: The Population Stability Index (PSI) metric. \ + * **NormalizedWassersteinDistance**: The Normalized Wasserstein Distance metric. \ + * **TwoSampleKolmogorovSmirnovTest**: The Two Sample Kolmogorov-Smirnov Test (two-sample K–S) metric. + */ +export type NumericalPredictionDriftMetric = string; + /** Known values of {@link Goal} that the service accepts. */ export enum KnownGoal { /** Minimize */ @@ -7506,7 +9546,7 @@ export interface OperationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type OperationsListResponse = AmlOperationListResult; +export type OperationsListResponse = OperationListResult; /** Optional parameters. */ export interface WorkspacesGetOptionalParams @@ -7530,6 +9570,8 @@ export type WorkspacesCreateOrUpdateResponse = Workspace; /** Optional parameters. */ 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. */ @@ -7640,20 +9682,14 @@ export type WorkspacesListOutboundNetworkDependenciesEndpointsResponse = Externa /** Optional parameters. */ export interface WorkspacesListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult; /** Optional parameters. */ export interface WorkspacesListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult; @@ -7688,33 +9724,468 @@ 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 list operation. */ +export type QuotasListResponse = ListWorkspaceQuotas; + +/** Optional parameters. */ +export interface QuotasListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type QuotasListNextResponse = ListWorkspaceQuotas; + +/** Optional parameters. */ +export interface ComputeListOptionalParams extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the list operation. */ +export type ComputeListResponse = PaginatedComputeResourcesList; + +/** Optional parameters. */ +export interface ComputeGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ComputeGetResponse = ComputeResource; + +/** Optional parameters. */ +export interface ComputeCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ComputeCreateOrUpdateResponse = ComputeResource; + +/** Optional parameters. */ +export interface ComputeUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type ComputeUpdateResponse = ComputeResource; + +/** Optional parameters. */ +export interface ComputeDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ComputeListNodesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNodes operation. */ +export type ComputeListNodesResponse = AmlComputeNodesInformation; + +/** Optional parameters. */ +export interface ComputeListKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listKeys operation. */ +export type ComputeListKeysResponse = ComputeSecretsUnion; + +/** Optional parameters. */ +export interface ComputeStartOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ComputeStopOptionalParams extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ComputeRestartOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ComputeListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ComputeListNextResponse = PaginatedComputeResourcesList; + +/** Optional parameters. */ +export interface ComputeListNodesNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNodesNext operation. */ +export type ComputeListNodesNextResponse = AmlComputeNodesInformation; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface PrivateLinkResourcesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; + +/** Optional parameters. */ +export interface WorkspaceConnectionsCreateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the create operation. */ +export type WorkspaceConnectionsCreateResponse = WorkspaceConnectionPropertiesV2BasicResource; + +/** Optional parameters. */ +export interface WorkspaceConnectionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type WorkspaceConnectionsGetResponse = WorkspaceConnectionPropertiesV2BasicResource; + +/** Optional parameters. */ +export interface WorkspaceConnectionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface WorkspaceConnectionsListOptionalParams + extends coreClient.OperationOptions { + /** Target of the workspace connection. */ + target?: string; + /** Category of the workspace connection. */ + category?: string; +} + +/** Contains response data for the list operation. */ +export type WorkspaceConnectionsListResponse = WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult; + +/** 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 ManagedNetworkSettingsRuleListResponse = OutboundRuleListResult; + +/** Optional parameters. */ +export interface ManagedNetworkSettingsRuleDeleteOptionalParams + 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 ManagedNetworkSettingsRuleGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ManagedNetworkSettingsRuleGetResponse = OutboundRuleBasicResource; + +/** Optional parameters. */ +export interface ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams + 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 ManagedNetworkSettingsRuleCreateOrUpdateResponse = OutboundRuleBasicResource; + +/** Optional parameters. */ +export interface ManagedNetworkSettingsRuleListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ManagedNetworkSettingsRuleListNextResponse = OutboundRuleListResult; + +/** 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 RegistryCodeContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the list operation. */ +export type RegistryCodeContainersListResponse = CodeContainerResourceArmPaginatedResult; + +/** 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; +} + +/** Optional parameters. */ +export interface RegistryCodeContainersGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type RegistryCodeContainersGetResponse = CodeContainer; + +/** Optional parameters. */ +export interface RegistryCodeContainersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type RegistryCodeContainersCreateOrUpdateResponse = CodeContainer; + +/** Optional parameters. */ +export interface RegistryCodeContainersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type RegistryCodeContainersListNextResponse = CodeContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistryCodeVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; +} + +/** Contains response data for the list operation. */ +export type RegistryCodeVersionsListResponse = CodeVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistryCodeVersionsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface RegistryCodeVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** 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; +} + +/** Contains response data for the createOrUpdate operation. */ +export type RegistryCodeVersionsCreateOrUpdateResponse = CodeVersion; + +/** Optional parameters. */ +export interface RegistryCodeVersionsCreateOrGetStartPendingUploadOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrGetStartPendingUpload operation. */ +export type RegistryCodeVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; + +/** Optional parameters. */ +export interface RegistryCodeVersionsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type RegistryCodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistryComponentContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the list operation. */ +export type RegistryComponentContainersListResponse = ComponentContainerResourceArmPaginatedResult; + +/** 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; +} + +/** Optional parameters. */ +export interface RegistryComponentContainersGetOptionalParams + extends coreClient.OperationOptions {} + +/** 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; +} + +/** Contains response data for the createOrUpdate operation. */ +export type RegistryComponentContainersCreateOrUpdateResponse = ComponentContainer; + +/** 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; +} + +/** Contains response data for the list operation. */ +export type RegistryComponentVersionsListResponse = ComponentVersionResourceArmPaginatedResult; + +/** 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; +} + +/** Optional parameters. */ +export interface RegistryComponentVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** 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; +} + +/** Contains response data for the createOrUpdate operation. */ +export type RegistryComponentVersionsCreateOrUpdateResponse = ComponentVersion; /** Optional parameters. */ -export interface QuotasListNextOptionalParams +export interface RegistryComponentVersionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type QuotasListNextResponse = ListWorkspaceQuotas; +export type RegistryComponentVersionsListNextResponse = ComponentVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface ComputeListOptionalParams extends coreClient.OperationOptions { +export interface RegistryDataContainersListOptionalParams + 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 list operation. */ -export type ComputeListResponse = PaginatedComputeResourcesList; +export type RegistryDataContainersListResponse = DataContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface ComputeGetOptionalParams extends coreClient.OperationOptions {} +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; +} + +/** Optional parameters. */ +export interface RegistryDataContainersGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ComputeGetResponse = ComputeResource; +export type RegistryDataContainersGetResponse = DataContainer; /** Optional parameters. */ -export interface ComputeCreateOrUpdateOptionalParams +export interface RegistryDataContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7723,10 +10194,38 @@ export interface ComputeCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ComputeCreateOrUpdateResponse = ComputeResource; +export type RegistryDataContainersCreateOrUpdateResponse = DataContainer; /** Optional parameters. */ -export interface ComputeUpdateOptionalParams +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; +} + +/** Contains response data for the list operation. */ +export type RegistryDataVersionsListResponse = DataVersionBaseResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistryDataVersionsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7734,11 +10233,15 @@ export interface ComputeUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type ComputeUpdateResponse = ComputeResource; +/** Optional parameters. */ +export interface RegistryDataVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type RegistryDataVersionsGetResponse = DataVersionBase; /** Optional parameters. */ -export interface ComputeDeleteOptionalParams +export interface RegistryDataVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7746,22 +10249,44 @@ export interface ComputeDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type RegistryDataVersionsCreateOrUpdateResponse = DataVersionBase; + /** Optional parameters. */ -export interface ComputeListNodesOptionalParams +export interface RegistryDataVersionsCreateOrGetStartPendingUploadOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNodes operation. */ -export type ComputeListNodesResponse = AmlComputeNodesInformation; +/** Contains response data for the createOrGetStartPendingUpload operation. */ +export type RegistryDataVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; /** Optional parameters. */ -export interface ComputeListKeysOptionalParams +export interface RegistryDataVersionsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listKeys operation. */ -export type ComputeListKeysResponse = ComputeSecretsUnion; +/** Contains response data for the listNext operation. */ +export type RegistryDataVersionsListNextResponse = DataVersionBaseResourceArmPaginatedResult; /** Optional parameters. */ -export interface ComputeStartOptionalParams +export interface RegistryDataReferencesGetBlobReferenceSASOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getBlobReferenceSAS operation. */ +export type RegistryDataReferencesGetBlobReferenceSASResponse = GetBlobReferenceSASResponseDto; + +/** 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; +} + +/** Contains response data for the list operation. */ +export type RegistryEnvironmentContainersListResponse = EnvironmentContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistryEnvironmentContainersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7770,15 +10295,49 @@ export interface ComputeStartOptionalParams } /** Optional parameters. */ -export interface ComputeStopOptionalParams extends coreClient.OperationOptions { +export interface RegistryEnvironmentContainersGetOptionalParams + extends coreClient.OperationOptions {} + +/** 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; } +/** Contains response data for the createOrUpdate operation. */ +export type RegistryEnvironmentContainersCreateOrUpdateResponse = EnvironmentContainer; + /** Optional parameters. */ -export interface ComputeRestartOptionalParams +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; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; +} + +/** Contains response data for the list operation. */ +export type RegistryEnvironmentVersionsListResponse = EnvironmentVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistryEnvironmentVersionsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7787,95 +10346,143 @@ export interface ComputeRestartOptionalParams } /** Optional parameters. */ -export interface ComputeListNextOptionalParams +export interface RegistryEnvironmentVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type RegistryEnvironmentVersionsGetResponse = EnvironmentVersion; + +/** Optional parameters. */ +export interface RegistryEnvironmentVersionsCreateOrUpdateOptionalParams 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 createOrUpdate operation. */ +export type RegistryEnvironmentVersionsCreateOrUpdateResponse = EnvironmentVersion; /** Optional parameters. */ -export interface ComputeListNodesNextOptionalParams +export interface RegistryEnvironmentVersionsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNodesNext operation. */ -export type ComputeListNodesNextResponse = AmlComputeNodesInformation; +/** Contains response data for the listNext operation. */ +export type RegistryEnvironmentVersionsListNextResponse = EnvironmentVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface PrivateEndpointConnectionsListOptionalParams - extends coreClient.OperationOptions {} +export interface RegistryModelContainersListOptionalParams + 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 list operation. */ -export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; +export type RegistryModelContainersListResponse = ModelContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface PrivateEndpointConnectionsGetOptionalParams +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; +} + +/** Optional parameters. */ +export interface RegistryModelContainersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; +export type RegistryModelContainersGetResponse = ModelContainer; /** Optional parameters. */ -export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +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; +} /** Contains response data for the createOrUpdate operation. */ -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; +export type RegistryModelContainersCreateOrUpdateResponse = ModelContainer; /** Optional parameters. */ -export interface PrivateEndpointConnectionsDeleteOptionalParams +export interface RegistryModelContainersListNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type RegistryModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult; + /** Optional parameters. */ -export interface PrivateLinkResourcesListOptionalParams - extends coreClient.OperationOptions {} +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; +} /** Contains response data for the list operation. */ -export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; +export type RegistryModelVersionsListResponse = ModelVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface WorkspaceConnectionsCreateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the create operation. */ -export type WorkspaceConnectionsCreateResponse = WorkspaceConnectionPropertiesV2BasicResource; +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; +} /** Optional parameters. */ -export interface WorkspaceConnectionsGetOptionalParams +export interface RegistryModelVersionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkspaceConnectionsGetResponse = WorkspaceConnectionPropertiesV2BasicResource; +export type RegistryModelVersionsGetResponse = ModelVersion; /** Optional parameters. */ -export interface WorkspaceConnectionsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface WorkspaceConnectionsListOptionalParams +export interface RegistryModelVersionsCreateOrUpdateOptionalParams 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 RegistryModelVersionsCreateOrUpdateResponse = ModelVersion; /** Optional parameters. */ -export interface WorkspaceConnectionsListNextOptionalParams - extends coreClient.OperationOptions { - /** Target of the workspace connection. */ - target?: string; - /** Category of the workspace connection. */ - category?: string; -} +export interface RegistryModelVersionsCreateOrGetStartPendingUploadOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrGetStartPendingUpload operation. */ +export type RegistryModelVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; + +/** Optional parameters. */ +export interface RegistryModelVersionsListNextOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type WorkspaceConnectionsListNextResponse = WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult; +export type RegistryModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult; /** Optional parameters. */ export interface BatchEndpointsListOptionalParams @@ -7938,12 +10545,7 @@ export type BatchEndpointsListKeysResponse = EndpointAuthKeys; /** Optional parameters. */ export interface BatchEndpointsListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Number of endpoints to be retrieved in a page of results. */ - count?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type BatchEndpointsListNextResponse = BatchEndpointTrackedResourceArmPaginatedResult; @@ -8004,14 +10606,7 @@ export type BatchDeploymentsCreateOrUpdateResponse = BatchDeployment; /** Optional parameters. */ export interface BatchDeploymentsListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Top of list. */ - top?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type BatchDeploymentsListNextResponse = BatchDeploymentTrackedResourceArmPaginatedResult; @@ -8046,10 +10641,7 @@ export type CodeContainersCreateOrUpdateResponse = CodeContainer; /** Optional parameters. */ export interface CodeContainersListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type CodeContainersListNextResponse = CodeContainerResourceArmPaginatedResult; @@ -8063,6 +10655,10 @@ export interface CodeVersionsListOptionalParams 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. */ @@ -8087,16 +10683,25 @@ export interface CodeVersionsCreateOrUpdateOptionalParams export type CodeVersionsCreateOrUpdateResponse = CodeVersion; /** Optional parameters. */ -export interface CodeVersionsListNextOptionalParams +export interface CodeVersionsPublishOptionalParams 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; } +/** Optional parameters. */ +export interface CodeVersionsCreateOrGetStartPendingUploadOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrGetStartPendingUpload operation. */ +export type CodeVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; + +/** Optional parameters. */ +export interface CodeVersionsListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ export type CodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult; @@ -8132,12 +10737,7 @@ export type ComponentContainersCreateOrUpdateResponse = ComponentContainer; /** 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; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type ComponentContainersListNextResponse = ComponentContainerResourceArmPaginatedResult; @@ -8177,18 +10777,18 @@ export interface ComponentVersionsCreateOrUpdateOptionalParams export type ComponentVersionsCreateOrUpdateResponse = ComponentVersion; /** Optional parameters. */ -export interface ComponentVersionsListNextOptionalParams +export interface ComponentVersionsPublishOptionalParams 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; } +/** Optional parameters. */ +export interface ComponentVersionsListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ export type ComponentVersionsListNextResponse = ComponentVersionResourceArmPaginatedResult; @@ -8224,12 +10824,7 @@ export type DataContainersCreateOrUpdateResponse = DataContainer; /** 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; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type DataContainersListNextResponse = DataContainerResourceArmPaginatedResult; @@ -8274,23 +10869,18 @@ export interface DataVersionsCreateOrUpdateOptionalParams export type DataVersionsCreateOrUpdateResponse = DataVersionBase; /** Optional parameters. */ -export interface DataVersionsListNextOptionalParams +export interface DataVersionsPublishOptionalParams 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; } +/** Optional parameters. */ +export interface DataVersionsListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ export type DataVersionsListNextResponse = DataVersionBaseResourceArmPaginatedResult; @@ -8346,22 +10936,7 @@ export type DatastoresListSecretsResponse = DatastoreSecretsUnion; /** Optional parameters. */ export interface DatastoresListNextOptionalParams - 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; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type DatastoresListNextResponse = DatastoreResourceArmPaginatedResult; @@ -8398,12 +10973,7 @@ export type EnvironmentContainersCreateOrUpdateResponse = EnvironmentContainer; /** Optional parameters. */ export interface EnvironmentContainersListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type EnvironmentContainersListNextResponse = EnvironmentContainerResourceArmPaginatedResult; @@ -8443,18 +11013,18 @@ export interface EnvironmentVersionsCreateOrUpdateOptionalParams export type EnvironmentVersionsCreateOrUpdateResponse = EnvironmentVersion; /** Optional parameters. */ -export interface EnvironmentVersionsListNextOptionalParams +export interface EnvironmentVersionsPublishOptionalParams 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; } +/** Optional parameters. */ +export interface EnvironmentVersionsListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ export type EnvironmentVersionsListNextResponse = EnvironmentVersionResourceArmPaginatedResult; @@ -8464,6 +11034,8 @@ export interface JobsListOptionalParams extends coreClient.OperationOptions { skip?: string; /** View type for including/excluding (for example) archived entities. */ listViewType?: ListViewType; + /** Comma-separated list of user 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. */ @@ -8504,16 +11076,7 @@ export interface JobsCancelOptionalParams extends coreClient.OperationOptions { /** Optional parameters. */ export interface JobsListNextOptionalParams - 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; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type JobsListNextResponse = JobBaseResourceArmPaginatedResult; @@ -8523,10 +11086,10 @@ 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; + /** Maximum number of results to return. */ + count?: number; } /** Contains response data for the list operation. */ @@ -8552,14 +11115,7 @@ export type ModelContainersCreateOrUpdateResponse = ModelContainer; /** Optional parameters. */ export interface ModelContainersListNextOptionalParams - 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; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type ModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult; @@ -8579,12 +11135,12 @@ export interface ModelVersionsListOptionalParams 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; + /** Number of initial results to skip. */ + offset?: number; /** Name of the feed. */ feed?: string; } @@ -8611,30 +11167,18 @@ export interface ModelVersionsCreateOrUpdateOptionalParams export type ModelVersionsCreateOrUpdateResponse = ModelVersion; /** Optional parameters. */ -export interface ModelVersionsListNextOptionalParams +export interface ModelVersionsPublishOptionalParams 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; } +/** Optional parameters. */ +export interface ModelVersionsListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ export type ModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult; @@ -8643,12 +11187,12 @@ export interface OnlineEndpointsListOptionalParams 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; + /** Number of endpoints to be retrieved in a page of results. */ + count?: number; /** Name of the endpoint. */ name?: string; /** EndpointComputeType to be filtered by. */ @@ -8725,22 +11269,7 @@ export type OnlineEndpointsGetTokenResponse = EndpointAuthToken; /** 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; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type OnlineEndpointsListNextResponse = OnlineEndpointTrackedResourceArmPaginatedResult; @@ -8820,26 +11349,14 @@ export type OnlineDeploymentsListSkusResponse = SkuResourceArmPaginatedResult; /** Optional parameters. */ export interface OnlineDeploymentsListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Top of list. */ - top?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type OnlineDeploymentsListNextResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; /** Optional parameters. */ export interface OnlineDeploymentsListSkusNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Number of Skus to be retrieved in a page of results. */ - count?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listSkusNext operation. */ export type OnlineDeploymentsListSkusNextResponse = SkuResourceArmPaginatedResult; @@ -8886,15 +11403,85 @@ export type SchedulesCreateOrUpdateResponse = Schedule; /** Optional parameters. */ export interface SchedulesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type SchedulesListNextResponse = ScheduleResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistriesListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type RegistriesListBySubscriptionResponse = RegistryTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistriesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type RegistriesListResponse = RegistryTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistriesDeleteOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Status filter for schedule. */ - listViewType?: ScheduleListViewType; + /** 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 RegistriesGetResponse = Registry; + +/** Optional parameters. */ +export interface RegistriesUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type RegistriesUpdateResponse = Registry; + +/** Optional parameters. */ +export interface RegistriesCreateOrUpdateOptionalParams + 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 RegistriesCreateOrUpdateResponse = Registry; + +/** Optional parameters. */ +export interface RegistriesRemoveRegionsOptionalParams + 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 removeRegions operation. */ +export type RegistriesRemoveRegionsResponse = Registry; + +/** Optional parameters. */ +export interface RegistriesListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type RegistriesListBySubscriptionNextResponse = RegistryTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistriesListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ -export type SchedulesListNextResponse = ScheduleResourceArmPaginatedResult; +export type RegistriesListNextResponse = RegistryTrackedResourceArmPaginatedResult; /** Optional parameters. */ export interface WorkspaceFeaturesListOptionalParams @@ -8911,7 +11498,7 @@ export interface WorkspaceFeaturesListNextOptionalParams export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult; /** 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..d6826dcfcc5b 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 OperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlOperationListResult", + className: "OperationListResult", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AmlOperation" + className: "Operation" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const AmlOperation: coreClient.CompositeMapper = { +export const Operation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlOperation", + className: "Operation", modelProperties: { name: { serializedName: "name", + readOnly: true, type: { name: "String" } }, + isDataAction: { + serializedName: "isDataAction", + readOnly: true, + type: { + name: "Boolean" + } + }, display: { serializedName: "display", type: { name: "Composite", - className: "AmlOperationDisplay" + className: "OperationDisplay" } }, - isDataAction: { - serializedName: "isDataAction", + origin: { + serializedName: "origin", + readOnly: true, type: { - name: "Boolean" + name: "String" + } + }, + actionType: { + serializedName: "actionType", + readOnly: true, + type: { + name: "String" } } } } }; -export const AmlOperationDisplay: coreClient.CompositeMapper = { +export const OperationDisplay: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlOperationDisplay", + className: "OperationDisplay", modelProperties: { provider: { serializedName: "provider", + readOnly: true, type: { name: "String" } }, resource: { serializedName: "resource", + readOnly: true, type: { name: "String" } }, operation: { serializedName: "operation", + readOnly: true, type: { name: "String" } }, description: { serializedName: "description", + readOnly: true, type: { name: "String" } @@ -271,13 +299,6 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { type: { name: "String" } - }, - subnetArmId: { - serializedName: "subnetArmId", - readOnly: true, - type: { - name: "String" - } } } } @@ -614,6 +635,97 @@ export const CosmosDbSettings: coreClient.CompositeMapper = { } }; +export const ManagedNetworkSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedNetworkSettings", + modelProperties: { + isolationMode: { + serializedName: "isolationMode", + type: { + name: "String" + } + }, + networkId: { + serializedName: "networkId", + readOnly: true, + type: { + name: "String" + } + }, + outboundRules: { + serializedName: "outboundRules", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "OutboundRule" } } + } + }, + status: { + serializedName: "status", + type: { + name: "Composite", + className: "ManagedNetworkProvisionStatus" + } + } + } + } +}; + +export const OutboundRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OutboundRule", + uberParent: "OutboundRule", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + modelProperties: { + category: { + serializedName: "category", + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ManagedNetworkProvisionStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedNetworkProvisionStatus", + modelProperties: { + sparkReady: { + serializedName: "sparkReady", + type: { + name: "Boolean" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + } + } + } +}; + export const WorkspaceUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2234,10 +2346,10 @@ export const FqdnEndpointDetail: coreClient.CompositeMapper = { } }; -export const BatchEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const OutboundRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchEndpointTrackedResourceArmPaginatedResult", + className: "OutboundRuleListResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -2252,7 +2364,7 @@ export const BatchEndpointTrackedResourceArmPaginatedResult: coreClient.Composit element: { type: { name: "Composite", - className: "BatchEndpoint" + className: "OutboundRuleBasicResource" } } } @@ -2261,34 +2373,53 @@ export const BatchEndpointTrackedResourceArmPaginatedResult: coreClient.Composit } }; -export const BatchEndpointDefaults: coreClient.CompositeMapper = { +export const ManagedNetworkProvisionOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchEndpointDefaults", + className: "ManagedNetworkProvisionOptions", modelProperties: { - deploymentName: { - serializedName: "deploymentName", - nullable: true, + includeSpark: { + serializedName: "includeSpark", type: { - name: "String" + name: "Boolean" } } } } }; -export const EndpointPropertiesBase: coreClient.CompositeMapper = { +export const CodeContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointPropertiesBase", + className: "CodeContainerResourceArmPaginatedResult", modelProperties: { - authMode: { - serializedName: "authMode", - required: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CodeContainer" + } + } + } + } + } + } +}; + +export const ResourceBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceBase", + modelProperties: { description: { serializedName: "description", nullable: true, @@ -2296,13 +2427,6 @@ export const EndpointPropertiesBase: coreClient.CompositeMapper = { name: "String" } }, - keys: { - serializedName: "keys", - type: { - name: "Composite", - className: "EndpointAuthKeys" - } - }, properties: { serializedName: "properties", nullable: true, @@ -2311,41 +2435,88 @@ export const EndpointPropertiesBase: coreClient.CompositeMapper = { value: { type: { name: "String" } } } }, - scoringUri: { - serializedName: "scoringUri", - readOnly: true, + tags: { + serializedName: "tags", nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const CodeVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CodeVersionResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - swaggerUri: { - serializedName: "swaggerUri", - readOnly: true, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CodeVersion" + } + } + } + } + } + } +}; + +export const PendingUploadRequestDto: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PendingUploadRequestDto", + modelProperties: { + pendingUploadId: { + serializedName: "pendingUploadId", nullable: true, type: { name: "String" } + }, + pendingUploadType: { + serializedName: "pendingUploadType", + type: { + name: "String" + } } } } }; -export const EndpointAuthKeys: coreClient.CompositeMapper = { +export const PendingUploadResponseDto: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointAuthKeys", + className: "PendingUploadResponseDto", modelProperties: { - primaryKey: { - serializedName: "primaryKey", + blobReferenceForConsumption: { + serializedName: "blobReferenceForConsumption", + type: { + name: "Composite", + className: "BlobReferenceForConsumptionDto" + } + }, + pendingUploadId: { + serializedName: "pendingUploadId", nullable: true, type: { name: "String" } }, - secondaryKey: { - serializedName: "secondaryKey", - nullable: true, + pendingUploadType: { + serializedName: "pendingUploadType", type: { name: "String" } @@ -2354,50 +2525,61 @@ export const EndpointAuthKeys: coreClient.CompositeMapper = { } }; -export const PartialManagedServiceIdentity: coreClient.CompositeMapper = { +export const BlobReferenceForConsumptionDto: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartialManagedServiceIdentity", + className: "BlobReferenceForConsumptionDto", modelProperties: { - type: { - serializedName: "type", + blobUri: { + serializedName: "blobUri", + nullable: true, type: { name: "String" } }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + credential: { + serializedName: "credential", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "Composite", + className: "PendingUploadCredentialDto" + } + }, + storageAccountArmId: { + serializedName: "storageAccountArmId", + nullable: true, + type: { + name: "String" } } } } }; -export const PartialMinimalTrackedResource: coreClient.CompositeMapper = { +export const PendingUploadCredentialDto: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartialMinimalTrackedResource", + className: "PendingUploadCredentialDto", + uberParent: "PendingUploadCredentialDto", + polymorphicDiscriminator: { + serializedName: "credentialType", + clientName: "credentialType" + }, modelProperties: { - tags: { - serializedName: "tags", + credentialType: { + serializedName: "credentialType", + required: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } } } } }; -export const BatchDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const ComponentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchDeploymentTrackedResourceArmPaginatedResult", + className: "ComponentContainerResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -2412,7 +2594,7 @@ export const BatchDeploymentTrackedResourceArmPaginatedResult: coreClient.Compos element: { type: { name: "Composite", - className: "BatchDeployment" + className: "ComponentContainer" } } } @@ -2421,53 +2603,53 @@ export const BatchDeploymentTrackedResourceArmPaginatedResult: coreClient.Compos } }; -export const AssetReferenceBase: coreClient.CompositeMapper = { +export const ComponentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssetReferenceBase", - uberParent: "AssetReferenceBase", - polymorphicDiscriminator: { - serializedName: "referenceType", - clientName: "referenceType" - }, + className: "ComponentVersionResourceArmPaginatedResult", modelProperties: { - referenceType: { - serializedName: "referenceType", - required: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComponentVersion" + } + } + } } } } }; -export const ResourceConfiguration: coreClient.CompositeMapper = { +export const DataContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceConfiguration", + className: "DataContainerResourceArmPaginatedResult", modelProperties: { - instanceCount: { - defaultValue: 1, - serializedName: "instanceCount", - type: { - name: "Number" - } - }, - instanceType: { - serializedName: "instanceType", - nullable: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - properties: { - serializedName: "properties", - nullable: true, + value: { + serializedName: "value", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataContainer" + } } } } @@ -2475,134 +2657,115 @@ export const ResourceConfiguration: coreClient.CompositeMapper = { } }; -export const BatchRetrySettings: coreClient.CompositeMapper = { +export const DataVersionBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchRetrySettings", + className: "DataVersionBaseResourceArmPaginatedResult", modelProperties: { - maxRetries: { - defaultValue: 3, - serializedName: "maxRetries", + nextLink: { + serializedName: "nextLink", type: { - name: "Number" + name: "String" } }, - timeout: { - defaultValue: "PT30S", - serializedName: "timeout", + value: { + serializedName: "value", type: { - name: "TimeSpan" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataVersionBase" + } + } } } } } }; -export const EndpointDeploymentPropertiesBase: coreClient.CompositeMapper = { +export const GetBlobReferenceSASRequestDto: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointDeploymentPropertiesBase", + className: "GetBlobReferenceSASRequestDto", modelProperties: { - codeConfiguration: { - serializedName: "codeConfiguration", - type: { - name: "Composite", - className: "CodeConfiguration" - } - }, - description: { - serializedName: "description", + assetId: { + serializedName: "assetId", nullable: true, type: { name: "String" } }, - environmentId: { - serializedName: "environmentId", + blobUri: { + serializedName: "blobUri", nullable: true, type: { name: "String" } - }, - environmentVariables: { - serializedName: "environmentVariables", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - properties: { - serializedName: "properties", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } } } } }; -export const CodeConfiguration: coreClient.CompositeMapper = { +export const GetBlobReferenceSASResponseDto: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeConfiguration", + className: "GetBlobReferenceSASResponseDto", modelProperties: { - codeId: { - serializedName: "codeId", - nullable: true, - type: { - name: "String" - } - }, - scoringScript: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]"), - MinLength: 1 - }, - serializedName: "scoringScript", - required: true, + blobReferenceForConsumption: { + serializedName: "blobReferenceForConsumption", type: { - name: "String" + name: "Composite", + className: "GetBlobReferenceForConsumptionDto" } } } } }; -export const PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties: coreClient.CompositeMapper = { +export const GetBlobReferenceForConsumptionDto: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties", + className: "GetBlobReferenceForConsumptionDto", modelProperties: { - properties: { - serializedName: "properties", + blobUri: { + serializedName: "blobUri", + nullable: true, + type: { + name: "String" + } + }, + credential: { + serializedName: "credential", type: { name: "Composite", - className: "PartialBatchDeployment" + className: "DataReferenceCredential" } }, - tags: { - serializedName: "tags", + storageAccountArmId: { + serializedName: "storageAccountArmId", + nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } } } } }; -export const PartialBatchDeployment: coreClient.CompositeMapper = { +export const DataReferenceCredential: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartialBatchDeployment", + className: "DataReferenceCredential", + uberParent: "DataReferenceCredential", + polymorphicDiscriminator: { + serializedName: "credentialType", + clientName: "credentialType" + }, modelProperties: { - description: { - serializedName: "description", - nullable: true, + credentialType: { + serializedName: "credentialType", + required: true, type: { name: "String" } @@ -2611,10 +2774,10 @@ export const PartialBatchDeployment: coreClient.CompositeMapper = { } }; -export const CodeContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const EnvironmentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeContainerResourceArmPaginatedResult", + className: "EnvironmentContainerResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -2629,7 +2792,7 @@ export const CodeContainerResourceArmPaginatedResult: coreClient.CompositeMapper element: { type: { name: "Composite", - className: "CodeContainer" + className: "EnvironmentContainer" } } } @@ -2638,42 +2801,10 @@ export const CodeContainerResourceArmPaginatedResult: coreClient.CompositeMapper } }; -export const ResourceBase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceBase", - modelProperties: { - description: { - serializedName: "description", - nullable: true, - type: { - name: "String" - } - }, - properties: { - serializedName: "properties", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - tags: { - serializedName: "tags", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const CodeVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const EnvironmentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeVersionResourceArmPaginatedResult", + className: "EnvironmentVersionResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -2688,7 +2819,7 @@ export const CodeVersionResourceArmPaginatedResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "CodeVersion" + className: "EnvironmentVersion" } } } @@ -2697,91 +2828,94 @@ export const CodeVersionResourceArmPaginatedResult: coreClient.CompositeMapper = } }; -export const ComponentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const BuildContext: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentContainerResourceArmPaginatedResult", + className: "BuildContext", modelProperties: { - nextLink: { - serializedName: "nextLink", + contextUri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "contextUri", + required: true, type: { name: "String" } }, - value: { - serializedName: "value", + dockerfilePath: { + defaultValue: "Dockerfile", + serializedName: "dockerfilePath", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComponentContainer" - } - } + name: "String" } } } } }; -export const ComponentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const InferenceContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentVersionResourceArmPaginatedResult", + className: "InferenceContainerProperties", modelProperties: { - nextLink: { - serializedName: "nextLink", + livenessRoute: { + serializedName: "livenessRoute", type: { - name: "String" + name: "Composite", + className: "Route" } }, - value: { - serializedName: "value", + readinessRoute: { + serializedName: "readinessRoute", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComponentVersion" - } - } + name: "Composite", + className: "Route" + } + }, + scoringRoute: { + serializedName: "scoringRoute", + type: { + name: "Composite", + className: "Route" } } } } }; -export const DataContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const Route: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataContainerResourceArmPaginatedResult", + className: "Route", modelProperties: { - nextLink: { - serializedName: "nextLink", - type: { - name: "String" + path: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "path", + required: true, + type: { + name: "String" } }, - value: { - serializedName: "value", + port: { + serializedName: "port", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataContainer" - } - } + name: "Number" } } } } }; -export const DataVersionBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataVersionBaseResourceArmPaginatedResult", + className: "ModelContainerResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -2796,7 +2930,7 @@ export const DataVersionBaseResourceArmPaginatedResult: coreClient.CompositeMapp element: { type: { name: "Composite", - className: "DataVersionBase" + className: "ModelContainer" } } } @@ -2805,10 +2939,10 @@ export const DataVersionBaseResourceArmPaginatedResult: coreClient.CompositeMapp } }; -export const DatastoreResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const ModelVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatastoreResourceArmPaginatedResult", + className: "ModelVersionResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -2823,7 +2957,7 @@ export const DatastoreResourceArmPaginatedResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Datastore" + className: "ModelVersion" } } } @@ -2832,52 +2966,27 @@ export const DatastoreResourceArmPaginatedResult: coreClient.CompositeMapper = { } }; -export const DatastoreCredentials: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: { - serializedName: "credentialsType", - clientName: "credentialsType" - }, - modelProperties: { - credentialsType: { - serializedName: "credentialsType", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const DatastoreSecrets: coreClient.CompositeMapper = { +export const FlavorData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatastoreSecrets", - uberParent: "DatastoreSecrets", - polymorphicDiscriminator: { - serializedName: "secretsType", - clientName: "secretsType" - }, + className: "FlavorData", modelProperties: { - secretsType: { - serializedName: "secretsType", - required: true, + data: { + serializedName: "data", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const EnvironmentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const BatchEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentContainerResourceArmPaginatedResult", + className: "BatchEndpointTrackedResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -2892,7 +3001,7 @@ export const EnvironmentContainerResourceArmPaginatedResult: coreClient.Composit element: { type: { name: "Composite", - className: "EnvironmentContainer" + className: "BatchEndpoint" } } } @@ -2901,51 +3010,68 @@ export const EnvironmentContainerResourceArmPaginatedResult: coreClient.Composit } }; -export const EnvironmentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const BatchEndpointDefaults: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentVersionResourceArmPaginatedResult", + className: "BatchEndpointDefaults", modelProperties: { - nextLink: { - serializedName: "nextLink", + deploymentName: { + serializedName: "deploymentName", + nullable: true, type: { name: "String" } - }, - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EnvironmentVersion" - } - } - } } } } }; -export const BuildContext: coreClient.CompositeMapper = { +export const EndpointPropertiesBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildContext", + className: "EndpointPropertiesBase", modelProperties: { - contextUri: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "contextUri", + authMode: { + serializedName: "authMode", required: true, type: { name: "String" } }, - dockerfilePath: { - defaultValue: "Dockerfile", - serializedName: "dockerfilePath", + description: { + serializedName: "description", + nullable: true, + type: { + name: "String" + } + }, + keys: { + serializedName: "keys", + type: { + name: "Composite", + className: "EndpointAuthKeys" + } + }, + properties: { + serializedName: "properties", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + scoringUri: { + serializedName: "scoringUri", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + swaggerUri: { + serializedName: "swaggerUri", + readOnly: true, + nullable: true, type: { name: "String" } @@ -2954,66 +3080,73 @@ export const BuildContext: coreClient.CompositeMapper = { } }; -export const InferenceContainerProperties: coreClient.CompositeMapper = { +export const EndpointAuthKeys: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InferenceContainerProperties", + className: "EndpointAuthKeys", modelProperties: { - livenessRoute: { - serializedName: "livenessRoute", - type: { - name: "Composite", - className: "Route" - } - }, - readinessRoute: { - serializedName: "readinessRoute", + primaryKey: { + serializedName: "primaryKey", + nullable: true, type: { - name: "Composite", - className: "Route" + name: "String" } }, - scoringRoute: { - serializedName: "scoringRoute", + secondaryKey: { + serializedName: "secondaryKey", + nullable: true, type: { - name: "Composite", - className: "Route" + name: "String" } } } } }; -export const Route: coreClient.CompositeMapper = { +export const PartialManagedServiceIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Route", + className: "PartialManagedServiceIdentity", modelProperties: { - path: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "path", - required: true, + type: { + serializedName: "type", type: { name: "String" } }, - port: { - serializedName: "port", - required: true, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "Number" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } } } } }; -export const JobBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const PartialMinimalTrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobBaseResourceArmPaginatedResult", + className: "PartialMinimalTrackedResource", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const BatchDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchDeploymentTrackedResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -3028,7 +3161,7 @@ export const JobBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "JobBase" + className: "BatchDeployment" } } } @@ -3037,18 +3170,18 @@ export const JobBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { } }; -export const IdentityConfiguration: coreClient.CompositeMapper = { +export const AssetReferenceBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IdentityConfiguration", - uberParent: "IdentityConfiguration", + className: "AssetReferenceBase", + uberParent: "AssetReferenceBase", polymorphicDiscriminator: { - serializedName: "identityType", - clientName: "identityType" + serializedName: "referenceType", + clientName: "referenceType" }, modelProperties: { - identityType: { - serializedName: "identityType", + referenceType: { + serializedName: "referenceType", required: true, type: { name: "String" @@ -3058,162 +3191,209 @@ export const IdentityConfiguration: coreClient.CompositeMapper = { } }; -export const JobService: coreClient.CompositeMapper = { +export const ResourceConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobService", + className: "ResourceConfiguration", modelProperties: { - endpoint: { - serializedName: "endpoint", - nullable: true, + instanceCount: { + defaultValue: 1, + serializedName: "instanceCount", type: { - name: "String" + name: "Number" } }, - errorMessage: { - serializedName: "errorMessage", - readOnly: true, + instanceType: { + serializedName: "instanceType", nullable: true, type: { name: "String" } }, - jobServiceType: { - serializedName: "jobServiceType", + properties: { + serializedName: "properties", nullable: true, type: { - name: "String" - } - }, - port: { - serializedName: "port", - nullable: true, + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + } + } + } +}; + +export const BatchRetrySettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchRetrySettings", + modelProperties: { + maxRetries: { + defaultValue: 3, + serializedName: "maxRetries", type: { name: "Number" } }, - properties: { - serializedName: "properties", + timeout: { + defaultValue: "PT30S", + serializedName: "timeout", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const EndpointDeploymentPropertiesBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointDeploymentPropertiesBase", + modelProperties: { + codeConfiguration: { + serializedName: "codeConfiguration", + type: { + name: "Composite", + className: "CodeConfiguration" + } + }, + description: { + serializedName: "description", + nullable: true, + type: { + name: "String" + } + }, + environmentId: { + serializedName: "environmentId", + nullable: true, + type: { + name: "String" + } + }, + environmentVariables: { + serializedName: "environmentVariables", nullable: true, type: { name: "Dictionary", value: { type: { name: "String" } } } }, - status: { - serializedName: "status", - readOnly: true, + properties: { + serializedName: "properties", nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const CodeConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelContainerResourceArmPaginatedResult", + className: "CodeConfiguration", modelProperties: { - nextLink: { - serializedName: "nextLink", + codeId: { + serializedName: "codeId", + nullable: true, type: { name: "String" } }, - value: { - serializedName: "value", + scoringScript: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "scoringScript", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ModelContainer" - } - } + name: "String" } } } } }; -export const ModelVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelVersionResourceArmPaginatedResult", + className: + "PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties", modelProperties: { - nextLink: { - serializedName: "nextLink", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "PartialBatchDeployment" } }, - value: { - serializedName: "value", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ModelVersion" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const FlavorData: coreClient.CompositeMapper = { +export const PartialBatchDeployment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FlavorData", + className: "PartialBatchDeployment", modelProperties: { - data: { - serializedName: "data", + description: { + serializedName: "description", nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } } } } }; -export const OnlineEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const DestinationAsset: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointTrackedResourceArmPaginatedResult", + className: "DestinationAsset", modelProperties: { - nextLink: { - serializedName: "nextLink", + destinationName: { + serializedName: "destinationName", + nullable: true, type: { name: "String" } }, - value: { - serializedName: "value", + destinationVersion: { + serializedName: "destinationVersion", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OnlineEndpoint" - } - } + name: "String" + } + }, + registryName: { + serializedName: "registryName", + nullable: true, + type: { + name: "String" } } } } }; -export const OnlineDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const DatastoreResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineDeploymentTrackedResourceArmPaginatedResult", + className: "DatastoreResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -3228,7 +3408,7 @@ export const OnlineDeploymentTrackedResourceArmPaginatedResult: coreClient.Compo element: { type: { name: "Composite", - className: "OnlineDeployment" + className: "Datastore" } } } @@ -3237,92 +3417,39 @@ export const OnlineDeploymentTrackedResourceArmPaginatedResult: coreClient.Compo } }; -export const ProbeSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProbeSettings", - modelProperties: { - failureThreshold: { - defaultValue: 30, - serializedName: "failureThreshold", - type: { - name: "Number" - } - }, - initialDelay: { - serializedName: "initialDelay", - nullable: true, - type: { - name: "TimeSpan" - } - }, - period: { - defaultValue: "PT10S", - serializedName: "period", - type: { - name: "TimeSpan" - } - }, - successThreshold: { - defaultValue: 1, - serializedName: "successThreshold", - type: { - name: "Number" - } - }, - timeout: { - defaultValue: "PT2S", - serializedName: "timeout", - type: { - name: "TimeSpan" - } - } - } - } -}; - -export const OnlineRequestSettings: coreClient.CompositeMapper = { +export const DatastoreCredentials: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineRequestSettings", + className: "DatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: { + serializedName: "credentialsType", + clientName: "credentialsType" + }, modelProperties: { - maxConcurrentRequestsPerInstance: { - defaultValue: 1, - serializedName: "maxConcurrentRequestsPerInstance", - type: { - name: "Number" - } - }, - maxQueueWait: { - defaultValue: "PT0.5S", - serializedName: "maxQueueWait", - type: { - name: "TimeSpan" - } - }, - requestTimeout: { - defaultValue: "PT5S", - serializedName: "requestTimeout", + credentialsType: { + serializedName: "credentialsType", + required: true, type: { - name: "TimeSpan" + name: "String" } } } } }; -export const OnlineScaleSettings: coreClient.CompositeMapper = { +export const DatastoreSecrets: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineScaleSettings", - uberParent: "OnlineScaleSettings", + className: "DatastoreSecrets", + uberParent: "DatastoreSecrets", polymorphicDiscriminator: { - serializedName: "scaleType", - clientName: "scaleType" + serializedName: "secretsType", + clientName: "secretsType" }, modelProperties: { - scaleType: { - serializedName: "scaleType", + secretsType: { + serializedName: "secretsType", required: true, type: { name: "String" @@ -3332,88 +3459,167 @@ export const OnlineScaleSettings: coreClient.CompositeMapper = { } }; -export const PartialSku: coreClient.CompositeMapper = { +export const JobBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartialSku", + className: "JobBaseResourceArmPaginatedResult", modelProperties: { - capacity: { - serializedName: "capacity", + nextLink: { + serializedName: "nextLink", type: { - name: "Number" + name: "String" } }, - family: { - serializedName: "family", + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JobBase" + } + } + } + } + } + } +}; + +export const IdentityConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IdentityConfiguration", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: { + serializedName: "identityType", + clientName: "identityType" + }, + modelProperties: { + identityType: { + serializedName: "identityType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const JobService: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobService", + modelProperties: { + endpoint: { + serializedName: "endpoint", + nullable: true, type: { name: "String" } }, - name: { - serializedName: "name", + errorMessage: { + serializedName: "errorMessage", + readOnly: true, + nullable: true, type: { name: "String" } }, - size: { - serializedName: "size", + jobServiceType: { + serializedName: "jobServiceType", + nullable: true, type: { name: "String" } }, - tier: { - serializedName: "tier", + nodes: { + serializedName: "nodes", type: { - name: "Enum", - allowedValues: ["Free", "Basic", "Standard", "Premium"] + name: "Composite", + className: "Nodes" + } + }, + port: { + serializedName: "port", + nullable: true, + type: { + name: "Number" + } + }, + properties: { + serializedName: "properties", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + status: { + serializedName: "status", + readOnly: true, + nullable: true, + type: { + name: "String" } } } } }; -export const DeploymentLogsRequest: coreClient.CompositeMapper = { +export const Nodes: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentLogsRequest", + className: "Nodes", + uberParent: "Nodes", + polymorphicDiscriminator: { + serializedName: "nodesValueType", + clientName: "nodesValueType" + }, modelProperties: { - containerType: { - serializedName: "containerType", + nodesValueType: { + serializedName: "nodesValueType", + required: true, type: { name: "String" } - }, - tail: { - serializedName: "tail", - nullable: true, - type: { - name: "Number" - } } } } }; -export const DeploymentLogs: coreClient.CompositeMapper = { +export const OnlineEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentLogs", + className: "OnlineEndpointTrackedResourceArmPaginatedResult", modelProperties: { - content: { - serializedName: "content", - nullable: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OnlineEndpoint" + } + } + } } } } }; -export const SkuResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const OnlineDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SkuResourceArmPaginatedResult", + className: "OnlineDeploymentTrackedResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -3428,7 +3634,7 @@ export const SkuResourceArmPaginatedResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SkuResource" + className: "OnlineDeployment" } } } @@ -3437,65 +3643,93 @@ export const SkuResourceArmPaginatedResult: coreClient.CompositeMapper = { } }; -export const SkuResource: coreClient.CompositeMapper = { +export const ProbeSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SkuResource", + className: "ProbeSettings", modelProperties: { - capacity: { - serializedName: "capacity", + failureThreshold: { + defaultValue: 30, + serializedName: "failureThreshold", type: { - name: "Composite", - className: "SkuCapacity" + name: "Number" } }, - resourceType: { - serializedName: "resourceType", - readOnly: true, + initialDelay: { + serializedName: "initialDelay", nullable: true, type: { - name: "String" + name: "TimeSpan" } }, - sku: { - serializedName: "sku", + period: { + defaultValue: "PT10S", + serializedName: "period", type: { - name: "Composite", - className: "SkuSetting" + name: "TimeSpan" + } + }, + successThreshold: { + defaultValue: 1, + serializedName: "successThreshold", + type: { + name: "Number" + } + }, + timeout: { + defaultValue: "PT2S", + serializedName: "timeout", + type: { + name: "TimeSpan" } } } } }; -export const SkuCapacity: coreClient.CompositeMapper = { +export const OnlineRequestSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SkuCapacity", + className: "OnlineRequestSettings", modelProperties: { - default: { - defaultValue: 0, - serializedName: "default", + maxConcurrentRequestsPerInstance: { + defaultValue: 1, + serializedName: "maxConcurrentRequestsPerInstance", type: { name: "Number" } }, - maximum: { - defaultValue: 0, - serializedName: "maximum", + maxQueueWait: { + defaultValue: "PT0.5S", + serializedName: "maxQueueWait", type: { - name: "Number" + name: "TimeSpan" } }, - minimum: { - defaultValue: 0, - serializedName: "minimum", + requestTimeout: { + defaultValue: "PT5S", + serializedName: "requestTimeout", type: { - name: "Number" + name: "TimeSpan" } - }, + } + } + } +}; + +export const OnlineScaleSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineScaleSettings", + uberParent: "OnlineScaleSettings", + polymorphicDiscriminator: { + serializedName: "scaleType", + clientName: "scaleType" + }, + modelProperties: { scaleType: { serializedName: "scaleType", + required: true, type: { name: "String" } @@ -3504,17 +3738,31 @@ export const SkuCapacity: coreClient.CompositeMapper = { } }; -export const SkuSetting: coreClient.CompositeMapper = { +export const PartialSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SkuSetting", + className: "PartialSku", modelProperties: { + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } + }, + family: { + serializedName: "family", + type: { + name: "String" + } + }, name: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, serializedName: "name", - required: true, + type: { + name: "String" + } + }, + size: { + serializedName: "size", type: { name: "String" } @@ -3530,30 +3778,189 @@ export const SkuSetting: coreClient.CompositeMapper = { } }; -export const RegenerateEndpointKeysRequest: coreClient.CompositeMapper = { +export const DeploymentLogsRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegenerateEndpointKeysRequest", + className: "DeploymentLogsRequest", modelProperties: { - keyType: { - serializedName: "keyType", - required: true, + containerType: { + serializedName: "containerType", type: { name: "String" } }, - keyValue: { - serializedName: "keyValue", + tail: { + serializedName: "tail", nullable: true, type: { - name: "String" + name: "Number" } } } } }; -export const EndpointAuthToken: coreClient.CompositeMapper = { +export const DeploymentLogs: 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", + modelProperties: { + capacity: { + serializedName: "capacity", + type: { + name: "Composite", + className: "SkuCapacity" + } + }, + resourceType: { + serializedName: "resourceType", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "SkuSetting" + } + } + } + } +}; + +export const SkuCapacity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SkuCapacity", + modelProperties: { + default: { + defaultValue: 0, + serializedName: "default", + type: { + name: "Number" + } + }, + maximum: { + defaultValue: 0, + serializedName: "maximum", + type: { + name: "Number" + } + }, + minimum: { + defaultValue: 0, + serializedName: "minimum", + type: { + name: "Number" + } + }, + scaleType: { + serializedName: "scaleType", + type: { + name: "String" + } + } + } + } +}; + +export const SkuSetting: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SkuSetting", + modelProperties: { + name: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "Enum", + allowedValues: ["Free", "Basic", "Standard", "Premium"] + } + } + } + } +}; + +export const RegenerateEndpointKeysRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegenerateEndpointKeysRequest", + modelProperties: { + keyType: { + serializedName: "keyType", + required: true, + type: { + name: "String" + } + }, + keyValue: { + serializedName: "keyValue", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const EndpointAuthToken: coreClient.CompositeMapper = { type: { name: "Composite", className: "EndpointAuthToken", @@ -3680,27 +4087,41 @@ export const TriggerBase: coreClient.CompositeMapper = { } }; -export const ListAmlUserFeatureResult: coreClient.CompositeMapper = { +export const RegistryTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListAmlUserFeatureResult", + className: "RegistryTrackedResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AmlUserFeature" + className: "Registry" } } } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + } + } + } +}; + +export const ArmResourceId: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ArmResourceId", + modelProperties: { + resourceId: { + serializedName: "resourceId", + nullable: true, type: { name: "String" } @@ -3709,25 +4130,54 @@ export const ListAmlUserFeatureResult: coreClient.CompositeMapper = { } }; -export const AmlUserFeature: coreClient.CompositeMapper = { +export const RegistryPrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlUserFeature", + className: "RegistryPrivateEndpointConnection", modelProperties: { id: { serializedName: "id", + nullable: true, type: { name: "String" } }, - displayName: { - serializedName: "displayName", + location: { + serializedName: "location", + nullable: true, type: { name: "String" } }, - description: { - serializedName: "description", + groupIds: { + serializedName: "properties.groupIds", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + 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" } @@ -3736,365 +4186,248 @@ export const AmlUserFeature: coreClient.CompositeMapper = { } }; -export const ResourceId: coreClient.CompositeMapper = { +export const RegistryPrivateLinkServiceConnectionState: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceId", + className: "RegistryPrivateLinkServiceConnectionState", modelProperties: { - id: { - serializedName: "id", - required: true, + actionsRequired: { + serializedName: "actionsRequired", + nullable: true, type: { name: "String" } - } - } - } -}; - -export const AKSSchema: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AKSSchema", - modelProperties: { - properties: { - serializedName: "properties", + }, + description: { + serializedName: "description", + nullable: true, type: { - name: "Composite", - className: "AKSSchemaProperties" + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" } } } } }; -export const AKSSchemaProperties: coreClient.CompositeMapper = { +export const RegistryRegionArmDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AKSSchemaProperties", + className: "RegistryRegionArmDetails", modelProperties: { - clusterFqdn: { - serializedName: "clusterFqdn", - nullable: true, - type: { - name: "String" - } - }, - systemServices: { - serializedName: "systemServices", - readOnly: true, + acrDetails: { + serializedName: "acrDetails", nullable: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SystemService" + className: "AcrDetails" } } } }, - agentCount: { - constraints: { - InclusiveMinimum: 0 - }, - serializedName: "agentCount", - nullable: true, - type: { - name: "Number" - } - }, - agentVmSize: { - serializedName: "agentVmSize", + location: { + serializedName: "location", nullable: true, type: { name: "String" } }, - clusterPurpose: { - defaultValue: "FastProd", - serializedName: "clusterPurpose", - type: { - name: "String" - } - }, - sslConfiguration: { - serializedName: "sslConfiguration", - type: { - name: "Composite", - className: "SslConfiguration" - } - }, - aksNetworkingConfiguration: { - serializedName: "aksNetworkingConfiguration", - type: { - name: "Composite", - className: "AksNetworkingConfiguration" - } - }, - loadBalancerType: { - defaultValue: "PublicIp", - serializedName: "loadBalancerType", - type: { - name: "String" - } - }, - loadBalancerSubnet: { - serializedName: "loadBalancerSubnet", + storageAccountDetails: { + serializedName: "storageAccountDetails", nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageAccountDetails" + } + } } } } } }; -export const SystemService: coreClient.CompositeMapper = { +export const AcrDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemService", + className: "AcrDetails", modelProperties: { - systemServiceType: { - serializedName: "systemServiceType", - readOnly: true, + systemCreatedAcrAccount: { + serializedName: "systemCreatedAcrAccount", type: { - name: "String" - } - }, - publicIpAddress: { - serializedName: "publicIpAddress", - readOnly: true, - type: { - name: "String" + name: "Composite", + className: "SystemCreatedAcrAccount" } }, - version: { - serializedName: "version", - readOnly: true, + userCreatedAcrAccount: { + serializedName: "userCreatedAcrAccount", type: { - name: "String" + name: "Composite", + className: "UserCreatedAcrAccount" } } } } }; -export const SslConfiguration: coreClient.CompositeMapper = { +export const SystemCreatedAcrAccount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SslConfiguration", + className: "SystemCreatedAcrAccount", modelProperties: { - status: { - serializedName: "status", - type: { - name: "String" - } - }, - cert: { - serializedName: "cert", - nullable: true, - type: { - name: "String" - } - }, - key: { - serializedName: "key", - nullable: true, - type: { - name: "String" - } - }, - cname: { - serializedName: "cname", + acrAccountName: { + serializedName: "acrAccountName", nullable: true, type: { name: "String" } }, - leafDomainLabel: { - serializedName: "leafDomainLabel", + acrAccountSku: { + serializedName: "acrAccountSku", nullable: true, type: { name: "String" } }, - overwriteExistingDomain: { - serializedName: "overwriteExistingDomain", + armResourceId: { + serializedName: "armResourceId", type: { - name: "Boolean" + name: "Composite", + className: "ArmResourceId" } } } } }; -export const AksNetworkingConfiguration: coreClient.CompositeMapper = { +export const UserCreatedAcrAccount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AksNetworkingConfiguration", + className: "UserCreatedAcrAccount", modelProperties: { - subnetId: { - serializedName: "subnetId", - 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", - type: { - name: "String" - } - }, - dnsServiceIP: { - constraints: { - Pattern: new RegExp( - "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$" - ) - }, - serializedName: "dnsServiceIP", - type: { - name: "String" - } - }, - dockerBridgeCidr: { - constraints: { - Pattern: new RegExp( - "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$" - ) - }, - serializedName: "dockerBridgeCidr", + armResourceId: { + serializedName: "armResourceId", type: { - name: "String" + name: "Composite", + className: "ArmResourceId" } } } } }; -export const KubernetesSchema: coreClient.CompositeMapper = { +export const StorageAccountDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KubernetesSchema", + className: "StorageAccountDetails", modelProperties: { - properties: { - serializedName: "properties", + systemCreatedStorageAccount: { + serializedName: "systemCreatedStorageAccount", type: { name: "Composite", - className: "KubernetesProperties" + className: "SystemCreatedStorageAccount" + } + }, + userCreatedStorageAccount: { + serializedName: "userCreatedStorageAccount", + type: { + name: "Composite", + className: "UserCreatedStorageAccount" } } } } }; -export const KubernetesProperties: coreClient.CompositeMapper = { +export const SystemCreatedStorageAccount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KubernetesProperties", + className: "SystemCreatedStorageAccount", modelProperties: { - relayConnectionString: { - serializedName: "relayConnectionString", - nullable: true, - type: { - name: "String" - } - }, - serviceBusConnectionString: { - serializedName: "serviceBusConnectionString", - nullable: true, + allowBlobPublicAccess: { + serializedName: "allowBlobPublicAccess", type: { - name: "String" - } - }, - extensionPrincipalId: { - serializedName: "extensionPrincipalId", - nullable: true, - type: { - name: "String" + name: "Boolean" } }, - extensionInstanceReleaseTrain: { - serializedName: "extensionInstanceReleaseTrain", + armResourceId: { + serializedName: "armResourceId", type: { - name: "String" + name: "Composite", + className: "ArmResourceId" } }, - vcName: { - serializedName: "vcName", + storageAccountHnsEnabled: { + serializedName: "storageAccountHnsEnabled", type: { - name: "String" + name: "Boolean" } }, - namespace: { - defaultValue: "default", - serializedName: "namespace", + storageAccountName: { + serializedName: "storageAccountName", + nullable: true, type: { name: "String" } }, - defaultInstanceType: { - serializedName: "defaultInstanceType", + storageAccountType: { + serializedName: "storageAccountType", + nullable: true, type: { name: "String" } - }, - instanceTypes: { - serializedName: "instanceTypes", - type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "InstanceTypeSchema" } - } - } } } } }; -export const InstanceTypeSchema: coreClient.CompositeMapper = { +export const UserCreatedStorageAccount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceTypeSchema", + className: "UserCreatedStorageAccount", modelProperties: { - nodeSelector: { - serializedName: "nodeSelector", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - resources: { - serializedName: "resources", + armResourceId: { + serializedName: "armResourceId", type: { name: "Composite", - className: "InstanceTypeSchemaResources" + className: "ArmResourceId" } } } } }; -export const InstanceTypeSchemaResources: coreClient.CompositeMapper = { +export const PartialRegistryPartialTrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceTypeSchemaResources", + className: "PartialRegistryPartialTrackedResource", modelProperties: { - requests: { - serializedName: "requests", + identity: { + serializedName: "identity", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "RegistryPartialManagedServiceIdentity" } }, - limits: { - serializedName: "limits", + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "PartialSku" + } + }, + tags: { + serializedName: "tags", type: { name: "Dictionary", value: { type: { name: "String" } } @@ -4104,87 +4437,108 @@ export const InstanceTypeSchemaResources: coreClient.CompositeMapper = { } }; -export const AmlComputeProperties: coreClient.CompositeMapper = { +export const ListAmlUserFeatureResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeProperties", + className: "ListAmlUserFeatureResult", modelProperties: { - osType: { - defaultValue: "Linux", - serializedName: "osType", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AmlUserFeature" + } + } } }, - vmSize: { - serializedName: "vmSize", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - vmPriority: { - serializedName: "vmPriority", + } + } + } +}; + +export const AmlUserFeature: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlUserFeature", + modelProperties: { + id: { + serializedName: "id", type: { name: "String" } }, - virtualMachineImage: { - serializedName: "virtualMachineImage", - type: { - name: "Composite", - className: "VirtualMachineImage" - } - }, - isolatedNetwork: { - serializedName: "isolatedNetwork", + displayName: { + serializedName: "displayName", type: { - name: "Boolean" + name: "String" } }, - scaleSettings: { - serializedName: "scaleSettings", + description: { + serializedName: "description", type: { - name: "Composite", - className: "ScaleSettings" + name: "String" } - }, - userAccountCredentials: { - serializedName: "userAccountCredentials", + } + } + } +}; + +export const ResourceId: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceId", + modelProperties: { + id: { + serializedName: "id", + required: true, type: { - name: "Composite", - className: "UserAccountCredentials" + name: "String" } - }, - subnet: { - serializedName: "subnet", + } + } + } +}; + +export const AKSSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AKSSchema", + modelProperties: { + properties: { + serializedName: "properties", type: { name: "Composite", - className: "ResourceId" - } - }, - remoteLoginPortPublicAccess: { - defaultValue: "NotSpecified", - serializedName: "remoteLoginPortPublicAccess", - type: { - name: "String" + className: "AKSSchemaProperties" } - }, - allocationState: { - serializedName: "allocationState", - readOnly: true, + } + } + } +}; + +export const AKSSchemaProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AKSSchemaProperties", + modelProperties: { + clusterFqdn: { + serializedName: "clusterFqdn", + nullable: true, type: { name: "String" } }, - allocationStateTransitionTime: { - serializedName: "allocationStateTransitionTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - errors: { - serializedName: "errors", + systemServices: { + serializedName: "systemServices", readOnly: true, nullable: true, type: { @@ -4192,62 +4546,59 @@ export const AmlComputeProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorResponse" + className: "SystemService" } } } }, - currentNodeCount: { - serializedName: "currentNodeCount", - readOnly: true, + agentCount: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "agentCount", nullable: true, type: { name: "Number" } }, - targetNodeCount: { - serializedName: "targetNodeCount", - readOnly: true, + agentVmSize: { + serializedName: "agentVmSize", nullable: true, type: { - name: "Number" + name: "String" } }, - nodeStateCounts: { - serializedName: "nodeStateCounts", + clusterPurpose: { + defaultValue: "FastProd", + serializedName: "clusterPurpose", + type: { + name: "String" + } + }, + sslConfiguration: { + serializedName: "sslConfiguration", type: { name: "Composite", - className: "NodeStateCounts" + className: "SslConfiguration" } }, - enableNodePublicIp: { - defaultValue: true, - serializedName: "enableNodePublicIp", - nullable: true, + aksNetworkingConfiguration: { + serializedName: "aksNetworkingConfiguration", type: { - name: "Boolean" + name: "Composite", + className: "AksNetworkingConfiguration" } }, - propertyBag: { - serializedName: "propertyBag", - nullable: true, + loadBalancerType: { + defaultValue: "PublicIp", + serializedName: "loadBalancerType", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } - } - } - } -}; - -export const VirtualMachineImage: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineImage", - modelProperties: { - id: { - serializedName: "id", - required: true, + }, + loadBalancerSubnet: { + serializedName: "loadBalancerSubnet", + nullable: true, type: { name: "String" } @@ -4256,26 +4607,28 @@ export const VirtualMachineImage: coreClient.CompositeMapper = { } }; -export const UserAccountCredentials: coreClient.CompositeMapper = { +export const SystemService: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserAccountCredentials", + className: "SystemService", modelProperties: { - adminUserName: { - serializedName: "adminUserName", - required: true, + systemServiceType: { + serializedName: "systemServiceType", + readOnly: true, type: { name: "String" } }, - adminUserSshPublicKey: { - serializedName: "adminUserSshPublicKey", + publicIpAddress: { + serializedName: "publicIpAddress", + readOnly: true, type: { name: "String" } }, - adminUserPassword: { - serializedName: "adminUserPassword", + version: { + serializedName: "version", + readOnly: true, type: { name: "String" } @@ -4284,196 +4637,311 @@ export const UserAccountCredentials: coreClient.CompositeMapper = { } }; -export const NodeStateCounts: coreClient.CompositeMapper = { +export const SslConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NodeStateCounts", + className: "SslConfiguration", modelProperties: { - idleNodeCount: { - serializedName: "idleNodeCount", - readOnly: true, + status: { + serializedName: "status", type: { - name: "Number" + name: "String" } }, - runningNodeCount: { - serializedName: "runningNodeCount", - readOnly: true, + cert: { + serializedName: "cert", + nullable: true, type: { - name: "Number" + name: "String" } }, - preparingNodeCount: { - serializedName: "preparingNodeCount", - readOnly: true, + key: { + serializedName: "key", + nullable: true, type: { - name: "Number" + name: "String" } }, - unusableNodeCount: { - serializedName: "unusableNodeCount", - readOnly: true, + cname: { + serializedName: "cname", + nullable: true, type: { - name: "Number" + name: "String" } }, - leavingNodeCount: { - serializedName: "leavingNodeCount", - readOnly: true, + leafDomainLabel: { + serializedName: "leafDomainLabel", + nullable: true, type: { - name: "Number" + name: "String" } }, - preemptedNodeCount: { - serializedName: "preemptedNodeCount", - readOnly: true, + overwriteExistingDomain: { + serializedName: "overwriteExistingDomain", type: { - name: "Number" + name: "Boolean" } } } } }; -export const AmlComputeSchema: coreClient.CompositeMapper = { +export const AksNetworkingConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeSchema", + className: "AksNetworkingConfiguration", modelProperties: { - properties: { - serializedName: "properties", + subnetId: { + serializedName: "subnetId", type: { - name: "Composite", - className: "AmlComputeProperties" + name: "String" } - } + }, + serviceCidr: { + constraints: { + Pattern: new RegExp( + "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$" + ) + }, + serializedName: "serviceCidr", + type: { + name: "String" + } + }, + dnsServiceIP: { + constraints: { + Pattern: new RegExp( + "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$" + ) + }, + serializedName: "dnsServiceIP", + type: { + name: "String" + } + }, + dockerBridgeCidr: { + constraints: { + Pattern: new RegExp( + "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$" + ) + }, + serializedName: "dockerBridgeCidr", + type: { + name: "String" + } + } } } }; -export const ComputeInstanceProperties: coreClient.CompositeMapper = { +export const KubernetesSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceProperties", + className: "KubernetesSchema", modelProperties: { - vmSize: { - serializedName: "vmSize", + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "KubernetesProperties" + } + } + } + } +}; + +export const KubernetesProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KubernetesProperties", + modelProperties: { + relayConnectionString: { + serializedName: "relayConnectionString", + nullable: true, type: { name: "String" } }, - subnet: { - serializedName: "subnet", + serviceBusConnectionString: { + serializedName: "serviceBusConnectionString", + nullable: true, type: { - name: "Composite", - className: "ResourceId" + name: "String" } }, - applicationSharingPolicy: { - defaultValue: "Shared", - serializedName: "applicationSharingPolicy", + extensionPrincipalId: { + serializedName: "extensionPrincipalId", + nullable: true, type: { name: "String" } }, - sshSettings: { - serializedName: "sshSettings", + extensionInstanceReleaseTrain: { + serializedName: "extensionInstanceReleaseTrain", type: { - name: "Composite", - className: "ComputeInstanceSshSettings" + name: "String" } }, - connectivityEndpoints: { - serializedName: "connectivityEndpoints", + vcName: { + serializedName: "vcName", type: { - name: "Composite", - className: "ComputeInstanceConnectivityEndpoints" + name: "String" } }, - applications: { - serializedName: "applications", - readOnly: true, + namespace: { + defaultValue: "default", + serializedName: "namespace", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeInstanceApplication" - } + name: "String" + } + }, + defaultInstanceType: { + serializedName: "defaultInstanceType", + type: { + name: "String" + } + }, + instanceTypes: { + serializedName: "instanceTypes", + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "InstanceTypeSchema" } } } + } + } + } +}; + +export const InstanceTypeSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceTypeSchema", + modelProperties: { + nodeSelector: { + serializedName: "nodeSelector", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } }, - createdBy: { - serializedName: "createdBy", + resources: { + serializedName: "resources", type: { name: "Composite", - className: "ComputeInstanceCreatedBy" + className: "InstanceTypeSchemaResources" + } + } + } + } +}; + +export const InstanceTypeSchemaResources: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceTypeSchemaResources", + modelProperties: { + requests: { + serializedName: "requests", + type: { + name: "Dictionary", + value: { type: { name: "String" } } } }, - errors: { - serializedName: "errors", - readOnly: true, + limits: { + serializedName: "limits", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorResponse" - } - } + 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" } }, - state: { - serializedName: "state", - readOnly: true, + vmSize: { + serializedName: "vmSize", type: { name: "String" } }, - computeInstanceAuthorizationType: { - defaultValue: "personal", - serializedName: "computeInstanceAuthorizationType", - nullable: true, + vmPriority: { + serializedName: "vmPriority", type: { name: "String" } }, - personalComputeInstanceSettings: { - serializedName: "personalComputeInstanceSettings", + virtualMachineImage: { + serializedName: "virtualMachineImage", type: { name: "Composite", - className: "PersonalComputeInstanceSettings" + className: "VirtualMachineImage" } }, - setupScripts: { - serializedName: "setupScripts", + isolatedNetwork: { + serializedName: "isolatedNetwork", + type: { + name: "Boolean" + } + }, + scaleSettings: { + serializedName: "scaleSettings", type: { name: "Composite", - className: "SetupScripts" + className: "ScaleSettings" } }, - lastOperation: { - serializedName: "lastOperation", + userAccountCredentials: { + serializedName: "userAccountCredentials", type: { name: "Composite", - className: "ComputeInstanceLastOperation" + className: "UserAccountCredentials" } }, - schedules: { - serializedName: "schedules", + subnet: { + serializedName: "subnet", type: { name: "Composite", - className: "ComputeSchedules" + className: "ResourceId" } }, - enableNodePublicIp: { - serializedName: "enableNodePublicIp", + remoteLoginPortPublicAccess: { + defaultValue: "NotSpecified", + serializedName: "remoteLoginPortPublicAccess", type: { - name: "Boolean" + name: "String" } }, - containers: { - serializedName: "containers", + allocationState: { + serializedName: "allocationState", + readOnly: true, + type: { + name: "String" + } + }, + allocationStateTransitionTime: { + serializedName: "allocationStateTransitionTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + errors: { + serializedName: "errors", readOnly: true, nullable: true, type: { @@ -4481,103 +4949,62 @@ export const ComputeInstanceProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ComputeInstanceContainer" + className: "ErrorResponse" } } } }, - dataDisks: { - serializedName: "dataDisks", + currentNodeCount: { + serializedName: "currentNodeCount", readOnly: true, nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeInstanceDataDisk" - } - } + name: "Number" } }, - dataMounts: { - serializedName: "dataMounts", + targetNodeCount: { + serializedName: "targetNodeCount", readOnly: true, nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeInstanceDataMount" - } - } + name: "Number" } }, - versions: { - serializedName: "versions", + nodeStateCounts: { + serializedName: "nodeStateCounts", type: { name: "Composite", - className: "ComputeInstanceVersion" - } - } - } - } -}; - -export const ComputeInstanceSshSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeInstanceSshSettings", - modelProperties: { - sshPublicAccess: { - defaultValue: "Disabled", - serializedName: "sshPublicAccess", - type: { - name: "String" - } - }, - adminUserName: { - serializedName: "adminUserName", - readOnly: true, - type: { - name: "String" + className: "NodeStateCounts" } }, - sshPort: { - serializedName: "sshPort", - readOnly: true, + enableNodePublicIp: { + defaultValue: true, + serializedName: "enableNodePublicIp", + nullable: true, type: { - name: "Number" + name: "Boolean" } }, - adminPublicKey: { - serializedName: "adminPublicKey", + propertyBag: { + serializedName: "propertyBag", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const ComputeInstanceConnectivityEndpoints: coreClient.CompositeMapper = { +export const VirtualMachineImage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceConnectivityEndpoints", + className: "VirtualMachineImage", modelProperties: { - publicIpAddress: { - serializedName: "publicIpAddress", - readOnly: true, - nullable: true, - type: { - name: "String" - } - }, - privateIpAddress: { - serializedName: "privateIpAddress", - readOnly: true, - nullable: true, + id: { + serializedName: "id", + required: true, type: { name: "String" } @@ -4586,19 +5013,26 @@ export const ComputeInstanceConnectivityEndpoints: coreClient.CompositeMapper = } }; -export const ComputeInstanceApplication: coreClient.CompositeMapper = { +export const UserAccountCredentials: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceApplication", + className: "UserAccountCredentials", modelProperties: { - displayName: { - serializedName: "displayName", + adminUserName: { + serializedName: "adminUserName", + required: true, type: { name: "String" } }, - endpointUri: { - serializedName: "endpointUri", + adminUserSshPublicKey: { + serializedName: "adminUserSshPublicKey", + type: { + name: "String" + } + }, + adminUserPassword: { + serializedName: "adminUserPassword", type: { name: "String" } @@ -4607,343 +5041,295 @@ export const ComputeInstanceApplication: coreClient.CompositeMapper = { } }; -export const ComputeInstanceCreatedBy: coreClient.CompositeMapper = { +export const NodeStateCounts: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceCreatedBy", + className: "NodeStateCounts", modelProperties: { - userName: { - serializedName: "userName", + idleNodeCount: { + serializedName: "idleNodeCount", readOnly: true, - nullable: true, type: { - name: "String" + name: "Number" } }, - userOrgId: { - serializedName: "userOrgId", + runningNodeCount: { + serializedName: "runningNodeCount", readOnly: true, type: { - name: "String" + name: "Number" } }, - userId: { - serializedName: "userId", + preparingNodeCount: { + serializedName: "preparingNodeCount", readOnly: true, - nullable: true, type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const PersonalComputeInstanceSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PersonalComputeInstanceSettings", - modelProperties: { - assignedUser: { - serializedName: "assignedUser", + }, + unusableNodeCount: { + serializedName: "unusableNodeCount", + readOnly: true, type: { - name: "Composite", - className: "AssignedUser" + name: "Number" } - } - } - } -}; - -export const AssignedUser: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AssignedUser", - modelProperties: { - objectId: { - serializedName: "objectId", - required: true, + }, + leavingNodeCount: { + serializedName: "leavingNodeCount", + readOnly: true, type: { - name: "String" + name: "Number" } }, - tenantId: { - serializedName: "tenantId", - required: true, + preemptedNodeCount: { + serializedName: "preemptedNodeCount", + readOnly: true, type: { - name: "String" + name: "Number" } } } } }; -export const SetupScripts: coreClient.CompositeMapper = { +export const AmlComputeSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SetupScripts", + className: "AmlComputeSchema", modelProperties: { - scripts: { - serializedName: "scripts", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "ScriptsToExecute" + className: "AmlComputeProperties" } } } } }; -export const ScriptsToExecute: coreClient.CompositeMapper = { +export const ComputeInstanceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScriptsToExecute", + className: "ComputeInstanceProperties", modelProperties: { - startupScript: { - serializedName: "startupScript", + vmSize: { + serializedName: "vmSize", type: { - name: "Composite", - className: "ScriptReference" + name: "String" } }, - creationScript: { - serializedName: "creationScript", + subnet: { + serializedName: "subnet", type: { name: "Composite", - className: "ScriptReference" + className: "ResourceId" } - } - } - } -}; - -export const ScriptReference: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScriptReference", - modelProperties: { - scriptSource: { - serializedName: "scriptSource", + }, + applicationSharingPolicy: { + defaultValue: "Shared", + serializedName: "applicationSharingPolicy", type: { name: "String" } }, - scriptData: { - serializedName: "scriptData", + sshSettings: { + serializedName: "sshSettings", type: { - name: "String" + name: "Composite", + className: "ComputeInstanceSshSettings" } }, - scriptArguments: { - serializedName: "scriptArguments", + customServices: { + serializedName: "customServices", + nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CustomService" + } + } } }, - timeout: { - serializedName: "timeout", + osImageMetadata: { + serializedName: "osImageMetadata", type: { - name: "String" + name: "Composite", + className: "ImageMetadata" } - } - } - } -}; - -export const ComputeInstanceLastOperation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeInstanceLastOperation", - modelProperties: { - operationName: { - serializedName: "operationName", + }, + connectivityEndpoints: { + serializedName: "connectivityEndpoints", type: { - name: "String" + name: "Composite", + className: "ComputeInstanceConnectivityEndpoints" } }, - operationTime: { - serializedName: "operationTime", + applications: { + serializedName: "applications", + readOnly: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeInstanceApplication" + } + } } }, - operationStatus: { - serializedName: "operationStatus", + createdBy: { + serializedName: "createdBy", type: { - name: "String" + name: "Composite", + className: "ComputeInstanceCreatedBy" } }, - operationTrigger: { - serializedName: "operationTrigger", - type: { - name: "String" - } - } - } - } -}; - -export const ComputeSchedules: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeSchedules", - modelProperties: { - computeStartStop: { - serializedName: "computeStartStop", + errors: { + serializedName: "errors", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ComputeStartStopSchedule" + className: "ErrorResponse" } } } - } - } - } -}; - -export const ComputeStartStopSchedule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeStartStopSchedule", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - nullable: true, - type: { - name: "String" - } }, - provisioningStatus: { - serializedName: "provisioningStatus", + state: { + serializedName: "state", readOnly: true, type: { name: "String" } }, - status: { - serializedName: "status", + computeInstanceAuthorizationType: { + defaultValue: "personal", + serializedName: "computeInstanceAuthorizationType", + nullable: true, type: { name: "String" } }, - action: { - serializedName: "action", + personalComputeInstanceSettings: { + serializedName: "personalComputeInstanceSettings", type: { - name: "String" + name: "Composite", + className: "PersonalComputeInstanceSettings" } }, - triggerType: { - serializedName: "triggerType", + setupScripts: { + serializedName: "setupScripts", type: { - name: "String" + name: "Composite", + className: "SetupScripts" } }, - recurrence: { - serializedName: "recurrence", + lastOperation: { + serializedName: "lastOperation", type: { name: "Composite", - className: "RecurrenceTrigger" + className: "ComputeInstanceLastOperation" } }, - cron: { - serializedName: "cron", + schedules: { + serializedName: "schedules", type: { name: "Composite", - className: "CronTrigger" + className: "ComputeSchedules" } }, - schedule: { - serializedName: "schedule", + enableNodePublicIp: { + serializedName: "enableNodePublicIp", type: { - name: "Composite", - className: "ScheduleBase" + name: "Boolean" } - } - } - } -}; - -export const RecurrenceSchedule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RecurrenceSchedule", - modelProperties: { - hours: { - serializedName: "hours", - required: true, + }, + containers: { + serializedName: "containers", + readOnly: true, + nullable: true, type: { name: "Sequence", element: { type: { - name: "Number" + name: "Composite", + className: "ComputeInstanceContainer" } } } }, - minutes: { - serializedName: "minutes", - required: true, + dataDisks: { + serializedName: "dataDisks", + readOnly: true, + nullable: true, type: { name: "Sequence", element: { type: { - name: "Number" + name: "Composite", + className: "ComputeInstanceDataDisk" } } } }, - monthDays: { - serializedName: "monthDays", + dataMounts: { + serializedName: "dataMounts", + readOnly: true, nullable: true, type: { name: "Sequence", element: { type: { - name: "Number" + name: "Composite", + className: "ComputeInstanceDataMount" } } } }, - weekDays: { - serializedName: "weekDays", - nullable: true, + versions: { + serializedName: "versions", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "ComputeInstanceVersion" } } } } }; -export const ScheduleBase: coreClient.CompositeMapper = { +export const ComputeInstanceSshSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScheduleBase", + className: "ComputeInstanceSshSettings", modelProperties: { - id: { - serializedName: "id", - nullable: true, + sshPublicAccess: { + defaultValue: "Disabled", + serializedName: "sshPublicAccess", type: { name: "String" } }, - provisioningStatus: { - serializedName: "provisioningStatus", + adminUserName: { + serializedName: "adminUserName", + readOnly: true, type: { name: "String" } }, - status: { - serializedName: "status", + sshPort: { + serializedName: "sshPort", + readOnly: true, + type: { + name: "Number" + } + }, + adminPublicKey: { + serializedName: "adminPublicKey", type: { name: "String" } @@ -4952,10 +5338,11 @@ export const ScheduleBase: coreClient.CompositeMapper = { } }; -export const ComputeInstanceContainer: coreClient.CompositeMapper = { +export const CustomService: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceContainer", + className: "CustomService", + additionalProperties: { type: { name: "Object" } }, modelProperties: { name: { serializedName: "name", @@ -4963,40 +5350,49 @@ export const ComputeInstanceContainer: coreClient.CompositeMapper = { name: "String" } }, - autosave: { - serializedName: "autosave", + image: { + serializedName: "image", type: { - name: "String" + name: "Composite", + className: "Image" } }, - gpu: { - serializedName: "gpu", + environmentVariables: { + serializedName: "environmentVariables", type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Composite", className: "EnvironmentVariable" } + } } }, - network: { - serializedName: "network", + docker: { + serializedName: "docker", type: { - name: "String" + name: "Composite", + className: "Docker" } }, - environment: { - serializedName: "environment", + endpoints: { + serializedName: "endpoints", type: { - name: "Composite", - className: "ComputeInstanceEnvironmentInfo" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Endpoint" + } + } } }, - services: { - serializedName: "services", - readOnly: true, + volumes: { + serializedName: "volumes", type: { name: "Sequence", element: { type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Composite", + className: "VolumeDefinition" } } } @@ -5005,19 +5401,21 @@ export const ComputeInstanceContainer: coreClient.CompositeMapper = { } }; -export const ComputeInstanceEnvironmentInfo: coreClient.CompositeMapper = { +export const Image: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceEnvironmentInfo", + className: "Image", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - name: { - serializedName: "name", + type: { + defaultValue: "docker", + serializedName: "type", type: { name: "String" } }, - version: { - serializedName: "version", + reference: { + serializedName: "reference", type: { name: "String" } @@ -5026,32 +5424,21 @@ export const ComputeInstanceEnvironmentInfo: coreClient.CompositeMapper = { } }; -export const ComputeInstanceDataDisk: coreClient.CompositeMapper = { +export const EnvironmentVariable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceDataDisk", + className: "EnvironmentVariable", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - caching: { - serializedName: "caching", + type: { + defaultValue: "local", + serializedName: "type", type: { name: "String" } }, - diskSizeGB: { - serializedName: "diskSizeGB", - type: { - name: "Number" - } - }, - lun: { - serializedName: "lun", - type: { - name: "Number" - } - }, - storageAccountType: { - defaultValue: "Standard_LRS", - serializedName: "storageAccountType", + value: { + serializedName: "value", type: { name: "String" } @@ -5060,76 +5447,148 @@ export const ComputeInstanceDataDisk: coreClient.CompositeMapper = { } }; -export const ComputeInstanceDataMount: coreClient.CompositeMapper = { +export const Docker: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceDataMount", + className: "Docker", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - source: { - serializedName: "source", + privileged: { + serializedName: "privileged", + nullable: true, type: { - name: "String" + name: "Boolean" } - }, - sourceType: { - serializedName: "sourceType", + } + } + } +}; + +export const Endpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Endpoint", + modelProperties: { + protocol: { + defaultValue: "tcp", + serializedName: "protocol", type: { name: "String" } }, - mountName: { - serializedName: "mountName", + name: { + serializedName: "name", type: { name: "String" } }, - mountAction: { - serializedName: "mountAction", + target: { + serializedName: "target", + type: { + name: "Number" + } + }, + published: { + serializedName: "published", + nullable: true, + type: { + name: "Number" + } + }, + hostIp: { + serializedName: "hostIp", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const VolumeDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VolumeDefinition", + modelProperties: { + type: { + defaultValue: "bind", + serializedName: "type", type: { name: "String" } }, - createdBy: { - serializedName: "createdBy", + readOnly: { + serializedName: "readOnly", + nullable: true, + type: { + name: "Boolean" + } + }, + source: { + serializedName: "source", type: { name: "String" } }, - mountPath: { - serializedName: "mountPath", + target: { + serializedName: "target", type: { name: "String" } }, - mountState: { - serializedName: "mountState", + consistency: { + serializedName: "consistency", type: { name: "String" } }, - mountedOn: { - serializedName: "mountedOn", + bind: { + serializedName: "bind", type: { - name: "DateTime" + name: "Composite", + className: "BindOptions" } }, - error: { - serializedName: "error", + volume: { + serializedName: "volume", type: { - name: "String" + name: "Composite", + className: "VolumeOptions" + } + }, + tmpfs: { + serializedName: "tmpfs", + type: { + name: "Composite", + className: "TmpfsOptions" } } } } }; -export const ComputeInstanceVersion: coreClient.CompositeMapper = { +export const BindOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceVersion", + className: "BindOptions", modelProperties: { - runtime: { - serializedName: "runtime", + propagation: { + serializedName: "propagation", + nullable: true, + type: { + name: "String" + } + }, + createHostPath: { + serializedName: "createHostPath", + nullable: true, + type: { + name: "Boolean" + } + }, + selinux: { + serializedName: "selinux", nullable: true, type: { name: "String" @@ -5139,76 +5598,56 @@ export const ComputeInstanceVersion: coreClient.CompositeMapper = { } }; -export const ComputeInstanceSchema: coreClient.CompositeMapper = { +export const VolumeOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceSchema", + className: "VolumeOptions", modelProperties: { - properties: { - serializedName: "properties", + nocopy: { + serializedName: "nocopy", + nullable: true, type: { - name: "Composite", - className: "ComputeInstanceProperties" + name: "Boolean" } } } } }; -export const VirtualMachineSchema: coreClient.CompositeMapper = { +export const TmpfsOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSchema", + className: "TmpfsOptions", modelProperties: { - properties: { - serializedName: "properties", + size: { + serializedName: "size", type: { - name: "Composite", - className: "VirtualMachineSchemaProperties" + name: "Number" } } } } }; -export const VirtualMachineSchemaProperties: coreClient.CompositeMapper = { +export const ImageMetadata: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSchemaProperties", + className: "ImageMetadata", modelProperties: { - virtualMachineSize: { - serializedName: "virtualMachineSize", + currentImageVersion: { + serializedName: "currentImageVersion", type: { name: "String" } }, - sshPort: { - serializedName: "sshPort", - type: { - name: "Number" - } - }, - notebookServerPort: { - serializedName: "notebookServerPort", - type: { - name: "Number" - } - }, - address: { - serializedName: "address", + latestImageVersion: { + serializedName: "latestImageVersion", type: { name: "String" } }, - administratorAccount: { - serializedName: "administratorAccount", - type: { - name: "Composite", - className: "VirtualMachineSshCredentials" - } - }, - isNotebookInstanceCompute: { - serializedName: "isNotebookInstanceCompute", + isLatestOsImageVersion: { + serializedName: "isLatestOsImageVersion", type: { name: "Boolean" } @@ -5217,31 +5656,44 @@ export const VirtualMachineSchemaProperties: coreClient.CompositeMapper = { } }; -export const VirtualMachineSshCredentials: coreClient.CompositeMapper = { +export const ComputeInstanceConnectivityEndpoints: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSshCredentials", + className: "ComputeInstanceConnectivityEndpoints", modelProperties: { - username: { - serializedName: "username", + publicIpAddress: { + serializedName: "publicIpAddress", + readOnly: true, + nullable: true, type: { name: "String" } }, - password: { - serializedName: "password", + privateIpAddress: { + serializedName: "privateIpAddress", + readOnly: true, + nullable: true, type: { name: "String" } - }, - publicKeyData: { - serializedName: "publicKeyData", + } + } + } +}; + +export const ComputeInstanceApplication: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceApplication", + modelProperties: { + displayName: { + serializedName: "displayName", type: { name: "String" } }, - privateKeyData: { - serializedName: "privateKeyData", + endpointUri: { + serializedName: "endpointUri", type: { name: "String" } @@ -5250,63 +5702,69 @@ export const VirtualMachineSshCredentials: coreClient.CompositeMapper = { } }; -export const HDInsightProperties: coreClient.CompositeMapper = { +export const ComputeInstanceCreatedBy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HDInsightProperties", + className: "ComputeInstanceCreatedBy", modelProperties: { - sshPort: { - serializedName: "sshPort", + userName: { + serializedName: "userName", + readOnly: true, + nullable: true, type: { - name: "Number" + name: "String" } }, - address: { - serializedName: "address", + userOrgId: { + serializedName: "userOrgId", + readOnly: true, type: { name: "String" } }, - administratorAccount: { - serializedName: "administratorAccount", + userId: { + serializedName: "userId", + readOnly: true, + nullable: true, type: { - name: "Composite", - className: "VirtualMachineSshCredentials" + name: "String" } } } } }; -export const HDInsightSchema: coreClient.CompositeMapper = { +export const PersonalComputeInstanceSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HDInsightSchema", + className: "PersonalComputeInstanceSettings", modelProperties: { - properties: { - serializedName: "properties", + assignedUser: { + serializedName: "assignedUser", type: { name: "Composite", - className: "HDInsightProperties" + className: "AssignedUser" } } } } }; -export const DatabricksProperties: coreClient.CompositeMapper = { +export const AssignedUser: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabricksProperties", + className: "AssignedUser", modelProperties: { - databricksAccessToken: { - serializedName: "databricksAccessToken", + objectId: { + serializedName: "objectId", + required: true, type: { name: "String" } }, - workspaceUrl: { - serializedName: "workspaceUrl", + tenantId: { + serializedName: "tenantId", + required: true, type: { name: "String" } @@ -5315,192 +5773,315 @@ export const DatabricksProperties: coreClient.CompositeMapper = { } }; -export const DatabricksSchema: coreClient.CompositeMapper = { +export const SetupScripts: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabricksSchema", + className: "SetupScripts", modelProperties: { - properties: { - serializedName: "properties", + scripts: { + serializedName: "scripts", type: { name: "Composite", - className: "DatabricksProperties" + className: "ScriptsToExecute" } } } } }; -export const DataLakeAnalyticsSchema: coreClient.CompositeMapper = { +export const ScriptsToExecute: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataLakeAnalyticsSchema", + className: "ScriptsToExecute", modelProperties: { - properties: { - serializedName: "properties", + startupScript: { + serializedName: "startupScript", type: { name: "Composite", - className: "DataLakeAnalyticsSchemaProperties" + className: "ScriptReference" + } + }, + creationScript: { + serializedName: "creationScript", + type: { + name: "Composite", + className: "ScriptReference" } } } } }; -export const DataLakeAnalyticsSchemaProperties: coreClient.CompositeMapper = { +export const ScriptReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataLakeAnalyticsSchemaProperties", + className: "ScriptReference", modelProperties: { - dataLakeStoreAccountName: { - serializedName: "dataLakeStoreAccountName", + scriptSource: { + serializedName: "scriptSource", type: { name: "String" } - } - } - } -}; - -export const SynapseSparkProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SynapseSparkProperties", - modelProperties: { - autoScaleProperties: { - serializedName: "autoScaleProperties", + }, + scriptData: { + serializedName: "scriptData", type: { - name: "Composite", - className: "AutoScaleProperties" + name: "String" } }, - autoPauseProperties: { - serializedName: "autoPauseProperties", + scriptArguments: { + serializedName: "scriptArguments", type: { - name: "Composite", - className: "AutoPauseProperties" + name: "String" } }, - sparkVersion: { - serializedName: "sparkVersion", + timeout: { + serializedName: "timeout", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceLastOperation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceLastOperation", + modelProperties: { + operationName: { + serializedName: "operationName", type: { name: "String" } }, - nodeCount: { - serializedName: "nodeCount", + operationTime: { + serializedName: "operationTime", type: { - name: "Number" + name: "DateTime" } }, - nodeSize: { - serializedName: "nodeSize", + operationStatus: { + serializedName: "operationStatus", type: { name: "String" } }, - nodeSizeFamily: { - serializedName: "nodeSizeFamily", + operationTrigger: { + serializedName: "operationTrigger", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeSchedules: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeSchedules", + modelProperties: { + computeStartStop: { + serializedName: "computeStartStop", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeStartStopSchedule" + } + } + } + } + } + } +}; + +export const ComputeStartStopSchedule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeStartStopSchedule", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + nullable: true, type: { name: "String" } }, - subscriptionId: { - serializedName: "subscriptionId", + provisioningStatus: { + serializedName: "provisioningStatus", + readOnly: true, type: { name: "String" } }, - resourceGroup: { - serializedName: "resourceGroup", + status: { + serializedName: "status", type: { name: "String" } }, - workspaceName: { - serializedName: "workspaceName", + action: { + serializedName: "action", type: { name: "String" } }, - poolName: { - serializedName: "poolName", + 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 AutoScaleProperties: coreClient.CompositeMapper = { +export const Recurrence: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoScaleProperties", + className: "Recurrence", modelProperties: { - minNodeCount: { - serializedName: "minNodeCount", + frequency: { + serializedName: "frequency", + type: { + name: "String" + } + }, + interval: { + serializedName: "interval", type: { name: "Number" } }, - enabled: { - serializedName: "enabled", + startTime: { + serializedName: "startTime", + nullable: true, type: { - name: "Boolean" + name: "String" } }, - maxNodeCount: { - serializedName: "maxNodeCount", + timeZone: { + defaultValue: "UTC", + serializedName: "timeZone", type: { - name: "Number" + name: "String" + } + }, + schedule: { + serializedName: "schedule", + type: { + name: "Composite", + className: "RecurrenceSchedule" } } } } }; -export const AutoPauseProperties: coreClient.CompositeMapper = { +export const RecurrenceSchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoPauseProperties", + className: "RecurrenceSchedule", modelProperties: { - delayInMinutes: { - serializedName: "delayInMinutes", + hours: { + serializedName: "hours", + required: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Number" + } + } } }, - enabled: { - serializedName: "enabled", + minutes: { + serializedName: "minutes", + required: true, type: { - name: "Boolean" + 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 AksComputeSecretsProperties: coreClient.CompositeMapper = { +export const Cron: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AksComputeSecretsProperties", + className: "Cron", modelProperties: { - userKubeConfig: { - serializedName: "userKubeConfig", + startTime: { + serializedName: "startTime", + nullable: true, type: { name: "String" } }, - adminKubeConfig: { - serializedName: "adminKubeConfig", + timeZone: { + defaultValue: "UTC", + serializedName: "timeZone", type: { name: "String" } }, - imagePullSecretName: { - serializedName: "imagePullSecretName", - nullable: true, + expression: { + serializedName: "expression", type: { name: "String" } @@ -5509,101 +6090,100 @@ export const AksComputeSecretsProperties: coreClient.CompositeMapper = { } }; -export const VirtualMachineSecretsSchema: coreClient.CompositeMapper = { +export const ScheduleBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSecretsSchema", + className: "ScheduleBase", modelProperties: { - administratorAccount: { - serializedName: "administratorAccount", + id: { + serializedName: "id", + nullable: true, type: { - name: "Composite", - className: "VirtualMachineSshCredentials" + name: "String" + } + }, + provisioningStatus: { + serializedName: "provisioningStatus", + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" } } } } }; -export const DatabricksComputeSecretsProperties: coreClient.CompositeMapper = { +export const ComputeInstanceContainer: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabricksComputeSecretsProperties", + className: "ComputeInstanceContainer", modelProperties: { - databricksAccessToken: { - serializedName: "databricksAccessToken", + name: { + serializedName: "name", type: { name: "String" } - } - } - } -}; - -export const WorkspaceConnectionUsernamePassword: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkspaceConnectionUsernamePassword", - modelProperties: { - username: { - serializedName: "username", + }, + autosave: { + serializedName: "autosave", type: { name: "String" } }, - password: { - serializedName: "password", + gpu: { + serializedName: "gpu", type: { name: "String" } - } - } - } -}; - -export const WorkspaceConnectionPersonalAccessToken: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkspaceConnectionPersonalAccessToken", - modelProperties: { - pat: { - serializedName: "pat", + }, + network: { + serializedName: "network", type: { name: "String" } - } - } - } -}; - -export const WorkspaceConnectionSharedAccessSignature: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkspaceConnectionSharedAccessSignature", - modelProperties: { - sas: { - serializedName: "sas", + }, + environment: { + serializedName: "environment", type: { - name: "String" + name: "Composite", + className: "ComputeInstanceEnvironmentInfo" + } + }, + services: { + serializedName: "services", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } } } } } }; -export const WorkspaceConnectionManagedIdentity: coreClient.CompositeMapper = { +export const ComputeInstanceEnvironmentInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionManagedIdentity", + className: "ComputeInstanceEnvironmentInfo", modelProperties: { - resourceId: { - serializedName: "resourceId", + name: { + serializedName: "name", type: { name: "String" } }, - clientId: { - serializedName: "clientId", + version: { + serializedName: "version", type: { name: "String" } @@ -5612,45 +6192,32 @@ export const WorkspaceConnectionManagedIdentity: coreClient.CompositeMapper = { } }; -export const AssetJobInput: coreClient.CompositeMapper = { +export const ComputeInstanceDataDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssetJobInput", + className: "ComputeInstanceDataDisk", modelProperties: { - mode: { - serializedName: "mode", + caching: { + serializedName: "caching", type: { name: "String" } }, - uri: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "uri", - required: true, + diskSizeGB: { + serializedName: "diskSizeGB", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const AssetJobOutput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AssetJobOutput", - modelProperties: { - mode: { - serializedName: "mode", + }, + lun: { + serializedName: "lun", type: { - name: "String" + name: "Number" } }, - uri: { - serializedName: "uri", - nullable: true, + storageAccountType: { + defaultValue: "Standard_LRS", + serializedName: "storageAccountType", type: { name: "String" } @@ -5659,116 +6226,61 @@ export const AssetJobOutput: coreClient.CompositeMapper = { } }; -export const ForecastHorizon: coreClient.CompositeMapper = { +export const ComputeInstanceDataMount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ForecastHorizon", - uberParent: "ForecastHorizon", - polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode" - }, + className: "ComputeInstanceDataMount", modelProperties: { - mode: { - serializedName: "mode", - required: true, + source: { + serializedName: "source", 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, + }, + sourceType: { + serializedName: "sourceType", type: { name: "String" } }, - jobOutputType: { - serializedName: "jobOutputType", - required: true, + mountName: { + serializedName: "mountName", type: { name: "String" } - } - } - } -}; - -export const AutoMLVertical: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutoMLVertical", - uberParent: "AutoMLVertical", - polymorphicDiscriminator: { - serializedName: "taskType", - clientName: "taskType" - }, - modelProperties: { - logVerbosity: { - serializedName: "logVerbosity", + }, + mountAction: { + serializedName: "mountAction", type: { name: "String" } }, - targetColumnName: { - serializedName: "targetColumnName", - nullable: true, + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - taskType: { - serializedName: "taskType", - required: true, + mountPath: { + serializedName: "mountPath", type: { name: "String" } }, - trainingData: { - serializedName: "trainingData", + mountState: { + serializedName: "mountState", type: { - name: "Composite", - className: "MLTableJobInput" + name: "String" } - } - } - } -}; - -export const JobInput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobInput", - uberParent: "JobInput", - polymorphicDiscriminator: { - serializedName: "jobInputType", - clientName: "jobInputType" - }, - modelProperties: { - description: { - serializedName: "description", - nullable: true, + }, + mountedOn: { + serializedName: "mountedOn", type: { - name: "String" + name: "DateTime" } }, - jobInputType: { - serializedName: "jobInputType", - required: true, + error: { + serializedName: "error", type: { name: "String" } @@ -5777,19 +6289,14 @@ export const JobInput: coreClient.CompositeMapper = { } }; -export const NCrossValidations: coreClient.CompositeMapper = { +export const ComputeInstanceVersion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NCrossValidations", - uberParent: "NCrossValidations", - polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode" - }, + className: "ComputeInstanceVersion", modelProperties: { - mode: { - serializedName: "mode", - required: true, + runtime: { + serializedName: "runtime", + nullable: true, type: { name: "String" } @@ -5798,117 +6305,109 @@ export const NCrossValidations: coreClient.CompositeMapper = { } }; -export const Seasonality: coreClient.CompositeMapper = { +export const ComputeInstanceSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Seasonality", - uberParent: "Seasonality", - polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode" - }, + className: "ComputeInstanceSchema", modelProperties: { - mode: { - serializedName: "mode", - required: true, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "ComputeInstanceProperties" } } } } }; -export const TargetLags: coreClient.CompositeMapper = { +export const VirtualMachineSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TargetLags", - uberParent: "TargetLags", - polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode" - }, + className: "VirtualMachineSchema", modelProperties: { - mode: { - serializedName: "mode", - required: true, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "VirtualMachineSchemaProperties" } } } } }; -export const TargetRollingWindowSize: coreClient.CompositeMapper = { +export const VirtualMachineSchemaProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TargetRollingWindowSize", - uberParent: "TargetRollingWindowSize", - polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode" - }, + className: "VirtualMachineSchemaProperties", modelProperties: { - mode: { - serializedName: "mode", - required: true, + virtualMachineSize: { + serializedName: "virtualMachineSize", type: { name: "String" } - } - } - } -}; - -export const EarlyTerminationPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EarlyTerminationPolicy", - uberParent: "EarlyTerminationPolicy", - polymorphicDiscriminator: { - serializedName: "policyType", - clientName: "policyType" - }, - modelProperties: { - delayEvaluation: { - defaultValue: 0, - serializedName: "delayEvaluation", + }, + sshPort: { + serializedName: "sshPort", type: { name: "Number" } }, - evaluationInterval: { - defaultValue: 0, - serializedName: "evaluationInterval", + notebookServerPort: { + serializedName: "notebookServerPort", type: { name: "Number" } }, - policyType: { - serializedName: "policyType", - required: true, + address: { + serializedName: "address", type: { name: "String" } + }, + administratorAccount: { + serializedName: "administratorAccount", + type: { + name: "Composite", + className: "VirtualMachineSshCredentials" + } + }, + isNotebookInstanceCompute: { + serializedName: "isNotebookInstanceCompute", + type: { + name: "Boolean" + } } } } }; -export const SamplingAlgorithm: coreClient.CompositeMapper = { +export const VirtualMachineSshCredentials: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SamplingAlgorithm", - uberParent: "SamplingAlgorithm", - polymorphicDiscriminator: { - serializedName: "samplingAlgorithmType", - clientName: "samplingAlgorithmType" - }, + className: "VirtualMachineSshCredentials", modelProperties: { - samplingAlgorithmType: { - serializedName: "samplingAlgorithmType", - required: true, + username: { + serializedName: "username", + type: { + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + }, + publicKeyData: { + serializedName: "publicKeyData", + type: { + name: "String" + } + }, + privateKeyData: { + serializedName: "privateKeyData", type: { name: "String" } @@ -5917,86 +6416,110 @@ export const SamplingAlgorithm: coreClient.CompositeMapper = { } }; -export const TrainingSettings: coreClient.CompositeMapper = { +export const HDInsightProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrainingSettings", + className: "HDInsightProperties", modelProperties: { - enableDnnTraining: { - defaultValue: false, - serializedName: "enableDnnTraining", + sshPort: { + serializedName: "sshPort", type: { - name: "Boolean" + name: "Number" } }, - enableModelExplainability: { - defaultValue: true, - serializedName: "enableModelExplainability", + address: { + serializedName: "address", type: { - name: "Boolean" + name: "String" } }, - enableOnnxCompatibleModels: { - defaultValue: false, - serializedName: "enableOnnxCompatibleModels", + administratorAccount: { + serializedName: "administratorAccount", type: { - name: "Boolean" + name: "Composite", + className: "VirtualMachineSshCredentials" } - }, - enableStackEnsemble: { - defaultValue: true, - serializedName: "enableStackEnsemble", + } + } + } +}; + +export const HDInsightSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HDInsightSchema", + modelProperties: { + properties: { + serializedName: "properties", type: { - name: "Boolean" + name: "Composite", + className: "HDInsightProperties" } - }, - enableVoteEnsemble: { - defaultValue: true, - serializedName: "enableVoteEnsemble", + } + } + } +}; + +export const DatabricksProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabricksProperties", + modelProperties: { + databricksAccessToken: { + serializedName: "databricksAccessToken", type: { - name: "Boolean" + name: "String" } }, - ensembleModelDownloadTimeout: { - defaultValue: "PT5M", - serializedName: "ensembleModelDownloadTimeout", + workspaceUrl: { + serializedName: "workspaceUrl", type: { - name: "TimeSpan" + name: "String" } - }, - stackEnsembleSettings: { - serializedName: "stackEnsembleSettings", + } + } + } +}; + +export const DatabricksSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabricksSchema", + modelProperties: { + properties: { + serializedName: "properties", type: { name: "Composite", - className: "StackEnsembleSettings" + className: "DatabricksProperties" } } } } }; -export const StackEnsembleSettings: coreClient.CompositeMapper = { +export const DataLakeAnalyticsSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StackEnsembleSettings", + className: "DataLakeAnalyticsSchema", modelProperties: { - stackMetaLearnerKWargs: { - serializedName: "stackMetaLearnerKWargs", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - }, - stackMetaLearnerTrainPercentage: { - defaultValue: 0.2, - serializedName: "stackMetaLearnerTrainPercentage", + properties: { + serializedName: "properties", type: { - name: "Number" + name: "Composite", + className: "DataLakeAnalyticsSchemaProperties" } - }, - stackMetaLearnerType: { - serializedName: "stackMetaLearnerType", + } + } + } +}; + +export const DataLakeAnalyticsSchemaProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataLakeAnalyticsSchemaProperties", + modelProperties: { + dataLakeStoreAccountName: { + serializedName: "dataLakeStoreAccountName", type: { name: "String" } @@ -6005,75 +6528,69 @@ export const StackEnsembleSettings: coreClient.CompositeMapper = { } }; -export const TableVertical: coreClient.CompositeMapper = { +export const SynapseSparkProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TableVertical", + className: "SynapseSparkProperties", modelProperties: { - cvSplitColumnNames: { - serializedName: "cvSplitColumnNames", - nullable: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - featurizationSettings: { - serializedName: "featurizationSettings", + autoScaleProperties: { + serializedName: "autoScaleProperties", type: { name: "Composite", - className: "TableVerticalFeaturizationSettings" + className: "AutoScaleProperties" } }, - limitSettings: { - serializedName: "limitSettings", + autoPauseProperties: { + serializedName: "autoPauseProperties", type: { name: "Composite", - className: "TableVerticalLimitSettings" + className: "AutoPauseProperties" } }, - nCrossValidations: { - serializedName: "nCrossValidations", + sparkVersion: { + serializedName: "sparkVersion", type: { - name: "Composite", - className: "NCrossValidations" + name: "String" } }, - testData: { - serializedName: "testData", + nodeCount: { + serializedName: "nodeCount", type: { - name: "Composite", - className: "MLTableJobInput" + name: "Number" } }, - testDataSize: { - serializedName: "testDataSize", - nullable: true, + nodeSize: { + serializedName: "nodeSize", type: { - name: "Number" + name: "String" } }, - validationData: { - serializedName: "validationData", + nodeSizeFamily: { + serializedName: "nodeSizeFamily", type: { - name: "Composite", - className: "MLTableJobInput" + name: "String" } }, - validationDataSize: { - serializedName: "validationDataSize", - nullable: true, + subscriptionId: { + serializedName: "subscriptionId", type: { - name: "Number" + name: "String" } }, - weightColumnName: { - serializedName: "weightColumnName", - nullable: true, + resourceGroup: { + serializedName: "resourceGroup", + type: { + name: "String" + } + }, + workspaceName: { + serializedName: "workspaceName", + type: { + name: "String" + } + }, + poolName: { + serializedName: "poolName", type: { name: "String" } @@ -6082,203 +6599,153 @@ export const TableVertical: coreClient.CompositeMapper = { } }; -export const ColumnTransformer: coreClient.CompositeMapper = { +export const AutoScaleProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ColumnTransformer", + className: "AutoScaleProperties", modelProperties: { - fields: { - serializedName: "fields", - nullable: true, + minNodeCount: { + serializedName: "minNodeCount", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - parameters: { - serializedName: "parameters", - nullable: true, + enabled: { + serializedName: "enabled", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Boolean" + } + }, + maxNodeCount: { + serializedName: "maxNodeCount", + type: { + name: "Number" } } } } }; -export const FeaturizationSettings: coreClient.CompositeMapper = { +export const AutoPauseProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FeaturizationSettings", + className: "AutoPauseProperties", modelProperties: { - datasetLanguage: { - serializedName: "datasetLanguage", - nullable: true, + delayInMinutes: { + serializedName: "delayInMinutes", type: { - name: "String" + name: "Number" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" } } } } }; -export const TableVerticalLimitSettings: coreClient.CompositeMapper = { +export const AksComputeSecretsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TableVerticalLimitSettings", + className: "AksComputeSecretsProperties", 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" - } - }, - maxTrials: { - defaultValue: 1000, - serializedName: "maxTrials", + userKubeConfig: { + serializedName: "userKubeConfig", type: { - name: "Number" + name: "String" } }, - timeout: { - defaultValue: "PT6H", - serializedName: "timeout", + adminKubeConfig: { + serializedName: "adminKubeConfig", type: { - name: "TimeSpan" + name: "String" } }, - trialTimeout: { - defaultValue: "PT30M", - serializedName: "trialTimeout", + imagePullSecretName: { + serializedName: "imagePullSecretName", + nullable: true, type: { - name: "TimeSpan" + name: "String" } } } } }; -export const DistributionConfiguration: coreClient.CompositeMapper = { +export const VirtualMachineSecretsSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DistributionConfiguration", - uberParent: "DistributionConfiguration", - polymorphicDiscriminator: { - serializedName: "distributionType", - clientName: "distributionType" - }, + className: "VirtualMachineSecretsSchema", modelProperties: { - distributionType: { - serializedName: "distributionType", - required: true, + administratorAccount: { + serializedName: "administratorAccount", type: { - name: "String" + name: "Composite", + className: "VirtualMachineSshCredentials" } } } } }; -export const JobLimits: coreClient.CompositeMapper = { +export const DatabricksComputeSecretsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobLimits", - uberParent: "JobLimits", - polymorphicDiscriminator: { - serializedName: "jobLimitsType", - clientName: "jobLimitsType" - }, + className: "DatabricksComputeSecretsProperties", modelProperties: { - jobLimitsType: { - serializedName: "jobLimitsType", - required: true, + databricksAccessToken: { + serializedName: "databricksAccessToken", type: { name: "String" } - }, - timeout: { - serializedName: "timeout", - nullable: true, - type: { - name: "TimeSpan" - } } } } }; -export const ContainerResourceRequirements: coreClient.CompositeMapper = { +export const IdleShutdownSetting: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContainerResourceRequirements", + className: "IdleShutdownSetting", modelProperties: { - containerResourceLimits: { - serializedName: "containerResourceLimits", - type: { - name: "Composite", - className: "ContainerResourceSettings" - } - }, - containerResourceRequests: { - serializedName: "containerResourceRequests", + idleTimeBeforeShutdown: { + serializedName: "idleTimeBeforeShutdown", type: { - name: "Composite", - className: "ContainerResourceSettings" + name: "String" } } } } }; -export const ContainerResourceSettings: coreClient.CompositeMapper = { +export const PrivateEndpointDestination: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContainerResourceSettings", + className: "PrivateEndpointDestination", modelProperties: { - cpu: { - serializedName: "cpu", - nullable: true, + serviceResourceId: { + serializedName: "serviceResourceId", type: { name: "String" } }, - gpu: { - serializedName: "gpu", - nullable: true, + sparkEnabled: { + serializedName: "sparkEnabled", + type: { + name: "Boolean" + } + }, + sparkStatus: { + serializedName: "sparkStatus", type: { name: "String" } }, - memory: { - serializedName: "memory", - nullable: true, + subresourceTarget: { + serializedName: "subresourceTarget", type: { name: "String" } @@ -6287,99 +6754,136 @@ export const ContainerResourceSettings: coreClient.CompositeMapper = { } }; -export const ForecastingSettings: coreClient.CompositeMapper = { +export const ServiceTagDestination: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ForecastingSettings", + className: "ServiceTagDestination", modelProperties: { - countryOrRegionForHolidays: { - serializedName: "countryOrRegionForHolidays", - nullable: true, + action: { + serializedName: "action", type: { name: "String" } }, - cvStepSize: { - serializedName: "cvStepSize", - nullable: true, + addressPrefixes: { + serializedName: "addressPrefixes", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - featureLags: { - serializedName: "featureLags", + portRanges: { + serializedName: "portRanges", type: { name: "String" } }, - forecastHorizon: { - serializedName: "forecastHorizon", - type: { - name: "Composite", - className: "ForecastHorizon" - } - }, - frequency: { - serializedName: "frequency", - nullable: true, + protocol: { + serializedName: "protocol", type: { name: "String" } }, - seasonality: { - serializedName: "seasonality", + serviceTag: { + serializedName: "serviceTag", type: { - name: "Composite", - className: "Seasonality" + name: "String" } - }, - shortSeriesHandlingConfig: { - serializedName: "shortSeriesHandlingConfig", + } + } + } +}; + +export const WorkspaceConnectionUsernamePassword: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionUsernamePassword", + modelProperties: { + username: { + serializedName: "username", type: { name: "String" } }, - targetAggregateFunction: { - serializedName: "targetAggregateFunction", + password: { + serializedName: "password", type: { name: "String" } - }, - targetLags: { - serializedName: "targetLags", + } + } + } +}; + +export const WorkspaceConnectionPersonalAccessToken: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionPersonalAccessToken", + modelProperties: { + pat: { + serializedName: "pat", type: { - name: "Composite", - className: "TargetLags" + name: "String" } - }, - targetRollingWindowSize: { - serializedName: "targetRollingWindowSize", + } + } + } +}; + +export const WorkspaceConnectionSharedAccessSignature: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionSharedAccessSignature", + modelProperties: { + sas: { + serializedName: "sas", type: { - name: "Composite", - className: "TargetRollingWindowSize" + name: "String" } - }, - timeColumnName: { - serializedName: "timeColumnName", - nullable: true, + } + } + } +}; + +export const WorkspaceConnectionManagedIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionManagedIdentity", + modelProperties: { + resourceId: { + serializedName: "resourceId", type: { name: "String" } }, - timeSeriesIdColumnNames: { - serializedName: "timeSeriesIdColumnNames", - nullable: true, + clientId: { + serializedName: "clientId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - }, - useStl: { - serializedName: "useStl", + } + } + } +}; + +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" } @@ -6388,484 +6892,700 @@ export const ForecastingSettings: coreClient.CompositeMapper = { } }; -export const ImageModelSettings: coreClient.CompositeMapper = { +export const MonitorComputeIdentityBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageModelSettings", + className: "MonitorComputeIdentityBase", + uberParent: "MonitorComputeIdentityBase", + polymorphicDiscriminator: { + serializedName: "computeIdentityType", + clientName: "computeIdentityType" + }, modelProperties: { - advancedSettings: { - serializedName: "advancedSettings", - nullable: true, + computeIdentityType: { + serializedName: "computeIdentityType", + required: true, type: { name: "String" } - }, - amsGradient: { - serializedName: "amsGradient", - nullable: true, + } + } + } +}; + +export const AssetJobInput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssetJobInput", + modelProperties: { + mode: { + serializedName: "mode", type: { - name: "Boolean" + name: "String" } }, - augmentations: { - serializedName: "augmentations", - nullable: true, + uri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "uri", + required: true, type: { name: "String" } - }, - beta1: { - serializedName: "beta1", - nullable: true, + } + } + } +}; + +export const AssetJobOutput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssetJobOutput", + modelProperties: { + mode: { + serializedName: "mode", type: { - name: "Number" + name: "String" } }, - beta2: { - serializedName: "beta2", + uri: { + serializedName: "uri", nullable: true, type: { - name: "Number" + name: "String" } - }, - checkpointFrequency: { - serializedName: "checkpointFrequency", - nullable: 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: "Number" + name: "String" } - }, - checkpointModel: { - serializedName: "checkpointModel", + } + } + } +}; + +export const JobOutput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobOutput", + uberParent: "JobOutput", + polymorphicDiscriminator: { + serializedName: "jobOutputType", + clientName: "jobOutputType" + }, + modelProperties: { + description: { + serializedName: "description", + nullable: true, type: { - name: "Composite", - className: "MLFlowModelJobInput" + name: "String" } }, - checkpointRunId: { - serializedName: "checkpointRunId", - nullable: true, + jobOutputType: { + serializedName: "jobOutputType", + required: true, type: { name: "String" } - }, - distributed: { - serializedName: "distributed", - nullable: true, + } + } + } +}; + +export const QueueSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QueueSettings", + modelProperties: { + jobTier: { + serializedName: "jobTier", type: { - name: "Boolean" + name: "String" } - }, - earlyStopping: { - serializedName: "earlyStopping", - 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: "Boolean" + name: "String" } }, - earlyStoppingDelay: { - serializedName: "earlyStoppingDelay", + targetColumnName: { + serializedName: "targetColumnName", nullable: true, type: { - name: "Number" + name: "String" } }, - earlyStoppingPatience: { - serializedName: "earlyStoppingPatience", - nullable: true, + taskType: { + serializedName: "taskType", + required: true, type: { - name: "Number" + name: "String" } }, - enableOnnxNormalization: { - serializedName: "enableOnnxNormalization", - nullable: true, + trainingData: { + serializedName: "trainingData", type: { - name: "Boolean" + name: "Composite", + className: "MLTableJobInput" } - }, - evaluationFrequency: { - serializedName: "evaluationFrequency", + } + } + } +}; + +export const JobInput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobInput", + uberParent: "JobInput", + polymorphicDiscriminator: { + serializedName: "jobInputType", + clientName: "jobInputType" + }, + modelProperties: { + description: { + serializedName: "description", nullable: true, type: { - name: "Number" + name: "String" } }, - gradientAccumulationStep: { - serializedName: "gradientAccumulationStep", - nullable: true, + jobInputType: { + serializedName: "jobInputType", + required: true, type: { - name: "Number" + name: "String" } - }, - layersToFreeze: { - serializedName: "layersToFreeze", - 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: "Number" + name: "String" } - }, - learningRate: { - serializedName: "learningRate", - nullable: true, + } + } + } +}; + +export const Seasonality: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Seasonality", + uberParent: "Seasonality", + polymorphicDiscriminator: { + serializedName: "mode", + clientName: "mode" + }, + modelProperties: { + mode: { + serializedName: "mode", + required: true, type: { - name: "Number" + name: "String" } - }, - learningRateScheduler: { - serializedName: "learningRateScheduler", + } + } + } +}; + +export const TargetLags: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TargetLags", + uberParent: "TargetLags", + polymorphicDiscriminator: { + serializedName: "mode", + clientName: "mode" + }, + modelProperties: { + mode: { + serializedName: "mode", + required: true, type: { name: "String" } - }, - modelName: { - serializedName: "modelName", - nullable: true, + } + } + } +}; + +export const TargetRollingWindowSize: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TargetRollingWindowSize", + uberParent: "TargetRollingWindowSize", + polymorphicDiscriminator: { + serializedName: "mode", + clientName: "mode" + }, + modelProperties: { + mode: { + serializedName: "mode", + required: true, type: { name: "String" } - }, - momentum: { - serializedName: "momentum", + } + } + } +}; + +export const AzureDatastore: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureDatastore", + modelProperties: { + resourceGroup: { + serializedName: "resourceGroup", nullable: true, type: { - name: "Number" + name: "String" } }, - nesterov: { - serializedName: "nesterov", + subscriptionId: { + serializedName: "subscriptionId", nullable: true, type: { - name: "Boolean" + name: "String" } - }, - numberOfEpochs: { - serializedName: "numberOfEpochs", - nullable: true, + } + } + } +}; + +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: "Number" } }, - numberOfWorkers: { - serializedName: "numberOfWorkers", - nullable: true, + evaluationInterval: { + defaultValue: 0, + serializedName: "evaluationInterval", type: { name: "Number" } }, - optimizer: { - serializedName: "optimizer", + policyType: { + serializedName: "policyType", + required: true, type: { name: "String" } - }, - randomSeed: { - serializedName: "randomSeed", - nullable: true, + } + } + } +}; + +export const SamplingAlgorithm: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SamplingAlgorithm", + uberParent: "SamplingAlgorithm", + polymorphicDiscriminator: { + serializedName: "samplingAlgorithmType", + clientName: "samplingAlgorithmType" + }, + modelProperties: { + samplingAlgorithmType: { + serializedName: "samplingAlgorithmType", + required: true, type: { - name: "Number" + name: "String" } - }, - stepLRGamma: { - serializedName: "stepLRGamma", - nullable: 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: "Number" + name: "String" } }, - stepLRStepSize: { - serializedName: "stepLRStepSize", - nullable: true, + threshold: { + serializedName: "threshold", type: { - name: "Number" + name: "Composite", + className: "MonitoringThreshold" } - }, - trainingBatchSize: { - serializedName: "trainingBatchSize", + } + } + } +}; + +export const MonitoringThreshold: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MonitoringThreshold", + modelProperties: { + value: { + serializedName: "value", 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, + } + } + } +}; + +export const DataQualityMetricThresholdBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataQualityMetricThresholdBase", + uberParent: "DataQualityMetricThresholdBase", + polymorphicDiscriminator: { + serializedName: "dataType", + clientName: "dataType" + }, + modelProperties: { + dataType: { + serializedName: "dataType", + required: true, type: { - name: "Number" + name: "String" } }, - weightDecay: { - serializedName: "weightDecay", - nullable: true, + threshold: { + serializedName: "threshold", type: { - name: "Number" + name: "Composite", + className: "MonitoringThreshold" } } } } }; -export const ImageModelDistributionSettings: coreClient.CompositeMapper = { +export const PredictionDriftMetricThresholdBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageModelDistributionSettings", + className: "PredictionDriftMetricThresholdBase", + uberParent: "PredictionDriftMetricThresholdBase", + polymorphicDiscriminator: { + serializedName: "dataType", + clientName: "dataType" + }, modelProperties: { - amsGradient: { - serializedName: "amsGradient", - nullable: true, + dataType: { + serializedName: "dataType", + required: true, type: { name: "String" } }, - augmentations: { - serializedName: "augmentations", - nullable: true, + threshold: { + serializedName: "threshold", type: { - name: "String" + name: "Composite", + className: "MonitoringThreshold" } - }, - beta1: { - serializedName: "beta1", - nullable: true, + } + } + } +}; + +export const TrainingSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrainingSettings", + modelProperties: { + enableDnnTraining: { + defaultValue: false, + serializedName: "enableDnnTraining", type: { - name: "String" + name: "Boolean" } }, - beta2: { - serializedName: "beta2", - nullable: true, + enableModelExplainability: { + defaultValue: true, + serializedName: "enableModelExplainability", type: { - name: "String" + name: "Boolean" } }, - distributed: { - serializedName: "distributed", - nullable: true, + enableOnnxCompatibleModels: { + defaultValue: false, + serializedName: "enableOnnxCompatibleModels", type: { - name: "String" + name: "Boolean" } }, - earlyStopping: { - serializedName: "earlyStopping", - nullable: true, + enableStackEnsemble: { + defaultValue: true, + serializedName: "enableStackEnsemble", type: { - name: "String" + name: "Boolean" } }, - earlyStoppingDelay: { - serializedName: "earlyStoppingDelay", - nullable: true, + enableVoteEnsemble: { + defaultValue: true, + serializedName: "enableVoteEnsemble", type: { - name: "String" + name: "Boolean" } }, - earlyStoppingPatience: { - serializedName: "earlyStoppingPatience", - nullable: true, + ensembleModelDownloadTimeout: { + defaultValue: "PT5M", + serializedName: "ensembleModelDownloadTimeout", type: { - name: "String" + name: "TimeSpan" } }, - enableOnnxNormalization: { - serializedName: "enableOnnxNormalization", - nullable: true, + stackEnsembleSettings: { + serializedName: "stackEnsembleSettings", type: { - name: "String" + name: "Composite", + className: "StackEnsembleSettings" } - }, - evaluationFrequency: { - serializedName: "evaluationFrequency", + } + } + } +}; + +export const StackEnsembleSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StackEnsembleSettings", + modelProperties: { + stackMetaLearnerKWargs: { + serializedName: "stackMetaLearnerKWargs", nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - gradientAccumulationStep: { - serializedName: "gradientAccumulationStep", - nullable: true, + stackMetaLearnerTrainPercentage: { + defaultValue: 0.2, + serializedName: "stackMetaLearnerTrainPercentage", type: { - name: "String" + name: "Number" } }, - layersToFreeze: { - serializedName: "layersToFreeze", - nullable: true, + stackMetaLearnerType: { + serializedName: "stackMetaLearnerType", type: { name: "String" } - }, - learningRate: { - serializedName: "learningRate", + } + } + } +}; + +export const TableVertical: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TableVertical", + modelProperties: { + cvSplitColumnNames: { + serializedName: "cvSplitColumnNames", nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - learningRateScheduler: { - serializedName: "learningRateScheduler", - nullable: true, + featurizationSettings: { + serializedName: "featurizationSettings", type: { - name: "String" + name: "Composite", + className: "TableVerticalFeaturizationSettings" } }, - modelName: { - serializedName: "modelName", - nullable: true, + limitSettings: { + serializedName: "limitSettings", type: { - name: "String" + name: "Composite", + className: "TableVerticalLimitSettings" } }, - momentum: { - serializedName: "momentum", - nullable: true, + nCrossValidations: { + serializedName: "nCrossValidations", type: { - name: "String" + name: "Composite", + className: "NCrossValidations" } }, - nesterov: { - serializedName: "nesterov", - nullable: true, + testData: { + serializedName: "testData", type: { - name: "String" + name: "Composite", + className: "MLTableJobInput" } }, - numberOfEpochs: { - serializedName: "numberOfEpochs", + testDataSize: { + serializedName: "testDataSize", nullable: true, type: { - name: "String" + name: "Number" } }, - numberOfWorkers: { - serializedName: "numberOfWorkers", - nullable: true, + validationData: { + serializedName: "validationData", type: { - name: "String" + name: "Composite", + className: "MLTableJobInput" } }, - optimizer: { - serializedName: "optimizer", + validationDataSize: { + serializedName: "validationDataSize", nullable: true, type: { - name: "String" + name: "Number" } }, - randomSeed: { - serializedName: "randomSeed", + weightColumnName: { + serializedName: "weightColumnName", nullable: true, type: { name: "String" } - }, - stepLRGamma: { - serializedName: "stepLRGamma", + } + } + } +}; + +export const ColumnTransformer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ColumnTransformer", + modelProperties: { + fields: { + serializedName: "fields", nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - stepLRStepSize: { - serializedName: "stepLRStepSize", + parameters: { + serializedName: "parameters", 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" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const ImageVertical: coreClient.CompositeMapper = { +export const FeaturizationSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageVertical", + className: "FeaturizationSettings", 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", + datasetLanguage: { + serializedName: "datasetLanguage", nullable: true, type: { - name: "Number" + name: "String" } } } } }; -export const ImageLimitSettings: coreClient.CompositeMapper = { +export const TableVerticalLimitSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageLimitSettings", + className: "TableVerticalLimitSettings", modelProperties: { + enableEarlyTermination: { + defaultValue: true, + serializedName: "enableEarlyTermination", + type: { + name: "Boolean" + } + }, + exitScore: { + serializedName: "exitScore", + nullable: true, + type: { + name: "Number" + } + }, maxConcurrentTrials: { defaultValue: 1, serializedName: "maxConcurrentTrials", @@ -6873,38 +7593,50 @@ export const ImageLimitSettings: coreClient.CompositeMapper = { name: "Number" } }, + maxCoresPerTrial: { + defaultValue: -1, + serializedName: "maxCoresPerTrial", + type: { + name: "Number" + } + }, maxTrials: { - defaultValue: 1, + defaultValue: 1000, serializedName: "maxTrials", type: { name: "Number" } }, timeout: { - defaultValue: "P7D", + defaultValue: "PT6H", serializedName: "timeout", type: { name: "TimeSpan" } + }, + trialTimeout: { + defaultValue: "PT30M", + serializedName: "trialTimeout", + type: { + name: "TimeSpan" + } } } } }; -export const ImageSweepSettings: coreClient.CompositeMapper = { +export const DistributionConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageSweepSettings", + className: "DistributionConfiguration", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: { + serializedName: "distributionType", + clientName: "distributionType" + }, modelProperties: { - earlyTermination: { - serializedName: "earlyTermination", - type: { - name: "Composite", - className: "EarlyTerminationPolicy" - } - }, - samplingAlgorithm: { - serializedName: "samplingAlgorithm", + distributionType: { + serializedName: "distributionType", required: true, type: { name: "String" @@ -6914,83 +7646,79 @@ export const ImageSweepSettings: coreClient.CompositeMapper = { } }; -export const NlpVertical: coreClient.CompositeMapper = { +export const JobLimits: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NlpVertical", + className: "JobLimits", + uberParent: "JobLimits", + polymorphicDiscriminator: { + serializedName: "jobLimitsType", + clientName: "jobLimitsType" + }, modelProperties: { - featurizationSettings: { - serializedName: "featurizationSettings", - type: { - name: "Composite", - className: "NlpVerticalFeaturizationSettings" - } - }, - limitSettings: { - serializedName: "limitSettings", + jobLimitsType: { + serializedName: "jobLimitsType", + required: true, type: { - name: "Composite", - className: "NlpVerticalLimitSettings" + name: "String" } }, - validationData: { - serializedName: "validationData", + timeout: { + serializedName: "timeout", + nullable: true, type: { - name: "Composite", - className: "MLTableJobInput" + name: "TimeSpan" } } } } }; -export const NlpVerticalLimitSettings: coreClient.CompositeMapper = { +export const ContainerResourceRequirements: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NlpVerticalLimitSettings", + className: "ContainerResourceRequirements", modelProperties: { - maxConcurrentTrials: { - defaultValue: 1, - serializedName: "maxConcurrentTrials", - type: { - name: "Number" - } - }, - maxTrials: { - defaultValue: 1, - serializedName: "maxTrials", + containerResourceLimits: { + serializedName: "containerResourceLimits", type: { - name: "Number" + name: "Composite", + className: "ContainerResourceSettings" } }, - timeout: { - serializedName: "timeout", + containerResourceRequests: { + serializedName: "containerResourceRequests", type: { - name: "TimeSpan" + name: "Composite", + className: "ContainerResourceSettings" } } } } }; -export const Objective: coreClient.CompositeMapper = { +export const ContainerResourceSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Objective", + className: "ContainerResourceSettings", modelProperties: { - goal: { - serializedName: "goal", - required: true, + cpu: { + serializedName: "cpu", + nullable: true, type: { name: "String" } }, - primaryMetric: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "primaryMetric", - required: true, + gpu: { + serializedName: "gpu", + nullable: true, + type: { + name: "String" + } + }, + memory: { + serializedName: "memory", + nullable: true, type: { name: "String" } @@ -6999,115 +7727,167 @@ export const Objective: coreClient.CompositeMapper = { } }; -export const TrialComponent: coreClient.CompositeMapper = { +export const MonitorDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrialComponent", + className: "MonitorDefinition", modelProperties: { - codeId: { - serializedName: "codeId", - nullable: true, + alertNotificationSettings: { + serializedName: "alertNotificationSettings", type: { - name: "String" + name: "Composite", + className: "MonitorNotificationSettings" } }, - command: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]"), - MinLength: 1 - }, - serializedName: "command", - required: true, + computeConfiguration: { + serializedName: "computeConfiguration", type: { - name: "String" + name: "Composite", + className: "MonitorComputeConfigurationBase" } }, - distribution: { - serializedName: "distribution", + monitoringTarget: { + serializedName: "monitoringTarget", type: { name: "Composite", - className: "DistributionConfiguration" + className: "MonitoringTarget" } }, - environmentId: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "environmentId", + signals: { + serializedName: "signals", 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" + value: { + type: { name: "Composite", className: "MonitoringSignalBase" } + } } } } } }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { +export const MonitorNotificationSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "MonitorNotificationSettings", modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "identity", + emailNotificationSettings: { + serializedName: "emailNotificationSettings", type: { name: "Composite", - className: "ManagedServiceIdentity" + className: "MonitorEmailNotificationSettings" } - }, - location: { - serializedName: "location", + } + } + } +}; + +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" } - }, - tags: { - serializedName: "tags", + } + } + } +}; + +export const MonitoringTarget: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MonitoringTarget", + modelProperties: { + deploymentId: { + serializedName: "deploymentId", + nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - sku: { - serializedName: "sku", + modelId: { + serializedName: "modelId", + nullable: true, type: { - name: "Composite", - className: "Sku" + name: "String" } }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + taskType: { + serializedName: "taskType", + required: true, type: { - name: "Composite", - className: "PrivateEndpoint" + 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" + } + } } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + properties: { + serializedName: "properties", + nullable: true, type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" + name: "Dictionary", + value: { type: { name: "String" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + signalType: { + serializedName: "signalType", + required: true, type: { name: "String" } @@ -7116,1426 +7896,3682 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { } }; -export const Workspace: coreClient.CompositeMapper = { +export const CustomMetricThreshold: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Workspace", + className: "CustomMetricThreshold", modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "identity", + metric: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "metric", + required: true, type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "String" } }, - location: { - serializedName: "location", + threshold: { + serializedName: "threshold", type: { - name: "String" + name: "Composite", + className: "MonitoringThreshold" } - }, - tags: { - serializedName: "tags", + } + } + } +}; + +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" } } } }, - sku: { - serializedName: "sku", + dataContext: { + serializedName: "dataContext", + nullable: true, type: { - name: "Composite", - className: "Sku" + name: "String" } }, - workspaceId: { - serializedName: "properties.workspaceId", - readOnly: true, + inputDataType: { + serializedName: "inputDataType", + required: true, type: { name: "String" } }, - description: { - serializedName: "properties.description", + jobInputType: { + serializedName: "jobInputType", + required: true, type: { name: "String" } }, - friendlyName: { - serializedName: "properties.friendlyName", + uri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "uri", + required: true, type: { name: "String" } - }, - keyVault: { - serializedName: "properties.keyVault", + } + } + } +}; + +export const FeatureImportanceSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeatureImportanceSettings", + modelProperties: { + mode: { + serializedName: "mode", type: { name: "String" } }, - applicationInsights: { - serializedName: "properties.applicationInsights", + targetColumn: { + serializedName: "targetColumn", + nullable: true, type: { name: "String" } - }, - containerRegistry: { - serializedName: "properties.containerRegistry", - nullable: true, + } + } + } +}; + +export const FeatureAttributionMetricThreshold: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeatureAttributionMetricThreshold", + modelProperties: { + metric: { + serializedName: "metric", + required: true, type: { name: "String" } }, - storageAccount: { - serializedName: "properties.storageAccount", + 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" } }, - discoveryUrl: { - serializedName: "properties.discoveryUrl", + cvStepSize: { + serializedName: "cvStepSize", + nullable: true, type: { - name: "String" + name: "Number" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + featureLags: { + serializedName: "featureLags", type: { name: "String" } }, - encryption: { - serializedName: "properties.encryption", + forecastHorizon: { + serializedName: "forecastHorizon", type: { name: "Composite", - className: "EncryptionProperty" + className: "ForecastHorizon" } }, - hbiWorkspace: { - defaultValue: false, - serializedName: "properties.hbiWorkspace", + frequency: { + serializedName: "frequency", + nullable: true, type: { - name: "Boolean" + name: "String" } }, - serviceProvisionedResourceGroup: { - serializedName: "properties.serviceProvisionedResourceGroup", - readOnly: true, + seasonality: { + serializedName: "seasonality", type: { - name: "String" + name: "Composite", + className: "Seasonality" } }, - privateLinkCount: { - serializedName: "properties.privateLinkCount", - readOnly: true, + shortSeriesHandlingConfig: { + serializedName: "shortSeriesHandlingConfig", type: { - name: "Number" + name: "String" } }, - imageBuildCompute: { - serializedName: "properties.imageBuildCompute", + targetAggregateFunction: { + serializedName: "targetAggregateFunction", type: { name: "String" } }, - allowPublicAccessWhenBehindVnet: { - defaultValue: false, - serializedName: "properties.allowPublicAccessWhenBehindVnet", + targetLags: { + serializedName: "targetLags", type: { - name: "Boolean" + name: "Composite", + className: "TargetLags" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + targetRollingWindowSize: { + serializedName: "targetRollingWindowSize", type: { - name: "String" + name: "Composite", + className: "TargetRollingWindowSize" } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - readOnly: true, + timeColumnName: { + serializedName: "timeColumnName", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } + name: "String" } }, - sharedPrivateLinkResources: { - serializedName: "properties.sharedPrivateLinkResources", + timeSeriesIdColumnNames: { + serializedName: "timeSeriesIdColumnNames", + nullable: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SharedPrivateLinkResource" + name: "String" } } } }, - notebookInfo: { - serializedName: "properties.notebookInfo", + useStl: { + serializedName: "useStl", type: { - name: "Composite", - className: "NotebookResourceInfo" + name: "String" } - }, - serviceManagedResourcesSettings: { - serializedName: "properties.serviceManagedResourcesSettings", + } + } + } +}; + +export const ImageModelSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageModelSettings", + modelProperties: { + advancedSettings: { + serializedName: "advancedSettings", + nullable: true, type: { - name: "Composite", - className: "ServiceManagedResourcesSettings" + name: "String" } }, - primaryUserAssignedIdentity: { - serializedName: "properties.primaryUserAssignedIdentity", + amsGradient: { + serializedName: "amsGradient", + nullable: true, type: { - name: "String" + name: "Boolean" } }, - tenantId: { - serializedName: "properties.tenantId", - readOnly: true, + augmentations: { + serializedName: "augmentations", + nullable: true, type: { name: "String" } }, - storageHnsEnabled: { - serializedName: "properties.storageHnsEnabled", - readOnly: true, + beta1: { + serializedName: "beta1", + nullable: true, type: { - name: "Boolean" + name: "Number" } }, - mlFlowTrackingUri: { - serializedName: "properties.mlFlowTrackingUri", - readOnly: true, + beta2: { + serializedName: "beta2", + nullable: true, type: { - name: "String" + name: "Number" } }, - v1LegacyMode: { - defaultValue: false, - serializedName: "properties.v1LegacyMode", + checkpointFrequency: { + serializedName: "checkpointFrequency", + nullable: true, type: { - name: "Boolean" + name: "Number" } - } - } - } -}; - -export const ComputeResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeResource", - modelProperties: { - ...Resource.type.modelProperties, - ...ComputeResourceSchema.type.modelProperties, - identity: { - serializedName: "identity", + }, + checkpointModel: { + serializedName: "checkpointModel", type: { name: "Composite", - className: "ManagedServiceIdentity" + className: "MLFlowModelJobInput" } }, - location: { - serializedName: "location", + checkpointRunId: { + serializedName: "checkpointRunId", + nullable: true, type: { name: "String" } }, - tags: { - serializedName: "tags", + distributed: { + serializedName: "distributed", nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } }, - sku: { - serializedName: "sku", + earlyStopping: { + serializedName: "earlyStopping", + nullable: true, type: { - name: "Composite", - className: "Sku" + name: "Boolean" } - } - } - } -}; - -export const PrivateLinkResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkResource", - modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "identity", + }, + earlyStoppingDelay: { + serializedName: "earlyStoppingDelay", + nullable: true, type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "Number" } }, - location: { - serializedName: "location", + earlyStoppingPatience: { + serializedName: "earlyStoppingPatience", + nullable: true, type: { - name: "String" + name: "Number" } }, - tags: { - serializedName: "tags", + enableOnnxNormalization: { + serializedName: "enableOnnxNormalization", + nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } }, - sku: { - serializedName: "sku", + evaluationFrequency: { + serializedName: "evaluationFrequency", + nullable: true, type: { - name: "Composite", - className: "Sku" + name: "Number" } }, - groupId: { - serializedName: "properties.groupId", - readOnly: true, + gradientAccumulationStep: { + serializedName: "gradientAccumulationStep", + nullable: true, type: { - name: "String" + name: "Number" } }, - requiredMembers: { - serializedName: "properties.requiredMembers", - readOnly: true, + layersToFreeze: { + serializedName: "layersToFreeze", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", + learningRate: { + serializedName: "learningRate", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } - } - } - } -}; - -export const WorkspaceConnectionPropertiesV2BasicResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkspaceConnectionPropertiesV2BasicResource", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + }, + learningRateScheduler: { + serializedName: "learningRateScheduler", type: { - name: "Composite", - className: "WorkspaceConnectionPropertiesV2" + name: "String" } - } - } - } -}; - -export const TrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", + }, + modelName: { + serializedName: "modelName", + nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - location: { - serializedName: "location", - required: true, + momentum: { + serializedName: "momentum", + nullable: true, type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const CodeContainer: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CodeContainer", - modelProperties: { + }, + 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 NlpVertical: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NlpVertical", + modelProperties: { + featurizationSettings: { + serializedName: "featurizationSettings", + type: { + name: "Composite", + className: "NlpVerticalFeaturizationSettings" + } + }, + limitSettings: { + serializedName: "limitSettings", + type: { + name: "Composite", + className: "NlpVerticalLimitSettings" + } + }, + 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" + } + }, + maxTrials: { + defaultValue: 1, + serializedName: "maxTrials", + type: { + name: "Number" + } + }, + timeout: { + defaultValue: "P7D", + serializedName: "timeout", + 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 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 PrivateEndpointResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointResource", + modelProperties: { + ...PrivateEndpoint.type.modelProperties, + subnetArmId: { + serializedName: "subnetArmId", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const RegistryPartialManagedServiceIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryPartialManagedServiceIdentity", + modelProperties: { + ...ManagedServiceIdentity.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" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint" + } + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const Workspace: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Workspace", + modelProperties: { + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + workspaceId: { + serializedName: "properties.workspaceId", + 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" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + sharedPrivateLinkResources: { + serializedName: "properties.sharedPrivateLinkResources", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedPrivateLinkResource" + } + } + } + }, + notebookInfo: { + serializedName: "properties.notebookInfo", + type: { + name: "Composite", + className: "NotebookResourceInfo" + } + }, + serviceManagedResourcesSettings: { + serializedName: "properties.serviceManagedResourcesSettings", + type: { + name: "Composite", + className: "ServiceManagedResourcesSettings" + } + }, + primaryUserAssignedIdentity: { + serializedName: "properties.primaryUserAssignedIdentity", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "properties.tenantId", + readOnly: true, + type: { + name: "String" + } + }, + storageHnsEnabled: { + serializedName: "properties.storageHnsEnabled", + readOnly: true, + type: { + name: "Boolean" + } + }, + mlFlowTrackingUri: { + serializedName: "properties.mlFlowTrackingUri", + readOnly: true, + type: { + name: "String" + } + }, + v1LegacyMode: { + defaultValue: false, + serializedName: "properties.v1LegacyMode", + type: { + name: "Boolean" + } + }, + managedNetwork: { + serializedName: "properties.managedNetwork", + type: { + name: "Composite", + className: "ManagedNetworkSettings" + } + } + } + } +}; + +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 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" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + groupId: { + serializedName: "properties.groupId", + readOnly: true, + type: { + name: "String" + } + }, + requiredMembers: { + serializedName: "properties.requiredMembers", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + type: { + name: "Sequence", + element: { + 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 CodeContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CodeContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CodeContainerProperties" + } + } + } + } +}; + +export const CodeVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CodeVersion", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CodeVersionProperties" + } + } + } + } +}; + +export const ComponentContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ComponentContainerProperties" + } + } + } + } +}; + +export const ComponentVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentVersion", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ComponentVersionProperties" + } + } + } + } +}; + +export const DataContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataContainerProperties" + } + } + } + } +}; + +export const DataVersionBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataVersionBase", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataVersionBaseProperties" + } + } + } + } +}; + +export const EnvironmentContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "EnvironmentContainerProperties" + } + } + } + } +}; + +export const EnvironmentVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentVersion", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "EnvironmentVersionProperties" + } + } + } + } +}; + +export const ModelContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ModelContainerProperties" + } + } + } + } +}; + +export const ModelVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelVersion", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ModelVersionProperties" + } + } + } + } +}; + +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + location: { + serializedName: "location", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const Datastore: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Datastore", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DatastoreProperties" + } + } + } + } +}; + +export const JobBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobBase", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "JobBaseProperties" + } + } + } + } +}; + +export const Schedule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Schedule", + modelProperties: { ...Resource.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "CodeContainerProperties" + className: "ScheduleProperties" + } + } + } + } +}; + +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 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 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 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 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 NoneAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "None", + type: { + name: "Composite", + className: "NoneAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties + } + } +}; + +export const ManagedIdentityAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "ManagedIdentity", + type: { + name: "Composite", + className: "ManagedIdentityAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "WorkspaceConnectionManagedIdentity" + } + } + } + } +}; + +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, + 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" + } + }, + isDefault: { + serializedName: "isDefault", + readOnly: true, + type: { + name: "Boolean" + } + } + } + } +}; + +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" + } + }, + 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 AnonymousAccessCredential: coreClient.CompositeMapper = { + serializedName: "NoCredentials", + type: { + name: "Composite", + className: "AnonymousAccessCredential", + uberParent: "DataReferenceCredential", + polymorphicDiscriminator: + DataReferenceCredential.type.polymorphicDiscriminator, + modelProperties: { + ...DataReferenceCredential.type.modelProperties + } + } +}; + +export const DockerCredential: coreClient.CompositeMapper = { + serializedName: "DockerCredentials", + type: { + name: "Composite", + className: "DockerCredential", + uberParent: "DataReferenceCredential", + polymorphicDiscriminator: + DataReferenceCredential.type.polymorphicDiscriminator, + modelProperties: { + ...DataReferenceCredential.type.modelProperties, + password: { + serializedName: "password", + nullable: true, + type: { + name: "String" + } + }, + userName: { + serializedName: "userName", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const ManagedIdentityCredential: coreClient.CompositeMapper = { + serializedName: "ManagedIdentity", + type: { + name: "Composite", + className: "ManagedIdentityCredential", + uberParent: "DataReferenceCredential", + polymorphicDiscriminator: + DataReferenceCredential.type.polymorphicDiscriminator, + modelProperties: { + ...DataReferenceCredential.type.modelProperties, + managedIdentityType: { + serializedName: "managedIdentityType", + nullable: true, + type: { + name: "String" + } + }, + userManagedIdentityClientId: { + serializedName: "userManagedIdentityClientId", + nullable: true, + type: { + name: "String" + } + }, + userManagedIdentityPrincipalId: { + serializedName: "userManagedIdentityPrincipalId", + nullable: true, + type: { + name: "String" + } + }, + userManagedIdentityResourceId: { + serializedName: "userManagedIdentityResourceId", + nullable: true, + type: { + name: "String" + } + }, + userManagedIdentityTenantId: { + serializedName: "userManagedIdentityTenantId", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const SASCredential: coreClient.CompositeMapper = { + serializedName: "SAS", + type: { + name: "Composite", + className: "SASCredential", + uberParent: "DataReferenceCredential", + polymorphicDiscriminator: + DataReferenceCredential.type.polymorphicDiscriminator, + modelProperties: { + ...DataReferenceCredential.type.modelProperties, + sasUri: { + serializedName: "sasUri", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const BatchEndpointProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchEndpointProperties", + modelProperties: { + ...EndpointPropertiesBase.type.modelProperties, + defaults: { + serializedName: "defaults", + type: { + name: "Composite", + className: "BatchEndpointDefaults" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const OnlineEndpointProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineEndpointProperties", + modelProperties: { + ...EndpointPropertiesBase.type.modelProperties, + compute: { + serializedName: "compute", + nullable: true, + type: { + name: "String" + } + }, + mirrorTraffic: { + serializedName: "mirrorTraffic", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Number" } } + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + publicNetworkAccess: { + serializedName: "publicNetworkAccess", + type: { + name: "String" + } + }, + traffic: { + serializedName: "traffic", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Number" } } + } + } + } + } +}; + +export const PartialMinimalTrackedResourceWithIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialMinimalTrackedResourceWithIdentity", + modelProperties: { + ...PartialMinimalTrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "PartialManagedServiceIdentity" + } + } + } + } +}; + +export const PartialMinimalTrackedResourceWithSku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialMinimalTrackedResourceWithSku", + modelProperties: { + ...PartialMinimalTrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "PartialSku" + } + } + } + } +}; + +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 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 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" + } + }, + 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" } - } - } - } -}; - -export const CodeVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CodeVersion", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + }, + retrySettings: { + serializedName: "retrySettings", type: { name: "Composite", - className: "CodeVersionProperties" + className: "BatchRetrySettings" } } } } }; -export const ComponentContainer: coreClient.CompositeMapper = { +export const OnlineDeploymentProperties: coreClient.CompositeMapper = { + serializedName: "OnlineDeploymentProperties", type: { name: "Composite", - className: "ComponentContainer", + className: "OnlineDeploymentProperties", + uberParent: "EndpointDeploymentPropertiesBase", + polymorphicDiscriminator: { + serializedName: "endpointComputeType", + clientName: "endpointComputeType" + }, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...EndpointDeploymentPropertiesBase.type.modelProperties, + appInsightsEnabled: { + defaultValue: false, + serializedName: "appInsightsEnabled", + type: { + name: "Boolean" + } + }, + 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: "ComponentContainerProperties" + className: "ProbeSettings" } - } - } - } -}; - -export const ComponentVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComponentVersion", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + }, + 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: "ComponentVersionProperties" + className: "ProbeSettings" + } + }, + requestSettings: { + serializedName: "requestSettings", + type: { + name: "Composite", + className: "OnlineRequestSettings" + } + }, + scaleSettings: { + serializedName: "scaleSettings", + type: { + name: "Composite", + className: "OnlineScaleSettings" } } } } }; -export const DataContainer: coreClient.CompositeMapper = { +export const AccountKeyDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "AccountKey", type: { name: "Composite", - className: "DataContainer", + className: "AccountKeyDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", type: { name: "Composite", - className: "DataContainerProperties" + className: "AccountKeyDatastoreSecrets" } } } } }; -export const DataVersionBase: coreClient.CompositeMapper = { +export const CertificateDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "Certificate", type: { name: "Composite", - className: "DataVersionBase", + className: "CertificateDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...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: "DataVersionBaseProperties" + 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 Datastore: coreClient.CompositeMapper = { +export const NoneDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "None", type: { name: "Composite", - className: "Datastore", + className: "NoneDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "DatastoreProperties" - } - } + ...DatastoreCredentials.type.modelProperties } } }; -export const EnvironmentContainer: coreClient.CompositeMapper = { +export const SasDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "Sas", type: { name: "Composite", - className: "EnvironmentContainer", + className: "SasDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", type: { name: "Composite", - className: "EnvironmentContainerProperties" + className: "SasDatastoreSecrets" } } } } }; -export const EnvironmentVersion: coreClient.CompositeMapper = { +export const ServicePrincipalDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "ServicePrincipal", type: { name: "Composite", - className: "EnvironmentVersion", + className: "ServicePrincipalDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...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: "EnvironmentVersionProperties" + className: "ServicePrincipalDatastoreSecrets" + } + }, + tenantId: { + serializedName: "tenantId", + required: true, + type: { + name: "Uuid" } } } } }; -export const JobBase: coreClient.CompositeMapper = { +export const AccountKeyDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "AccountKey", type: { name: "Composite", - className: "JobBase", + className: "AccountKeyDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...DatastoreSecrets.type.modelProperties, + key: { + serializedName: "key", + nullable: true, type: { - name: "Composite", - className: "JobBaseProperties" + name: "String" } } } } }; -export const ModelContainer: coreClient.CompositeMapper = { +export const CertificateDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "Certificate", type: { name: "Composite", - className: "ModelContainer", + className: "CertificateDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...DatastoreSecrets.type.modelProperties, + certificate: { + serializedName: "certificate", + nullable: true, type: { - name: "Composite", - className: "ModelContainerProperties" + name: "String" } } } } }; -export const ModelVersion: coreClient.CompositeMapper = { +export const SasDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "Sas", type: { name: "Composite", - className: "ModelVersion", + className: "SasDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...DatastoreSecrets.type.modelProperties, + sasToken: { + serializedName: "sasToken", + nullable: true, type: { - name: "Composite", - className: "ModelVersionProperties" + name: "String" } } } } }; -export const Schedule: coreClient.CompositeMapper = { +export const ServicePrincipalDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "ServicePrincipal", type: { name: "Composite", - className: "Schedule", + className: "ServicePrincipalDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...DatastoreSecrets.type.modelProperties, + clientSecret: { + serializedName: "clientSecret", + nullable: true, type: { - name: "Composite", - className: "ScheduleProperties" + name: "String" } } } } }; -export const Aks: coreClient.CompositeMapper = { - serializedName: "AKS", +export const AmlToken: coreClient.CompositeMapper = { + serializedName: "AMLToken", type: { name: "Composite", - className: "Aks", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "AmlToken", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: + IdentityConfiguration.type.polymorphicDiscriminator, modelProperties: { - ...Compute.type.modelProperties, - ...AKSSchema.type.modelProperties + ...IdentityConfiguration.type.modelProperties } } }; -export const Kubernetes: coreClient.CompositeMapper = { - serializedName: "Kubernetes", +export const ManagedIdentity: coreClient.CompositeMapper = { + serializedName: "Managed", type: { name: "Composite", - className: "Kubernetes", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "ManagedIdentity", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: + IdentityConfiguration.type.polymorphicDiscriminator, modelProperties: { - ...Compute.type.modelProperties, - ...KubernetesSchema.type.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 AmlCompute: coreClient.CompositeMapper = { - serializedName: "AmlCompute", +export const UserIdentity: coreClient.CompositeMapper = { + serializedName: "UserIdentity", type: { name: "Composite", - className: "AmlCompute", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "UserIdentity", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: + IdentityConfiguration.type.polymorphicDiscriminator, modelProperties: { - ...Compute.type.modelProperties, - ...AmlComputeSchema.type.modelProperties + ...IdentityConfiguration.type.modelProperties } } }; -export const ComputeInstance: coreClient.CompositeMapper = { - serializedName: "ComputeInstance", +export const AllNodes: coreClient.CompositeMapper = { + serializedName: "All", type: { name: "Composite", - className: "ComputeInstance", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "AllNodes", + uberParent: "Nodes", + polymorphicDiscriminator: Nodes.type.polymorphicDiscriminator, modelProperties: { - ...Compute.type.modelProperties, - ...ComputeInstanceSchema.type.modelProperties + ...Nodes.type.modelProperties } } }; -export const VirtualMachine: coreClient.CompositeMapper = { - serializedName: "VirtualMachine", +export const DefaultScaleSettings: coreClient.CompositeMapper = { + serializedName: "Default", type: { name: "Composite", - className: "VirtualMachine", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "DefaultScaleSettings", + uberParent: "OnlineScaleSettings", + polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, modelProperties: { - ...Compute.type.modelProperties, - ...VirtualMachineSchema.type.modelProperties + ...OnlineScaleSettings.type.modelProperties } } }; -export const HDInsight: coreClient.CompositeMapper = { - serializedName: "HDInsight", +export const TargetUtilizationScaleSettings: coreClient.CompositeMapper = { + serializedName: "TargetUtilization", type: { name: "Composite", - className: "HDInsight", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "TargetUtilizationScaleSettings", + uberParent: "OnlineScaleSettings", + polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, modelProperties: { - ...Compute.type.modelProperties, - ...HDInsightSchema.type.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 DataFactory: coreClient.CompositeMapper = { - serializedName: "DataFactory", +export const CreateMonitorAction: coreClient.CompositeMapper = { + serializedName: "CreateMonitor", type: { name: "Composite", - className: "DataFactory", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "CreateMonitorAction", + uberParent: "ScheduleActionBase", + polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, modelProperties: { - ...Compute.type.modelProperties + ...ScheduleActionBase.type.modelProperties, + monitorDefinition: { + serializedName: "monitorDefinition", + type: { + name: "Composite", + className: "MonitorDefinition" + } + } } } }; -export const Databricks: coreClient.CompositeMapper = { - serializedName: "Databricks", +export const EndpointScheduleAction: coreClient.CompositeMapper = { + serializedName: "InvokeBatchEndpoint", type: { name: "Composite", - className: "Databricks", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "EndpointScheduleAction", + uberParent: "ScheduleActionBase", + polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, modelProperties: { - ...Compute.type.modelProperties, - ...DatabricksSchema.type.modelProperties + ...ScheduleActionBase.type.modelProperties, + endpointInvocationDefinition: { + serializedName: "endpointInvocationDefinition", + required: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } } } }; -export const DataLakeAnalytics: coreClient.CompositeMapper = { - serializedName: "DataLakeAnalytics", +export const JobScheduleAction: coreClient.CompositeMapper = { + serializedName: "CreateJob", type: { name: "Composite", - className: "DataLakeAnalytics", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "JobScheduleAction", + uberParent: "ScheduleActionBase", + polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, modelProperties: { - ...Compute.type.modelProperties, - ...DataLakeAnalyticsSchema.type.modelProperties + ...ScheduleActionBase.type.modelProperties, + jobDefinition: { + serializedName: "jobDefinition", + type: { + name: "Composite", + className: "JobBaseProperties" + } + } } } }; -export const SynapseSpark: coreClient.CompositeMapper = { - serializedName: "SynapseSpark", +export const CronTrigger: coreClient.CompositeMapper = { + serializedName: "Cron", type: { name: "Composite", - className: "SynapseSpark", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "CronTrigger", + uberParent: "TriggerBase", + polymorphicDiscriminator: TriggerBase.type.polymorphicDiscriminator, modelProperties: { - ...Compute.type.modelProperties, - properties: { - serializedName: "properties", + ...TriggerBase.type.modelProperties, + expression: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "expression", + required: true, type: { - name: "Composite", - className: "SynapseSparkProperties" + name: "String" } } } } }; -export const AksComputeSecrets: coreClient.CompositeMapper = { - serializedName: "AKS", +export const RecurrenceTrigger: coreClient.CompositeMapper = { + serializedName: "Recurrence", type: { name: "Composite", - className: "AksComputeSecrets", - uberParent: "ComputeSecrets", - polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + className: "RecurrenceTrigger", + uberParent: "TriggerBase", + polymorphicDiscriminator: TriggerBase.type.polymorphicDiscriminator, modelProperties: { - ...ComputeSecrets.type.modelProperties, - ...AksComputeSecretsProperties.type.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 VirtualMachineSecrets: coreClient.CompositeMapper = { - serializedName: "VirtualMachine", +export const AllFeatures: coreClient.CompositeMapper = { + serializedName: "AllFeatures", type: { name: "Composite", - className: "VirtualMachineSecrets", - uberParent: "ComputeSecrets", - polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + className: "AllFeatures", + uberParent: "MonitoringFeatureFilterBase", + polymorphicDiscriminator: + MonitoringFeatureFilterBase.type.polymorphicDiscriminator, modelProperties: { - ...ComputeSecrets.type.modelProperties, - ...VirtualMachineSecretsSchema.type.modelProperties + ...MonitoringFeatureFilterBase.type.modelProperties } } }; -export const DatabricksComputeSecrets: coreClient.CompositeMapper = { - serializedName: "Databricks", +export const FeatureSubset: coreClient.CompositeMapper = { + serializedName: "FeatureSubset", type: { name: "Composite", - className: "DatabricksComputeSecrets", - uberParent: "ComputeSecrets", - polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + className: "FeatureSubset", + uberParent: "MonitoringFeatureFilterBase", + polymorphicDiscriminator: + MonitoringFeatureFilterBase.type.polymorphicDiscriminator, modelProperties: { - ...ComputeSecrets.type.modelProperties, - ...DatabricksComputeSecretsProperties.type.modelProperties + ...MonitoringFeatureFilterBase.type.modelProperties, + features: { + serializedName: "features", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } }; -export const PATAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "PAT", +export const TopNFeaturesByAttribution: coreClient.CompositeMapper = { + serializedName: "TopNByAttribution", type: { name: "Composite", - className: "PATAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", + className: "TopNFeaturesByAttribution", + uberParent: "MonitoringFeatureFilterBase", polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + MonitoringFeatureFilterBase.type.polymorphicDiscriminator, modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", + ...MonitoringFeatureFilterBase.type.modelProperties, + top: { + defaultValue: 10, + serializedName: "top", type: { - name: "Composite", - className: "WorkspaceConnectionPersonalAccessToken" + name: "Number" } } } } }; -export const SASAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "SAS", +export const AmlTokenComputeIdentity: coreClient.CompositeMapper = { + serializedName: "AmlToken", type: { name: "Composite", - className: "SASAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", + className: "AmlTokenComputeIdentity", + uberParent: "MonitorComputeIdentityBase", polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + MonitorComputeIdentityBase.type.polymorphicDiscriminator, modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", - type: { - name: "Composite", - className: "WorkspaceConnectionSharedAccessSignature" - } - } + ...MonitorComputeIdentityBase.type.modelProperties } } }; -export const UsernamePasswordAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "UsernamePassword", +export const ManagedComputeIdentity: coreClient.CompositeMapper = { + serializedName: "ManagedIdentity", type: { name: "Composite", - className: "UsernamePasswordAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", + className: "ManagedComputeIdentity", + uberParent: "MonitorComputeIdentityBase", polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + MonitorComputeIdentityBase.type.polymorphicDiscriminator, modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", + ...MonitorComputeIdentityBase.type.modelProperties, + identity: { + serializedName: "identity", type: { name: "Composite", - className: "WorkspaceConnectionUsernamePassword" + className: "ManagedServiceIdentity" } } } } }; -export const NoneAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "None", +export const MLTableJobInput: coreClient.CompositeMapper = { + serializedName: "mltable", type: { name: "Composite", - className: "NoneAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + className: "MLTableJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties } } }; -export const ManagedIdentityAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "ManagedIdentity", +export const CustomModelJobInput: coreClient.CompositeMapper = { + serializedName: "custom_model", type: { name: "Composite", - className: "ManagedIdentityAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + className: "CustomModelJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", - type: { - name: "Composite", - className: "WorkspaceConnectionManagedIdentity" - } - } + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties } } }; -export const BatchEndpointProperties: coreClient.CompositeMapper = { +export const MLFlowModelJobInput: coreClient.CompositeMapper = { + serializedName: "mlflow_model", type: { name: "Composite", - className: "BatchEndpointProperties", + className: "MLFlowModelJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, modelProperties: { - ...EndpointPropertiesBase.type.modelProperties, - defaults: { - serializedName: "defaults", - type: { - name: "Composite", - className: "BatchEndpointDefaults" - } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - } + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties } } }; -export const OnlineEndpointProperties: coreClient.CompositeMapper = { +export const TritonModelJobInput: coreClient.CompositeMapper = { + serializedName: "triton_model", type: { name: "Composite", - className: "OnlineEndpointProperties", + className: "TritonModelJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, modelProperties: { - ...EndpointPropertiesBase.type.modelProperties, - compute: { - serializedName: "compute", - nullable: true, - type: { - name: "String" - } - }, - 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" } } - } - } + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties } } }; -export const PartialMinimalTrackedResourceWithIdentity: coreClient.CompositeMapper = { +export const UriFileJobInput: coreClient.CompositeMapper = { + serializedName: "uri_file", type: { name: "Composite", - className: "PartialMinimalTrackedResourceWithIdentity", + className: "UriFileJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, modelProperties: { - ...PartialMinimalTrackedResource.type.modelProperties, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "PartialManagedServiceIdentity" - } - } + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties } } }; -export const PartialMinimalTrackedResourceWithSku: coreClient.CompositeMapper = { +export const UriFolderJobInput: coreClient.CompositeMapper = { + serializedName: "uri_folder", type: { name: "Composite", - className: "PartialMinimalTrackedResourceWithSku", - modelProperties: { - ...PartialMinimalTrackedResource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "PartialSku" - } - } + className: "UriFolderJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties } } }; -export const DataPathAssetReference: coreClient.CompositeMapper = { - serializedName: "DataPath", +export const CustomModelJobOutput: coreClient.CompositeMapper = { + serializedName: "custom_model", type: { name: "Composite", - className: "DataPathAssetReference", - uberParent: "AssetReferenceBase", - polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + className: "CustomModelJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, modelProperties: { - ...AssetReferenceBase.type.modelProperties, - datastoreId: { - serializedName: "datastoreId", - nullable: true, - type: { - name: "String" - } - }, - path: { - serializedName: "path", - nullable: true, - type: { - name: "String" - } - } + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties } } }; -export const IdAssetReference: coreClient.CompositeMapper = { - serializedName: "Id", +export const MLFlowModelJobOutput: coreClient.CompositeMapper = { + serializedName: "mlflow_model", type: { name: "Composite", - className: "IdAssetReference", - uberParent: "AssetReferenceBase", - polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + className: "MLFlowModelJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, modelProperties: { - ...AssetReferenceBase.type.modelProperties, - assetId: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "assetId", - required: true, - type: { - name: "String" - } - } + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties } } }; -export const OutputPathAssetReference: coreClient.CompositeMapper = { - serializedName: "OutputPath", +export const MLTableJobOutput: coreClient.CompositeMapper = { + serializedName: "mltable", type: { name: "Composite", - className: "OutputPathAssetReference", - uberParent: "AssetReferenceBase", - polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + className: "MLTableJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, modelProperties: { - ...AssetReferenceBase.type.modelProperties, - jobId: { - serializedName: "jobId", - nullable: true, - type: { - name: "String" - } - }, - path: { - serializedName: "path", - nullable: true, - type: { - name: "String" - } - } + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties } } }; -export const DeploymentResourceConfiguration: coreClient.CompositeMapper = { +export const TritonModelJobOutput: coreClient.CompositeMapper = { + serializedName: "triton_model", type: { name: "Composite", - className: "DeploymentResourceConfiguration", + className: "TritonModelJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, modelProperties: { - ...ResourceConfiguration.type.modelProperties + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties } } }; -export const JobResourceConfiguration: coreClient.CompositeMapper = { +export const UriFileJobOutput: coreClient.CompositeMapper = { + serializedName: "uri_file", type: { name: "Composite", - className: "JobResourceConfiguration", + className: "UriFileJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, 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" - } - } + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties } } }; -export const BatchDeploymentProperties: coreClient.CompositeMapper = { +export const UriFolderJobOutput: coreClient.CompositeMapper = { + serializedName: "uri_folder", type: { name: "Composite", - className: "BatchDeploymentProperties", + className: "UriFolderJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, modelProperties: { - ...EndpointDeploymentPropertiesBase.type.modelProperties, - compute: { - serializedName: "compute", - nullable: true, - type: { - name: "String" - } - }, - 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" - } - } + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties } } }; -export const OnlineDeploymentProperties: coreClient.CompositeMapper = { - serializedName: "OnlineDeploymentProperties", +export const AutoForecastHorizon: coreClient.CompositeMapper = { + serializedName: "Auto", type: { name: "Composite", - className: "OnlineDeploymentProperties", - uberParent: "EndpointDeploymentPropertiesBase", - polymorphicDiscriminator: { - serializedName: "endpointComputeType", - clientName: "endpointComputeType" - }, - modelProperties: { - ...EndpointDeploymentPropertiesBase.type.modelProperties, - appInsightsEnabled: { - defaultValue: false, - serializedName: "appInsightsEnabled", - type: { - name: "Boolean" - } - }, - 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, + 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: "String" + name: "Number" } - }, - modelMountPath: { - serializedName: "modelMountPath", + } + } + } +}; + +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" } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + primaryMetric: { + serializedName: "primaryMetric", type: { name: "String" } }, - readinessProbe: { - serializedName: "readinessProbe", - type: { - name: "Composite", - className: "ProbeSettings" - } - }, - requestSettings: { - serializedName: "requestSettings", - type: { - name: "Composite", - className: "OnlineRequestSettings" - } - }, - scaleSettings: { - serializedName: "scaleSettings", + trainingSettings: { + serializedName: "trainingSettings", type: { name: "Composite", - className: "OnlineScaleSettings" + className: "ClassificationTrainingSettings" } } } } }; -export const AssetContainer: coreClient.CompositeMapper = { +export const Forecasting: coreClient.CompositeMapper = { + serializedName: "Forecasting", type: { name: "Composite", - className: "AssetContainer", + className: "Forecasting", + uberParent: "TableVertical", + polymorphicDiscriminator: TableVertical.type.polymorphicDiscriminator, modelProperties: { - ...ResourceBase.type.modelProperties, - isArchived: { - defaultValue: false, - serializedName: "isArchived", + ...TableVertical.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + forecastingSettings: { + serializedName: "forecastingSettings", type: { - name: "Boolean" + name: "Composite", + className: "ForecastingSettings" } }, - latestVersion: { - serializedName: "latestVersion", - readOnly: true, - nullable: true, + primaryMetric: { + serializedName: "primaryMetric", type: { name: "String" } }, - nextVersion: { - serializedName: "nextVersion", - readOnly: true, - nullable: true, + trainingSettings: { + serializedName: "trainingSettings", type: { - name: "String" + name: "Composite", + className: "ForecastingTrainingSettings" } } } } }; -export const AssetBase: coreClient.CompositeMapper = { +export const ImageClassificationBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssetBase", + className: "ImageClassificationBase", modelProperties: { - ...ResourceBase.type.modelProperties, - isAnonymous: { - defaultValue: false, - serializedName: "isAnonymous", + ...ImageVertical.type.modelProperties, + modelSettings: { + serializedName: "modelSettings", type: { - name: "Boolean" + name: "Composite", + className: "ImageModelSettingsClassification" } }, - isArchived: { - defaultValue: false, - serializedName: "isArchived", + searchSpace: { + serializedName: "searchSpace", + nullable: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageModelDistributionSettingsClassification" + } + } } } } } }; -export const DatastoreProperties: coreClient.CompositeMapper = { - serializedName: "DatastoreProperties", +export const ImageClassification: coreClient.CompositeMapper = { + serializedName: "ImageClassification", type: { name: "Composite", - className: "DatastoreProperties", - uberParent: "ResourceBase", - polymorphicDiscriminator: { - serializedName: "datastoreType", - clientName: "datastoreType" - }, + className: "ImageClassification", + uberParent: "ImageClassificationBase", modelProperties: { - ...ResourceBase.type.modelProperties, - credentials: { - serializedName: "credentials", - type: { - name: "Composite", - className: "DatastoreCredentials" - } - }, - datastoreType: { - serializedName: "datastoreType", - required: true, + ...ImageClassificationBase.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", type: { name: "String" } - }, - isDefault: { - serializedName: "isDefault", - readOnly: true, - type: { - name: "Boolean" - } } } } }; +ImageClassificationBase.type.polymorphicDiscriminator = + ImageClassificationBase.type.polymorphicDiscriminator; -export const JobBaseProperties: coreClient.CompositeMapper = { - serializedName: "JobBaseProperties", +export const ImageClassificationMultilabel: coreClient.CompositeMapper = { + serializedName: "ImageClassificationMultilabel", type: { name: "Composite", - className: "JobBaseProperties", - uberParent: "ResourceBase", - polymorphicDiscriminator: { - serializedName: "jobType", - clientName: "jobType" - }, + className: "ImageClassificationMultilabel", + uberParent: "ImageClassificationBase", + polymorphicDiscriminator: + ImageClassificationBase.type.polymorphicDiscriminator, 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", + ...ImageClassificationBase.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", type: { name: "String" } - }, - identity: { - serializedName: "identity", + } + } + } +}; + +export const ImageObjectDetectionBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageObjectDetectionBase", + modelProperties: { + ...ImageVertical.type.modelProperties, + modelSettings: { + serializedName: "modelSettings", type: { name: "Composite", - className: "IdentityConfiguration" + className: "ImageModelSettingsObjectDetection" } }, - isArchived: { - defaultValue: false, - serializedName: "isArchived", + searchSpace: { + serializedName: "searchSpace", + nullable: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageModelDistributionSettingsObjectDetection" + } + } } - }, - jobType: { - serializedName: "jobType", - required: true, + } + } + } +}; + +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" } - }, - services: { - serializedName: "services", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobService" } } - } - }, - status: { - serializedName: "status", - readOnly: true, + } + } + } +}; + +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" } @@ -8543,248 +11579,332 @@ export const JobBaseProperties: coreClient.CompositeMapper = { } } }; +ImageObjectDetectionBase.type.polymorphicDiscriminator = + ImageObjectDetectionBase.type.polymorphicDiscriminator; -export const ScheduleProperties: coreClient.CompositeMapper = { +export const Regression: coreClient.CompositeMapper = { + serializedName: "Regression", type: { name: "Composite", - className: "ScheduleProperties", + className: "Regression", + uberParent: "TableVertical", + polymorphicDiscriminator: TableVertical.type.polymorphicDiscriminator, modelProperties: { - ...ResourceBase.type.modelProperties, - action: { - serializedName: "action", - type: { - name: "Composite", - className: "ScheduleActionBase" - } - }, - displayName: { - serializedName: "displayName", - nullable: true, + ...TableVertical.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", type: { name: "String" } }, - isEnabled: { - defaultValue: true, - serializedName: "isEnabled", + trainingSettings: { + serializedName: "trainingSettings", type: { - name: "Boolean" + name: "Composite", + className: "RegressionTrainingSettings" } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + } + } + } +}; + +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" } - }, - trigger: { - serializedName: "trigger", - type: { - name: "Composite", - className: "TriggerBase" - } } } } }; -export const AccountKeyDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "AccountKey", +export const TextClassificationMultilabel: coreClient.CompositeMapper = { + serializedName: "TextClassificationMultilabel", type: { name: "Composite", - className: "AccountKeyDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "TextClassificationMultilabel", + uberParent: "NlpVertical", + polymorphicDiscriminator: NlpVertical.type.polymorphicDiscriminator, modelProperties: { - ...DatastoreCredentials.type.modelProperties, - secrets: { - serializedName: "secrets", + ...NlpVertical.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", + readOnly: true, type: { - name: "Composite", - className: "AccountKeyDatastoreSecrets" + name: "String" } } } } }; -export const CertificateDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "Certificate", +export const TextNer: coreClient.CompositeMapper = { + serializedName: "TextNER", type: { name: "Composite", - className: "CertificateDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "TextNer", + uberParent: "NlpVertical", + polymorphicDiscriminator: NlpVertical.type.polymorphicDiscriminator, modelProperties: { - ...DatastoreCredentials.type.modelProperties, - authorityUrl: { - serializedName: "authorityUrl", - nullable: true, + ...NlpVertical.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", + readOnly: true, type: { name: "String" } - }, - clientId: { - serializedName: "clientId", + } + } + } +}; + +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: "Uuid" - } - }, - resourceUrl: { - serializedName: "resourceUrl", - nullable: true, type: { name: "String" } - }, - secrets: { - serializedName: "secrets", + } + } + } +}; + +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: "Composite", - className: "CertificateDatastoreSecrets" + name: "Number" } - }, - tenantId: { - serializedName: "tenantId", + } + } + } +}; + +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: "Uuid" + name: "Number" } - }, - thumbprint: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "thumbprint", + } + } + } +}; + +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: "String" + name: "Sequence", + element: { + type: { + name: "Number" + } + } } } } } }; -export const NoneDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "None", +export const AutoTargetRollingWindowSize: coreClient.CompositeMapper = { + serializedName: "Auto", type: { name: "Composite", - className: "NoneDatastoreCredentials", - uberParent: "DatastoreCredentials", + className: "AutoTargetRollingWindowSize", + uberParent: "TargetRollingWindowSize", polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + TargetRollingWindowSize.type.polymorphicDiscriminator, modelProperties: { - ...DatastoreCredentials.type.modelProperties + ...TargetRollingWindowSize.type.modelProperties } } }; -export const SasDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "Sas", +export const CustomTargetRollingWindowSize: coreClient.CompositeMapper = { + serializedName: "Custom", type: { name: "Composite", - className: "SasDatastoreCredentials", - uberParent: "DatastoreCredentials", + className: "CustomTargetRollingWindowSize", + uberParent: "TargetRollingWindowSize", polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + TargetRollingWindowSize.type.polymorphicDiscriminator, modelProperties: { - ...DatastoreCredentials.type.modelProperties, - secrets: { - serializedName: "secrets", + ...TargetRollingWindowSize.type.modelProperties, + value: { + serializedName: "value", + required: true, type: { - name: "Composite", - className: "SasDatastoreSecrets" + name: "Number" } } } } }; -export const ServicePrincipalDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "ServicePrincipal", +export const AzureBlobDatastore: coreClient.CompositeMapper = { + serializedName: "AzureBlob", type: { name: "Composite", - className: "ServicePrincipalDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "AzureBlobDatastore", + uberParent: "AzureDatastore", + polymorphicDiscriminator: AzureDatastore.type.polymorphicDiscriminator, modelProperties: { - ...DatastoreCredentials.type.modelProperties, - authorityUrl: { - serializedName: "authorityUrl", + ...AzureDatastore.type.modelProperties, + ...DatastoreProperties.type.modelProperties, + accountName: { + serializedName: "accountName", nullable: true, type: { name: "String" } }, - clientId: { - serializedName: "clientId", - required: true, + containerName: { + serializedName: "containerName", + nullable: true, type: { - name: "Uuid" + name: "String" } }, - resourceUrl: { - serializedName: "resourceUrl", + endpoint: { + serializedName: "endpoint", nullable: true, type: { name: "String" } }, - secrets: { - serializedName: "secrets", + protocol: { + serializedName: "protocol", + nullable: true, type: { - name: "Composite", - className: "ServicePrincipalDatastoreSecrets" + name: "String" } }, - tenantId: { - serializedName: "tenantId", - required: true, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", type: { - name: "Uuid" + name: "String" } } } } }; -export const AccountKeyDatastoreSecrets: coreClient.CompositeMapper = { - serializedName: "AccountKey", +export const AzureDataLakeGen1Datastore: coreClient.CompositeMapper = { + serializedName: "AzureDataLakeGen1", type: { name: "Composite", - className: "AccountKeyDatastoreSecrets", - uberParent: "DatastoreSecrets", - polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + className: "AzureDataLakeGen1Datastore", + uberParent: "AzureDatastore", + polymorphicDiscriminator: AzureDatastore.type.polymorphicDiscriminator, modelProperties: { - ...DatastoreSecrets.type.modelProperties, - key: { - serializedName: "key", - nullable: true, + ...AzureDatastore.type.modelProperties, + ...DatastoreProperties.type.modelProperties, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", 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, + }, + storeName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "storeName", + required: true, type: { name: "String" } @@ -8793,155 +11913,173 @@ export const CertificateDatastoreSecrets: coreClient.CompositeMapper = { } }; -export const SasDatastoreSecrets: coreClient.CompositeMapper = { - serializedName: "Sas", +export const AzureDataLakeGen2Datastore: coreClient.CompositeMapper = { + serializedName: "AzureDataLakeGen2", type: { name: "Composite", - className: "SasDatastoreSecrets", - uberParent: "DatastoreSecrets", - polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + className: "AzureDataLakeGen2Datastore", + uberParent: "AzureDatastore", + polymorphicDiscriminator: AzureDatastore.type.polymorphicDiscriminator, modelProperties: { - ...DatastoreSecrets.type.modelProperties, - sasToken: { - serializedName: "sasToken", + ...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" } - } - } - } -}; - -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", + }, + 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 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 AzureFileDatastore: coreClient.CompositeMapper = { + serializedName: "AzureFile", type: { name: "Composite", - className: "ManagedIdentity", - uberParent: "IdentityConfiguration", - polymorphicDiscriminator: - IdentityConfiguration.type.polymorphicDiscriminator, + className: "AzureFileDatastore", + uberParent: "AzureDatastore", + polymorphicDiscriminator: AzureDatastore.type.polymorphicDiscriminator, modelProperties: { - ...IdentityConfiguration.type.modelProperties, - clientId: { - serializedName: "clientId", - nullable: true, + ...AzureDatastore.type.modelProperties, + ...DatastoreProperties.type.modelProperties, + accountName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "accountName", + required: true, type: { - name: "Uuid" + name: "String" } }, - objectId: { - serializedName: "objectId", + endpoint: { + serializedName: "endpoint", nullable: true, type: { - name: "Uuid" + name: "String" } }, - resourceId: { - serializedName: "resourceId", + 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 UserIdentity: coreClient.CompositeMapper = { - serializedName: "UserIdentity", +export const BanditPolicy: coreClient.CompositeMapper = { + serializedName: "Bandit", type: { name: "Composite", - className: "UserIdentity", - uberParent: "IdentityConfiguration", + className: "BanditPolicy", + uberParent: "EarlyTerminationPolicy", polymorphicDiscriminator: - IdentityConfiguration.type.polymorphicDiscriminator, + EarlyTerminationPolicy.type.polymorphicDiscriminator, modelProperties: { - ...IdentityConfiguration.type.modelProperties + ...EarlyTerminationPolicy.type.modelProperties, + slackAmount: { + defaultValue: 0, + serializedName: "slackAmount", + type: { + name: "Number" + } + }, + slackFactor: { + defaultValue: 0, + serializedName: "slackFactor", + type: { + name: "Number" + } + } } } }; -export const DefaultScaleSettings: coreClient.CompositeMapper = { - serializedName: "Default", +export const MedianStoppingPolicy: coreClient.CompositeMapper = { + serializedName: "MedianStopping", type: { name: "Composite", - className: "DefaultScaleSettings", - uberParent: "OnlineScaleSettings", - polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, + className: "MedianStoppingPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: + EarlyTerminationPolicy.type.polymorphicDiscriminator, modelProperties: { - ...OnlineScaleSettings.type.modelProperties + ...EarlyTerminationPolicy.type.modelProperties } } }; -export const TargetUtilizationScaleSettings: coreClient.CompositeMapper = { - serializedName: "TargetUtilization", +export const TruncationSelectionPolicy: coreClient.CompositeMapper = { + serializedName: "TruncationSelection", type: { name: "Composite", - className: "TargetUtilizationScaleSettings", - uberParent: "OnlineScaleSettings", - polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, + className: "TruncationSelectionPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: + EarlyTerminationPolicy.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", + ...EarlyTerminationPolicy.type.modelProperties, + truncationPercentage: { + defaultValue: 0, + serializedName: "truncationPercentage", type: { name: "Number" } @@ -8950,95 +12088,70 @@ export const TargetUtilizationScaleSettings: coreClient.CompositeMapper = { } }; -export const EndpointScheduleAction: coreClient.CompositeMapper = { - serializedName: "InvokeBatchEndpoint", +export const BayesianSamplingAlgorithm: coreClient.CompositeMapper = { + serializedName: "Bayesian", type: { name: "Composite", - className: "EndpointScheduleAction", - uberParent: "ScheduleActionBase", - polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, + className: "BayesianSamplingAlgorithm", + uberParent: "SamplingAlgorithm", + polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, modelProperties: { - ...ScheduleActionBase.type.modelProperties, - endpointInvocationDefinition: { - serializedName: "endpointInvocationDefinition", - required: true, - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } + ...SamplingAlgorithm.type.modelProperties } } }; -export const JobScheduleAction: coreClient.CompositeMapper = { - serializedName: "CreateJob", +export const GridSamplingAlgorithm: coreClient.CompositeMapper = { + serializedName: "Grid", type: { name: "Composite", - className: "JobScheduleAction", - uberParent: "ScheduleActionBase", - polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, + className: "GridSamplingAlgorithm", + uberParent: "SamplingAlgorithm", + polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, modelProperties: { - ...ScheduleActionBase.type.modelProperties, - jobDefinition: { - serializedName: "jobDefinition", - type: { - name: "Composite", - className: "JobBaseProperties" - } - } + ...SamplingAlgorithm.type.modelProperties } } }; -export const RecurrenceTrigger: coreClient.CompositeMapper = { - serializedName: "Recurrence", +export const RandomSamplingAlgorithm: coreClient.CompositeMapper = { + serializedName: "Random", type: { name: "Composite", - className: "RecurrenceTrigger", - uberParent: "TriggerBase", - polymorphicDiscriminator: TriggerBase.type.polymorphicDiscriminator, + className: "RandomSamplingAlgorithm", + uberParent: "SamplingAlgorithm", + polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, modelProperties: { - ...TriggerBase.type.modelProperties, - frequency: { - serializedName: "frequency", - required: true, + ...SamplingAlgorithm.type.modelProperties, + rule: { + serializedName: "rule", type: { name: "String" } }, - interval: { - serializedName: "interval", - required: true, + seed: { + serializedName: "seed", + nullable: true, type: { name: "Number" } - }, - schedule: { - serializedName: "schedule", - type: { - name: "Composite", - className: "RecurrenceSchedule" - } } } } }; -export const CronTrigger: coreClient.CompositeMapper = { - serializedName: "Cron", +export const CategoricalDataDriftMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Categorical", type: { name: "Composite", - className: "CronTrigger", - uberParent: "TriggerBase", - polymorphicDiscriminator: TriggerBase.type.polymorphicDiscriminator, + className: "CategoricalDataDriftMetricThreshold", + uberParent: "DataDriftMetricThresholdBase", + polymorphicDiscriminator: + DataDriftMetricThresholdBase.type.polymorphicDiscriminator, modelProperties: { - ...TriggerBase.type.modelProperties, - expression: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "expression", + ...DataDriftMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", required: true, type: { name: "String" @@ -9048,297 +12161,489 @@ export const CronTrigger: coreClient.CompositeMapper = { } }; -export const MLTableJobInput: coreClient.CompositeMapper = { - serializedName: "mltable", +export const NumericalDataDriftMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Numerical", type: { name: "Composite", - className: "MLTableJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + className: "NumericalDataDriftMetricThreshold", + uberParent: "DataDriftMetricThresholdBase", + polymorphicDiscriminator: + DataDriftMetricThresholdBase.type.polymorphicDiscriminator, modelProperties: { - ...AssetJobInput.type.modelProperties, - ...JobInput.type.modelProperties + ...DataDriftMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + } } } }; -export const CustomModelJobInput: coreClient.CompositeMapper = { - serializedName: "custom_model", +export const CategoricalDataQualityMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Categorical", type: { name: "Composite", - className: "CustomModelJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + className: "CategoricalDataQualityMetricThreshold", + uberParent: "DataQualityMetricThresholdBase", + polymorphicDiscriminator: + DataQualityMetricThresholdBase.type.polymorphicDiscriminator, modelProperties: { - ...AssetJobInput.type.modelProperties, - ...JobInput.type.modelProperties + ...DataQualityMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + } } } }; -export const MLFlowModelJobInput: coreClient.CompositeMapper = { - serializedName: "mlflow_model", +export const NumericalDataQualityMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Numerical", type: { name: "Composite", - className: "MLFlowModelJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + className: "NumericalDataQualityMetricThreshold", + uberParent: "DataQualityMetricThresholdBase", + polymorphicDiscriminator: + DataQualityMetricThresholdBase.type.polymorphicDiscriminator, modelProperties: { - ...AssetJobInput.type.modelProperties, - ...JobInput.type.modelProperties + ...DataQualityMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + } } } }; -export const TritonModelJobInput: coreClient.CompositeMapper = { - serializedName: "triton_model", +export const CategoricalPredictionDriftMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Categorical", type: { name: "Composite", - className: "TritonModelJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + className: "CategoricalPredictionDriftMetricThreshold", + uberParent: "PredictionDriftMetricThresholdBase", + polymorphicDiscriminator: + PredictionDriftMetricThresholdBase.type.polymorphicDiscriminator, modelProperties: { - ...AssetJobInput.type.modelProperties, - ...JobInput.type.modelProperties + ...PredictionDriftMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + } } } }; -export const UriFileJobInput: coreClient.CompositeMapper = { - serializedName: "uri_file", +export const NumericalPredictionDriftMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Numerical", type: { name: "Composite", - className: "UriFileJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + className: "NumericalPredictionDriftMetricThreshold", + uberParent: "PredictionDriftMetricThresholdBase", + polymorphicDiscriminator: + PredictionDriftMetricThresholdBase.type.polymorphicDiscriminator, modelProperties: { - ...AssetJobInput.type.modelProperties, - ...JobInput.type.modelProperties + ...PredictionDriftMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + } } } }; -export const UriFolderJobInput: coreClient.CompositeMapper = { - serializedName: "uri_folder", +export const ClassificationTrainingSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UriFolderJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + className: "ClassificationTrainingSettings", modelProperties: { - ...AssetJobInput.type.modelProperties, - ...JobInput.type.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 CustomModelJobOutput: coreClient.CompositeMapper = { - serializedName: "custom_model", +export const ForecastingTrainingSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomModelJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "ForecastingTrainingSettings", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.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 MLFlowModelJobOutput: coreClient.CompositeMapper = { - serializedName: "mlflow_model", +export const RegressionTrainingSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MLFlowModelJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "RegressionTrainingSettings", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.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 MLTableJobOutput: coreClient.CompositeMapper = { - serializedName: "mltable", +export const TableVerticalFeaturizationSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MLTableJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "TableVerticalFeaturizationSettings", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.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 TritonModelJobOutput: coreClient.CompositeMapper = { - serializedName: "triton_model", +export const NlpVerticalFeaturizationSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TritonModelJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "NlpVerticalFeaturizationSettings", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...FeaturizationSettings.type.modelProperties } } }; -export const UriFileJobOutput: coreClient.CompositeMapper = { - serializedName: "uri_file", +export const Mpi: coreClient.CompositeMapper = { + serializedName: "Mpi", type: { name: "Composite", - className: "UriFileJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "Mpi", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: + DistributionConfiguration.type.polymorphicDiscriminator, modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...DistributionConfiguration.type.modelProperties, + processCountPerInstance: { + serializedName: "processCountPerInstance", + nullable: true, + type: { + name: "Number" + } + } } } }; -export const UriFolderJobOutput: coreClient.CompositeMapper = { - serializedName: "uri_folder", +export const PyTorch: coreClient.CompositeMapper = { + serializedName: "PyTorch", type: { name: "Composite", - className: "UriFolderJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "PyTorch", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: + DistributionConfiguration.type.polymorphicDiscriminator, modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...DistributionConfiguration.type.modelProperties, + processCountPerInstance: { + serializedName: "processCountPerInstance", + nullable: true, + type: { + name: "Number" + } + } } } }; -export const AutoForecastHorizon: coreClient.CompositeMapper = { - serializedName: "Auto", +export const TensorFlow: coreClient.CompositeMapper = { + serializedName: "TensorFlow", type: { name: "Composite", - className: "AutoForecastHorizon", - uberParent: "ForecastHorizon", - polymorphicDiscriminator: ForecastHorizon.type.polymorphicDiscriminator, + className: "TensorFlow", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: + DistributionConfiguration.type.polymorphicDiscriminator, modelProperties: { - ...ForecastHorizon.type.modelProperties + ...DistributionConfiguration.type.modelProperties, + parameterServerCount: { + defaultValue: 0, + serializedName: "parameterServerCount", + type: { + name: "Number" + } + }, + workerCount: { + serializedName: "workerCount", + nullable: true, + type: { + name: "Number" + } + } } } }; -export const CustomForecastHorizon: coreClient.CompositeMapper = { - serializedName: "Custom", +export const CommandJobLimits: coreClient.CompositeMapper = { + serializedName: "Command", type: { name: "Composite", - className: "CustomForecastHorizon", - uberParent: "ForecastHorizon", - polymorphicDiscriminator: ForecastHorizon.type.polymorphicDiscriminator, + className: "CommandJobLimits", + uberParent: "JobLimits", + polymorphicDiscriminator: JobLimits.type.polymorphicDiscriminator, modelProperties: { - ...ForecastHorizon.type.modelProperties, - value: { - serializedName: "value", - required: true, - type: { - name: "Number" - } - } + ...JobLimits.type.modelProperties } } }; -export const Classification: coreClient.CompositeMapper = { - serializedName: "Classification", +export const SweepJobLimits: coreClient.CompositeMapper = { + serializedName: "Sweep", type: { name: "Composite", - className: "Classification", - uberParent: "TableVertical", - polymorphicDiscriminator: TableVertical.type.polymorphicDiscriminator, + className: "SweepJobLimits", + uberParent: "JobLimits", + polymorphicDiscriminator: JobLimits.type.polymorphicDiscriminator, modelProperties: { - ...TableVertical.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - positiveLabel: { - serializedName: "positiveLabel", + ...JobLimits.type.modelProperties, + maxConcurrentTrials: { + serializedName: "maxConcurrentTrials", nullable: true, type: { - name: "String" + name: "Number" } }, - primaryMetric: { - serializedName: "primaryMetric", + maxTotalTrials: { + serializedName: "maxTotalTrials", + nullable: true, type: { - name: "String" + name: "Number" } }, - trainingSettings: { - serializedName: "trainingSettings", + trialTimeout: { + serializedName: "trialTimeout", + nullable: true, type: { - name: "Composite", - className: "ClassificationTrainingSettings" + name: "TimeSpan" } } } } }; -export const Forecasting: coreClient.CompositeMapper = { - serializedName: "Forecasting", +export const MonitorServerlessSparkCompute: coreClient.CompositeMapper = { + serializedName: "ServerlessSpark", type: { name: "Composite", - className: "Forecasting", - uberParent: "TableVertical", - polymorphicDiscriminator: TableVertical.type.polymorphicDiscriminator, + className: "MonitorServerlessSparkCompute", + uberParent: "MonitorComputeConfigurationBase", + polymorphicDiscriminator: + MonitorComputeConfigurationBase.type.polymorphicDiscriminator, modelProperties: { - ...TableVertical.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - forecastingSettings: { - serializedName: "forecastingSettings", + ...MonitorComputeConfigurationBase.type.modelProperties, + computeIdentity: { + serializedName: "computeIdentity", type: { name: "Composite", - className: "ForecastingSettings" + className: "MonitorComputeIdentityBase" } }, - primaryMetric: { - serializedName: "primaryMetric", + instanceType: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "instanceType", + required: true, type: { name: "String" } }, - trainingSettings: { - serializedName: "trainingSettings", + runtimeVersion: { + constraints: { + Pattern: new RegExp("^[0-9]+\\.[0-9]+$"), + MinLength: 1 + }, + serializedName: "runtimeVersion", + required: true, type: { - name: "Composite", - className: "ForecastingTrainingSettings" + name: "String" } } } } }; -export const ImageClassificationBase: coreClient.CompositeMapper = { +export const CustomMonitoringSignal: coreClient.CompositeMapper = { + serializedName: "Custom", type: { name: "Composite", - className: "ImageClassificationBase", + className: "CustomMonitoringSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, modelProperties: { - ...ImageVertical.type.modelProperties, - modelSettings: { - serializedName: "modelSettings", + ...MonitoringSignalBase.type.modelProperties, + componentId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "componentId", + required: true, type: { - name: "Composite", - className: "ImageModelSettingsClassification" + name: "String" } }, - searchSpace: { - serializedName: "searchSpace", + 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: "ImageModelDistributionSettingsClassification" + className: "CustomMetricThreshold" } } } @@ -9347,580 +12652,828 @@ export const ImageClassificationBase: coreClient.CompositeMapper = { } }; -export const ImageClassification: coreClient.CompositeMapper = { - serializedName: "ImageClassification", +export const DataDriftMonitoringSignal: coreClient.CompositeMapper = { + serializedName: "DataDrift", type: { name: "Composite", - className: "ImageClassification", - uberParent: "ImageClassificationBase", + className: "DataDriftMonitoringSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, modelProperties: { - ...ImageClassificationBase.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + ...MonitoringSignalBase.type.modelProperties, + featureDataTypeOverride: { + serializedName: "featureDataTypeOverride", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { 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", + }, + featureImportanceSettings: { + serializedName: "featureImportanceSettings", type: { - name: "String" + name: "Composite", + className: "FeatureImportanceSettings" } - } - } - } -}; - -export const ImageObjectDetectionBase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImageObjectDetectionBase", - modelProperties: { - ...ImageVertical.type.modelProperties, - modelSettings: { - serializedName: "modelSettings", + }, + features: { + serializedName: "features", type: { name: "Composite", - className: "ImageModelSettingsObjectDetection" + className: "MonitoringFeatureFilterBase" } }, - searchSpace: { - serializedName: "searchSpace", - nullable: true, + metricThresholds: { + serializedName: "metricThresholds", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ImageModelDistributionSettingsObjectDetection" + className: "DataDriftMetricThresholdBase" } } } - } - } - } -}; - -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", + }, + productionData: { + serializedName: "productionData", type: { - name: "String" + name: "Composite", + className: "MonitoringInputDataBase" } - } - } - } -}; - -export const ImageObjectDetection: coreClient.CompositeMapper = { - serializedName: "ImageObjectDetection", - type: { - name: "Composite", - className: "ImageObjectDetection", - uberParent: "ImageObjectDetectionBase", - modelProperties: { - ...ImageObjectDetectionBase.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + }, + referenceData: { + serializedName: "referenceData", type: { - name: "String" + name: "Composite", + className: "MonitoringInputDataBase" } } } } }; -ImageObjectDetectionBase.type.polymorphicDiscriminator = - ImageObjectDetectionBase.type.polymorphicDiscriminator; -export const Regression: coreClient.CompositeMapper = { - serializedName: "Regression", +export const DataQualityMonitoringSignal: coreClient.CompositeMapper = { + serializedName: "DataQuality", type: { name: "Composite", - className: "Regression", - uberParent: "TableVertical", - polymorphicDiscriminator: TableVertical.type.polymorphicDiscriminator, + className: "DataQualityMonitoringSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, modelProperties: { - ...TableVertical.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + ...MonitoringSignalBase.type.modelProperties, + featureDataTypeOverride: { + serializedName: "featureDataTypeOverride", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - trainingSettings: { - serializedName: "trainingSettings", + featureImportanceSettings: { + serializedName: "featureImportanceSettings", type: { name: "Composite", - className: "RegressionTrainingSettings" + className: "FeatureImportanceSettings" } - } - } - } -}; - -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", + }, + features: { + serializedName: "features", type: { - name: "String" + name: "Composite", + className: "MonitoringFeatureFilterBase" } - } - } - } -}; - -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, + }, + metricThresholds: { + serializedName: "metricThresholds", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataQualityMetricThresholdBase" + } + } } - } - } - } -}; - -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, + }, + productionData: { + serializedName: "productionData", type: { - name: "String" + name: "Composite", + className: "MonitoringInputDataBase" + } + }, + referenceData: { + serializedName: "referenceData", + type: { + name: "Composite", + className: "MonitoringInputDataBase" } } } } }; -export const LiteralJobInput: coreClient.CompositeMapper = { - serializedName: "literal", +export const FeatureAttributionDriftMonitoringSignal: coreClient.CompositeMapper = { + serializedName: "FeatureAttributionDrift", type: { name: "Composite", - className: "LiteralJobInput", - uberParent: "JobInput", - polymorphicDiscriminator: JobInput.type.polymorphicDiscriminator, + className: "FeatureAttributionDriftMonitoringSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, modelProperties: { - ...JobInput.type.modelProperties, - value: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "value", + ...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: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + } + } + }, + referenceData: { + serializedName: "referenceData", + type: { + name: "Composite", + className: "MonitoringInputDataBase" } } } } }; -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 PredictionDriftMonitoringSignal: coreClient.CompositeMapper = { + serializedName: "PredictionDrift", type: { name: "Composite", - className: "CustomNCrossValidations", - uberParent: "NCrossValidations", - polymorphicDiscriminator: NCrossValidations.type.polymorphicDiscriminator, + className: "PredictionDriftMonitoringSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, modelProperties: { - ...NCrossValidations.type.modelProperties, - value: { - serializedName: "value", + ...MonitoringSignalBase.type.modelProperties, + featureDataTypeOverride: { + serializedName: "featureDataTypeOverride", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + metricThresholds: { + serializedName: "metricThresholds", required: true, type: { - name: "Number" + 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 AutoSeasonality: coreClient.CompositeMapper = { - serializedName: "Auto", +export const FixedInputData: coreClient.CompositeMapper = { + serializedName: "Fixed", type: { name: "Composite", - className: "AutoSeasonality", - uberParent: "Seasonality", - polymorphicDiscriminator: Seasonality.type.polymorphicDiscriminator, + className: "FixedInputData", + uberParent: "MonitoringInputDataBase", + polymorphicDiscriminator: + MonitoringInputDataBase.type.polymorphicDiscriminator, modelProperties: { - ...Seasonality.type.modelProperties + ...MonitoringInputDataBase.type.modelProperties } } }; -export const CustomSeasonality: coreClient.CompositeMapper = { - serializedName: "Custom", +export const RollingInputData: coreClient.CompositeMapper = { + serializedName: "Rolling", type: { name: "Composite", - className: "CustomSeasonality", - uberParent: "Seasonality", - polymorphicDiscriminator: Seasonality.type.polymorphicDiscriminator, + className: "RollingInputData", + uberParent: "MonitoringInputDataBase", + polymorphicDiscriminator: + MonitoringInputDataBase.type.polymorphicDiscriminator, modelProperties: { - ...Seasonality.type.modelProperties, - value: { - serializedName: "value", + ...MonitoringInputDataBase.type.modelProperties, + preprocessingComponentId: { + serializedName: "preprocessingComponentId", + nullable: true, + type: { + name: "String" + } + }, + windowOffset: { + serializedName: "windowOffset", required: true, type: { - name: "Number" + name: "TimeSpan" + } + }, + windowSize: { + serializedName: "windowSize", + required: true, + type: { + name: "TimeSpan" } } } } }; -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 StaticInputData: coreClient.CompositeMapper = { + serializedName: "Static", type: { name: "Composite", - className: "CustomTargetLags", - uberParent: "TargetLags", - polymorphicDiscriminator: TargetLags.type.polymorphicDiscriminator, + className: "StaticInputData", + uberParent: "MonitoringInputDataBase", + polymorphicDiscriminator: + MonitoringInputDataBase.type.polymorphicDiscriminator, modelProperties: { - ...TargetLags.type.modelProperties, - values: { - serializedName: "values", + ...MonitoringInputDataBase.type.modelProperties, + preprocessingComponentId: { + serializedName: "preprocessingComponentId", + nullable: true, + type: { + name: "String" + } + }, + windowEnd: { + serializedName: "windowEnd", required: true, type: { - name: "Sequence", - element: { - type: { - name: "Number" - } - } + name: "DateTime" + } + }, + windowStart: { + serializedName: "windowStart", + required: true, + type: { + name: "DateTime" } } } } }; -export const AutoTargetRollingWindowSize: coreClient.CompositeMapper = { - serializedName: "Auto", +export const ImageModelSettingsClassification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoTargetRollingWindowSize", - uberParent: "TargetRollingWindowSize", - polymorphicDiscriminator: - TargetRollingWindowSize.type.polymorphicDiscriminator, + className: "ImageModelSettingsClassification", modelProperties: { - ...TargetRollingWindowSize.type.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 CustomTargetRollingWindowSize: coreClient.CompositeMapper = { - serializedName: "Custom", +export const ImageModelSettingsObjectDetection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomTargetRollingWindowSize", - uberParent: "TargetRollingWindowSize", - polymorphicDiscriminator: - TargetRollingWindowSize.type.polymorphicDiscriminator, + className: "ImageModelSettingsObjectDetection", modelProperties: { - ...TargetRollingWindowSize.type.modelProperties, - value: { - serializedName: "value", - required: true, + ...ImageModelSettings.type.modelProperties, + boxDetectionsPerImage: { + serializedName: "boxDetectionsPerImage", + nullable: true, + type: { + name: "Number" + } + }, + boxScoreThreshold: { + serializedName: "boxScoreThreshold", + nullable: true, + type: { + name: "Number" + } + }, + imageSize: { + serializedName: "imageSize", + nullable: true, + type: { + name: "Number" + } + }, + maxSize: { + serializedName: "maxSize", + nullable: true, + 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" } - } - } - } -}; - -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", + }, + tilePredictionsNmsThreshold: { + serializedName: "tilePredictionsNmsThreshold", + nullable: true, type: { name: "Number" } }, - slackFactor: { - defaultValue: 0, - serializedName: "slackFactor", + validationIouThreshold: { + serializedName: "validationIouThreshold", + nullable: true, type: { name: "Number" } + }, + validationMetricType: { + serializedName: "validationMetricType", + type: { + name: "String" + } } } } }; -export const MedianStoppingPolicy: coreClient.CompositeMapper = { - serializedName: "MedianStopping", - type: { - name: "Composite", - className: "MedianStoppingPolicy", - uberParent: "EarlyTerminationPolicy", - polymorphicDiscriminator: - EarlyTerminationPolicy.type.polymorphicDiscriminator, - modelProperties: { - ...EarlyTerminationPolicy.type.modelProperties - } - } -}; - -export const TruncationSelectionPolicy: coreClient.CompositeMapper = { - serializedName: "TruncationSelection", +export const ImageModelDistributionSettingsClassification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TruncationSelectionPolicy", - uberParent: "EarlyTerminationPolicy", - polymorphicDiscriminator: - EarlyTerminationPolicy.type.polymorphicDiscriminator, + className: "ImageModelDistributionSettingsClassification", modelProperties: { - ...EarlyTerminationPolicy.type.modelProperties, - truncationPercentage: { - defaultValue: 0, - serializedName: "truncationPercentage", + ...ImageModelDistributionSettings.type.modelProperties, + trainingCropSize: { + serializedName: "trainingCropSize", + nullable: true, type: { - name: "Number" + 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 BayesianSamplingAlgorithm: coreClient.CompositeMapper = { - serializedName: "Bayesian", +export const ImageModelDistributionSettingsObjectDetection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BayesianSamplingAlgorithm", - uberParent: "SamplingAlgorithm", - polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, + className: "ImageModelDistributionSettingsObjectDetection", modelProperties: { - ...SamplingAlgorithm.type.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 GridSamplingAlgorithm: coreClient.CompositeMapper = { - serializedName: "Grid", +export const BatchEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GridSamplingAlgorithm", - uberParent: "SamplingAlgorithm", - polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, + className: "BatchEndpoint", modelProperties: { - ...SamplingAlgorithm.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: "BatchEndpointProperties" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } } } }; -export const RandomSamplingAlgorithm: coreClient.CompositeMapper = { - serializedName: "Random", +export const BatchDeployment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RandomSamplingAlgorithm", - uberParent: "SamplingAlgorithm", - polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, + className: "BatchDeployment", modelProperties: { - ...SamplingAlgorithm.type.modelProperties, - rule: { - serializedName: "rule", + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + kind: { + serializedName: "kind", type: { name: "String" } }, - seed: { - serializedName: "seed", - nullable: true, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "BatchDeploymentProperties" + } + }, + sku: { + serializedName: "sku", type: { - name: "Number" + name: "Composite", + className: "Sku" } } } } }; -export const ClassificationTrainingSettings: coreClient.CompositeMapper = { +export const OnlineEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClassificationTrainingSettings", + className: "OnlineEndpoint", modelProperties: { - ...TrainingSettings.type.modelProperties, - allowedTrainingAlgorithms: { - serializedName: "allowedTrainingAlgorithms", - nullable: true, + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "ManagedServiceIdentity" } }, - blockedTrainingAlgorithms: { - serializedName: "blockedTrainingAlgorithms", - nullable: true, + kind: { + serializedName: "kind", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OnlineEndpointProperties" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" } } } } }; -export const ForecastingTrainingSettings: coreClient.CompositeMapper = { +export const OnlineDeployment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ForecastingTrainingSettings", + className: "OnlineDeployment", modelProperties: { - ...TrainingSettings.type.modelProperties, - allowedTrainingAlgorithms: { - serializedName: "allowedTrainingAlgorithms", - nullable: true, + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "ManagedServiceIdentity" } }, - blockedTrainingAlgorithms: { - serializedName: "blockedTrainingAlgorithms", - nullable: true, + kind: { + serializedName: "kind", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OnlineDeploymentProperties" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" } } } } }; -export const RegressionTrainingSettings: coreClient.CompositeMapper = { +export const Registry: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegressionTrainingSettings", + className: "Registry", modelProperties: { - ...TrainingSettings.type.modelProperties, - allowedTrainingAlgorithms: { - serializedName: "allowedTrainingAlgorithms", + ...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: "String" + name: "Composite", + className: "RegistryPrivateEndpointConnection" } } } }, - blockedTrainingAlgorithms: { - serializedName: "blockedTrainingAlgorithms", + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + nullable: true, + type: { + name: "String" + } + }, + regionDetails: { + serializedName: "properties.regionDetails", nullable: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "RegistryRegionArmDetails" } } } @@ -9929,320 +13482,235 @@ export const RegressionTrainingSettings: coreClient.CompositeMapper = { } }; -export const TableVerticalFeaturizationSettings: coreClient.CompositeMapper = { +export const CodeContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TableVerticalFeaturizationSettings", + className: "CodeContainerProperties", 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", + ...AssetContainer.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, 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 ComponentContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NlpVerticalFeaturizationSettings", + className: "ComponentContainerProperties", modelProperties: { - ...FeaturizationSettings.type.modelProperties + ...AssetContainer.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } } } }; -export const Mpi: coreClient.CompositeMapper = { - serializedName: "Mpi", +export const DataContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Mpi", - uberParent: "DistributionConfiguration", - polymorphicDiscriminator: - DistributionConfiguration.type.polymorphicDiscriminator, + className: "DataContainerProperties", modelProperties: { - ...DistributionConfiguration.type.modelProperties, - processCountPerInstance: { - serializedName: "processCountPerInstance", - nullable: true, + ...AssetContainer.type.modelProperties, + dataType: { + serializedName: "dataType", + required: true, type: { - name: "Number" + name: "String" } } } } }; -export const PyTorch: coreClient.CompositeMapper = { - serializedName: "PyTorch", +export const EnvironmentContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PyTorch", - uberParent: "DistributionConfiguration", - polymorphicDiscriminator: - DistributionConfiguration.type.polymorphicDiscriminator, + className: "EnvironmentContainerProperties", modelProperties: { - ...DistributionConfiguration.type.modelProperties, - processCountPerInstance: { - serializedName: "processCountPerInstance", - nullable: true, + ...AssetContainer.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const TensorFlow: coreClient.CompositeMapper = { - serializedName: "TensorFlow", +export const ModelContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TensorFlow", - uberParent: "DistributionConfiguration", - polymorphicDiscriminator: - DistributionConfiguration.type.polymorphicDiscriminator, + className: "ModelContainerProperties", modelProperties: { - ...DistributionConfiguration.type.modelProperties, - parameterServerCount: { - defaultValue: 0, - serializedName: "parameterServerCount", - type: { - name: "Number" - } - }, - workerCount: { - serializedName: "workerCount", - nullable: true, + ...AssetContainer.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const CommandJobLimits: coreClient.CompositeMapper = { - serializedName: "Command", +export const CodeVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CommandJobLimits", - uberParent: "JobLimits", - polymorphicDiscriminator: JobLimits.type.polymorphicDiscriminator, + className: "CodeVersionProperties", modelProperties: { - ...JobLimits.type.modelProperties + ...AssetBase.type.modelProperties, + codeUri: { + serializedName: "codeUri", + nullable: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } } } }; -export const SweepJobLimits: coreClient.CompositeMapper = { - serializedName: "Sweep", +export const ComponentVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SweepJobLimits", - uberParent: "JobLimits", - polymorphicDiscriminator: JobLimits.type.polymorphicDiscriminator, + className: "ComponentVersionProperties", modelProperties: { - ...JobLimits.type.modelProperties, - maxConcurrentTrials: { - serializedName: "maxConcurrentTrials", - nullable: true, - type: { - name: "Number" - } - }, - maxTotalTrials: { - serializedName: "maxTotalTrials", + ...AssetBase.type.modelProperties, + componentSpec: { + serializedName: "componentSpec", nullable: true, type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "any" } } } }, - trialTimeout: { - serializedName: "trialTimeout", - nullable: true, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "TimeSpan" + name: "String" } } } } }; -export const ImageModelSettingsClassification: coreClient.CompositeMapper = { +export const DataVersionBaseProperties: coreClient.CompositeMapper = { + serializedName: "DataVersionBaseProperties", type: { name: "Composite", - className: "ImageModelSettingsClassification", + className: "DataVersionBaseProperties", + uberParent: "AssetBase", + polymorphicDiscriminator: { + serializedName: "dataType", + clientName: "dataType" + }, 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, + ...AssetBase.type.modelProperties, + dataType: { + serializedName: "dataType", + required: true, type: { - name: "Number" + name: "String" } }, - weightedLoss: { - serializedName: "weightedLoss", - nullable: true, + dataUri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "dataUri", + required: true, type: { - name: "Number" + name: "String" } } } } }; -export const ImageModelSettingsObjectDetection: coreClient.CompositeMapper = { +export const EnvironmentVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageModelSettingsObjectDetection", + className: "EnvironmentVersionProperties", 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, + ...AssetBase.type.modelProperties, + autoRebuild: { + serializedName: "autoRebuild", type: { - name: "Number" + name: "String" } }, - maxSize: { - serializedName: "maxSize", - nullable: true, + build: { + serializedName: "build", type: { - name: "Number" + name: "Composite", + className: "BuildContext" } }, - minSize: { - serializedName: "minSize", - nullable: true, + condaFile: { + serializedName: "condaFile", type: { - name: "Number" + name: "String" } }, - modelSize: { - serializedName: "modelSize", + environmentType: { + serializedName: "environmentType", + readOnly: true, type: { name: "String" } }, - multiScale: { - serializedName: "multiScale", - nullable: true, + image: { + serializedName: "image", type: { - name: "Boolean" + name: "String" } }, - nmsIouThreshold: { - serializedName: "nmsIouThreshold", - nullable: true, + inferenceConfig: { + serializedName: "inferenceConfig", type: { - name: "Number" + name: "Composite", + className: "InferenceContainerProperties" } }, - tileGridSize: { - serializedName: "tileGridSize", - nullable: true, + osType: { + serializedName: "osType", type: { name: "String" } }, - tileOverlapRatio: { - serializedName: "tileOverlapRatio", - nullable: true, - type: { - name: "Number" - } - }, - tilePredictionsNmsThreshold: { - serializedName: "tilePredictionsNmsThreshold", - nullable: true, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Number" + name: "String" } }, - validationIouThreshold: { - serializedName: "validationIouThreshold", + stage: { + serializedName: "stage", nullable: true, - type: { - name: "Number" - } - }, - validationMetricType: { - serializedName: "validationMetricType", type: { name: "String" } @@ -10251,35 +13719,50 @@ export const ImageModelSettingsObjectDetection: coreClient.CompositeMapper = { } }; -export const ImageModelDistributionSettingsClassification: coreClient.CompositeMapper = { +export const ModelVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageModelDistributionSettingsClassification", + className: "ModelVersionProperties", modelProperties: { - ...ImageModelDistributionSettings.type.modelProperties, - trainingCropSize: { - serializedName: "trainingCropSize", + ...AssetBase.type.modelProperties, + flavors: { + serializedName: "flavors", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "FlavorData" } } + } + }, + jobName: { + serializedName: "jobName", nullable: true, type: { name: "String" } }, - validationCropSize: { - serializedName: "validationCropSize", + modelType: { + serializedName: "modelType", nullable: true, type: { name: "String" } }, - validationResizeSize: { - serializedName: "validationResizeSize", + modelUri: { + serializedName: "modelUri", nullable: true, type: { name: "String" } }, - weightedLoss: { - serializedName: "weightedLoss", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + stage: { + serializedName: "stage", nullable: true, type: { name: "String" @@ -10289,249 +13772,293 @@ export const ImageModelDistributionSettingsClassification: coreClient.CompositeM } }; -export const ImageModelDistributionSettingsObjectDetection: coreClient.CompositeMapper = { +export const AutoMLJob: coreClient.CompositeMapper = { + serializedName: "AutoML", type: { name: "Composite", - className: "ImageModelDistributionSettingsObjectDetection", + className: "AutoMLJob", + uberParent: "JobBaseProperties", + polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...ImageModelDistributionSettings.type.modelProperties, - boxDetectionsPerImage: { - serializedName: "boxDetectionsPerImage", + ...JobBaseProperties.type.modelProperties, + environmentId: { + serializedName: "environmentId", nullable: true, type: { name: "String" } }, - boxScoreThreshold: { - serializedName: "boxScoreThreshold", + environmentVariables: { + serializedName: "environmentVariables", nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - imageSize: { - serializedName: "imageSize", + outputs: { + serializedName: "outputs", nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "Composite", className: "JobOutput" } } } }, - maxSize: { - serializedName: "maxSize", - nullable: true, + queueSettings: { + serializedName: "queueSettings", type: { - name: "String" + name: "Composite", + className: "QueueSettings" } }, - minSize: { - serializedName: "minSize", - nullable: true, + resources: { + serializedName: "resources", type: { - name: "String" + name: "Composite", + className: "JobResourceConfiguration" } }, - modelSize: { - serializedName: "modelSize", - nullable: true, + taskDetails: { + serializedName: "taskDetails", type: { - name: "String" + name: "Composite", + className: "AutoMLVertical" } - }, - multiScale: { - serializedName: "multiScale", + } + } + } +}; + +export const CommandJob: coreClient.CompositeMapper = { + serializedName: "Command", + type: { + name: "Composite", + className: "CommandJob", + uberParent: "JobBaseProperties", + polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, + modelProperties: { + ...JobBaseProperties.type.modelProperties, + codeId: { + serializedName: "codeId", nullable: true, type: { name: "String" } }, - nmsIouThreshold: { - serializedName: "nmsIouThreshold", - nullable: true, + command: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "command", + required: true, type: { name: "String" } }, - tileGridSize: { - serializedName: "tileGridSize", - nullable: true, + distribution: { + serializedName: "distribution", type: { - name: "String" + name: "Composite", + className: "DistributionConfiguration" } }, - tileOverlapRatio: { - serializedName: "tileOverlapRatio", - nullable: true, + environmentId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "environmentId", + required: true, type: { name: "String" } }, - tilePredictionsNmsThreshold: { - serializedName: "tilePredictionsNmsThreshold", + environmentVariables: { + serializedName: "environmentVariables", nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - validationIouThreshold: { - serializedName: "validationIouThreshold", + inputs: { + serializedName: "inputs", nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "Composite", className: "JobInput" } } } }, - validationMetricType: { - serializedName: "validationMetricType", - nullable: true, + limits: { + serializedName: "limits", type: { - name: "String" + name: "Composite", + className: "CommandJobLimits" } - } - } - } -}; - -export const BatchEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BatchEndpoint", - modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + }, + outputs: { + serializedName: "outputs", + nullable: true, type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "Dictionary", + value: { type: { name: "Composite", className: "JobOutput" } } } }, - kind: { - serializedName: "kind", + parameters: { + serializedName: "parameters", + readOnly: true, + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - properties: { - serializedName: "properties", + queueSettings: { + serializedName: "queueSettings", type: { name: "Composite", - className: "BatchEndpointProperties" + className: "QueueSettings" } }, - sku: { - serializedName: "sku", + resources: { + serializedName: "resources", type: { name: "Composite", - className: "Sku" + className: "JobResourceConfiguration" } } } } }; -export const BatchDeployment: coreClient.CompositeMapper = { +export const PipelineJob: coreClient.CompositeMapper = { + serializedName: "Pipeline", type: { name: "Composite", - className: "BatchDeployment", + className: "PipelineJob", + uberParent: "JobBaseProperties", + polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + ...JobBaseProperties.type.modelProperties, + inputs: { + serializedName: "inputs", + nullable: true, type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "Dictionary", + value: { type: { name: "Composite", className: "JobInput" } } } }, - kind: { - serializedName: "kind", + jobs: { + serializedName: "jobs", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } }, - properties: { - serializedName: "properties", + outputs: { + serializedName: "outputs", + nullable: true, type: { - name: "Composite", - className: "BatchDeploymentProperties" + name: "Dictionary", + value: { type: { name: "Composite", className: "JobOutput" } } } }, - sku: { - serializedName: "sku", + settings: { + serializedName: "settings", + nullable: true, type: { - name: "Composite", - className: "Sku" + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + sourceJobId: { + serializedName: "sourceJobId", + nullable: true, + type: { + name: "String" } } } } }; -export const OnlineEndpoint: coreClient.CompositeMapper = { +export const SweepJob: coreClient.CompositeMapper = { + serializedName: "Sweep", type: { name: "Composite", - className: "OnlineEndpoint", + className: "SweepJob", + uberParent: "JobBaseProperties", + polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + ...JobBaseProperties.type.modelProperties, + earlyTermination: { + serializedName: "earlyTermination", type: { name: "Composite", - className: "ManagedServiceIdentity" + className: "EarlyTerminationPolicy" } }, - kind: { - serializedName: "kind", + inputs: { + serializedName: "inputs", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "Composite", className: "JobInput" } } } }, - properties: { - serializedName: "properties", + limits: { + serializedName: "limits", type: { name: "Composite", - className: "OnlineEndpointProperties" + className: "SweepJobLimits" } }, - sku: { - serializedName: "sku", + objective: { + serializedName: "objective", type: { name: "Composite", - className: "Sku" + className: "Objective" } - } - } - } -}; - -export const OnlineDeployment: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OnlineDeployment", - modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + }, + outputs: { + serializedName: "outputs", + nullable: true, type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "Dictionary", + value: { type: { name: "Composite", className: "JobOutput" } } } }, - kind: { - serializedName: "kind", + queueSettings: { + serializedName: "queueSettings", type: { - name: "String" + name: "Composite", + className: "QueueSettings" } }, - properties: { - serializedName: "properties", + samplingAlgorithm: { + serializedName: "samplingAlgorithm", type: { name: "Composite", - className: "OnlineDeploymentProperties" + className: "SamplingAlgorithm" } }, - sku: { - serializedName: "sku", + searchSpace: { + serializedName: "searchSpace", + required: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + trial: { + serializedName: "trial", type: { name: "Composite", - className: "Sku" + className: "TrialComponent" } } } @@ -10573,178 +14100,192 @@ export const ManagedOnlineDeployment: coreClient.CompositeMapper = { } }; -export const CodeContainerProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CodeContainerProperties", - modelProperties: { - ...AssetContainer.type.modelProperties - } - } -}; - -export const ComponentContainerProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComponentContainerProperties", - modelProperties: { - ...AssetContainer.type.modelProperties - } - } -}; - -export const DataContainerProperties: coreClient.CompositeMapper = { +export const MLTableData: coreClient.CompositeMapper = { + serializedName: "mltable", type: { name: "Composite", - className: "DataContainerProperties", + className: "MLTableData", + uberParent: "DataVersionBaseProperties", + polymorphicDiscriminator: + DataVersionBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...AssetContainer.type.modelProperties, - dataType: { - serializedName: "dataType", - required: true, + ...DataVersionBaseProperties.type.modelProperties, + referencedUris: { + serializedName: "referencedUris", + nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const EnvironmentContainerProperties: coreClient.CompositeMapper = { +export const UriFileDataVersion: coreClient.CompositeMapper = { + serializedName: "uri_file", type: { name: "Composite", - className: "EnvironmentContainerProperties", + className: "UriFileDataVersion", + uberParent: "DataVersionBaseProperties", + polymorphicDiscriminator: + DataVersionBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...AssetContainer.type.modelProperties + ...DataVersionBaseProperties.type.modelProperties } } }; -export const ModelContainerProperties: coreClient.CompositeMapper = { +export const UriFolderDataVersion: coreClient.CompositeMapper = { + serializedName: "uri_folder", type: { name: "Composite", - className: "ModelContainerProperties", + className: "UriFolderDataVersion", + uberParent: "DataVersionBaseProperties", + polymorphicDiscriminator: + DataVersionBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...AssetContainer.type.modelProperties + ...DataVersionBaseProperties.type.modelProperties } } }; -export const CodeVersionProperties: coreClient.CompositeMapper = { +export const WorkspacesCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeVersionProperties", + className: "WorkspacesCreateOrUpdateHeaders", modelProperties: { - ...AssetBase.type.modelProperties, - codeUri: { - serializedName: "codeUri", - nullable: true, + 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 WorkspacesUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentVersionProperties", + className: "WorkspacesUpdateHeaders", modelProperties: { - ...AssetBase.type.modelProperties, - componentSpec: { - serializedName: "componentSpec", - nullable: true, + location: { + serializedName: "location", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" } } } } }; -export const DataVersionBaseProperties: coreClient.CompositeMapper = { - serializedName: "DataVersionBaseProperties", +export const WorkspacesDiagnoseHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataVersionBaseProperties", - uberParent: "AssetBase", - polymorphicDiscriminator: { - serializedName: "dataType", - clientName: "dataType" - }, + className: "WorkspacesDiagnoseHeaders", modelProperties: { - ...AssetBase.type.modelProperties, - dataType: { - serializedName: "dataType", - required: true, + 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 WorkspacesResyncKeysHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentVersionProperties", + className: "WorkspacesResyncKeysHeaders", modelProperties: { - ...AssetBase.type.modelProperties, - autoRebuild: { - serializedName: "autoRebuild", - type: { - name: "String" - } - }, - build: { - serializedName: "build", - type: { - name: "Composite", - className: "BuildContext" - } - }, - condaFile: { - serializedName: "condaFile", + location: { + serializedName: "location", type: { name: "String" } }, - environmentType: { - serializedName: "environmentType", - readOnly: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } - }, - image: { - serializedName: "image", + } + } + } +}; + +export const WorkspacesPrepareNotebookHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspacesPrepareNotebookHeaders", + modelProperties: { + location: { + serializedName: "location", type: { name: "String" } }, - inferenceConfig: { - serializedName: "inferenceConfig", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Composite", - className: "InferenceContainerProperties" + name: "Number" } - }, - osType: { - serializedName: "osType", + } + } + } +}; + +export const ComputeCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -10753,37 +14294,34 @@ export const EnvironmentVersionProperties: coreClient.CompositeMapper = { } }; -export const ModelVersionProperties: coreClient.CompositeMapper = { +export const ComputeDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelVersionProperties", + className: "ComputeDeleteHeaders", modelProperties: { - ...AssetBase.type.modelProperties, - flavors: { - serializedName: "flavors", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "FlavorData" } } - } - }, - jobName: { - serializedName: "jobName", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } }, - modelType: { - serializedName: "modelType", - nullable: true, + location: { + serializedName: "location", type: { name: "String" } - }, - modelUri: { - serializedName: "modelUri", - nullable: true, + } + } + } +}; + +export const ManagedNetworkSettingsRuleDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedNetworkSettingsRuleDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", type: { name: "String" } @@ -10792,127 +14330,100 @@ export const ModelVersionProperties: coreClient.CompositeMapper = { } }; -export const AzureBlobDatastore: coreClient.CompositeMapper = { - serializedName: "AzureBlob", +export const ManagedNetworkSettingsRuleCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureBlobDatastore", - uberParent: "DatastoreProperties", - polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, + className: "ManagedNetworkSettingsRuleCreateOrUpdateHeaders", 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, + 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 ManagedNetworkProvisionsProvisionManagedNetworkHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDataLakeGen1Datastore", - uberParent: "DatastoreProperties", - polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, + className: "ManagedNetworkProvisionsProvisionManagedNetworkHeaders", modelProperties: { - ...DatastoreProperties.type.modelProperties, - serviceDataAccessAuthIdentity: { - serializedName: "serviceDataAccessAuthIdentity", + location: { + serializedName: "location", type: { name: "String" } }, - storeName: { + retryAfter: { constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") + InclusiveMaximum: 600, + InclusiveMinimum: 10 }, - serializedName: "storeName", - required: true, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } } }; -export const AzureDataLakeGen2Datastore: coreClient.CompositeMapper = { - serializedName: "AzureDataLakeGen2", +export const RegistryCodeContainersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDataLakeGen2Datastore", - uberParent: "DatastoreProperties", - polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, + className: "RegistryCodeContainersDeleteHeaders", modelProperties: { - ...DatastoreProperties.type.modelProperties, - accountName: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "accountName", - required: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - endpoint: { - serializedName: "endpoint", - nullable: true, + location: { + serializedName: "location", type: { name: "String" } }, - filesystem: { + retryAfter: { constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") + InclusiveMaximum: 600, + InclusiveMinimum: 10 }, - serializedName: "filesystem", - required: true, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } - }, - protocol: { - serializedName: "protocol", - nullable: true, + } + } + } +}; + +export const RegistryCodeContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryCodeContainersCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - serviceDataAccessAuthIdentity: { - serializedName: "serviceDataAccessAuthIdentity", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -10921,51 +14432,50 @@ export const AzureDataLakeGen2Datastore: coreClient.CompositeMapper = { } }; -export const AzureFileDatastore: coreClient.CompositeMapper = { - serializedName: "AzureFile", +export const RegistryCodeVersionsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureFileDatastore", - uberParent: "DatastoreProperties", - polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, + className: "RegistryCodeVersionsDeleteHeaders", 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 RegistryCodeVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryCodeVersionsCreateOrUpdateHeaders", + 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 +14484,154 @@ export const AzureFileDatastore: coreClient.CompositeMapper = { } }; -export const AutoMLJob: coreClient.CompositeMapper = { - serializedName: "AutoML", +export const RegistryComponentContainersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoMLJob", - uberParent: "JobBaseProperties", - polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, + className: "RegistryComponentContainersDeleteHeaders", 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 RegistryComponentContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CommandJob", - uberParent: "JobBaseProperties", - polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, + className: "RegistryComponentContainersCreateOrUpdateHeaders", modelProperties: { - ...JobBaseProperties.type.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", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "DistributionConfiguration" + name: "TimeSpan" } }, - environmentId: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "environmentId", - required: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } - }, - environmentVariables: { - serializedName: "environmentVariables", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - inputs: { - serializedName: "inputs", - nullable: true, + } + } + } +}; + +export const RegistryComponentVersionsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryComponentVersionsDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobInput" } } + name: "TimeSpan" } }, - limits: { - serializedName: "limits", + location: { + serializedName: "location", type: { - name: "Composite", - className: "CommandJobLimits" + 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" } - }, - parameters: { - serializedName: "parameters", - readOnly: true, - nullable: true, + } + } + } +}; + +export const RegistryComponentVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryComponentVersionsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "TimeSpan" } }, - resources: { - serializedName: "resources", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { - name: "Composite", - className: "JobResourceConfiguration" + name: "String" } } } } }; -export const PipelineJob: coreClient.CompositeMapper = { - serializedName: "Pipeline", +export const RegistryDataContainersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PipelineJob", - uberParent: "JobBaseProperties", - polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, + className: "RegistryDataContainersDeleteHeaders", 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 RegistryDataContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryDataContainersCreateOrUpdateHeaders", + 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 +14640,173 @@ export const PipelineJob: coreClient.CompositeMapper = { } }; -export const SweepJob: coreClient.CompositeMapper = { - serializedName: "Sweep", +export const RegistryDataVersionsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SweepJob", - uberParent: "JobBaseProperties", - polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, + className: "RegistryDataVersionsDeleteHeaders", 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 RegistryDataVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryDataVersionsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "Objective" + name: "TimeSpan" } }, - outputs: { - serializedName: "outputs", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobOutput" } } + name: "String" } - }, - samplingAlgorithm: { - serializedName: "samplingAlgorithm", + } + } + } +}; + +export const RegistryEnvironmentContainersDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryEnvironmentContainersDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "SamplingAlgorithm" + name: "TimeSpan" } }, - searchSpace: { - serializedName: "searchSpace", - required: true, + location: { + serializedName: "location", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - trial: { - serializedName: "trial", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Composite", - className: "TrialComponent" + name: "Number" } } } } }; -export const MLTableData: coreClient.CompositeMapper = { - serializedName: "mltable", +export const RegistryEnvironmentContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MLTableData", - uberParent: "DataVersionBaseProperties", - polymorphicDiscriminator: - DataVersionBaseProperties.type.polymorphicDiscriminator, + className: "RegistryEnvironmentContainersCreateOrUpdateHeaders", modelProperties: { - ...DataVersionBaseProperties.type.modelProperties, - referencedUris: { - serializedName: "referencedUris", - nullable: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" } } } } }; -export const UriFileDataVersion: coreClient.CompositeMapper = { - serializedName: "uri_file", +export const RegistryEnvironmentVersionsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UriFileDataVersion", - uberParent: "DataVersionBaseProperties", - polymorphicDiscriminator: - DataVersionBaseProperties.type.polymorphicDiscriminator, + className: "RegistryEnvironmentVersionsDeleteHeaders", 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 UriFolderDataVersion: coreClient.CompositeMapper = { - serializedName: "uri_folder", +export const RegistryEnvironmentVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UriFolderDataVersion", - uberParent: "DataVersionBaseProperties", - polymorphicDiscriminator: - DataVersionBaseProperties.type.polymorphicDiscriminator, + className: "RegistryEnvironmentVersionsCreateOrUpdateHeaders", modelProperties: { - ...DataVersionBaseProperties.type.modelProperties + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } } } }; -export const WorkspacesDiagnoseHeaders: coreClient.CompositeMapper = { +export const RegistryModelContainersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspacesDiagnoseHeaders", + className: "RegistryModelContainersDeleteHeaders", modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, location: { serializedName: "location", type: { @@ -11324,11 +14827,17 @@ export const WorkspacesDiagnoseHeaders: coreClient.CompositeMapper = { } }; -export const ComputeCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const RegistryModelContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeCreateOrUpdateHeaders", + className: "RegistryModelContainersCreateOrUpdateHeaders", modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { @@ -11339,15 +14848,15 @@ export const ComputeCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ComputeDeleteHeaders: coreClient.CompositeMapper = { +export const RegistryModelVersionsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeDeleteHeaders", + className: "RegistryModelVersionsDeleteHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, location: { @@ -11355,6 +14864,37 @@ export const ComputeDeleteHeaders: coreClient.CompositeMapper = { type: { name: "String" } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const RegistryModelVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryModelVersionsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } } } } @@ -11526,6 +15066,106 @@ export const BatchDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = } }; +export const CodeVersionsPublishHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CodeVersionsPublishHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const ComponentVersionsPublishHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentVersionsPublishHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const DataVersionsPublishHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataVersionsPublishHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const EnvironmentVersionsPublishHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentVersionsPublishHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + export const JobsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", @@ -11582,6 +15222,31 @@ export const JobsCancelHeaders: coreClient.CompositeMapper = { } }; +export const ModelVersionsPublishHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelVersionsPublishHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + export const OnlineEndpointsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", @@ -11825,17 +15490,85 @@ export const SchedulesCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; +export const RegistriesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistriesDeleteHeaders", + 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 RegistriesRemoveRegionsHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistriesRemoveRegionsHeaders", + 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 let discriminators = { + OutboundRule: OutboundRule, Compute: Compute, ComputeSecrets: ComputeSecrets, WorkspaceConnectionPropertiesV2: WorkspaceConnectionPropertiesV2, + PendingUploadCredentialDto: PendingUploadCredentialDto, + DataReferenceCredential: DataReferenceCredential, AssetReferenceBase: AssetReferenceBase, DatastoreCredentials: DatastoreCredentials, DatastoreSecrets: DatastoreSecrets, IdentityConfiguration: IdentityConfiguration, + Nodes: Nodes, OnlineScaleSettings: OnlineScaleSettings, ScheduleActionBase: ScheduleActionBase, TriggerBase: TriggerBase, + MonitoringFeatureFilterBase: MonitoringFeatureFilterBase, + MonitorComputeIdentityBase: MonitorComputeIdentityBase, ForecastHorizon: ForecastHorizon, JobOutput: JobOutput, AutoMLVertical: AutoMLVertical, @@ -11846,8 +15579,17 @@ export let discriminators = { TargetRollingWindowSize: TargetRollingWindowSize, EarlyTerminationPolicy: EarlyTerminationPolicy, SamplingAlgorithm: SamplingAlgorithm, + DataDriftMetricThresholdBase: DataDriftMetricThresholdBase, + DataQualityMetricThresholdBase: DataQualityMetricThresholdBase, + PredictionDriftMetricThresholdBase: PredictionDriftMetricThresholdBase, DistributionConfiguration: DistributionConfiguration, JobLimits: JobLimits, + MonitorComputeConfigurationBase: MonitorComputeConfigurationBase, + MonitoringSignalBase: MonitoringSignalBase, + MonitoringInputDataBase: MonitoringInputDataBase, + "OutboundRule.PrivateEndpoint": PrivateEndpointOutboundRule, + "OutboundRule.ServiceTag": ServiceTagOutboundRule, + "OutboundRule.FQDN": FqdnOutboundRule, "Compute.AKS": Aks, "Compute.Kubernetes": Kubernetes, "Compute.AmlCompute": AmlCompute, @@ -11866,12 +15608,17 @@ export let discriminators = { "WorkspaceConnectionPropertiesV2.UsernamePassword": UsernamePasswordAuthTypeWorkspaceConnectionProperties, "WorkspaceConnectionPropertiesV2.None": NoneAuthTypeWorkspaceConnectionProperties, "WorkspaceConnectionPropertiesV2.ManagedIdentity": ManagedIdentityAuthTypeWorkspaceConnectionProperties, + "ResourceBase.DatastoreProperties": DatastoreProperties, + "ResourceBase.JobBaseProperties": JobBaseProperties, + "PendingUploadCredentialDto.SAS": SASCredentialDto, + "DataReferenceCredential.NoCredentials": AnonymousAccessCredential, + "DataReferenceCredential.DockerCredentials": DockerCredential, + "DataReferenceCredential.ManagedIdentity": ManagedIdentityCredential, + "DataReferenceCredential.SAS": SASCredential, "AssetReferenceBase.DataPath": DataPathAssetReference, "AssetReferenceBase.Id": IdAssetReference, "AssetReferenceBase.OutputPath": OutputPathAssetReference, "EndpointDeploymentPropertiesBase.OnlineDeploymentProperties": OnlineDeploymentProperties, - "ResourceBase.DatastoreProperties": DatastoreProperties, - "ResourceBase.JobBaseProperties": JobBaseProperties, "DatastoreCredentials.AccountKey": AccountKeyDatastoreCredentials, "DatastoreCredentials.Certificate": CertificateDatastoreCredentials, "DatastoreCredentials.None": NoneDatastoreCredentials, @@ -11884,12 +15631,19 @@ export let discriminators = { "IdentityConfiguration.AMLToken": AmlToken, "IdentityConfiguration.Managed": ManagedIdentity, "IdentityConfiguration.UserIdentity": UserIdentity, + "Nodes.All": AllNodes, "OnlineScaleSettings.Default": DefaultScaleSettings, "OnlineScaleSettings.TargetUtilization": TargetUtilizationScaleSettings, + "ScheduleActionBase.CreateMonitor": CreateMonitorAction, "ScheduleActionBase.InvokeBatchEndpoint": EndpointScheduleAction, "ScheduleActionBase.CreateJob": JobScheduleAction, - "TriggerBase.Recurrence": RecurrenceTrigger, "TriggerBase.Cron": CronTrigger, + "TriggerBase.Recurrence": RecurrenceTrigger, + "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,28 +15677,43 @@ 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, "DistributionConfiguration.Mpi": Mpi, "DistributionConfiguration.PyTorch": PyTorch, "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.PredictionDrift": PredictionDriftMonitoringSignal, + "MonitoringInputDataBase.Fixed": FixedInputData, + "MonitoringInputDataBase.Rolling": RollingInputData, + "MonitoringInputDataBase.Static": StaticInputData, "AssetBase.DataVersionBaseProperties": DataVersionBaseProperties, - "DatastoreProperties.AzureBlob": AzureBlobDatastore, - "DatastoreProperties.AzureDataLakeGen1": AzureDataLakeGen1Datastore, - "DatastoreProperties.AzureDataLakeGen2": AzureDataLakeGen2Datastore, - "DatastoreProperties.AzureFile": AzureFileDatastore, "JobBaseProperties.AutoML": AutoMLJob, "JobBaseProperties.Command": CommandJob, "JobBaseProperties.Pipeline": PipelineJob, "JobBaseProperties.Sweep": SweepJob, + "OnlineDeploymentProperties.Kubernetes": KubernetesOnlineDeployment, + "OnlineDeploymentProperties.Managed": ManagedOnlineDeployment, "DataVersionBaseProperties.mltable": MLTableData, "DataVersionBaseProperties.uri_file": UriFileDataVersion, "DataVersionBaseProperties.uri_folder": UriFolderDataVersion diff --git a/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts b/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts index 1774bcca03b6..415cb271534d 100644 --- a/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts +++ b/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts @@ -20,28 +20,35 @@ import { ClusterUpdateParameters as ClusterUpdateParametersMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, WorkspaceConnectionPropertiesV2BasicResource as WorkspaceConnectionPropertiesV2BasicResourceMapper, - PartialMinimalTrackedResourceWithIdentity as PartialMinimalTrackedResourceWithIdentityMapper, - BatchEndpoint as BatchEndpointMapper, - PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties as PartialBatchDeploymentPartialMinimalTrackedResourceWithPropertiesMapper, - BatchDeployment as BatchDeploymentMapper, + OutboundRuleBasicResource as OutboundRuleBasicResourceMapper, + ManagedNetworkProvisionOptions as ManagedNetworkProvisionOptionsMapper, CodeContainer as CodeContainerMapper, CodeVersion as CodeVersionMapper, + PendingUploadRequestDto as PendingUploadRequestDtoMapper, ComponentContainer as ComponentContainerMapper, ComponentVersion as ComponentVersionMapper, DataContainer as DataContainerMapper, DataVersionBase as DataVersionBaseMapper, - Datastore as DatastoreMapper, + GetBlobReferenceSASRequestDto as GetBlobReferenceSASRequestDtoMapper, EnvironmentContainer as EnvironmentContainerMapper, EnvironmentVersion as EnvironmentVersionMapper, - JobBase as JobBaseMapper, ModelContainer as ModelContainerMapper, ModelVersion as ModelVersionMapper, + PartialMinimalTrackedResourceWithIdentity as PartialMinimalTrackedResourceWithIdentityMapper, + BatchEndpoint as BatchEndpointMapper, + PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties as PartialBatchDeploymentPartialMinimalTrackedResourceWithPropertiesMapper, + BatchDeployment as BatchDeploymentMapper, + DestinationAsset as DestinationAssetMapper, + Datastore as DatastoreMapper, + JobBase as JobBaseMapper, OnlineEndpoint as OnlineEndpointMapper, RegenerateEndpointKeysRequest as RegenerateEndpointKeysRequestMapper, PartialMinimalTrackedResourceWithSku as PartialMinimalTrackedResourceWithSkuMapper, OnlineDeployment as OnlineDeploymentMapper, DeploymentLogsRequest as DeploymentLogsRequestMapper, - Schedule as ScheduleMapper + Schedule as ScheduleMapper, + PartialRegistryPartialTrackedResource as PartialRegistryPartialTrackedResourceMapper, + Registry as RegistryMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -71,7 +78,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-10-01", + defaultValue: "2023-10-01", isConstant: true, serializedName: "api-version", type: { @@ -112,6 +119,9 @@ export const resourceGroupName: OperationURLParameter = { export const workspaceName: OperationURLParameter = { parameterPath: "workspaceName", mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") + }, serializedName: "workspaceName", required: true, type: { @@ -137,6 +147,17 @@ export const parameters: OperationParameter = { mapper: WorkspaceMapper }; +export const forceToPurge: OperationQueryParameter = { + parameterPath: ["options", "forceToPurge"], + mapper: { + defaultValue: false, + serializedName: "forceToPurge", + type: { + name: "Boolean" + } + } +}; + export const parameters1: OperationParameter = { parameterPath: "parameters", mapper: WorkspaceUpdateParametersMapper @@ -244,6 +265,9 @@ export const parameters6: OperationParameter = { export const connectionName: OperationURLParameter = { parameterPath: "connectionName", mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") + }, serializedName: "connectionName", required: true, type: { @@ -272,20 +296,37 @@ export const category: OperationQueryParameter = { } }; -export const count: OperationQueryParameter = { - parameterPath: ["options", "count"], +export const ruleName: OperationURLParameter = { + parameterPath: "ruleName", mapper: { - serializedName: "count", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") + }, + serializedName: "ruleName", + required: true, type: { - name: "Number" + name: "String" } } }; -export const endpointName: OperationURLParameter = { - parameterPath: "endpointName", +export const body: OperationParameter = { + parameterPath: "body", + mapper: OutboundRuleBasicResourceMapper +}; + +export const body1: OperationParameter = { + parameterPath: ["options", "body"], + mapper: ManagedNetworkProvisionOptionsMapper +}; + +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 +334,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 +348,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 +373,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 +384,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 +408,24 @@ export const deploymentName1: OperationURLParameter = { } }; -export const body3: OperationParameter = { +export const body5: OperationParameter = { parameterPath: "body", - mapper: BatchDeploymentMapper + mapper: ComponentContainerMapper +}; + +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 +439,9 @@ export const name: OperationURLParameter = { } }; -export const body4: OperationParameter = { +export const body7: OperationParameter = { parameterPath: "body", - mapper: CodeContainerMapper + mapper: DataContainerMapper }; export const name1: OperationURLParameter = { @@ -402,10 +458,128 @@ export const name1: OperationURLParameter = { } }; -export const version: OperationURLParameter = { - parameterPath: "version", +export const tags: OperationQueryParameter = { + parameterPath: ["options", "tags"], + mapper: { + serializedName: "$tags", + type: { + name: "String" + } + } +}; + +export const body8: OperationParameter = { + parameterPath: "body", + mapper: DataVersionBaseMapper +}; + +export const body9: OperationParameter = { + parameterPath: "body", + mapper: GetBlobReferenceSASRequestDtoMapper +}; + +export const environmentName: OperationURLParameter = { + parameterPath: "environmentName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "environmentName", + required: true, + type: { + name: "String" + } + } +}; + +export const body10: OperationParameter = { + parameterPath: "body", + mapper: EnvironmentContainerMapper +}; + +export const body11: OperationParameter = { + parameterPath: "body", + mapper: EnvironmentVersionMapper +}; + +export const modelName: OperationURLParameter = { + parameterPath: "modelName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "modelName", + required: true, + type: { + name: "String" + } + } +}; + +export const body12: OperationParameter = { + parameterPath: "body", + mapper: ModelContainerMapper +}; + +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 properties1: OperationQueryParameter = { + parameterPath: ["options", "properties"], + mapper: { + serializedName: "properties", + type: { + name: "String" + } + } +}; + +export const body13: OperationParameter = { + parameterPath: "body", + mapper: ModelVersionMapper +}; + +export const count: OperationQueryParameter = { + parameterPath: ["options", "count"], + mapper: { + serializedName: "count", + type: { + name: "Number" + } + } +}; + +export const endpointName: OperationURLParameter = { + parameterPath: "endpointName", + mapper: { + serializedName: "endpointName", required: true, type: { name: "String" @@ -413,49 +587,88 @@ export const version: OperationURLParameter = { } }; -export const body5: OperationParameter = { +export const body14: OperationParameter = { parameterPath: "body", - mapper: CodeVersionMapper + mapper: PartialMinimalTrackedResourceWithIdentityMapper }; -export const listViewType: OperationQueryParameter = { - parameterPath: ["options", "listViewType"], +export const endpointName1: OperationURLParameter = { + parameterPath: "endpointName", mapper: { - serializedName: "listViewType", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "endpointName", + required: true, type: { name: "String" } } }; -export const body6: OperationParameter = { +export const body15: OperationParameter = { parameterPath: "body", - mapper: ComponentContainerMapper + mapper: BatchEndpointMapper }; -export const body7: OperationParameter = { +export const deploymentName: OperationURLParameter = { + parameterPath: "deploymentName", + mapper: { + serializedName: "deploymentName", + required: true, + type: { + name: "String" + } + } +}; + +export const body16: OperationParameter = { parameterPath: "body", - mapper: ComponentVersionMapper + mapper: PartialBatchDeploymentPartialMinimalTrackedResourceWithPropertiesMapper }; -export const body8: OperationParameter = { +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: DataContainerMapper + mapper: BatchDeploymentMapper }; -export const tags: OperationQueryParameter = { - parameterPath: ["options", "tags"], +export const hash: OperationQueryParameter = { + parameterPath: ["options", "hash"], mapper: { - serializedName: "$tags", + serializedName: "hash", type: { name: "String" } } }; -export const body9: OperationParameter = { +export const hashVersion: OperationQueryParameter = { + parameterPath: ["options", "hashVersion"], + mapper: { + serializedName: "hashVersion", + type: { + name: "String" + } + } +}; + +export const body18: OperationParameter = { parameterPath: "body", - mapper: DataVersionBaseMapper + mapper: DestinationAssetMapper }; export const count1: OperationQueryParameter = { @@ -526,7 +739,7 @@ export const orderByAsc: OperationQueryParameter = { } }; -export const body10: OperationParameter = { +export const body19: OperationParameter = { parameterPath: "body", mapper: DatastoreMapper }; @@ -542,16 +755,6 @@ export const skipValidation: OperationQueryParameter = { } }; -export const body11: OperationParameter = { - parameterPath: "body", - mapper: EnvironmentContainerMapper -}; - -export const body12: OperationParameter = { - parameterPath: "body", - mapper: EnvironmentVersionMapper -}; - export const jobType: OperationQueryParameter = { parameterPath: ["options", "jobType"], mapper: { @@ -583,7 +786,7 @@ export const id: OperationURLParameter = { } }; -export const body13: OperationParameter = { +export const body20: OperationParameter = { parameterPath: "body", mapper: JobBaseMapper }; @@ -602,31 +805,6 @@ export const id1: OperationURLParameter = { } }; -export const body14: OperationParameter = { - parameterPath: "body", - mapper: ModelContainerMapper -}; - -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 offset: OperationQueryParameter = { parameterPath: ["options", "offset"], mapper: { @@ -637,26 +815,6 @@ export const offset: OperationQueryParameter = { } }; -export const tags1: OperationQueryParameter = { - parameterPath: ["options", "tags"], - mapper: { - serializedName: "tags", - type: { - name: "String" - } - } -}; - -export const properties1: OperationQueryParameter = { - parameterPath: ["options", "properties"], - mapper: { - serializedName: "properties", - type: { - name: "String" - } - } -}; - export const feed: OperationQueryParameter = { parameterPath: ["options", "feed"], mapper: { @@ -667,11 +825,6 @@ export const feed: OperationQueryParameter = { } }; -export const body15: OperationParameter = { - parameterPath: "body", - mapper: ModelVersionMapper -}; - export const name2: OperationQueryParameter = { parameterPath: ["options", "name"], mapper: { @@ -702,27 +855,27 @@ export const orderBy2: OperationQueryParameter = { } }; -export const body16: OperationParameter = { +export const body21: OperationParameter = { parameterPath: "body", mapper: OnlineEndpointMapper }; -export const body17: OperationParameter = { +export const body22: OperationParameter = { parameterPath: "body", mapper: RegenerateEndpointKeysRequestMapper }; -export const body18: OperationParameter = { +export const body23: OperationParameter = { parameterPath: "body", mapper: PartialMinimalTrackedResourceWithSkuMapper }; -export const body19: OperationParameter = { +export const body24: OperationParameter = { parameterPath: "body", mapper: OnlineDeploymentMapper }; -export const body20: OperationParameter = { +export const body25: OperationParameter = { parameterPath: "body", mapper: DeploymentLogsRequestMapper }; @@ -737,7 +890,17 @@ export const listViewType1: OperationQueryParameter = { } }; -export const body21: OperationParameter = { +export const body26: OperationParameter = { parameterPath: "body", mapper: ScheduleMapper }; + +export const body27: OperationParameter = { + parameterPath: "body", + mapper: PartialRegistryPartialTrackedResourceMapper +}; + +export const body28: OperationParameter = { + parameterPath: "body", + mapper: RegistryMapper +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/batchDeployments.ts b/sdk/machinelearning/arm-machinelearning/src/operations/batchDeployments.ts index 1e22d4ba5c63..72ecaeb53647 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,12 +693,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.orderBy, - Parameters.top - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/batchEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operations/batchEndpoints.ts index 6517735a2a32..04282dede9a5 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,7 +663,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.count], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/codeContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/codeContainers.ts index 67e964d179c1..5233b115d1b9 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,7 +319,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/codeVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/codeVersions.ts index aecb1bc79fd7..5095d70076a6 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/codeVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/codeVersions.ts @@ -12,7 +12,13 @@ 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 { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { CodeVersion, CodeVersionsListNextOptionalParams, @@ -23,19 +29,24 @@ import { CodeVersionsGetResponse, CodeVersionsCreateOrUpdateOptionalParams, CodeVersionsCreateOrUpdateResponse, + DestinationAsset, + CodeVersionsPublishOptionalParams, + 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 +227,127 @@ export class CodeVersionsImpl implements CodeVersions { ); } + /** + * Publish version asset into registry. + * @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. + * @param version Version identifier. + * @param body Destination registry info + * @param options The options parameters. + */ + async beginPublish( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DestinationAsset, + options?: CodeVersionsPublishOptionalParams + ): 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, body, options }, + spec: publishOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Publish version asset into registry. + * @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. + * @param version Version identifier. + * @param body Destination registry info + * @param options The options parameters. + */ + async beginPublishAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DestinationAsset, + options?: CodeVersionsPublishOptionalParams + ): Promise { + const poller = await this.beginPublish( + resourceGroupName, + workspaceName, + name, + 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 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 +388,9 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.apiVersion, Parameters.skip, Parameters.orderBy, - Parameters.top + Parameters.top, + Parameters.hash, + Parameters.hashVersion ], urlParameters: [ Parameters.$host, @@ -285,8 +419,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 +443,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 +464,68 @@ 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.version, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const publishOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}/publish", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body18, + 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 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.name1, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -355,12 +542,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.orderBy, - Parameters.top - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/componentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/componentContainers.ts index 26779c163b36..1130d9458504 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,11 +323,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.listViewType - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/componentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/componentVersions.ts index 4f84d94d01f1..b0025bc8934e 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/componentVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/componentVersions.ts @@ -12,7 +12,13 @@ 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 { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { ComponentVersion, ComponentVersionsListNextOptionalParams, @@ -23,19 +29,21 @@ import { ComponentVersionsGetResponse, ComponentVersionsCreateOrUpdateOptionalParams, ComponentVersionsCreateOrUpdateResponse, + DestinationAsset, + ComponentVersionsPublishOptionalParams, ComponentVersionsListNextResponse } from "../models"; /// /** 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; } @@ -216,6 +224,104 @@ export class ComponentVersionsImpl implements ComponentVersions { ); } + /** + * Publish version asset into registry. + * @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. + * @param version Version identifier. + * @param body Destination registry info + * @param options The options parameters. + */ + async beginPublish( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DestinationAsset, + options?: ComponentVersionsPublishOptionalParams + ): 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, body, options }, + spec: publishOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Publish version asset into registry. + * @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. + * @param version Version identifier. + * @param body Destination registry info + * @param options The options parameters. + */ + async beginPublishAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DestinationAsset, + options?: ComponentVersionsPublishOptionalParams + ): Promise { + const poller = await this.beginPublish( + resourceGroupName, + workspaceName, + name, + version, + body, + options + ); + return poller.pollUntilDone(); + } + /** * ListNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -286,8 +392,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 +416,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 +437,42 @@ 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", + serializer +}; +const publishOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}/publish", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body18, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -356,13 +489,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.orderBy, - Parameters.top, - Parameters.listViewType - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts b/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts index 702e18d066aa..75cc327504cc 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, @@ -45,13 +49,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 +282,8 @@ export class ComputeOperationsImpl implements ComputeOperations { parameters: ComputeResource, options?: ComputeCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ComputeCreateOrUpdateResponse > > { @@ -289,7 +293,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 +326,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 +391,10 @@ export class ComputeOperationsImpl implements ComputeOperations { parameters: ClusterUpdateParameters, options?: ComputeUpdateOptionalParams ): Promise< - PollerLike, ComputeUpdateResponse> + SimplePollerLike< + OperationState, + ComputeUpdateResponse + > > { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -386,7 +402,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 +435,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 +498,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 +538,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(); @@ -608,14 +633,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 +673,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 +720,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 +760,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 +807,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 +847,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(); @@ -1166,7 +1191,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1188,7 +1212,6 @@ const listNodesNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/dataContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/dataContainers.ts index 919fb4a2dcec..a2b004bf286c 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,11 +323,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.listViewType - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/dataVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/dataVersions.ts index 30559627d079..967ca2c63da6 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/dataVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/dataVersions.ts @@ -12,7 +12,13 @@ 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 { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { DataVersionBase, DataVersionsListNextOptionalParams, @@ -23,19 +29,21 @@ import { DataVersionsGetResponse, DataVersionsCreateOrUpdateOptionalParams, DataVersionsCreateOrUpdateResponse, + DestinationAsset, + DataVersionsPublishOptionalParams, DataVersionsListNextResponse } from "../models"; /// /** 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; } @@ -216,6 +224,104 @@ export class DataVersionsImpl implements DataVersions { ); } + /** + * Publish version asset into registry. + * @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. + * @param version Version identifier. + * @param body Destination registry info + * @param options The options parameters. + */ + async beginPublish( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DestinationAsset, + options?: DataVersionsPublishOptionalParams + ): 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, body, options }, + spec: publishOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Publish version asset into registry. + * @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. + * @param version Version identifier. + * @param body Destination registry info + * @param options The options parameters. + */ + async beginPublishAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DestinationAsset, + options?: DataVersionsPublishOptionalParams + ): Promise { + const poller = await this.beginPublish( + resourceGroupName, + workspaceName, + name, + version, + body, + options + ); + return poller.pollUntilDone(); + } + /** * ListNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -287,8 +393,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 +417,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 +438,42 @@ 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.version, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const publishOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}/publish", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name1, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -357,14 +490,6 @@ 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, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/datastores.ts b/sdk/machinelearning/arm-machinelearning/src/operations/datastores.ts index d7879f3d50ca..3165a4752659 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.body19, queryParameters: [Parameters.apiVersion, Parameters.skipValidation], urlParameters: [ Parameters.$host, @@ -372,16 +372,6 @@ 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, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/environmentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/environmentContainers.ts index 2dbf74f59490..b7b718dae926 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.body10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -323,11 +323,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.listViewType - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/environmentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/environmentVersions.ts index eab18e455003..2000f8212b5e 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/environmentVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/environmentVersions.ts @@ -12,7 +12,13 @@ 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 { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { EnvironmentVersion, EnvironmentVersionsListNextOptionalParams, @@ -23,19 +29,21 @@ import { EnvironmentVersionsGetResponse, EnvironmentVersionsCreateOrUpdateOptionalParams, EnvironmentVersionsCreateOrUpdateResponse, + DestinationAsset, + EnvironmentVersionsPublishOptionalParams, EnvironmentVersionsListNextResponse } from "../models"; /// /** 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; } @@ -216,6 +224,104 @@ export class EnvironmentVersionsImpl implements EnvironmentVersions { ); } + /** + * Publish version asset into registry. + * @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. + * @param version Version identifier. + * @param body Destination registry info + * @param options The options parameters. + */ + async beginPublish( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DestinationAsset, + options?: EnvironmentVersionsPublishOptionalParams + ): 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, body, options }, + spec: publishOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Publish version asset into registry. + * @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. + * @param version Version identifier. + * @param body Destination registry info + * @param options The options parameters. + */ + async beginPublishAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DestinationAsset, + options?: EnvironmentVersionsPublishOptionalParams + ): Promise { + const poller = await this.beginPublish( + resourceGroupName, + workspaceName, + name, + version, + body, + options + ); + return poller.pollUntilDone(); + } + /** * ListNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -286,8 +392,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 +416,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 +437,42 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body12, + requestBody: Parameters.body11, 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 publishOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}/publish", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body18, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -356,13 +489,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.orderBy, - Parameters.top, - Parameters.listViewType - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/index.ts b/sdk/machinelearning/arm-machinelearning/src/operations/index.ts index 5c0eba4f45e0..4fd447ee99c0 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/index.ts @@ -15,6 +15,19 @@ export * from "./computeOperations"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; export * from "./workspaceConnections"; +export * from "./managedNetworkSettingsRule"; +export * from "./managedNetworkProvisions"; +export * from "./registryCodeContainers"; +export * from "./registryCodeVersions"; +export * from "./registryComponentContainers"; +export * from "./registryComponentVersions"; +export * from "./registryDataContainers"; +export * from "./registryDataVersions"; +export * from "./registryDataReferences"; +export * from "./registryEnvironmentContainers"; +export * from "./registryEnvironmentVersions"; +export * from "./registryModelContainers"; +export * from "./registryModelVersions"; export * from "./batchEndpoints"; export * from "./batchDeployments"; export * from "./codeContainers"; @@ -32,4 +45,5 @@ export * from "./modelVersions"; export * from "./onlineEndpoints"; export * from "./onlineDeployments"; export * from "./schedules"; +export * from "./registries"; export * from "./workspaceFeatures"; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/jobs.ts b/sdk/machinelearning/arm-machinelearning/src/operations/jobs.ts index 36387941c513..e880d3bb31b8 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, @@ -32,13 +36,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 +151,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 +191,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; @@ -243,6 +248,7 @@ export class JobsImpl implements Jobs { /** * Creates and executes a Job. + * For update case, the Tags in the definition passed in will replace Tags in the existing 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. @@ -274,14 +280,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 +320,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,6 +394,7 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.apiVersion, Parameters.skip, Parameters.listViewType, + Parameters.properties1, Parameters.jobType, Parameters.tag ], @@ -462,7 +469,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body13, + requestBody: Parameters.body20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -510,13 +517,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.listViewType, - Parameters.jobType, - Parameters.tag - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, 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..d335492ad55a --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkProvisions.ts @@ -0,0 +1,163 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { ManagedNetworkProvisions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams, + ManagedNetworkProvisionsProvisionManagedNetworkResponse +} from "../models"; + +/** Class containing ManagedNetworkProvisions operations. */ +export class ManagedNetworkProvisionsImpl implements ManagedNetworkProvisions { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class ManagedNetworkProvisions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * Provisions the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + async beginProvisionManagedNetwork( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedNetworkProvisionsProvisionManagedNetworkResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, options }, + spec: provisionManagedNetworkOperationSpec + }); + const poller = await createHttpPoller< + ManagedNetworkProvisionsProvisionManagedNetworkResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Provisions the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + async beginProvisionManagedNetworkAndWait( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams + ): Promise { + const poller = await this.beginProvisionManagedNetwork( + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const provisionManagedNetworkOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/provisionManagedNetwork", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ManagedNetworkProvisionStatus + }, + 201: { + bodyMapper: Mappers.ManagedNetworkProvisionStatus + }, + 202: { + bodyMapper: Mappers.ManagedNetworkProvisionStatus + }, + 204: { + bodyMapper: Mappers.ManagedNetworkProvisionStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body1, + 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..c4cdc39f4304 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkSettingsRule.ts @@ -0,0 +1,496 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ManagedNetworkSettingsRule } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + OutboundRuleBasicResource, + ManagedNetworkSettingsRuleListNextOptionalParams, + ManagedNetworkSettingsRuleListOptionalParams, + ManagedNetworkSettingsRuleListResponse, + ManagedNetworkSettingsRuleDeleteOptionalParams, + ManagedNetworkSettingsRuleGetOptionalParams, + ManagedNetworkSettingsRuleGetResponse, + ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams, + ManagedNetworkSettingsRuleCreateOrUpdateResponse, + ManagedNetworkSettingsRuleListNextResponse +} from "../models"; + +/// +/** Class containing ManagedNetworkSettingsRule operations. */ +export class ManagedNetworkSettingsRuleImpl + implements ManagedNetworkSettingsRule { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class ManagedNetworkSettingsRule class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * Lists the managed network outbound rules for a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkSettingsRuleListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkSettingsRuleListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ManagedNetworkSettingsRuleListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, workspaceName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkSettingsRuleListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * Lists the managed network outbound rules for a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkSettingsRuleListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Deletes an outbound rule from the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param ruleName Name of the workspace managed network outbound rule + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: ManagedNetworkSettingsRuleDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, ruleName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Deletes an outbound rule from the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param ruleName Name of the workspace managed network outbound rule + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: ManagedNetworkSettingsRuleDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + ruleName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Gets an outbound rule from the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param ruleName Name of the workspace managed network outbound rule + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: ManagedNetworkSettingsRuleGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, ruleName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates an outbound rule in the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param ruleName Name of the workspace managed network outbound rule + * @param body Outbound Rule to be created or updated in the managed network of a machine learning + * workspace. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + body: OutboundRuleBasicResource, + options?: ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedNetworkSettingsRuleCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, ruleName, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + ManagedNetworkSettingsRuleCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates an outbound rule in the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param ruleName Name of the workspace managed network outbound rule + * @param body Outbound Rule to be created or updated in the managed network of a machine learning + * workspace. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + body: OutboundRuleBasicResource, + options?: ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + ruleName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: ManagedNetworkSettingsRuleListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundRuleListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.ruleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundRuleBasicResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.ruleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.OutboundRuleBasicResource + }, + 201: { + bodyMapper: Mappers.OutboundRuleBasicResource + }, + 202: { + bodyMapper: Mappers.OutboundRuleBasicResource + }, + 204: { + bodyMapper: Mappers.OutboundRuleBasicResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body, + 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.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + 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..053e428b0f59 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.body12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -324,12 +324,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.count, - Parameters.listViewType - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/modelVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/modelVersions.ts index 966c9225da40..9ca7f707e7bf 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,21 @@ import { ModelVersionsGetResponse, ModelVersionsCreateOrUpdateOptionalParams, ModelVersionsCreateOrUpdateResponse, + DestinationAsset, + ModelVersionsPublishOptionalParams, 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 +224,104 @@ export class ModelVersionsImpl implements ModelVersions { ); } + /** + * Publish version asset into registry. + * @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. + * @param version Version identifier. + * @param body Destination registry info + * @param options The options parameters. + */ + async beginPublish( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DestinationAsset, + options?: ModelVersionsPublishOptionalParams + ): 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, body, options }, + spec: publishOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Publish version asset into registry. + * @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. + * @param version Version identifier. + * @param body Destination registry info + * @param options The options parameters. + */ + async beginPublishAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DestinationAsset, + options?: ModelVersionsPublishOptionalParams + ): Promise { + const poller = await this.beginPublish( + resourceGroupName, + workspaceName, + name, + version, + body, + options + ); + return poller.pollUntilDone(); + } + /** * ListNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -260,9 +366,9 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.listViewType, Parameters.version1, Parameters.description, - Parameters.offset, Parameters.tags1, Parameters.properties1, + Parameters.offset, Parameters.feed ], urlParameters: [ @@ -292,8 +398,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 +422,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 +443,42 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body15, + requestBody: Parameters.body13, 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 publishOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}/publish", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body18, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -362,19 +495,6 @@ 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, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/onlineDeployments.ts b/sdk/machinelearning/arm-machinelearning/src/operations/onlineDeployments.ts index 0d71a80f4298..a1eb9b39a620 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.body23, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -853,7 +865,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body19, + requestBody: Parameters.body24, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -879,7 +891,7 @@ const getLogsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body20, + requestBody: Parameters.body25, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -928,12 +940,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.orderBy, - Parameters.top - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -956,7 +962,6 @@ const listSkusNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.count], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/onlineEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operations/onlineEndpoints.ts index ec5c78271803..7d2852352064 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,9 +623,9 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [ Parameters.apiVersion, Parameters.skip, - Parameters.count, Parameters.tags1, Parameters.properties1, + Parameters.count, Parameters.name2, Parameters.computeType, Parameters.orderBy2 @@ -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.body21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -778,7 +790,7 @@ const regenerateKeysOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body17, + requestBody: Parameters.body22, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -825,16 +837,6 @@ 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, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/operations.ts b/sdk/machinelearning/arm-machinelearning/src/operations/operations.ts index 2dc181c81bfb..8d3baf5509b0 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,13 +21,13 @@ 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; } @@ -37,7 +37,7 @@ export class OperationsImpl implements Operations { */ 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,7 +66,7 @@ export class OperationsImpl implements Operations { private async *listPagingAll( options?: OperationsListOptionalParams - ): AsyncIterableIterator { + ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; } @@ -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..6dae16bebb86 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/privateEndpointConnections.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/privateEndpointConnections.ts @@ -11,7 +11,7 @@ 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, @@ -27,13 +27,13 @@ import { /** 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; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/privateLinkResources.ts b/sdk/machinelearning/arm-machinelearning/src/operations/privateLinkResources.ts index efe5fab5b56b..d45a4dae291c 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/privateLinkResources.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/privateLinkResources.ts @@ -10,7 +10,7 @@ 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 { PrivateLinkResourcesListOptionalParams, PrivateLinkResourcesListResponse @@ -18,13 +18,13 @@ import { /** 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; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/quotas.ts b/sdk/machinelearning/arm-machinelearning/src/operations/quotas.ts index 8ba2d40e0eeb..e3607b4bfcd0 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; } @@ -202,7 +202,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, 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..069c35b6d77b --- /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.body27, + 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.body28, + 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.body28, + 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.resourceGroupName, + Parameters.nextLink + ], + 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..6035c5998925 --- /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.resourceGroupName, + Parameters.nextLink, + 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..0746802ee4fd --- /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.resourceGroupName, + Parameters.nextLink, + 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..bec098f09322 --- /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.resourceGroupName, + Parameters.nextLink, + 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..873a7975fa73 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryComponentVersions.ts @@ -0,0 +1,551 @@ +/* + * 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 + ], + 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.resourceGroupName, + Parameters.nextLink, + 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..7eeaf059b74c --- /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.resourceGroupName, + Parameters.nextLink, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryDataReferences.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryDataReferences.ts new file mode 100644 index 000000000000..7c5853737b92 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryDataReferences.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 { RegistryDataReferences } 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 { + GetBlobReferenceSASRequestDto, + RegistryDataReferencesGetBlobReferenceSASOptionalParams, + RegistryDataReferencesGetBlobReferenceSASResponse +} from "../models"; + +/** Class containing RegistryDataReferences operations. */ +export class RegistryDataReferencesImpl implements RegistryDataReferences { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class RegistryDataReferences class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * Get blob reference SAS Uri. + * @param resourceGroupName 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 reference name. + * @param version Version identifier. + * @param body Asset id and blob uri. + * @param options The options parameters. + */ + getBlobReferenceSAS( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + body: GetBlobReferenceSASRequestDto, + options?: RegistryDataReferencesGetBlobReferenceSASOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, name, version, body, options }, + getBlobReferenceSASOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getBlobReferenceSASOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/datareferences/{name}/versions/{version}", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.GetBlobReferenceSASResponseDto + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body9, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + 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..28606c25e855 --- /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.resourceGroupName, + Parameters.nextLink, + 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..dffd60a28a0e --- /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.body10, + 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.resourceGroupName, + Parameters.nextLink, + 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..723409dba09b --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentVersions.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 { 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.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.body11, + 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.resourceGroupName, + Parameters.nextLink, + 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..596d51b86899 --- /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.body12, + 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.resourceGroupName, + Parameters.nextLink, + 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..c8b3e101e0d9 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryModelVersions.ts @@ -0,0 +1,601 @@ +/* + * 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, + 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(); + } + + /** + * 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.properties1 + ], + 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.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.resourceGroupName, + Parameters.nextLink, + 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..081d33910973 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.body26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -477,11 +486,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.listViewType1 - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/usages.ts b/sdk/machinelearning/arm-machinelearning/src/operations/usages.ts index d3abf9d81047..bc019912d0ec 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,7 +161,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, 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..c02bb9bafd38 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts @@ -12,7 +12,7 @@ import { WorkspaceConnections } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { WorkspaceConnectionPropertiesV2BasicResource, WorkspaceConnectionsListNextOptionalParams, @@ -29,13 +29,13 @@ import { /// /** 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; } @@ -317,11 +317,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.target, - Parameters.category - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/workspaceFeatures.ts b/sdk/machinelearning/arm-machinelearning/src/operations/workspaceFeatures.ts index 2dfb2a4b8794..38dd38e4715a 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,7 +182,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/workspaces.ts b/sdk/machinelearning/arm-machinelearning/src/operations/workspaces.ts index c9cbd5890ede..1851f0b32765 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/workspaces.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/workspaces.ts @@ -12,9 +12,13 @@ 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, @@ -53,13 +57,13 @@ import { /// /** 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; } @@ -216,8 +220,8 @@ export class WorkspacesImpl implements Workspaces { parameters: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesCreateOrUpdateResponse > > { @@ -227,7 +231,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 ) => { @@ -260,13 +264,16 @@ export class WorkspacesImpl implements Workspaces { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, parameters, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + WorkspacesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -305,14 +312,14 @@ export class WorkspacesImpl implements Workspaces { resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams - ): 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 ) => { @@ -345,13 +352,13 @@ 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, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -390,8 +397,8 @@ export class WorkspacesImpl implements Workspaces { parameters: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesUpdateResponse > > { @@ -401,7 +408,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 ) => { @@ -434,13 +441,16 @@ export class WorkspacesImpl implements Workspaces { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, parameters, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + WorkspacesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -495,8 +505,8 @@ export class WorkspacesImpl implements Workspaces { workspaceName: string, options?: WorkspacesDiagnoseOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesDiagnoseResponse > > { @@ -506,7 +516,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 +549,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; @@ -601,14 +614,14 @@ export class WorkspacesImpl implements Workspaces { resourceGroupName: string, workspaceName: string, options?: WorkspacesResyncKeysOptionalParams - ): 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 ) => { @@ -641,13 +654,13 @@ export class WorkspacesImpl implements Workspaces { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, options }, - resyncKeysOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, options }, + spec: resyncKeysOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -715,8 +728,8 @@ export class WorkspacesImpl implements Workspaces { workspaceName: string, options?: WorkspacesPrepareNotebookOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesPrepareNotebookResponse > > { @@ -726,7 +739,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,15 +772,18 @@ 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; @@ -947,7 +963,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.forceToPurge], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1236,7 +1252,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1257,7 +1272,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchDeployments.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchDeployments.ts index 751f730b1a54..0decb41295c6 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchDeployments.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchDeployments.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { BatchDeployment, BatchDeploymentsListOptionalParams, @@ -51,7 +51,7 @@ export interface BatchDeployments { endpointName: string, deploymentName: string, options?: BatchDeploymentsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Delete Batch Inference deployment (asynchronous). * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -99,8 +99,8 @@ export interface BatchDeployments { body: PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties, options?: BatchDeploymentsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BatchDeploymentsUpdateResponse > >; @@ -138,8 +138,8 @@ export interface BatchDeployments { body: BatchDeployment, options?: BatchDeploymentsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BatchDeploymentsCreateOrUpdateResponse > >; diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchEndpoints.ts index 6b64fdacf732..a1f9d8279a85 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchEndpoints.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchEndpoints.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { BatchEndpoint, BatchEndpointsListOptionalParams, @@ -49,7 +49,7 @@ export interface BatchEndpoints { workspaceName: string, endpointName: string, options?: BatchEndpointsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Delete Batch Inference Endpoint (asynchronous). * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -91,8 +91,8 @@ export interface BatchEndpoints { body: PartialMinimalTrackedResourceWithIdentity, options?: BatchEndpointsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BatchEndpointsUpdateResponse > >; @@ -126,8 +126,8 @@ export interface BatchEndpoints { body: BatchEndpoint, options?: BatchEndpointsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BatchEndpointsCreateOrUpdateResponse > >; diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/codeVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/codeVersions.ts index 4d6f4f26c7de..b4ed587fa7e2 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/codeVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/codeVersions.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { CodeVersion, CodeVersionsListOptionalParams, @@ -14,7 +15,12 @@ import { CodeVersionsGetOptionalParams, CodeVersionsGetResponse, CodeVersionsCreateOrUpdateOptionalParams, - CodeVersionsCreateOrUpdateResponse + CodeVersionsCreateOrUpdateResponse, + DestinationAsset, + CodeVersionsPublishOptionalParams, + PendingUploadRequestDto, + CodeVersionsCreateOrGetStartPendingUploadOptionalParams, + CodeVersionsCreateOrGetStartPendingUploadResponse } from "../models"; /// @@ -80,4 +86,55 @@ export interface CodeVersions { body: CodeVersion, options?: CodeVersionsCreateOrUpdateOptionalParams ): Promise; + /** + * Publish version asset into registry. + * @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. + * @param version Version identifier. + * @param body Destination registry info + * @param options The options parameters. + */ + beginPublish( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DestinationAsset, + options?: CodeVersionsPublishOptionalParams + ): Promise, void>>; + /** + * Publish version asset into registry. + * @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. + * @param version Version identifier. + * @param body Destination registry info + * @param options The options parameters. + */ + beginPublishAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DestinationAsset, + options?: CodeVersionsPublishOptionalParams + ): 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/componentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/componentVersions.ts index 99d305220c2c..bf652a605e07 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/componentVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/componentVersions.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ComponentVersion, ComponentVersionsListOptionalParams, @@ -14,7 +15,9 @@ import { ComponentVersionsGetOptionalParams, ComponentVersionsGetResponse, ComponentVersionsCreateOrUpdateOptionalParams, - ComponentVersionsCreateOrUpdateResponse + ComponentVersionsCreateOrUpdateResponse, + DestinationAsset, + ComponentVersionsPublishOptionalParams } from "../models"; /// @@ -80,4 +83,38 @@ export interface ComponentVersions { body: ComponentVersion, options?: ComponentVersionsCreateOrUpdateOptionalParams ): Promise; + /** + * Publish version asset into registry. + * @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. + * @param version Version identifier. + * @param body Destination registry info + * @param options The options parameters. + */ + beginPublish( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DestinationAsset, + options?: ComponentVersionsPublishOptionalParams + ): Promise, void>>; + /** + * Publish version asset into registry. + * @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. + * @param version Version identifier. + * @param body Destination registry info + * @param options The options parameters. + */ + beginPublishAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DestinationAsset, + options?: ComponentVersionsPublishOptionalParams + ): Promise; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts index 630c4eee8be1..42466732385c 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, @@ -87,8 +87,8 @@ export interface ComputeOperations { parameters: ComputeResource, options?: ComputeCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ComputeCreateOrUpdateResponse > >; @@ -125,7 +125,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 +161,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. @@ -200,7 +203,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 +229,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 +255,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. diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/dataVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/dataVersions.ts index 106b96303a40..605dc0d64d0d 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/dataVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/dataVersions.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { DataVersionBase, DataVersionsListOptionalParams, @@ -14,7 +15,9 @@ import { DataVersionsGetOptionalParams, DataVersionsGetResponse, DataVersionsCreateOrUpdateOptionalParams, - DataVersionsCreateOrUpdateResponse + DataVersionsCreateOrUpdateResponse, + DestinationAsset, + DataVersionsPublishOptionalParams } from "../models"; /// @@ -80,4 +83,38 @@ export interface DataVersions { body: DataVersionBase, options?: DataVersionsCreateOrUpdateOptionalParams ): Promise; + /** + * Publish version asset into registry. + * @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. + * @param version Version identifier. + * @param body Destination registry info + * @param options The options parameters. + */ + beginPublish( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DestinationAsset, + options?: DataVersionsPublishOptionalParams + ): Promise, void>>; + /** + * Publish version asset into registry. + * @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. + * @param version Version identifier. + * @param body Destination registry info + * @param options The options parameters. + */ + beginPublishAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DestinationAsset, + options?: DataVersionsPublishOptionalParams + ): Promise; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/environmentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/environmentVersions.ts index 9cfbd68e428a..cdf738fd782e 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/environmentVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/environmentVersions.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { EnvironmentVersion, EnvironmentVersionsListOptionalParams, @@ -14,7 +15,9 @@ import { EnvironmentVersionsGetOptionalParams, EnvironmentVersionsGetResponse, EnvironmentVersionsCreateOrUpdateOptionalParams, - EnvironmentVersionsCreateOrUpdateResponse + EnvironmentVersionsCreateOrUpdateResponse, + DestinationAsset, + EnvironmentVersionsPublishOptionalParams } from "../models"; /// @@ -80,4 +83,38 @@ export interface EnvironmentVersions { body: EnvironmentVersion, options?: EnvironmentVersionsCreateOrUpdateOptionalParams ): Promise; + /** + * Publish version asset into registry. + * @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. + * @param version Version identifier. + * @param body Destination registry info + * @param options The options parameters. + */ + beginPublish( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DestinationAsset, + options?: EnvironmentVersionsPublishOptionalParams + ): Promise, void>>; + /** + * Publish version asset into registry. + * @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. + * @param version Version identifier. + * @param body Destination registry info + * @param options The options parameters. + */ + beginPublishAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DestinationAsset, + options?: EnvironmentVersionsPublishOptionalParams + ): Promise; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts index 5c0eba4f45e0..4fd447ee99c0 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts @@ -15,6 +15,19 @@ export * from "./computeOperations"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; export * from "./workspaceConnections"; +export * from "./managedNetworkSettingsRule"; +export * from "./managedNetworkProvisions"; +export * from "./registryCodeContainers"; +export * from "./registryCodeVersions"; +export * from "./registryComponentContainers"; +export * from "./registryComponentVersions"; +export * from "./registryDataContainers"; +export * from "./registryDataVersions"; +export * from "./registryDataReferences"; +export * from "./registryEnvironmentContainers"; +export * from "./registryEnvironmentVersions"; +export * from "./registryModelContainers"; +export * from "./registryModelVersions"; export * from "./batchEndpoints"; export * from "./batchDeployments"; export * from "./codeContainers"; @@ -32,4 +45,5 @@ export * from "./modelVersions"; export * from "./onlineEndpoints"; export * from "./onlineDeployments"; export * from "./schedules"; +export * from "./registries"; export * from "./workspaceFeatures"; diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/jobs.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/jobs.ts index f86e352d466f..78b1d0cfd006 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/jobs.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/jobs.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 { JobBase, JobsListOptionalParams, @@ -45,7 +45,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. @@ -74,6 +74,7 @@ export interface Jobs { ): Promise; /** * Creates and executes a Job. + * For update case, the Tags in the definition passed in will replace Tags in the existing 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. @@ -99,7 +100,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/managedNetworkProvisions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkProvisions.ts new file mode 100644 index 000000000000..782614ab8c31 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkProvisions.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams, + ManagedNetworkProvisionsProvisionManagedNetworkResponse +} from "../models"; + +/** Interface representing a ManagedNetworkProvisions. */ +export interface ManagedNetworkProvisions { + /** + * Provisions the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginProvisionManagedNetwork( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedNetworkProvisionsProvisionManagedNetworkResponse + > + >; + /** + * Provisions the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginProvisionManagedNetworkAndWait( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkSettingsRule.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkSettingsRule.ts new file mode 100644 index 000000000000..fe7addd3effb --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkSettingsRule.ts @@ -0,0 +1,111 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + OutboundRuleBasicResource, + ManagedNetworkSettingsRuleListOptionalParams, + ManagedNetworkSettingsRuleDeleteOptionalParams, + ManagedNetworkSettingsRuleGetOptionalParams, + ManagedNetworkSettingsRuleGetResponse, + ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams, + ManagedNetworkSettingsRuleCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a ManagedNetworkSettingsRule. */ +export interface ManagedNetworkSettingsRule { + /** + * Lists the managed network outbound rules for a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkSettingsRuleListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Deletes an outbound rule from the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param ruleName Name of the workspace managed network outbound rule + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: ManagedNetworkSettingsRuleDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes an outbound rule from the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param ruleName Name of the workspace managed network outbound rule + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: ManagedNetworkSettingsRuleDeleteOptionalParams + ): Promise; + /** + * Gets an outbound rule from the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param ruleName Name of the workspace managed network outbound rule + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: ManagedNetworkSettingsRuleGetOptionalParams + ): Promise; + /** + * Creates or updates an outbound rule in the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param ruleName Name of the workspace managed network outbound rule + * @param body Outbound Rule to be created or updated in the managed network of a machine learning + * workspace. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + body: OutboundRuleBasicResource, + options?: ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedNetworkSettingsRuleCreateOrUpdateResponse + > + >; + /** + * Creates or updates an outbound rule in the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param ruleName Name of the workspace managed network outbound rule + * @param body Outbound Rule to be created or updated in the managed network of a machine learning + * workspace. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + body: OutboundRuleBasicResource, + options?: ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/modelVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/modelVersions.ts index 14cf3f6fa73c..f9da7eb44ebe 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,9 @@ import { ModelVersionsGetOptionalParams, ModelVersionsGetResponse, ModelVersionsCreateOrUpdateOptionalParams, - ModelVersionsCreateOrUpdateResponse + ModelVersionsCreateOrUpdateResponse, + DestinationAsset, + ModelVersionsPublishOptionalParams } from "../models"; /// @@ -80,4 +83,38 @@ export interface ModelVersions { body: ModelVersion, options?: ModelVersionsCreateOrUpdateOptionalParams ): Promise; + /** + * Publish version asset into registry. + * @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. + * @param version Version identifier. + * @param body Destination registry info + * @param options The options parameters. + */ + beginPublish( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DestinationAsset, + options?: ModelVersionsPublishOptionalParams + ): Promise, void>>; + /** + * Publish version asset into registry. + * @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. + * @param version Version identifier. + * @param body Destination registry info + * @param options The options parameters. + */ + beginPublishAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DestinationAsset, + options?: ModelVersionsPublishOptionalParams + ): 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..007e106ee8ab 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/operations.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/operations.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { AmlOperation, OperationsListOptionalParams } from "../models"; +import { Operation, OperationsListOptionalParams } from "../models"; /// /** Interface representing a Operations. */ @@ -18,5 +18,5 @@ export interface Operations { */ list( options?: OperationsListOptionalParams - ): PagedAsyncIterableIterator; + ): 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/registryDataReferences.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataReferences.ts new file mode 100644 index 000000000000..353ed9900c8f --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataReferences.ts @@ -0,0 +1,34 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + GetBlobReferenceSASRequestDto, + RegistryDataReferencesGetBlobReferenceSASOptionalParams, + RegistryDataReferencesGetBlobReferenceSASResponse +} from "../models"; + +/** Interface representing a RegistryDataReferences. */ +export interface RegistryDataReferences { + /** + * Get blob reference SAS Uri. + * @param resourceGroupName 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 reference name. + * @param version Version identifier. + * @param body Asset id and blob uri. + * @param options The options parameters. + */ + getBlobReferenceSAS( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + body: GetBlobReferenceSASRequestDto, + options?: RegistryDataReferencesGetBlobReferenceSASOptionalParams + ): 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..002c7cfbeef5 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelVersions.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 { + ModelVersion, + RegistryModelVersionsListOptionalParams, + RegistryModelVersionsDeleteOptionalParams, + RegistryModelVersionsGetOptionalParams, + RegistryModelVersionsGetResponse, + RegistryModelVersionsCreateOrUpdateOptionalParams, + RegistryModelVersionsCreateOrUpdateResponse, + 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; + /** + * 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/workspaces.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaces.ts index 39e9d916b20b..129de10bbea0 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaces.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaces.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 { Workspace, WorkspacesListByResourceGroupOptionalParams, @@ -80,8 +80,8 @@ export interface Workspaces { parameters: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesCreateOrUpdateResponse > >; @@ -108,7 +108,7 @@ export interface Workspaces { resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes a machine learning workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -133,8 +133,8 @@ export interface Workspaces { parameters: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesUpdateResponse > >; @@ -162,8 +162,8 @@ export interface Workspaces { workspaceName: string, options?: WorkspacesDiagnoseOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesDiagnoseResponse > >; @@ -201,7 +201,7 @@ export interface Workspaces { resourceGroupName: string, workspaceName: string, options?: WorkspacesResyncKeysOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Resync all the keys associated with this workspace. This includes keys for the storage account, app * insights and password for container registry @@ -236,8 +236,8 @@ export interface Workspaces { workspaceName: string, options?: WorkspacesPrepareNotebookOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesPrepareNotebookResponse > >; 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"