diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 4c20b1414bac..50105393952a 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -465,7 +465,7 @@ importers: version: file:projects/arm-logic.tgz '@rush-temp/arm-machinelearning': specifier: file:./projects/arm-machinelearning.tgz - version: file:projects/arm-machinelearning.tgz + version: file:projects/arm-machinelearning.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.12(@types/node@22.7.9)) '@rush-temp/arm-machinelearningcompute': specifier: file:./projects/arm-machinelearningcompute.tgz version: file:projects/arm-machinelearningcompute.tgz @@ -3078,7 +3078,7 @@ packages: version: 0.0.0 '@rush-temp/arm-machinelearning@file:projects/arm-machinelearning.tgz': - resolution: {integrity: sha512-kLlOT51xPOlxBK42f3di4Ax7jcN4X1850huQkMkAANJlgi2cOnPZqxtzG4yAweBE6GZAi+0AcNS+4TG9/JIUXA==, tarball: file:projects/arm-machinelearning.tgz} + resolution: {integrity: sha512-j5P7D78+zXpGGHV4ZPeLxd5/n5HryEJopthZke4Vhs8y1xaB4HHvcfqS2iz6dwE9BFT4NG+Q+gux7LWxdG50UQ==, tarball: file:projects/arm-machinelearning.tgz} version: 0.0.0 '@rush-temp/arm-machinelearningcompute@file:projects/arm-machinelearningcompute.tgz': @@ -13967,26 +13967,36 @@ snapshots: - '@swc/wasm' - supports-color - '@rush-temp/arm-machinelearning@file:projects/arm-machinelearning.tgz': + '@rush-temp/arm-machinelearning@file:projects/arm-machinelearning.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.12(@types/node@22.7.9))': dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.10 '@types/node': 18.19.71 - chai: 4.5.0 + '@vitest/browser': 3.0.3(@types/node@18.19.71)(playwright@1.50.0)(typescript@5.6.3)(vite@5.4.12(@types/node@22.7.9))(vitest@3.0.3) + '@vitest/coverage-istanbul': 3.0.3(vitest@3.0.3) dotenv: 16.4.7 - mocha: 11.1.0 - ts-node: 10.9.2(@types/node@18.19.71)(typescript@5.7.3) + playwright: 1.50.0 tslib: 2.8.1 - tsx: 4.19.2 - typescript: 5.7.3 + typescript: 5.6.3 + vitest: 3.0.3(@types/node@18.19.71)(@vitest/browser@3.0.3)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3)) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' + - bufferutil + - happy-dom + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - utf-8-validate + - vite + - webdriverio '@rush-temp/arm-machinelearningcompute@file:projects/arm-machinelearningcompute.tgz': dependencies: diff --git a/sdk/machinelearning/arm-machinelearning/CHANGELOG.md b/sdk/machinelearning/arm-machinelearning/CHANGELOG.md index 96e82c8c169c..a5eea977c19d 100644 --- a/sdk/machinelearning/arm-machinelearning/CHANGELOG.md +++ b/sdk/machinelearning/arm-machinelearning/CHANGELOG.md @@ -1,5 +1,28 @@ # Release History +## 4.0.0 (2025-01-24) + +### Features Added + + - Added operation WorkspaceConnections.update + - Added Interface WorkspaceConnectionsUpdateOptionalParams + - Added Interface WorkspaceConnectionUpdateParameter + - Added Interface WorkspacesDeleteHeaders + - Added Type Alias FirewallSku + - Added Type Alias WorkspaceConnectionsUpdateResponse + - Interface ManagedNetworkSettings has a new optional parameter firewallSku + - Interface WorkspaceConnectionsListOptionalParams has a new optional parameter includeAll + - Added Enum KnownFirewallSku + - Enum KnownConnectionCategory has a new value Elasticsearch + - Enum KnownConnectionCategory has a new value ManagedOnlineEndpoint + - Enum KnownConnectionCategory has a new value Pinecone + +### Breaking Changes + + - Interface AcrDetails no longer has parameter userCreatedAcrAccount + - Interface StorageAccountDetails no longer has parameter userCreatedStorageAccount + + ## 3.0.0 (2024-08-15) ### Features Added diff --git a/sdk/machinelearning/arm-machinelearning/LICENSE b/sdk/machinelearning/arm-machinelearning/LICENSE index 7d5934740965..2ad4de7b17f0 100644 --- a/sdk/machinelearning/arm-machinelearning/LICENSE +++ b/sdk/machinelearning/arm-machinelearning/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2024 Microsoft +Copyright (c) 2025 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 1ef9f525cb9c..7898101f3ec9 100644 --- a/sdk/machinelearning/arm-machinelearning/README.md +++ b/sdk/machinelearning/arm-machinelearning/README.md @@ -2,7 +2,7 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureMachineLearningServicesManagement client. -These APIs allow end users to operate on Azure Machine Learning Workspace resources. +These APIs allow end users to operate on Azure Machine Learning Workspace resources. test [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-machinelearning) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-machinelearning) | @@ -44,7 +44,6 @@ npm install @azure/identity ``` You will also need to **register a new AAD application and grant access to AzureMachineLearningServicesManagement** 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://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). @@ -54,10 +53,7 @@ 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 AzureMachineLearningServicesManagementClient( - new DefaultAzureCredential(), - subscriptionId, -); +const client = new AzureMachineLearningServicesManagementClient(new DefaultAzureCredential(), subscriptionId); // For client-side applications running in the browser, use this code instead: // const credential = new InteractiveBrowserCredential({ @@ -67,8 +63,8 @@ const client = new AzureMachineLearningServicesManagementClient( // const client = new AzureMachineLearningServicesManagementClient(credential, subscriptionId); ``` -### JavaScript Bundle +### JavaScript Bundle To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). ## Key concepts diff --git a/sdk/machinelearning/arm-machinelearning/_meta.json b/sdk/machinelearning/arm-machinelearning/_meta.json index 857e6795e82d..1d45578edbd4 100644 --- a/sdk/machinelearning/arm-machinelearning/_meta.json +++ b/sdk/machinelearning/arm-machinelearning/_meta.json @@ -1,8 +1,8 @@ { - "commit": "41c3d8cd458627f85820d6028b37e31f8f3b2906", + "commit": "59583521f5e5a5b1e02bd8966bc30b567ecc696a", "readme": "specification/machinelearningservices/resource-manager/readme.md", - "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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\machinelearningservices\\resource-manager\\readme.md --use=@autorest/typescript@6.0.23 --generate-sample=true", - "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.11", - "use": "@autorest/typescript@6.0.23" + "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.12", + "repository_url": "https://github.com/test-repo-billy/azure-rest-api-specs.git", + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.18", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/machinelearning/arm-machinelearning/package.json b/sdk/machinelearning/arm-machinelearning/package.json index ff3084a3401a..03b59ea7b60a 100644 --- a/sdk/machinelearning/arm-machinelearning/package.json +++ b/sdk/machinelearning/arm-machinelearning/package.json @@ -3,18 +3,18 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for AzureMachineLearningServicesManagementClient.", - "version": "3.0.0", + "version": "4.0.0", "engines": { "node": ">=18.0.0" }, "dependencies": { - "@azure/abort-controller": "^1.0.0", - "@azure/core-auth": "^1.6.0", - "@azure/core-client": "^1.7.0", + "@azure/abort-controller": "^2.1.2", + "@azure/core-auth": "^1.9.0", + "@azure/core-client": "^1.9.2", "@azure/core-lro": "^2.5.4", - "@azure/core-paging": "^1.2.0", - "@azure/core-rest-pipeline": "^1.14.0", - "tslib": "^2.2.0" + "@azure/core-paging": "^1.6.2", + "@azure/core-rest-pipeline": "^1.18.2", + "tslib": "^2.8.1" }, "keywords": [ "node", @@ -24,23 +24,22 @@ "isomorphic" ], "license": "MIT", - "main": "./dist/index.js", + "main": "./dist/commonjs/index.js", "module": "./dist-esm/src/index.js", - "types": "./types/arm-machinelearning.d.ts", + "types": "./dist/commonjs/index.d.ts", "devDependencies": { - "@azure-tools/test-credential": "^1.1.0", - "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", - "@types/mocha": "^10.0.0", + "@azure/identity": "^4.6.0", "@types/node": "^18.0.0", - "chai": "^4.2.0", + "@vitest/browser": "^3.0.3", + "@vitest/coverage-istanbul": "^3.0.3", "dotenv": "^16.0.0", - "mocha": "^11.0.2", - "ts-node": "^10.0.0", - "tsx": "^4.7.1", - "typescript": "~5.7.2" + "playwright": "^1.50.0", + "typescript": "~5.6.2", + "vitest": "^3.0.3" }, "repository": { "type": "git", @@ -50,24 +49,14 @@ "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "dist-esm/**/*.js", - "dist-esm/**/*.js.map", - "dist-esm/**/*.d.ts", - "dist-esm/**/*.d.ts.map", - "src/**/*.ts", + "dist/", "README.md", "LICENSE", - "tsconfig.json", - "review/*", - "CHANGELOG.md", - "types/*" + "review/", + "CHANGELOG.md" ], "scripts": { - "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && npm run extract-api", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", "build:browser": "echo skipped", "build:node": "echo skipped", "build:samples": "echo skipped.", @@ -79,7 +68,7 @@ "format": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:node": "dev-tool run test:vitest --esm", "lint": "echo skipped", "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "pack": "npm pack 2>&1", @@ -89,7 +78,7 @@ "test:node": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", "unit-test:browser": "echo skipped", - "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, @@ -103,12 +92,44 @@ }, "autoPublish": true, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-machinelearning", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" + "type": "module", + "tshy": { + "project": "./tsconfig.src.json", + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" ], - "disableDocsMs": true, - "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-machinelearning?view=azure-node-preview" + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "browser": "./dist/browser/index.js", + "react-native": "./dist/react-native/index.js", + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } -} +} \ 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 6e7caefe28c0..1f1e9be70995 100644 --- a/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md +++ b/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md @@ -44,7 +44,6 @@ export interface AccountKeyDatastoreSecrets extends DatastoreSecrets { // @public export interface AcrDetails { systemCreatedAcrAccount?: SystemCreatedAcrAccount; - userCreatedAcrAccount?: UserCreatedAcrAccount; } // @public @@ -2925,6 +2924,9 @@ export interface FeaturizationSettings { datasetLanguage?: string; } +// @public +export type FirewallSku = string; + // @public export interface FixedInputData extends MonitoringInputDataBase { inputDataType: "Fixed"; @@ -3771,6 +3773,7 @@ export enum KnownConnectionCategory { Dynamics = "Dynamics", DynamicsAx = "DynamicsAx", DynamicsCrm = "DynamicsCrm", + Elasticsearch = "Elasticsearch", Eloqua = "Eloqua", FileServer = "FileServer", FtpServer = "FtpServer", @@ -3790,6 +3793,7 @@ export enum KnownConnectionCategory { Informix = "Informix", Jira = "Jira", Magento = "Magento", + ManagedOnlineEndpoint = "ManagedOnlineEndpoint", MariaDb = "MariaDb", Marketo = "Marketo", MicrosoftAccess = "MicrosoftAccess", @@ -3806,6 +3810,7 @@ export enum KnownConnectionCategory { OracleServiceCloud = "OracleServiceCloud", PayPal = "PayPal", Phoenix = "Phoenix", + Pinecone = "Pinecone", PostgreSql = "PostgreSql", Presto = "Presto", PythonFeed = "PythonFeed", @@ -4048,6 +4053,12 @@ export enum KnownFeaturizationMode { Off = "Off" } +// @public +export enum KnownFirewallSku { + Basic = "Basic", + Standard = "Standard" +} + // @public export enum KnownForecastHorizonMode { Auto = "Auto", @@ -5067,6 +5078,7 @@ export interface ManagedNetworkProvisionStatus { // @public export interface ManagedNetworkSettings { + firewallSku?: FirewallSku; isolationMode?: IsolationMode; readonly networkId?: string; outboundRules?: { @@ -7994,7 +8006,6 @@ export type StochasticOptimizer = string; // @public export interface StorageAccountDetails { systemCreatedStorageAccount?: SystemCreatedStorageAccount; - userCreatedStorageAccount?: UserCreatedStorageAccount; } // @public @@ -8354,16 +8365,6 @@ 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"; @@ -8648,6 +8649,7 @@ export interface WorkspaceConnections { // (undocumented) list(resourceGroupName: string, workspaceName: string, options?: WorkspaceConnectionsListOptionalParams): PagedAsyncIterableIterator; listSecrets(resourceGroupName: string, workspaceName: string, connectionName: string, options?: WorkspaceConnectionsListSecretsOptionalParams): Promise; + update(resourceGroupName: string, workspaceName: string, connectionName: string, options?: WorkspaceConnectionsUpdateOptionalParams): Promise; } // @public @@ -8694,6 +8696,7 @@ export type WorkspaceConnectionsListNextResponse = WorkspaceConnectionProperties // @public export interface WorkspaceConnectionsListOptionalParams extends coreClient.OperationOptions { category?: string; + includeAll?: boolean; target?: string; } @@ -8707,6 +8710,19 @@ export interface WorkspaceConnectionsListSecretsOptionalParams extends coreClien // @public export type WorkspaceConnectionsListSecretsResponse = WorkspaceConnectionPropertiesV2BasicResource; +// @public +export interface WorkspaceConnectionsUpdateOptionalParams extends coreClient.OperationOptions { + body?: WorkspaceConnectionUpdateParameter; +} + +// @public +export type WorkspaceConnectionsUpdateResponse = WorkspaceConnectionPropertiesV2BasicResource; + +// @public +export interface WorkspaceConnectionUpdateParameter { + properties?: WorkspaceConnectionPropertiesV2Union; +} + // @public (undocumented) export interface WorkspaceConnectionUsernamePassword { // (undocumented) @@ -8788,6 +8804,12 @@ export interface WorkspacesCreateOrUpdateOptionalParams extends coreClient.Opera // @public export type WorkspacesCreateOrUpdateResponse = Workspace; +// @public +export interface WorkspacesDeleteHeaders { + location?: string; + retryAfter?: number; +} + // @public export interface WorkspacesDeleteOptionalParams extends coreClient.OperationOptions { forceToPurge?: boolean; diff --git a/sdk/machinelearning/arm-machinelearning/sample.env b/sdk/machinelearning/arm-machinelearning/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/machinelearning/arm-machinelearning/sample.env +++ b/sdk/machinelearning/arm-machinelearning/sample.env @@ -1,4 +1 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/batchDeploymentsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/batchDeploymentsCreateOrUpdateSample.ts index 4b516578ede5..725076e84d50 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/batchDeploymentsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/batchDeploymentsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates/updates a batch inference deployment (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates/updates a batch inference deployment (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchDeployment/createOrUpdate.json */ -async function createOrUpdateWorkspaceBatchDeployment() { +async function createOrUpdateWorkspaceBatchDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -86,7 +84,7 @@ async function createOrUpdateWorkspaceBatchDeployment() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateWorkspaceBatchDeployment(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/batchDeploymentsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/batchDeploymentsDeleteSample.ts index 0ebd81291d7b..6296f284892f 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/batchDeploymentsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/batchDeploymentsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete Batch Inference deployment (asynchronous). @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete Batch Inference deployment (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchDeployment/delete.json */ -async function deleteWorkspaceBatchDeployment() { +async function deleteWorkspaceBatchDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteWorkspaceBatchDeployment() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspaceBatchDeployment(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/batchDeploymentsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/batchDeploymentsGetSample.ts index 565ffa337203..56c39c572b50 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/batchDeploymentsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/batchDeploymentsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a batch inference deployment by id. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a batch inference deployment by id. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchDeployment/get.json */ -async function getWorkspaceBatchDeployment() { +async function getWorkspaceBatchDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getWorkspaceBatchDeployment() { console.log(result); } -async function main() { +async function main(): Promise { await getWorkspaceBatchDeployment(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/batchDeploymentsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/batchDeploymentsListSample.ts index 6bf85945529a..199f79da9694 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/batchDeploymentsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/batchDeploymentsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists Batch inference deployments in the workspace. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Lists Batch inference deployments in the workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchDeployment/list.json */ -async function listWorkspaceBatchDeployment() { +async function listWorkspaceBatchDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function listWorkspaceBatchDeployment() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceBatchDeployment(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/batchDeploymentsUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/batchDeploymentsUpdateSample.ts index a2da3a2350fd..9fa8089d6e89 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/batchDeploymentsUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/batchDeploymentsUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update a batch inference deployment (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update a batch inference deployment (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchDeployment/update.json */ -async function updateWorkspaceBatchDeployment() { +async function updateWorkspaceBatchDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -49,7 +47,7 @@ async function updateWorkspaceBatchDeployment() { console.log(result); } -async function main() { +async function main(): Promise { await updateWorkspaceBatchDeployment(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsCreateOrUpdateSample.ts index e335f41ca804..bbf7423303d8 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a batch inference endpoint (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates a batch inference endpoint (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchEndpoint/createOrUpdate.json */ -async function createOrUpdateWorkspaceBatchEndpoint() { +async function createOrUpdateWorkspaceBatchEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -67,7 +65,7 @@ async function createOrUpdateWorkspaceBatchEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateWorkspaceBatchEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsDeleteSample.ts index 19d2dbf39093..7ad64e2f5817 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete Batch Inference Endpoint (asynchronous). @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete Batch Inference Endpoint (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchEndpoint/delete.json */ -async function deleteWorkspaceBatchEndpoint() { +async function deleteWorkspaceBatchEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceBatchEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspaceBatchEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsGetSample.ts index b3c77bc224f5..ae9ecc95f4aa 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a batch inference endpoint by name. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a batch inference endpoint by name. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchEndpoint/get.json */ -async function getWorkspaceBatchEndpoint() { +async function getWorkspaceBatchEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceBatchEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { await getWorkspaceBatchEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsListKeysSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsListKeysSample.ts index fc1a4ba6a718..61a01ce9e70f 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsListKeysSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsListKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists batch Inference Endpoint keys. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists batch Inference Endpoint keys. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchEndpoint/listKeys.json */ -async function listKeysWorkspaceBatchEndpoint() { +async function listKeysWorkspaceBatchEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function listKeysWorkspaceBatchEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { await listKeysWorkspaceBatchEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsListSample.ts index 272e7711d1ad..b1c9de227fef 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists Batch inference endpoint in the workspace. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Lists Batch inference endpoint in the workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchEndpoint/list.json */ -async function listWorkspaceBatchEndpoint() { +async function listWorkspaceBatchEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -48,7 +46,7 @@ async function listWorkspaceBatchEndpoint() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceBatchEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsUpdateSample.ts index 4923a577728c..ea966b720d47 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/batchEndpointsUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update a batch inference endpoint (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update a batch inference endpoint (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchEndpoint/update.json */ -async function updateWorkspaceBatchEndpoint() { +async function updateWorkspaceBatchEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function updateWorkspaceBatchEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { await updateWorkspaceBatchEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/codeContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/codeContainersCreateOrUpdateSample.ts index 17d14bd00c40..80ca86ddfb2a 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/codeContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/codeContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/CodeContainer/createOrUpdate.json */ -async function createOrUpdateWorkspaceCodeContainer() { +async function createOrUpdateWorkspaceCodeContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function createOrUpdateWorkspaceCodeContainer() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateWorkspaceCodeContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/codeContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/codeContainersDeleteSample.ts index c78c8509f927..7d7c99b02bc4 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/codeContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/codeContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/CodeContainer/delete.json */ -async function deleteWorkspaceCodeContainer() { +async function deleteWorkspaceCodeContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceCodeContainer() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspaceCodeContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/codeContainersGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/codeContainersGetSample.ts index ed2c086a4aec..11bda06c4ae8 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/codeContainersGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/codeContainersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/CodeContainer/get.json */ -async function getWorkspaceCodeContainer() { +async function getWorkspaceCodeContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceCodeContainer() { console.log(result); } -async function main() { +async function main(): Promise { await getWorkspaceCodeContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/codeContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/codeContainersListSample.ts index b947e6bb1c0e..8728865d9d97 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/codeContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/codeContainersListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List containers. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/CodeContainer/list.json */ -async function listWorkspaceCodeContainer() { +async function listWorkspaceCodeContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listWorkspaceCodeContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceCodeContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsCreateOrGetStartPendingUploadSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsCreateOrGetStartPendingUploadSample.ts index 29be024c9633..eddb728f0d00 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsCreateOrGetStartPendingUploadSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsCreateOrGetStartPendingUploadSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Generate a storage location and credential for the client to upload a code asset to. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Generate a storage location and credential for the client to upload a code asset to. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/CodeVersion/createOrGetStartPendingUpload.json */ -async function createOrGetStartPendingUploadWorkspaceCodeVersion() { +async function createOrGetStartPendingUploadWorkspaceCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function createOrGetStartPendingUploadWorkspaceCodeVersion() { console.log(result); } -async function main() { +async function main(): Promise { await createOrGetStartPendingUploadWorkspaceCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsCreateOrUpdateSample.ts index ad6509dd86d8..25262cbb9c5b 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/CodeVersion/createOrUpdate.json */ -async function createOrUpdateWorkspaceCodeVersion() { +async function createOrUpdateWorkspaceCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -56,7 +54,7 @@ async function createOrUpdateWorkspaceCodeVersion() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateWorkspaceCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsDeleteSample.ts index b5ff237f2759..9e60154e2ff2 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/CodeVersion/delete.json */ -async function deleteWorkspaceCodeVersion() { +async function deleteWorkspaceCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteWorkspaceCodeVersion() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspaceCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsGetSample.ts index dc9838065913..305f7ec8aad8 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/CodeVersion/get.json */ -async function getWorkspaceCodeVersion() { +async function getWorkspaceCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getWorkspaceCodeVersion() { console.log(result); } -async function main() { +async function main(): Promise { await getWorkspaceCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsListSample.ts index 5d3be42802ee..bdbfc8b613ca 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List versions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List versions. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/CodeVersion/list.json */ -async function listWorkspaceCodeVersion() { +async function listWorkspaceCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function listWorkspaceCodeVersion() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsPublishSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsPublishSample.ts index 7d772dadfb22..fda635498f9b 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsPublishSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/codeVersionsPublishSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Publish version asset into registry. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Publish version asset into registry. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/CodeVersion/publish.json */ -async function publishWorkspaceCodeVersion() { +async function publishWorkspaceCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function publishWorkspaceCodeVersion() { console.log(result); } -async function main() { +async function main(): Promise { await publishWorkspaceCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/componentContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/componentContainersCreateOrUpdateSample.ts index 78b9abde2e0e..1f524dd2349a 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/componentContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/componentContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ComponentContainer/createOrUpdate.json */ -async function createOrUpdateWorkspaceComponentContainer() { +async function createOrUpdateWorkspaceComponentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function createOrUpdateWorkspaceComponentContainer() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateWorkspaceComponentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/componentContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/componentContainersDeleteSample.ts index 686a7634ec72..3d09c175d63c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/componentContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/componentContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ComponentContainer/delete.json */ -async function deleteWorkspaceComponentContainer() { +async function deleteWorkspaceComponentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceComponentContainer() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspaceComponentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/componentContainersGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/componentContainersGetSample.ts index ff57497b8e64..ba5350351baf 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/componentContainersGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/componentContainersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ComponentContainer/get.json */ -async function getWorkspaceComponentContainer() { +async function getWorkspaceComponentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceComponentContainer() { console.log(result); } -async function main() { +async function main(): Promise { await getWorkspaceComponentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/componentContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/componentContainersListSample.ts index 6edbcca3bf8e..d0289cee893c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/componentContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/componentContainersListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List component containers. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List component containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ComponentContainer/list.json */ -async function listWorkspaceComponentContainer() { +async function listWorkspaceComponentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listWorkspaceComponentContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceComponentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/componentVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/componentVersionsCreateOrUpdateSample.ts index 937606fa4245..9a5c2671487c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/componentVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/componentVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ComponentVersion/createOrUpdate.json */ -async function createOrUpdateWorkspaceComponentVersion() { +async function createOrUpdateWorkspaceComponentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -56,7 +54,7 @@ async function createOrUpdateWorkspaceComponentVersion() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateWorkspaceComponentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/componentVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/componentVersionsDeleteSample.ts index 3af433c77c26..245c6c6d0d86 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/componentVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/componentVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ComponentVersion/delete.json */ -async function deleteWorkspaceComponentVersion() { +async function deleteWorkspaceComponentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteWorkspaceComponentVersion() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspaceComponentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/componentVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/componentVersionsGetSample.ts index 54a54ab0e108..25e291c6b507 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/componentVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/componentVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ComponentVersion/get.json */ -async function getWorkspaceComponentVersion() { +async function getWorkspaceComponentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getWorkspaceComponentVersion() { console.log(result); } -async function main() { +async function main(): Promise { await getWorkspaceComponentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/componentVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/componentVersionsListSample.ts index 298572edb875..41dcb3095d6a 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/componentVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/componentVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List component versions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List component versions. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ComponentVersion/list.json */ -async function listWorkspaceComponentVersion() { +async function listWorkspaceComponentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function listWorkspaceComponentVersion() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceComponentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/componentVersionsPublishSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/componentVersionsPublishSample.ts index c44eb8bcdd42..ef86df61f756 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/componentVersionsPublishSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/componentVersionsPublishSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Publish version asset into registry. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Publish version asset into registry. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ComponentVersion/publish.json */ -async function publishWorkspaceComponentVersion() { +async function publishWorkspaceComponentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function publishWorkspaceComponentVersion() { console.log(result); } -async function main() { +async function main(): Promise { await publishWorkspaceComponentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/computeCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/computeCreateOrUpdateSample.ts index e14dc1de3457..4f57be71cdcc 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/computeCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/computeCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/createOrUpdate/KubernetesCompute.json */ -async function attachAKubernetesCompute() { +async function attachAKubernetesCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -73,7 +71,7 @@ async function attachAKubernetesCompute() { * @summary Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/createOrUpdate/BasicAmlCompute.json */ -async function createAAmlCompute() { +async function createAAmlCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -123,7 +121,7 @@ async function createAAmlCompute() { * @summary Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/createOrUpdate/BasicDataFactoryCompute.json */ -async function createADataFactoryCompute() { +async function createADataFactoryCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -155,7 +153,7 @@ async function createADataFactoryCompute() { * @summary Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/createOrUpdate/BasicAKSCompute.json */ -async function createAnAksCompute() { +async function createAnAksCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -187,7 +185,7 @@ async function createAnAksCompute() { * @summary Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/createOrUpdate/ComputeInstance.json */ -async function createAnComputeInstanceCompute() { +async function createAnComputeInstanceCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -263,7 +261,7 @@ async function createAnComputeInstanceCompute() { * @summary Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/createOrUpdate/ComputeInstanceWithSchedules.json */ -async function createAnComputeInstanceComputeWithSchedules() { +async function createAnComputeInstanceComputeWithSchedules(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -323,7 +321,7 @@ async function createAnComputeInstanceComputeWithSchedules() { * @summary Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/createOrUpdate/ComputeInstanceMinimal.json */ -async function createAnComputeInstanceComputeWithMinimalInputs() { +async function createAnComputeInstanceComputeWithMinimalInputs(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -358,7 +356,7 @@ async function createAnComputeInstanceComputeWithMinimalInputs() { * @summary Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/createOrUpdate/AmlCompute.json */ -async function updateAAmlCompute() { +async function updateAAmlCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -400,7 +398,7 @@ async function updateAAmlCompute() { * @summary Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/createOrUpdate/AKSCompute.json */ -async function updateAnAksCompute() { +async function updateAnAksCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -432,7 +430,7 @@ async function updateAnAksCompute() { console.log(result); } -async function main() { +async function main(): Promise { await attachAKubernetesCompute(); await createAAmlCompute(); await createADataFactoryCompute(); diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/computeDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/computeDeleteSample.ts index 31ef796dd3b4..8e424ce02b9b 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/computeDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/computeDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes specified Machine Learning compute. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes specified Machine Learning compute. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/delete.json */ -async function deleteCompute() { +async function deleteCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -43,7 +41,7 @@ async function deleteCompute() { console.log(result); } -async function main() { +async function main(): Promise { await deleteCompute(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/computeGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/computeGetSample.ts index 04c6210178b5..83c73baf4cfb 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/computeGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/computeGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use 'keys' nested resource to get them. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use 'keys' nested resource to get them. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/get/AKSCompute.json */ -async function getAAksCompute() { +async function getAAksCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -47,7 +45,7 @@ async function getAAksCompute() { * @summary Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use 'keys' nested resource to get them. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/get/AmlCompute.json */ -async function getAAmlCompute() { +async function getAAmlCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -74,7 +72,7 @@ async function getAAmlCompute() { * @summary Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use 'keys' nested resource to get them. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/get/KubernetesCompute.json */ -async function getAKubernetesCompute() { +async function getAKubernetesCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -101,7 +99,7 @@ async function getAKubernetesCompute() { * @summary Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use 'keys' nested resource to get them. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/get/ComputeInstance.json */ -async function getAnComputeInstance() { +async function getAnComputeInstance(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -122,7 +120,7 @@ async function getAnComputeInstance() { console.log(result); } -async function main() { +async function main(): Promise { await getAAksCompute(); await getAAmlCompute(); await getAKubernetesCompute(); diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/computeListKeysSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/computeListKeysSample.ts index 8b7dee6cb54a..9cc723ea276f 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/computeListKeysSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/computeListKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets secrets related to Machine Learning compute (storage keys, service credentials, etc). @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets secrets related to Machine Learning compute (storage keys, service credentials, etc). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/listKeys.json */ -async function listAksComputeKeys() { +async function listAksComputeKeys(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -41,7 +39,7 @@ async function listAksComputeKeys() { console.log(result); } -async function main() { +async function main(): Promise { await listAksComputeKeys(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/computeListNodesSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/computeListNodesSample.ts index 17da51b627b7..22e3bd0568a4 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/computeListNodesSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/computeListNodesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the details (e.g IP address, port etc) of all the compute nodes in the compute. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get the details (e.g IP address, port etc) of all the compute nodes in the compute. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/listNodes.json */ -async function getComputeNodesInformationForACompute() { +async function getComputeNodesInformationForACompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -44,7 +42,7 @@ async function getComputeNodesInformationForACompute() { console.log(resArray); } -async function main() { +async function main(): Promise { await getComputeNodesInformationForACompute(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/computeListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/computeListSample.ts index 791bd12fd661..4d093c9fcd69 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/computeListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/computeListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets computes in specified workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets computes in specified workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/list.json */ -async function getComputes() { +async function getComputes(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -42,7 +40,7 @@ async function getComputes() { console.log(resArray); } -async function main() { +async function main(): Promise { await getComputes(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/computeRestartSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/computeRestartSample.ts index 136fa2360157..932bfed2d593 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/computeRestartSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/computeRestartSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Posts a restart action to a compute instance @@ -20,7 +18,7 @@ dotenv.config(); * @summary Posts a restart action to a compute instance * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/restart.json */ -async function restartComputeInstanceCompute() { +async function restartComputeInstanceCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -41,7 +39,7 @@ async function restartComputeInstanceCompute() { console.log(result); } -async function main() { +async function main(): Promise { await restartComputeInstanceCompute(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/computeStartSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/computeStartSample.ts index f256fff7a98c..a6aac613d178 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/computeStartSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/computeStartSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Posts a start action to a compute instance @@ -20,7 +18,7 @@ dotenv.config(); * @summary Posts a start action to a compute instance * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/start.json */ -async function startComputeInstanceCompute() { +async function startComputeInstanceCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -41,7 +39,7 @@ async function startComputeInstanceCompute() { console.log(result); } -async function main() { +async function main(): Promise { await startComputeInstanceCompute(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/computeStopSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/computeStopSample.ts index 264bd566b96b..0ea44c8bac94 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/computeStopSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/computeStopSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Posts a stop action to a compute instance @@ -20,7 +18,7 @@ dotenv.config(); * @summary Posts a stop action to a compute instance * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/stop.json */ -async function stopComputeInstanceCompute() { +async function stopComputeInstanceCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -41,7 +39,7 @@ async function stopComputeInstanceCompute() { console.log(result); } -async function main() { +async function main(): Promise { await stopComputeInstanceCompute(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/computeUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/computeUpdateSample.ts index 58a675e2db13..2a37eb2ecf19 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/computeUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/computeUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/patch.json */ -async function updateAAmlCompute() { +async function updateAAmlCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -54,7 +52,7 @@ async function updateAAmlCompute() { console.log(result); } -async function main() { +async function main(): Promise { await updateAAmlCompute(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/dataContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/dataContainersCreateOrUpdateSample.ts index c94a4df83e19..2e9ab2246ff5 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/dataContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/dataContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/DataContainer/createOrUpdate.json */ -async function createOrUpdateWorkspaceDataContainer() { +async function createOrUpdateWorkspaceDataContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -53,7 +51,7 @@ async function createOrUpdateWorkspaceDataContainer() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateWorkspaceDataContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/dataContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/dataContainersDeleteSample.ts index 5eea06bd5045..70637d4fdba1 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/dataContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/dataContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/DataContainer/delete.json */ -async function deleteWorkspaceDataContainer() { +async function deleteWorkspaceDataContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceDataContainer() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspaceDataContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/dataContainersGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/dataContainersGetSample.ts index 095a4f39cb31..dd6fe3f0be9d 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/dataContainersGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/dataContainersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/DataContainer/get.json */ -async function getWorkspaceDataContainer() { +async function getWorkspaceDataContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceDataContainer() { console.log(result); } -async function main() { +async function main(): Promise { await getWorkspaceDataContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/dataContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/dataContainersListSample.ts index 55b5a5e3e9e0..842699b230a5 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/dataContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/dataContainersListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List data containers. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List data containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/DataContainer/list.json */ -async function listWorkspaceDataContainer() { +async function listWorkspaceDataContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listWorkspaceDataContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceDataContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/dataVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/dataVersionsCreateOrUpdateSample.ts index d6ef898b96e7..0bb52eb0b004 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/dataVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/dataVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/DataVersionBase/createOrUpdate.json */ -async function createOrUpdateWorkspaceDataVersionBase() { +async function createOrUpdateWorkspaceDataVersionBase(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -57,7 +55,7 @@ async function createOrUpdateWorkspaceDataVersionBase() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateWorkspaceDataVersionBase(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/dataVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/dataVersionsDeleteSample.ts index f5c69f3b0471..e20ade8a0fe7 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/dataVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/dataVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/DataVersionBase/delete.json */ -async function deleteWorkspaceDataVersionBase() { +async function deleteWorkspaceDataVersionBase(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteWorkspaceDataVersionBase() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspaceDataVersionBase(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/dataVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/dataVersionsGetSample.ts index 92eae4085350..5a40d96bf63f 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/dataVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/dataVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/DataVersionBase/get.json */ -async function getWorkspaceDataVersionBase() { +async function getWorkspaceDataVersionBase(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getWorkspaceDataVersionBase() { console.log(result); } -async function main() { +async function main(): Promise { await getWorkspaceDataVersionBase(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/dataVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/dataVersionsListSample.ts index 66bd3036987b..80203f9ea6ef 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/dataVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/dataVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List data versions in the data container @@ -23,7 +21,7 @@ dotenv.config(); * @summary List data versions in the data container * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/DataVersionBase/list.json */ -async function listWorkspaceDataVersionBase() { +async function listWorkspaceDataVersionBase(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function listWorkspaceDataVersionBase() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceDataVersionBase(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/dataVersionsPublishSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/dataVersionsPublishSample.ts index 54280b1f5cdd..faeb1c2e06b1 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/dataVersionsPublishSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/dataVersionsPublishSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Publish version asset into registry. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Publish version asset into registry. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/DataVersionBase/publish.json */ -async function publishWorkspaceDataVersionBase() { +async function publishWorkspaceDataVersionBase(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function publishWorkspaceDataVersionBase() { console.log(result); } -async function main() { +async function main(): Promise { await publishWorkspaceDataVersionBase(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/datastoresCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/datastoresCreateOrUpdateSample.ts index e9218e2d7ef2..01b883cb6c2b 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/datastoresCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/datastoresCreateOrUpdateSample.ts @@ -14,9 +14,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update datastore. @@ -24,7 +22,7 @@ dotenv.config(); * @summary Create or update datastore. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json */ -async function createOrUpdateDatastoreAzureDataLakeGen1WOrServicePrincipal() { +async function createOrUpdateDatastoreAzureDataLakeGen1WOrServicePrincipal(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -72,7 +70,7 @@ async function createOrUpdateDatastoreAzureDataLakeGen1WOrServicePrincipal() { * @summary Create or update datastore. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json */ -async function createOrUpdateDatastoreAzureDataLakeGen2WOrServicePrincipal() { +async function createOrUpdateDatastoreAzureDataLakeGen2WOrServicePrincipal(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -123,7 +121,7 @@ async function createOrUpdateDatastoreAzureDataLakeGen2WOrServicePrincipal() { * @summary Create or update datastore. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json */ -async function createOrUpdateDatastoreAzureFileStoreWOrAccountKey() { +async function createOrUpdateDatastoreAzureFileStoreWOrAccountKey(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -170,7 +168,7 @@ async function createOrUpdateDatastoreAzureFileStoreWOrAccountKey() { * @summary Create or update datastore. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json */ -async function createOrUpdateDatastoreAzureBlobWOrAccountKey() { +async function createOrUpdateDatastoreAzureBlobWOrAccountKey(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -211,7 +209,7 @@ async function createOrUpdateDatastoreAzureBlobWOrAccountKey() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateDatastoreAzureDataLakeGen1WOrServicePrincipal(); await createOrUpdateDatastoreAzureDataLakeGen2WOrServicePrincipal(); await createOrUpdateDatastoreAzureFileStoreWOrAccountKey(); diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/datastoresDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/datastoresDeleteSample.ts index c0e45d832fd0..ae5f55e40bad 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/datastoresDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/datastoresDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete datastore. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete datastore. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Datastore/delete.json */ -async function deleteDatastore() { +async function deleteDatastore(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteDatastore() { console.log(result); } -async function main() { +async function main(): Promise { await deleteDatastore(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/datastoresGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/datastoresGetSample.ts index 1ceb285c9017..500064e2ed41 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/datastoresGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/datastoresGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get datastore. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get datastore. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Datastore/get.json */ -async function getDatastore() { +async function getDatastore(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getDatastore() { console.log(result); } -async function main() { +async function main(): Promise { await getDatastore(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/datastoresListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/datastoresListSample.ts index ffc6beb4aa06..878d7e6500a4 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/datastoresListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/datastoresListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List datastores. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List datastores. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Datastore/list.json */ -async function listDatastores() { +async function listDatastores(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -60,7 +58,7 @@ async function listDatastores() { console.log(resArray); } -async function main() { +async function main(): Promise { await listDatastores(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/datastoresListSecretsSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/datastoresListSecretsSample.ts index 63aea5bf1586..5f1a1982ff93 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/datastoresListSecretsSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/datastoresListSecretsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get datastore secrets. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get datastore secrets. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Datastore/listSecrets.json */ -async function getDatastoreSecrets() { +async function getDatastoreSecrets(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getDatastoreSecrets() { console.log(result); } -async function main() { +async function main(): Promise { await getDatastoreSecrets(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/environmentContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/environmentContainersCreateOrUpdateSample.ts index e1d402a3b10e..5be2ac44bd6d 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/environmentContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/environmentContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/EnvironmentContainer/createOrUpdate.json */ -async function createOrUpdateWorkspaceEnvironmentContainer() { +async function createOrUpdateWorkspaceEnvironmentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -60,7 +58,7 @@ async function createOrUpdateWorkspaceEnvironmentContainer() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateWorkspaceEnvironmentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/environmentContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/environmentContainersDeleteSample.ts index 123170258100..50bcbdc151b3 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/environmentContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/environmentContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/EnvironmentContainer/delete.json */ -async function deleteWorkspaceEnvironmentContainer() { +async function deleteWorkspaceEnvironmentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceEnvironmentContainer() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspaceEnvironmentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/environmentContainersGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/environmentContainersGetSample.ts index b044b5e54800..85132087c013 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/environmentContainersGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/environmentContainersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/EnvironmentContainer/get.json */ -async function getWorkspaceEnvironmentContainer() { +async function getWorkspaceEnvironmentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceEnvironmentContainer() { console.log(result); } -async function main() { +async function main(): Promise { await getWorkspaceEnvironmentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/environmentContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/environmentContainersListSample.ts index 3b9435a27acc..30c297eaea51 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/environmentContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/environmentContainersListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List environment containers. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List environment containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/EnvironmentContainer/list.json */ -async function listWorkspaceEnvironmentContainer() { +async function listWorkspaceEnvironmentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listWorkspaceEnvironmentContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceEnvironmentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/environmentVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/environmentVersionsCreateOrUpdateSample.ts index 449e6a8dc414..7d3faa61ab41 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/environmentVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/environmentVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates an EnvironmentVersion. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or updates an EnvironmentVersion. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/EnvironmentVersion/createOrUpdate.json */ -async function createOrUpdateWorkspaceEnvironmentVersion() { +async function createOrUpdateWorkspaceEnvironmentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -67,7 +65,7 @@ async function createOrUpdateWorkspaceEnvironmentVersion() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateWorkspaceEnvironmentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/environmentVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/environmentVersionsDeleteSample.ts index beb0e7d23319..017745ed8197 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/environmentVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/environmentVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/EnvironmentVersion/delete.json */ -async function deleteWorkspaceEnvironmentVersion() { +async function deleteWorkspaceEnvironmentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteWorkspaceEnvironmentVersion() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspaceEnvironmentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/environmentVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/environmentVersionsGetSample.ts index d83dbc562f64..2b0b92605089 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/environmentVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/environmentVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/EnvironmentVersion/get.json */ -async function getWorkspaceEnvironmentVersion() { +async function getWorkspaceEnvironmentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getWorkspaceEnvironmentVersion() { console.log(result); } -async function main() { +async function main(): Promise { await getWorkspaceEnvironmentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/environmentVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/environmentVersionsListSample.ts index ee93188019a9..dd81e1a8ea95 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/environmentVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/environmentVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List versions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List versions. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/EnvironmentVersion/list.json */ -async function listWorkspaceEnvironmentVersion() { +async function listWorkspaceEnvironmentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function listWorkspaceEnvironmentVersion() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceEnvironmentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/environmentVersionsPublishSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/environmentVersionsPublishSample.ts index 329d515a590d..58649ee8d813 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/environmentVersionsPublishSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/environmentVersionsPublishSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Publish version asset into registry. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Publish version asset into registry. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/EnvironmentVersion/publish.json */ -async function publishWorkspaceEnvironmentVersion() { +async function publishWorkspaceEnvironmentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function publishWorkspaceEnvironmentVersion() { console.log(result); } -async function main() { +async function main(): Promise { await publishWorkspaceEnvironmentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresGetSample.ts index 1ff7f7b5cbe4..d2b814f44195 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get feature. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get feature. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Feature/get.json */ -async function getFeature() { +async function getFeature(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -45,7 +43,7 @@ async function getFeature() { console.log(result); } -async function main() { +async function main(): Promise { await getFeature(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresListSample.ts index d7c4dd7cba05..53a81ca6a91a 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List Features. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List Features. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Feature/list.json */ -async function listFeature() { +async function listFeature(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -58,7 +56,7 @@ async function listFeature() { console.log(resArray); } -async function main() { +async function main(): Promise { await listFeature(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetContainersCreateOrUpdateSample.ts index bea28c33dc2a..3fcccd068542 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturesetContainer/createOrUpdate.json */ -async function createOrUpdateWorkspaceFeaturesetContainer() { +async function createOrUpdateWorkspaceFeaturesetContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -53,7 +51,7 @@ async function createOrUpdateWorkspaceFeaturesetContainer() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateWorkspaceFeaturesetContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetContainersDeleteSample.ts index 7200b38f872c..b86762574e91 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturesetContainer/delete.json */ -async function deleteWorkspaceFeaturesetContainer() { +async function deleteWorkspaceFeaturesetContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceFeaturesetContainer() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspaceFeaturesetContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetContainersGetEntitySample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetContainersGetEntitySample.ts index 848f9a52b121..d9cfb56ea8cd 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetContainersGetEntitySample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetContainersGetEntitySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturesetContainer/getEntity.json */ -async function getEntityWorkspaceFeaturesetContainer() { +async function getEntityWorkspaceFeaturesetContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getEntityWorkspaceFeaturesetContainer() { console.log(result); } -async function main() { +async function main(): Promise { await getEntityWorkspaceFeaturesetContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetContainersListSample.ts index 07410948dbeb..fcf00b231733 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetContainersListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List featurestore entity containers. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List featurestore entity containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturesetContainer/list.json */ -async function listWorkspaceFeaturesetContainer() { +async function listWorkspaceFeaturesetContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function listWorkspaceFeaturesetContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceFeaturesetContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetVersionsBackfillSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetVersionsBackfillSample.ts index 80611c822901..81be5c51009e 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetVersionsBackfillSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetVersionsBackfillSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Backfill. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Backfill. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturesetVersion/backfill.json */ -async function backfillWorkspaceFeaturesetVersion() { +async function backfillWorkspaceFeaturesetVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -60,7 +58,7 @@ async function backfillWorkspaceFeaturesetVersion() { console.log(result); } -async function main() { +async function main(): Promise { await backfillWorkspaceFeaturesetVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetVersionsCreateOrUpdateSample.ts index 31a2bd0d728f..ee78dfea9384 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturesetVersion/createOrUpdate.json */ -async function createOrUpdateWorkspaceFeaturesetVersion() { +async function createOrUpdateWorkspaceFeaturesetVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -79,7 +77,7 @@ async function createOrUpdateWorkspaceFeaturesetVersion() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateWorkspaceFeaturesetVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetVersionsDeleteSample.ts index 8f4388eeff99..07a1d2490d8a 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturesetVersion/delete.json */ -async function deleteWorkspaceFeaturesetVersion() { +async function deleteWorkspaceFeaturesetVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteWorkspaceFeaturesetVersion() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspaceFeaturesetVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetVersionsGetSample.ts index 46a1e9e192ca..19ee0e4ae9b9 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturesetVersion/get.json */ -async function getWorkspaceFeaturesetVersion() { +async function getWorkspaceFeaturesetVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getWorkspaceFeaturesetVersion() { console.log(result); } -async function main() { +async function main(): Promise { await getWorkspaceFeaturesetVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetVersionsListSample.ts index e90f0b50b10a..aec25e62e4e1 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/featuresetVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List versions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List versions. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturesetVersion/list.json */ -async function listWorkspaceFeaturesetVersion() { +async function listWorkspaceFeaturesetVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function listWorkspaceFeaturesetVersion() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceFeaturesetVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityContainersCreateOrUpdateSample.ts index 07ae52224a5d..013f0576f22c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturestoreEntityContainer/createOrUpdate.json */ -async function createOrUpdateWorkspaceFeaturestoreEntityContainer() { +async function createOrUpdateWorkspaceFeaturestoreEntityContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -54,7 +52,7 @@ async function createOrUpdateWorkspaceFeaturestoreEntityContainer() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateWorkspaceFeaturestoreEntityContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityContainersDeleteSample.ts index 09bf10640941..dc1dbb180b13 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturestoreEntityContainer/delete.json */ -async function deleteWorkspaceFeaturestoreEntityContainer() { +async function deleteWorkspaceFeaturestoreEntityContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceFeaturestoreEntityContainer() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspaceFeaturestoreEntityContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityContainersGetEntitySample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityContainersGetEntitySample.ts index 805cc4c8b0c1..5d662b49aa39 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityContainersGetEntitySample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityContainersGetEntitySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturestoreEntityContainer/getEntity.json */ -async function getEntityWorkspaceFeaturestoreEntityContainer() { +async function getEntityWorkspaceFeaturestoreEntityContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getEntityWorkspaceFeaturestoreEntityContainer() { console.log(result); } -async function main() { +async function main(): Promise { await getEntityWorkspaceFeaturestoreEntityContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityContainersListSample.ts index 9313b1142a78..542a5e2c6bc1 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityContainersListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List featurestore entity containers. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List featurestore entity containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturestoreEntityContainer/list.json */ -async function listWorkspaceFeaturestoreEntityContainer() { +async function listWorkspaceFeaturestoreEntityContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function listWorkspaceFeaturestoreEntityContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceFeaturestoreEntityContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityVersionsCreateOrUpdateSample.ts index 5fd37424b32a..75f34dd5e825 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturestoreEntityVersion/createOrUpdate.json */ -async function createOrUpdateWorkspaceFeaturestoreEntityVersion() { +async function createOrUpdateWorkspaceFeaturestoreEntityVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -58,7 +56,7 @@ async function createOrUpdateWorkspaceFeaturestoreEntityVersion() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateWorkspaceFeaturestoreEntityVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityVersionsDeleteSample.ts index 5debfe761850..c96595228df9 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturestoreEntityVersion/delete.json */ -async function deleteWorkspaceFeaturestoreEntityVersion() { +async function deleteWorkspaceFeaturestoreEntityVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteWorkspaceFeaturestoreEntityVersion() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspaceFeaturestoreEntityVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityVersionsGetSample.ts index 428bc62ab3e8..3baa200110ae 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturestoreEntityVersion/get.json */ -async function getWorkspaceFeaturestoreEntityVersion() { +async function getWorkspaceFeaturestoreEntityVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getWorkspaceFeaturestoreEntityVersion() { console.log(result); } -async function main() { +async function main(): Promise { await getWorkspaceFeaturestoreEntityVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityVersionsListSample.ts index 16aea99ce554..d0eb39168aa4 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/featurestoreEntityVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List versions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List versions. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturestoreEntityVersion/list.json */ -async function listWorkspaceFeaturestoreEntityVersion() { +async function listWorkspaceFeaturestoreEntityVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -54,7 +52,7 @@ async function listWorkspaceFeaturestoreEntityVersion() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceFeaturestoreEntityVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/jobsCancelSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/jobsCancelSample.ts index 853cd6940cd0..4d4cdba4f45a 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/jobsCancelSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/jobsCancelSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Cancels a Job (asynchronous). @@ -20,7 +18,7 @@ dotenv.config(); * @summary Cancels a Job (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/cancel.json */ -async function cancelJob() { +async function cancelJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function cancelJob() { console.log(result); } -async function main() { +async function main(): Promise { await cancelJob(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/jobsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/jobsCreateOrUpdateSample.ts index 13c1208b579d..cb3c307881f2 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/jobsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/jobsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates and executes a Job. @@ -25,7 +23,7 @@ For update case, the Tags in the definition passed in will replace Tags in the e For update case, the Tags in the definition passed in will replace Tags in the existing job. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/AutoMLJob/createOrUpdate.json */ -async function createOrUpdateAutoMlJob() { +async function createOrUpdateAutoMlJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -101,7 +99,7 @@ For update case, the Tags in the definition passed in will replace Tags in the e For update case, the Tags in the definition passed in will replace Tags in the existing job. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/CommandJob/createOrUpdate.json */ -async function createOrUpdateCommandJob() { +async function createOrUpdateCommandJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -183,7 +181,7 @@ For update case, the Tags in the definition passed in will replace Tags in the e For update case, the Tags in the definition passed in will replace Tags in the existing job. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/PipelineJob/createOrUpdate.json */ -async function createOrUpdatePipelineJob() { +async function createOrUpdatePipelineJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -248,7 +246,7 @@ For update case, the Tags in the definition passed in will replace Tags in the e For update case, the Tags in the definition passed in will replace Tags in the existing job. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/SweepJob/createOrUpdate.json */ -async function createOrUpdateSweepJob() { +async function createOrUpdateSweepJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -317,7 +315,7 @@ async function createOrUpdateSweepJob() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateAutoMlJob(); await createOrUpdateCommandJob(); await createOrUpdatePipelineJob(); diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/jobsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/jobsDeleteSample.ts index 5c0d59901e70..bf153ca26d9a 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/jobsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/jobsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a Job (asynchronous). @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes a Job (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/delete.json */ -async function deleteJob() { +async function deleteJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function deleteJob() { console.log(result); } -async function main() { +async function main(): Promise { await deleteJob(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/jobsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/jobsGetSample.ts index d2c46d2da399..a918d091a9c7 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/jobsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/jobsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a Job by name/id. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a Job by name/id. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/AutoMLJob/get.json */ -async function getAutoMlJob() { +async function getAutoMlJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getAutoMlJob() { * @summary Gets a Job by name/id. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/CommandJob/get.json */ -async function getCommandJob() { +async function getCommandJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -66,7 +64,7 @@ async function getCommandJob() { * @summary Gets a Job by name/id. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/PipelineJob/get.json */ -async function getPipelineJob() { +async function getPipelineJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -89,7 +87,7 @@ async function getPipelineJob() { * @summary Gets a Job by name/id. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/SweepJob/get.json */ -async function getSweepJob() { +async function getSweepJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -106,7 +104,7 @@ async function getSweepJob() { console.log(result); } -async function main() { +async function main(): Promise { await getAutoMlJob(); await getCommandJob(); await getPipelineJob(); diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/jobsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/jobsListSample.ts index db29a86a37e8..a08962a87b6c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/jobsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/jobsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists Jobs in the workspace. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Lists Jobs in the workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/AutoMLJob/list.json */ -async function listAutoMlJob() { +async function listAutoMlJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -48,7 +46,7 @@ async function listAutoMlJob() { * @summary Lists Jobs in the workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/CommandJob/list.json */ -async function listCommandJob() { +async function listCommandJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -80,7 +78,7 @@ async function listCommandJob() { * @summary Lists Jobs in the workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/PipelineJob/list.json */ -async function listPipelineJob() { +async function listPipelineJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -112,7 +110,7 @@ async function listPipelineJob() { * @summary Lists Jobs in the workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/SweepJob/list.json */ -async function listSweepJob() { +async function listSweepJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -138,7 +136,7 @@ async function listSweepJob() { console.log(resArray); } -async function main() { +async function main(): Promise { await listAutoMlJob(); await listCommandJob(); await listPipelineJob(); diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/managedNetworkProvisionsProvisionManagedNetworkSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/managedNetworkProvisionsProvisionManagedNetworkSample.ts index 22174803c836..26b21b0a8958 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/managedNetworkProvisionsProvisionManagedNetworkSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/managedNetworkProvisionsProvisionManagedNetworkSample.ts @@ -14,9 +14,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Provisions the managed network of a machine learning workspace. @@ -24,7 +22,7 @@ dotenv.config(); * @summary Provisions the managed network of a machine learning workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/ManagedNetwork/provision.json */ -async function provisionManagedNetwork() { +async function provisionManagedNetwork(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -48,7 +46,7 @@ async function provisionManagedNetwork() { console.log(result); } -async function main() { +async function main(): Promise { await provisionManagedNetwork(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/managedNetworkSettingsRuleCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/managedNetworkSettingsRuleCreateOrUpdateSample.ts index db15ce7633cb..23a47fa9242e 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/managedNetworkSettingsRuleCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/managedNetworkSettingsRuleCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates an outbound rule in the managed network of a machine learning workspace. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or updates an outbound rule in the managed network of a machine learning workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/ManagedNetwork/createOrUpdateRule.json */ -async function createOrUpdateManagedNetworkSettingsRule() { +async function createOrUpdateManagedNetworkSettingsRule(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -54,7 +52,7 @@ async function createOrUpdateManagedNetworkSettingsRule() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateManagedNetworkSettingsRule(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/managedNetworkSettingsRuleDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/managedNetworkSettingsRuleDeleteSample.ts index 7963b2b9c93a..3d0cf84f7f05 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/managedNetworkSettingsRuleDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/managedNetworkSettingsRuleDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes an outbound rule from the managed network of a machine learning workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes an outbound rule from the managed network of a machine learning workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/ManagedNetwork/deleteRule.json */ -async function deleteManagedNetworkSettingsRule() { +async function deleteManagedNetworkSettingsRule(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteManagedNetworkSettingsRule() { console.log(result); } -async function main() { +async function main(): Promise { await deleteManagedNetworkSettingsRule(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/managedNetworkSettingsRuleGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/managedNetworkSettingsRuleGetSample.ts index 8b6124089d74..515e4088851f 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/managedNetworkSettingsRuleGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/managedNetworkSettingsRuleGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets an outbound rule from the managed network of a machine learning workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets an outbound rule from the managed network of a machine learning workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/ManagedNetwork/getRule.json */ -async function getManagedNetworkSettingsRule() { +async function getManagedNetworkSettingsRule(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getManagedNetworkSettingsRule() { console.log(result); } -async function main() { +async function main(): Promise { await getManagedNetworkSettingsRule(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/managedNetworkSettingsRuleListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/managedNetworkSettingsRuleListSample.ts index 37d5c533768a..2514499500d7 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/managedNetworkSettingsRuleListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/managedNetworkSettingsRuleListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the managed network outbound rules for a machine learning workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists the managed network outbound rules for a machine learning workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/ManagedNetwork/listRule.json */ -async function listManagedNetworkSettingsRule() { +async function listManagedNetworkSettingsRule(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listManagedNetworkSettingsRule() { console.log(resArray); } -async function main() { +async function main(): Promise { await listManagedNetworkSettingsRule(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/marketplaceSubscriptionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/marketplaceSubscriptionsCreateOrUpdateSample.ts index 1cbd3d77c190..ca967ee98613 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/marketplaceSubscriptionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/marketplaceSubscriptionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update Marketplace Subscription (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update Marketplace Subscription (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/MarketplaceSubscription/createOrUpdate.json */ -async function createOrUpdateWorkspaceMarketplaceSubscription() { +async function createOrUpdateWorkspaceMarketplaceSubscription(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -47,7 +45,7 @@ async function createOrUpdateWorkspaceMarketplaceSubscription() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateWorkspaceMarketplaceSubscription(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/marketplaceSubscriptionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/marketplaceSubscriptionsDeleteSample.ts index d85dbc9226b2..1384c4751654 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/marketplaceSubscriptionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/marketplaceSubscriptionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete Marketplace Subscription (asynchronous). @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete Marketplace Subscription (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/MarketplaceSubscription/delete.json */ -async function deleteWorkspaceMarketplaceSubscription() { +async function deleteWorkspaceMarketplaceSubscription(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceMarketplaceSubscription() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspaceMarketplaceSubscription(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/marketplaceSubscriptionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/marketplaceSubscriptionsGetSample.ts index 6eb5d7e8c199..c8e7977384c1 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/marketplaceSubscriptionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/marketplaceSubscriptionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/MarketplaceSubscription/get.json */ -async function getWorkspaceMarketplaceSubscription() { +async function getWorkspaceMarketplaceSubscription(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceMarketplaceSubscription() { console.log(result); } -async function main() { +async function main(): Promise { await getWorkspaceMarketplaceSubscription(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/marketplaceSubscriptionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/marketplaceSubscriptionsListSample.ts index 57ceeb792d7e..2ed52e0be3e2 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/marketplaceSubscriptionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/marketplaceSubscriptionsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List containers. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/MarketplaceSubscription/list.json */ -async function listWorkspaceMarketplaceSubscription() { +async function listWorkspaceMarketplaceSubscription(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listWorkspaceMarketplaceSubscription() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceMarketplaceSubscription(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/modelContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/modelContainersCreateOrUpdateSample.ts index f53bc7488d9c..5624c1a4e3ac 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/modelContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/modelContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ModelContainer/createOrUpdate.json */ -async function createOrUpdateWorkspaceModelContainer() { +async function createOrUpdateWorkspaceModelContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function createOrUpdateWorkspaceModelContainer() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateWorkspaceModelContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/modelContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/modelContainersDeleteSample.ts index 3fded3341d90..86343ad4f788 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/modelContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/modelContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ModelContainer/delete.json */ -async function deleteWorkspaceModelContainer() { +async function deleteWorkspaceModelContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceModelContainer() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspaceModelContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/modelContainersGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/modelContainersGetSample.ts index c25d9413113f..5f89b602e361 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/modelContainersGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/modelContainersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ModelContainer/get.json */ -async function getWorkspaceModelContainer() { +async function getWorkspaceModelContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceModelContainer() { console.log(result); } -async function main() { +async function main(): Promise { await getWorkspaceModelContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/modelContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/modelContainersListSample.ts index 2c4b819efa32..a16633d03655 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/modelContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/modelContainersListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List model containers. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List model containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ModelContainer/list.json */ -async function listWorkspaceModelContainer() { +async function listWorkspaceModelContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listWorkspaceModelContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceModelContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/modelVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/modelVersionsCreateOrUpdateSample.ts index 459b7416d64a..c4a388d8cb61 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/modelVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/modelVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ModelVersion/createOrUpdate.json */ -async function createOrUpdateWorkspaceModelVersion() { +async function createOrUpdateWorkspaceModelVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -58,7 +56,7 @@ async function createOrUpdateWorkspaceModelVersion() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateWorkspaceModelVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/modelVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/modelVersionsDeleteSample.ts index 231c2245ec28..f225fa1a16c4 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/modelVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/modelVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ModelVersion/delete.json */ -async function deleteWorkspaceModelVersion() { +async function deleteWorkspaceModelVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteWorkspaceModelVersion() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspaceModelVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/modelVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/modelVersionsGetSample.ts index 24a4bf27e846..9594eae0f9c0 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/modelVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/modelVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ModelVersion/get.json */ -async function getWorkspaceModelVersion() { +async function getWorkspaceModelVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getWorkspaceModelVersion() { console.log(result); } -async function main() { +async function main(): Promise { await getWorkspaceModelVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/modelVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/modelVersionsListSample.ts index 8fb962e574a8..e7d198213aff 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/modelVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/modelVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List model versions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List model versions. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ModelVersion/list.json */ -async function listWorkspaceModelVersion() { +async function listWorkspaceModelVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -64,7 +62,7 @@ async function listWorkspaceModelVersion() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceModelVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/modelVersionsPublishSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/modelVersionsPublishSample.ts index 9f6f61d68cf3..055c56df8269 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/modelVersionsPublishSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/modelVersionsPublishSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Publish version asset into registry. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Publish version asset into registry. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ModelVersion/publish.json */ -async function publishWorkspaceModelVersion() { +async function publishWorkspaceModelVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function publishWorkspaceModelVersion() { console.log(result); } -async function main() { +async function main(): Promise { await publishWorkspaceModelVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsCreateOrUpdateSample.ts index 2d726e2a1abf..f9bc960010f7 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update Inference Endpoint Deployment (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update Inference Endpoint Deployment (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/KubernetesOnlineDeployment/createOrUpdate.json */ -async function createOrUpdateKubernetesOnlineDeployment() { +async function createOrUpdateKubernetesOnlineDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -98,7 +96,7 @@ async function createOrUpdateKubernetesOnlineDeployment() { * @summary Create or update Inference Endpoint Deployment (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/ManagedOnlineDeployment/createOrUpdate.json */ -async function createOrUpdateManagedOnlineDeployment() { +async function createOrUpdateManagedOnlineDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -170,7 +168,7 @@ async function createOrUpdateManagedOnlineDeployment() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateKubernetesOnlineDeployment(); await createOrUpdateManagedOnlineDeployment(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsDeleteSample.ts index 5ef2a88b8c9d..1cf121c1cefb 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete Inference Endpoint Deployment (asynchronous). @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete Inference Endpoint Deployment (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/OnlineDeployment/delete.json */ -async function deleteWorkspaceOnlineDeployment() { +async function deleteWorkspaceOnlineDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteWorkspaceOnlineDeployment() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspaceOnlineDeployment(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsGetLogsSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsGetLogsSample.ts index 469074393811..f269f69a1df0 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsGetLogsSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsGetLogsSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Polls an Endpoint operation. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Polls an Endpoint operation. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/getLogs.json */ -async function getOnlineDeploymentLogs() { +async function getOnlineDeploymentLogs(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function getOnlineDeploymentLogs() { console.log(result); } -async function main() { +async function main(): Promise { await getOnlineDeploymentLogs(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsGetSample.ts index 77c6e3b03817..2b0d504a4a64 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get Inference Deployment Deployment. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get Inference Deployment Deployment. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json */ -async function getKubernetesOnlineDeployment() { +async function getKubernetesOnlineDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -49,7 +47,7 @@ async function getKubernetesOnlineDeployment() { * @summary Get Inference Deployment Deployment. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/ManagedOnlineDeployment/get.json */ -async function getManagedOnlineDeployment() { +async function getManagedOnlineDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -72,7 +70,7 @@ async function getManagedOnlineDeployment() { console.log(result); } -async function main() { +async function main(): Promise { await getKubernetesOnlineDeployment(); await getManagedOnlineDeployment(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsListSample.ts index b613ce2153dd..4e7d409e577b 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List Inference Endpoint Deployments. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List Inference Endpoint Deployments. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/list.json */ -async function listOnlineDeployments() { +async function listOnlineDeployments(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function listOnlineDeployments() { console.log(resArray); } -async function main() { +async function main(): Promise { await listOnlineDeployments(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsListSkusSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsListSkusSample.ts index 0abe753eca91..6b0d7f3536c2 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsListSkusSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsListSkusSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List Inference Endpoint Deployment Skus. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List Inference Endpoint Deployment Skus. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/KubernetesOnlineDeployment/listSkus.json */ -async function listKubernetesOnlineDeploymentSkus() { +async function listKubernetesOnlineDeploymentSkus(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -58,7 +56,7 @@ async function listKubernetesOnlineDeploymentSkus() { * @summary List Inference Endpoint Deployment Skus. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/ManagedOnlineDeployment/listSkus.json */ -async function listManagedOnlineDeploymentSkus() { +async function listManagedOnlineDeploymentSkus(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -87,7 +85,7 @@ async function listManagedOnlineDeploymentSkus() { console.log(resArray); } -async function main() { +async function main(): Promise { await listKubernetesOnlineDeploymentSkus(); await listManagedOnlineDeploymentSkus(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsUpdateSample.ts index 787805bfea72..85607d5b57a2 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineDeploymentsUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update Online Deployment (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update Online Deployment (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/KubernetesOnlineDeployment/update.json */ -async function updateKubernetesOnlineDeployment() { +async function updateKubernetesOnlineDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -63,7 +61,7 @@ async function updateKubernetesOnlineDeployment() { * @summary Update Online Deployment (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/ManagedOnlineDeployment/update.json */ -async function updateManagedOnlineDeployment() { +async function updateManagedOnlineDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -97,7 +95,7 @@ async function updateManagedOnlineDeployment() { console.log(result); } -async function main() { +async function main(): Promise { await updateKubernetesOnlineDeployment(); await updateManagedOnlineDeployment(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsCreateOrUpdateSample.ts index 939327ea0635..c5ee1b969a89 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update Online Endpoint (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update Online Endpoint (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/OnlineEndpoint/createOrUpdate.json */ -async function createOrUpdateWorkspaceOnlineEndpoint() { +async function createOrUpdateWorkspaceOnlineEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -68,7 +66,7 @@ async function createOrUpdateWorkspaceOnlineEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateWorkspaceOnlineEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsDeleteSample.ts index 415758a03d9e..7467fac98648 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete Online Endpoint (asynchronous). @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete Online Endpoint (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/OnlineEndpoint/delete.json */ -async function deleteWorkspaceOnlineEndpoint() { +async function deleteWorkspaceOnlineEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceOnlineEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspaceOnlineEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsGetSample.ts index 47648818d510..a6969d8e1d37 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get Online Endpoint. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get Online Endpoint. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/OnlineEndpoint/get.json */ -async function getWorkspaceOnlineEndpoint() { +async function getWorkspaceOnlineEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceOnlineEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { await getWorkspaceOnlineEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsGetTokenSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsGetTokenSample.ts index 0dfbfdb407b5..bf64e2e96c60 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsGetTokenSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsGetTokenSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Retrieve a valid AML token for an Endpoint using AMLToken-based authentication. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Retrieve a valid AML token for an Endpoint using AMLToken-based authentication. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/OnlineEndpoint/getToken.json */ -async function getTokenWorkspaceOnlineEndpoint() { +async function getTokenWorkspaceOnlineEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getTokenWorkspaceOnlineEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { await getTokenWorkspaceOnlineEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsListKeysSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsListKeysSample.ts index 2aab758a6f69..e86e462f8a94 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsListKeysSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsListKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List EndpointAuthKeys for an Endpoint using Key-based authentication. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List EndpointAuthKeys for an Endpoint using Key-based authentication. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/OnlineEndpoint/listKeys.json */ -async function listKeysWorkspaceOnlineEndpoint() { +async function listKeysWorkspaceOnlineEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function listKeysWorkspaceOnlineEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { await listKeysWorkspaceOnlineEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsListSample.ts index 70e8587abe40..23c8330742b0 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List Online Endpoints. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List Online Endpoints. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/OnlineEndpoint/list.json */ -async function listWorkspaceOnlineEndpoint() { +async function listWorkspaceOnlineEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -60,7 +58,7 @@ async function listWorkspaceOnlineEndpoint() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceOnlineEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsRegenerateKeysSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsRegenerateKeysSample.ts index c5e4f9753c17..f30b0175bcdc 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsRegenerateKeysSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsRegenerateKeysSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/OnlineEndpoint/regenerateKeys.json */ -async function regenerateKeysWorkspaceOnlineEndpoint() { +async function regenerateKeysWorkspaceOnlineEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -49,7 +47,7 @@ async function regenerateKeysWorkspaceOnlineEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { await regenerateKeysWorkspaceOnlineEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsUpdateSample.ts index 436b9c3dfe5e..1910cee1c451 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/onlineEndpointsUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update Online Endpoint (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update Online Endpoint (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/OnlineEndpoint/update.json */ -async function updateWorkspaceOnlineEndpoint() { +async function updateWorkspaceOnlineEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function updateWorkspaceOnlineEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { await updateWorkspaceOnlineEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/operationsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/operationsListSample.ts index 07a3636a0363..0a6787d2db4b 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/operationsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all of the available Azure Machine Learning Workspaces REST API operations. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists all of the available Azure Machine Learning Workspaces REST API operations. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/operationsList.json */ -async function operationsList() { +async function operationsList(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -36,7 +34,7 @@ async function operationsList() { console.log(resArray); } -async function main() { +async function main(): Promise { await operationsList(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts index d49f7bc217d1..53865397800f 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update the state of specified private endpoint connection associated with the workspace. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update the state of specified private endpoint connection associated with the workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/PrivateEndpointConnection/createOrUpdate.json */ -async function workspacePutPrivateEndpointConnection() { +async function workspacePutPrivateEndpointConnection(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function workspacePutPrivateEndpointConnection() { console.log(result); } -async function main() { +async function main(): Promise { await workspacePutPrivateEndpointConnection(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/privateEndpointConnectionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/privateEndpointConnectionsDeleteSample.ts index 035bdb748834..3daf721b25df 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/privateEndpointConnectionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes the specified private endpoint connection associated with the workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes the specified private endpoint connection associated with the workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/PrivateEndpointConnection/delete.json */ -async function workspaceDeletePrivateEndpointConnection() { +async function workspaceDeletePrivateEndpointConnection(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function workspaceDeletePrivateEndpointConnection() { console.log(result); } -async function main() { +async function main(): Promise { await workspaceDeletePrivateEndpointConnection(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/privateEndpointConnectionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/privateEndpointConnectionsGetSample.ts index 978c65bf5faf..39e86e912fb0 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/privateEndpointConnectionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/privateEndpointConnectionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the specified private endpoint connection associated with the workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the specified private endpoint connection associated with the workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/PrivateEndpointConnection/get.json */ -async function workspaceGetPrivateEndpointConnection() { +async function workspaceGetPrivateEndpointConnection(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function workspaceGetPrivateEndpointConnection() { console.log(result); } -async function main() { +async function main(): Promise { await workspaceGetPrivateEndpointConnection(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/privateEndpointConnectionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/privateEndpointConnectionsListSample.ts index 0ce7c62e4fad..f93fed3cb436 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/privateEndpointConnectionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/privateEndpointConnectionsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List all the private endpoint connections associated with the workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List all the private endpoint connections associated with the workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/PrivateEndpointConnection/list.json */ -async function storageAccountListPrivateEndpointConnections() { +async function storageAccountListPrivateEndpointConnections(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function storageAccountListPrivateEndpointConnections() { console.log(resArray); } -async function main() { +async function main(): Promise { await storageAccountListPrivateEndpointConnections(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/privateLinkResourcesListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/privateLinkResourcesListSample.ts index 5e052634d6fb..4dee92ce99e3 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/privateLinkResourcesListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/privateLinkResourcesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the private link resources that need to be created for a workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the private link resources that need to be created for a workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/PrivateLinkResource/list.json */ -async function workspaceListPrivateLinkResources() { +async function workspaceListPrivateLinkResources(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -39,7 +37,7 @@ async function workspaceListPrivateLinkResources() { console.log(result); } -async function main() { +async function main(): Promise { await workspaceListPrivateLinkResources(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/quotasListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/quotasListSample.ts index 7416a69c3dc3..7d92c9036f2c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/quotasListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/quotasListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the currently assigned Workspace Quotas based on VMFamily. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the currently assigned Workspace Quotas based on VMFamily. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Quota/list.json */ -async function listWorkspaceQuotasByVMFamily() { +async function listWorkspaceQuotasByVMFamily(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -37,7 +35,7 @@ async function listWorkspaceQuotasByVMFamily() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceQuotasByVMFamily(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/quotasUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/quotasUpdateSample.ts index 6e0dfc85062a..ef43dffcaa0f 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/quotasUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/quotasUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update quota for each VM family in workspace. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update quota for each VM family in workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Quota/update.json */ -async function updateQuotas() { +async function updateQuotas(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -53,7 +51,7 @@ async function updateQuotas() { console.log(result); } -async function main() { +async function main(): Promise { await updateQuotas(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registriesCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registriesCreateOrUpdateSample.ts index 184283661c4a..2d6f23416716 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registriesCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registriesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update registry @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update registry * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/createOrUpdate-SystemCreated.json */ -async function createOrUpdateRegistryWithSystemCreatedAccounts() { +async function createOrUpdateRegistryWithSystemCreatedAccounts(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -106,7 +104,7 @@ async function createOrUpdateRegistryWithSystemCreatedAccounts() { * @summary Create or update registry * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/createOrUpdate-UserCreated.json */ -async function createOrUpdateRegistryWithUserCreatedAccounts() { +async function createOrUpdateRegistryWithUserCreatedAccounts(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -175,7 +173,7 @@ async function createOrUpdateRegistryWithUserCreatedAccounts() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateRegistryWithSystemCreatedAccounts(); await createOrUpdateRegistryWithUserCreatedAccounts(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registriesDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registriesDeleteSample.ts index ca1437575733..5cca7c77d0a2 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registriesDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registriesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete registry @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete registry * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/delete.json */ -async function deleteRegistry() { +async function deleteRegistry(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -39,7 +37,7 @@ async function deleteRegistry() { console.log(result); } -async function main() { +async function main(): Promise { await deleteRegistry(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registriesGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registriesGetSample.ts index 371a7bdde5ee..97e190921105 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registriesGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registriesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get registry @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get registry * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/get-SystemCreated.json */ -async function getRegistryWithSystemCreatedAccounts() { +async function getRegistryWithSystemCreatedAccounts(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function getRegistryWithSystemCreatedAccounts() { * @summary Get registry * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/get-UserCreated.json */ -async function getRegistryWithUserCreatedAccounts() { +async function getRegistryWithUserCreatedAccounts(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -58,7 +56,7 @@ async function getRegistryWithUserCreatedAccounts() { console.log(result); } -async function main() { +async function main(): Promise { await getRegistryWithSystemCreatedAccounts(); await getRegistryWithUserCreatedAccounts(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registriesListBySubscriptionSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registriesListBySubscriptionSample.ts index 5472dec192c3..1608e72933c5 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registriesListBySubscriptionSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registriesListBySubscriptionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List registries by subscription @@ -20,7 +18,7 @@ dotenv.config(); * @summary List registries by subscription * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/listBySubscription.json */ -async function listRegistriesBySubscription() { +async function listRegistriesBySubscription(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -36,7 +34,7 @@ async function listRegistriesBySubscription() { console.log(resArray); } -async function main() { +async function main(): Promise { await listRegistriesBySubscription(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registriesListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registriesListSample.ts index 48d8de84bd69..8b9f06d82da7 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registriesListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registriesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List registries @@ -20,7 +18,7 @@ dotenv.config(); * @summary List registries * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/list-SystemCreated.json */ -async function listRegistriesWithSystemCreatedAccounts() { +async function listRegistriesWithSystemCreatedAccounts(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -44,7 +42,7 @@ async function listRegistriesWithSystemCreatedAccounts() { * @summary List registries * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/list-UserCreated.json */ -async function listRegistriesWithUserCreatedAccounts() { +async function listRegistriesWithUserCreatedAccounts(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -62,7 +60,7 @@ async function listRegistriesWithUserCreatedAccounts() { console.log(resArray); } -async function main() { +async function main(): Promise { await listRegistriesWithSystemCreatedAccounts(); await listRegistriesWithUserCreatedAccounts(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registriesRemoveRegionsSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registriesRemoveRegionsSample.ts index 81a0399769ef..68a1d596fbe8 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registriesRemoveRegionsSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registriesRemoveRegionsSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Remove regions from registry @@ -23,7 +21,7 @@ dotenv.config(); * @summary Remove regions from registry * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/removeRegions.json */ -async function removeRegionsFromRegistry() { +async function removeRegionsFromRegistry(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -104,7 +102,7 @@ async function removeRegionsFromRegistry() { console.log(result); } -async function main() { +async function main(): Promise { await removeRegionsFromRegistry(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registriesUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registriesUpdateSample.ts index 6dd08191525c..844ce112e193 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registriesUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registriesUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update tags @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update tags * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/update-SystemCreated.json */ -async function updateRegistryWithSystemCreatedAccounts() { +async function updateRegistryWithSystemCreatedAccounts(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -63,7 +61,7 @@ async function updateRegistryWithSystemCreatedAccounts() { * @summary Update tags * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/update-UserCreated.json */ -async function updateRegistryWithUserCreatedAccounts() { +async function updateRegistryWithUserCreatedAccounts(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -94,7 +92,7 @@ async function updateRegistryWithUserCreatedAccounts() { console.log(result); } -async function main() { +async function main(): Promise { await updateRegistryWithSystemCreatedAccounts(); await updateRegistryWithUserCreatedAccounts(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeContainersCreateOrUpdateSample.ts index 4f61bf064ad8..0bd406a98b30 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update Code container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update Code container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/CodeContainer/createOrUpdate.json */ -async function createOrUpdateRegistryCodeContainer() { +async function createOrUpdateRegistryCodeContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function createOrUpdateRegistryCodeContainer() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateRegistryCodeContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeContainersDeleteSample.ts index a66187f788b6..4738689026f0 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete Code container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete Code container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/CodeContainer/delete.json */ -async function deleteRegistryCodeContainer() { +async function deleteRegistryCodeContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteRegistryCodeContainer() { console.log(result); } -async function main() { +async function main(): Promise { await deleteRegistryCodeContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeContainersGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeContainersGetSample.ts index 215223af89e3..a8ca005d57ed 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeContainersGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeContainersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get Code container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get Code container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/CodeContainer/get.json */ -async function getRegistryCodeContainer() { +async function getRegistryCodeContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getRegistryCodeContainer() { console.log(result); } -async function main() { +async function main(): Promise { await getRegistryCodeContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeContainersListSample.ts index b8798578584e..e2cf3b0d978f 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeContainersListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List containers. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/CodeContainer/list.json */ -async function listRegistryCodeContainer() { +async function listRegistryCodeContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listRegistryCodeContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { await listRegistryCodeContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeVersionsCreateOrGetStartPendingUploadSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeVersionsCreateOrGetStartPendingUploadSample.ts index 40c1d9d23333..3b990ba69152 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeVersionsCreateOrGetStartPendingUploadSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeVersionsCreateOrGetStartPendingUploadSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Generate a storage location and credential for the client to upload a code asset to. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Generate a storage location and credential for the client to upload a code asset to. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/CodeVersion/createOrGetStartPendingUpload.json */ -async function createOrGetStartPendingUploadRegistryCodeVersion() { +async function createOrGetStartPendingUploadRegistryCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function createOrGetStartPendingUploadRegistryCodeVersion() { console.log(result); } -async function main() { +async function main(): Promise { await createOrGetStartPendingUploadRegistryCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeVersionsCreateOrUpdateSample.ts index 164c7d5a0bab..1f03e14f31a1 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/CodeVersion/createOrUpdate.json */ -async function createOrUpdateRegistryCodeVersion() { +async function createOrUpdateRegistryCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -56,7 +54,7 @@ async function createOrUpdateRegistryCodeVersion() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateRegistryCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeVersionsDeleteSample.ts index 8b99a6cecf9c..4450f14250ae 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/CodeVersion/delete.json */ -async function deleteRegistryCodeVersion() { +async function deleteRegistryCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteRegistryCodeVersion() { console.log(result); } -async function main() { +async function main(): Promise { await deleteRegistryCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeVersionsGetSample.ts index 0e359417691b..2c6c64132c1d 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/CodeVersion/get.json */ -async function getRegistryCodeVersion() { +async function getRegistryCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getRegistryCodeVersion() { console.log(result); } -async function main() { +async function main(): Promise { await getRegistryCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeVersionsListSample.ts index 17b5378b0558..65f8c6d17b22 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryCodeVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List versions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List versions. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/CodeVersion/list.json */ -async function listRegistryCodeVersion() { +async function listRegistryCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function listRegistryCodeVersion() { console.log(resArray); } -async function main() { +async function main(): Promise { await listRegistryCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentContainersCreateOrUpdateSample.ts index 6e07c98f46e9..1574e24467a9 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ComponentContainer/createOrUpdate.json */ -async function createOrUpdateRegistryComponentContainer() { +async function createOrUpdateRegistryComponentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -53,7 +51,7 @@ async function createOrUpdateRegistryComponentContainer() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateRegistryComponentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentContainersDeleteSample.ts index 740061399a1f..41a51aabcef0 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ComponentContainer/delete.json */ -async function deleteRegistryComponentContainer() { +async function deleteRegistryComponentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteRegistryComponentContainer() { console.log(result); } -async function main() { +async function main(): Promise { await deleteRegistryComponentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentContainersGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentContainersGetSample.ts index 251344d5c99f..cb9ce7bc8a40 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentContainersGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentContainersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ComponentContainer/get.json */ -async function getRegistryComponentContainer() { +async function getRegistryComponentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getRegistryComponentContainer() { console.log(result); } -async function main() { +async function main(): Promise { await getRegistryComponentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentContainersListSample.ts index f145e50a0985..5bbac1ad7748 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentContainersListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List containers. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ComponentContainer/list.json */ -async function listRegistryComponentContainer() { +async function listRegistryComponentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listRegistryComponentContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { await listRegistryComponentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentVersionsCreateOrUpdateSample.ts index ca64ecd8fe5e..2169e541a395 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ComponentVersion/createOrUpdate.json */ -async function createOrUpdateRegistryComponentVersion() { +async function createOrUpdateRegistryComponentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -57,7 +55,7 @@ async function createOrUpdateRegistryComponentVersion() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateRegistryComponentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentVersionsDeleteSample.ts index 5edd80aa35e9..f410515839ce 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ComponentVersion/delete.json */ -async function deleteRegistryComponentVersion() { +async function deleteRegistryComponentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteRegistryComponentVersion() { console.log(result); } -async function main() { +async function main(): Promise { await deleteRegistryComponentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentVersionsGetSample.ts index 4c3265547f16..f5ffedf3b420 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ComponentVersion/get.json */ -async function getRegistryComponentVersion() { +async function getRegistryComponentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getRegistryComponentVersion() { console.log(result); } -async function main() { +async function main(): Promise { await getRegistryComponentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentVersionsListSample.ts index 0cd3d83b3b49..967d3ee9c8b6 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryComponentVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List versions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List versions. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ComponentVersion/list.json */ -async function listRegistryComponentVersion() { +async function listRegistryComponentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function listRegistryComponentVersion() { console.log(resArray); } -async function main() { +async function main(): Promise { await listRegistryComponentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataContainersCreateOrUpdateSample.ts index 3b1c6582eb92..e7988482d46a 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/DataContainer/createOrUpdate.json */ -async function createOrUpdateRegistryDataContainer() { +async function createOrUpdateRegistryDataContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -54,7 +52,7 @@ async function createOrUpdateRegistryDataContainer() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateRegistryDataContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataContainersDeleteSample.ts index ced485e4dcd1..74425134d269 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/DataContainer/delete.json */ -async function deleteRegistryDataContainer() { +async function deleteRegistryDataContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteRegistryDataContainer() { console.log(result); } -async function main() { +async function main(): Promise { await deleteRegistryDataContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataContainersGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataContainersGetSample.ts index 6475d87319ff..0448879b50de 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataContainersGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataContainersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/DataContainer/get.json */ -async function getRegistryDataContainer() { +async function getRegistryDataContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getRegistryDataContainer() { console.log(result); } -async function main() { +async function main(): Promise { await getRegistryDataContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataContainersListSample.ts index c890ea20f41a..3e83b57845d3 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataContainersListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List Data containers. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List Data containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/DataContainer/registryList.json */ -async function registryListRegistryDataContainer() { +async function registryListRegistryDataContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -48,7 +46,7 @@ async function registryListRegistryDataContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { await registryListRegistryDataContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataReferencesGetBlobReferenceSasSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataReferencesGetBlobReferenceSasSample.ts index cbe9cd58de16..23d25f477f9a 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataReferencesGetBlobReferenceSasSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataReferencesGetBlobReferenceSasSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get blob reference SAS Uri. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Get blob reference SAS Uri. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/DataReference/getBlobReferenceSAS.json */ -async function getBlobReferenceSasDataReference() { +async function getBlobReferenceSasDataReference(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function getBlobReferenceSasDataReference() { console.log(result); } -async function main() { +async function main(): Promise { await getBlobReferenceSasDataReference(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataVersionsCreateOrGetStartPendingUploadSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataVersionsCreateOrGetStartPendingUploadSample.ts index 8a252eee1655..5366f81fe1ed 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataVersionsCreateOrGetStartPendingUploadSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataVersionsCreateOrGetStartPendingUploadSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Generate a storage location and credential for the client to upload a data asset to. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Generate a storage location and credential for the client to upload a data asset to. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/DataVersionBase/createOrGetStartPendingUpload.json */ -async function createOrGetStartPendingUploadRegistryDataVersionBase() { +async function createOrGetStartPendingUploadRegistryDataVersionBase(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function createOrGetStartPendingUploadRegistryDataVersionBase() { console.log(result); } -async function main() { +async function main(): Promise { await createOrGetStartPendingUploadRegistryDataVersionBase(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataVersionsCreateOrUpdateSample.ts index 0fa95fb2e9ac..38588e9265a0 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/DataVersionBase/createOrUpdate.json */ -async function createOrUpdateRegistryDataVersionBase() { +async function createOrUpdateRegistryDataVersionBase(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -59,7 +57,7 @@ async function createOrUpdateRegistryDataVersionBase() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateRegistryDataVersionBase(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataVersionsDeleteSample.ts index 4cb3753033f4..a66f088823ae 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/DataVersionBase/delete.json */ -async function deleteRegistryDataVersionBase() { +async function deleteRegistryDataVersionBase(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteRegistryDataVersionBase() { console.log(result); } -async function main() { +async function main(): Promise { await deleteRegistryDataVersionBase(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataVersionsGetSample.ts index 0ebe0fb6147b..9b39cd209c10 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/DataVersionBase/get.json */ -async function getRegistryDataVersionBase() { +async function getRegistryDataVersionBase(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getRegistryDataVersionBase() { console.log(result); } -async function main() { +async function main(): Promise { await getRegistryDataVersionBase(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataVersionsListSample.ts index 9740d047d1b0..4c97478b50e2 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryDataVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List data versions in the data container @@ -23,7 +21,7 @@ dotenv.config(); * @summary List data versions in the data container * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/DataVersionBase/registryList.json */ -async function registryListRegistryDataVersionBase() { +async function registryListRegistryDataVersionBase(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -58,7 +56,7 @@ async function registryListRegistryDataVersionBase() { console.log(resArray); } -async function main() { +async function main(): Promise { await registryListRegistryDataVersionBase(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentContainersCreateOrUpdateSample.ts index 8f50963a4241..069d22a80e99 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/EnvironmentContainer/createOrUpdate.json */ -async function createOrUpdateRegistryEnvironmentContainer() { +async function createOrUpdateRegistryEnvironmentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -61,7 +59,7 @@ async function createOrUpdateRegistryEnvironmentContainer() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateRegistryEnvironmentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentContainersDeleteSample.ts index a96486d611a0..1ab53c495a38 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/EnvironmentContainer/delete.json */ -async function deleteRegistryEnvironmentContainer() { +async function deleteRegistryEnvironmentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteRegistryEnvironmentContainer() { console.log(result); } -async function main() { +async function main(): Promise { await deleteRegistryEnvironmentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentContainersGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentContainersGetSample.ts index 1387d6275ad0..66e22eefe22c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentContainersGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentContainersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/EnvironmentContainer/get.json */ -async function getRegistryEnvironmentContainer() { +async function getRegistryEnvironmentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getRegistryEnvironmentContainer() { console.log(result); } -async function main() { +async function main(): Promise { await getRegistryEnvironmentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentContainersListSample.ts index c26d93b57645..1a4af6c3c6be 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentContainersListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List environment containers. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List environment containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/EnvironmentContainer/list.json */ -async function listRegistryEnvironmentContainer() { +async function listRegistryEnvironmentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listRegistryEnvironmentContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { await listRegistryEnvironmentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentVersionsCreateOrUpdateSample.ts index cc3b484a141f..1f364bdd1a66 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/EnvironmentVersion/createOrUpdate.json */ -async function createOrUpdateRegistryEnvironmentVersion() { +async function createOrUpdateRegistryEnvironmentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -68,7 +66,7 @@ async function createOrUpdateRegistryEnvironmentVersion() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateRegistryEnvironmentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentVersionsDeleteSample.ts index 94f733c061d6..90c515a3b678 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/EnvironmentVersion/delete.json */ -async function deleteRegistryEnvironmentVersion() { +async function deleteRegistryEnvironmentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteRegistryEnvironmentVersion() { console.log(result); } -async function main() { +async function main(): Promise { await deleteRegistryEnvironmentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentVersionsGetSample.ts index a1b7afba63e1..bb60dc91720c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/EnvironmentVersion/get.json */ -async function getRegistryEnvironmentVersion() { +async function getRegistryEnvironmentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getRegistryEnvironmentVersion() { console.log(result); } -async function main() { +async function main(): Promise { await getRegistryEnvironmentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentVersionsListSample.ts index bc69365cd1b2..b61dfb082520 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryEnvironmentVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List versions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List versions. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/EnvironmentVersion/list.json */ -async function listRegistryEnvironmentVersion() { +async function listRegistryEnvironmentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -54,7 +52,7 @@ async function listRegistryEnvironmentVersion() { console.log(resArray); } -async function main() { +async function main(): Promise { await listRegistryEnvironmentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelContainersCreateOrUpdateSample.ts index 94f03dbd504a..5864d38034f9 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update model container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update model container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ModelContainer/createOrUpdate.json */ -async function createOrUpdateRegistryModelContainer() { +async function createOrUpdateRegistryModelContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function createOrUpdateRegistryModelContainer() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateRegistryModelContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelContainersDeleteSample.ts index 5fcf776a8368..b1892f190127 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ModelContainer/delete.json */ -async function deleteRegistryModelContainer() { +async function deleteRegistryModelContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteRegistryModelContainer() { console.log(result); } -async function main() { +async function main(): Promise { await deleteRegistryModelContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelContainersGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelContainersGetSample.ts index abc6b643c050..316979a5bb95 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelContainersGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelContainersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ModelContainer/get.json */ -async function getRegistryModelContainer() { +async function getRegistryModelContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getRegistryModelContainer() { console.log(result); } -async function main() { +async function main(): Promise { await getRegistryModelContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelContainersListSample.ts index cc8e6cfdc6f4..2ceff3a2b877 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelContainersListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List model containers. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List model containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ModelContainer/list.json */ -async function listRegistryModelContainer() { +async function listRegistryModelContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listRegistryModelContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { await listRegistryModelContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelVersionsCreateOrGetStartPendingUploadSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelVersionsCreateOrGetStartPendingUploadSample.ts index 144a445a42d6..8d3a56e96a2f 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelVersionsCreateOrGetStartPendingUploadSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelVersionsCreateOrGetStartPendingUploadSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Generate a storage location and credential for the client to upload a model asset to. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Generate a storage location and credential for the client to upload a model asset to. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ModelVersion/createOrGetStartPendingUpload.json */ -async function createOrGetStartPendingUploadRegistryModelVersion() { +async function createOrGetStartPendingUploadRegistryModelVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function createOrGetStartPendingUploadRegistryModelVersion() { console.log(result); } -async function main() { +async function main(): Promise { await createOrGetStartPendingUploadRegistryModelVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelVersionsCreateOrUpdateSample.ts index 85de0f56cc5f..53f7f75926ff 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ModelVersion/createOrUpdate.json */ -async function createOrUpdateRegistryModelVersion() { +async function createOrUpdateRegistryModelVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -58,7 +56,7 @@ async function createOrUpdateRegistryModelVersion() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateRegistryModelVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelVersionsDeleteSample.ts index e14c4b1b18cb..963b445631da 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ModelVersion/delete.json */ -async function deleteRegistryModelVersion() { +async function deleteRegistryModelVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteRegistryModelVersion() { console.log(result); } -async function main() { +async function main(): Promise { await deleteRegistryModelVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelVersionsGetSample.ts index 1ce0988990f2..18a1958381d8 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ModelVersion/get.json */ -async function getRegistryModelVersion() { +async function getRegistryModelVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getRegistryModelVersion() { console.log(result); } -async function main() { +async function main(): Promise { await getRegistryModelVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelVersionsListSample.ts index ff176ca711ec..0c26fd530ac6 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/registryModelVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List versions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List versions. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ModelVersion/list.json */ -async function listRegistryModelVersion() { +async function listRegistryModelVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -62,7 +60,7 @@ async function listRegistryModelVersion() { console.log(resArray); } -async function main() { +async function main(): Promise { await listRegistryModelVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/schedulesCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/schedulesCreateOrUpdateSample.ts index 6fc34fc38fe5..7560767f641e 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/schedulesCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/schedulesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update schedule. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update schedule. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Schedule/createOrUpdate.json */ -async function createOrUpdateSchedule() { +async function createOrUpdateSchedule(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -67,7 +65,7 @@ async function createOrUpdateSchedule() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateSchedule(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/schedulesDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/schedulesDeleteSample.ts index 8d839a50c60e..4241ced1dd9a 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/schedulesDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/schedulesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete schedule. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete schedule. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Schedule/delete.json */ -async function deleteSchedule() { +async function deleteSchedule(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteSchedule() { console.log(result); } -async function main() { +async function main(): Promise { await deleteSchedule(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/schedulesGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/schedulesGetSample.ts index 0707474531a3..512d3ea73781 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/schedulesGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/schedulesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get schedule. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get schedule. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Schedule/get.json */ -async function getSchedule() { +async function getSchedule(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getSchedule() { console.log(result); } -async function main() { +async function main(): Promise { await getSchedule(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/schedulesListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/schedulesListSample.ts index fdacbecb8aa2..8a139024e7bb 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/schedulesListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/schedulesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List schedules in specified workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List schedules in specified workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Schedule/list.json */ -async function listSchedules() { +async function listSchedules(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listSchedules() { console.log(resArray); } -async function main() { +async function main(): Promise { await listSchedules(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsCreateOrUpdateSample.ts index 921151803f13..6812061b4739 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update Serverless Endpoint (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update Serverless Endpoint (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ServerlessEndpoint/createOrUpdate.json */ -async function createOrUpdateWorkspaceServerlessEndpoint() { +async function createOrUpdateWorkspaceServerlessEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -66,7 +64,7 @@ async function createOrUpdateWorkspaceServerlessEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { await createOrUpdateWorkspaceServerlessEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsDeleteSample.ts index 9694ef833c60..ff45384ac6ea 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete Serverless Endpoint (asynchronous). @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete Serverless Endpoint (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ServerlessEndpoint/delete.json */ -async function deleteWorkspaceServerlessEndpoint() { +async function deleteWorkspaceServerlessEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceServerlessEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspaceServerlessEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsGetSample.ts index 0b86c219c23b..e591e6da6c04 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get Serverless Endpoint. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get Serverless Endpoint. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ServerlessEndpoint/get.json */ -async function getWorkspaceServerlessEndpoint() { +async function getWorkspaceServerlessEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceServerlessEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { await getWorkspaceServerlessEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsListKeysSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsListKeysSample.ts index 7aa694006724..e7babde1aab5 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsListKeysSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsListKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List EndpointAuthKeys for an Endpoint using Key-based authentication. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List EndpointAuthKeys for an Endpoint using Key-based authentication. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ServerlessEndpoint/listKeys.json */ -async function listKeysWorkspaceServerlessEndpoint() { +async function listKeysWorkspaceServerlessEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function listKeysWorkspaceServerlessEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { await listKeysWorkspaceServerlessEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsListSample.ts index f25dd68bea0c..3e956d90c45e 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List Serverless Endpoints. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List Serverless Endpoints. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ServerlessEndpoint/list.json */ -async function listWorkspaceServerlessEndpoint() { +async function listWorkspaceServerlessEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listWorkspaceServerlessEndpoint() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceServerlessEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsRegenerateKeysSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsRegenerateKeysSample.ts index b96c8906d913..c3e566c7ecde 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsRegenerateKeysSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsRegenerateKeysSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ServerlessEndpoint/regenerateKeys.json */ -async function regenerateKeysWorkspaceServerlessEndpoint() { +async function regenerateKeysWorkspaceServerlessEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -49,7 +47,7 @@ async function regenerateKeysWorkspaceServerlessEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { await regenerateKeysWorkspaceServerlessEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsUpdateSample.ts index 618d2c92d575..f4e2a01bd208 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/serverlessEndpointsUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update Serverless Endpoint (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update Serverless Endpoint (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ServerlessEndpoint/update.json */ -async function updateWorkspaceServerlessEndpoint() { +async function updateWorkspaceServerlessEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -56,7 +54,7 @@ async function updateWorkspaceServerlessEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { await updateWorkspaceServerlessEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/usagesListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/usagesListSample.ts index 7ce2798c019a..5fecdaee83c9 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/usagesListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/usagesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the current usage information as well as limits for AML resources for given subscription and location. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the current usage information as well as limits for AML resources for given subscription and location. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Usage/list.json */ -async function listUsages() { +async function listUsages(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -37,7 +35,7 @@ async function listUsages() { console.log(resArray); } -async function main() { +async function main(): Promise { await listUsages(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/virtualMachineSizesListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/virtualMachineSizesListSample.ts index 76775a9fc669..142e51e7432e 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/virtualMachineSizesListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/virtualMachineSizesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns supported VM Sizes in a location @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns supported VM Sizes in a location * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/VirtualMachineSize/list.json */ -async function listVMSizes() { +async function listVMSizes(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -34,7 +32,7 @@ async function listVMSizes() { console.log(result); } -async function main() { +async function main(): Promise { await listVMSizes(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceConnectionsCreateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceConnectionsCreateSample.ts index 02e446c2cc9c..de266d54b38d 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceConnectionsCreateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceConnectionsCreateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to @@ -23,7 +21,7 @@ dotenv.config(); * @summary * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/WorkspaceConnection/create.json */ -async function createWorkspaceConnection() { +async function createWorkspaceConnection(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function createWorkspaceConnection() { console.log(result); } -async function main() { +async function main(): Promise { await createWorkspaceConnection(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceConnectionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceConnectionsDeleteSample.ts index 12aeb8a2fcdf..0ff91f9d2e48 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceConnectionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceConnectionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to @@ -20,7 +18,7 @@ dotenv.config(); * @summary * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/WorkspaceConnection/delete.json */ -async function deleteWorkspaceConnection() { +async function deleteWorkspaceConnection(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceConnection() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspaceConnection(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceConnectionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceConnectionsGetSample.ts index 1d0450b1c894..ee97dcac0436 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceConnectionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceConnectionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to @@ -20,7 +18,7 @@ dotenv.config(); * @summary * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/WorkspaceConnection/get.json */ -async function getWorkspaceConnection() { +async function getWorkspaceConnection(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceConnection() { console.log(result); } -async function main() { +async function main(): Promise { await getWorkspaceConnection(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceConnectionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceConnectionsListSample.ts index c7912a28b6ef..6153e2f0298b 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceConnectionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceConnectionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to @@ -23,7 +21,7 @@ dotenv.config(); * @summary * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/WorkspaceConnection/list.json */ -async function listWorkspaceConnections() { +async function listWorkspaceConnections(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -49,7 +47,7 @@ async function listWorkspaceConnections() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceConnections(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceConnectionsListSecretsSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceConnectionsListSecretsSample.ts index 4f3f91422bf0..72c438cf6210 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceConnectionsListSecretsSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceConnectionsListSecretsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List all the secrets of a machine learning workspaces connections. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List all the secrets of a machine learning workspaces connections. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/WorkspaceConnection/listSecrets.json */ -async function getWorkspaceConnection() { +async function getWorkspaceConnection(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceConnection() { console.log(result); } -async function main() { +async function main(): Promise { await getWorkspaceConnection(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceFeaturesListSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceFeaturesListSample.ts index b2f73b4d2464..b9f88c4d5688 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceFeaturesListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/workspaceFeaturesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all enabled features for a workspace @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists all enabled features for a workspace * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/WorkspaceFeature/list.json */ -async function listWorkspaceFeatures() { +async function listWorkspaceFeatures(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -42,7 +40,7 @@ async function listWorkspaceFeatures() { console.log(resArray); } -async function main() { +async function main(): Promise { await listWorkspaceFeatures(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesCreateOrUpdateSample.ts index 91825a0bdc4f..944fe6099d6b 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a workspace with the specified parameters. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or updates a workspace with the specified parameters. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/create.json */ -async function createWorkspace() { +async function createWorkspace(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -88,7 +86,7 @@ async function createWorkspace() { console.log(result); } -async function main() { +async function main(): Promise { await createWorkspace(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesDeleteSample.ts index 610f1c99f3ed..df400bdc99e8 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a machine learning workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes a machine learning workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/delete.json */ -async function deleteWorkspace() { +async function deleteWorkspace(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -39,7 +37,7 @@ async function deleteWorkspace() { console.log(result); } -async function main() { +async function main(): Promise { await deleteWorkspace(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesDiagnoseSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesDiagnoseSample.ts index 659039b3b15b..6fff7620a7a7 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesDiagnoseSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesDiagnoseSample.ts @@ -14,9 +14,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Diagnose workspace setup issue. @@ -24,7 +22,7 @@ dotenv.config(); * @summary Diagnose workspace setup issue. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/diagnose.json */ -async function diagnoseWorkspace() { +async function diagnoseWorkspace(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -58,7 +56,7 @@ async function diagnoseWorkspace() { console.log(result); } -async function main() { +async function main(): Promise { await diagnoseWorkspace(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesGetSample.ts index 178d4b79a30d..5281bf95d7fe 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified machine learning workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the properties of the specified machine learning workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/get.json */ -async function getWorkspace() { +async function getWorkspace(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -36,7 +34,7 @@ async function getWorkspace() { console.log(result); } -async function main() { +async function main(): Promise { await getWorkspace(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListByResourceGroupSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListByResourceGroupSample.ts index df2705bf0985..8a7f1bf8dc19 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListByResourceGroupSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the available machine learning workspaces under the specified resource group. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists all the available machine learning workspaces under the specified resource group. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/listByResourceGroup.json */ -async function getWorkspacesByResourceGroup() { +async function getWorkspacesByResourceGroup(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -40,7 +38,7 @@ async function getWorkspacesByResourceGroup() { console.log(resArray); } -async function main() { +async function main(): Promise { await getWorkspacesByResourceGroup(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListBySubscriptionSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListBySubscriptionSample.ts index ba64d280403d..eafcf9535cb7 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListBySubscriptionSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListBySubscriptionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the available machine learning workspaces under the specified subscription. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists all the available machine learning workspaces under the specified subscription. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/listBySubscription.json */ -async function getWorkspacesBySubscription() { +async function getWorkspacesBySubscription(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -36,7 +34,7 @@ async function getWorkspacesBySubscription() { console.log(resArray); } -async function main() { +async function main(): Promise { await getWorkspacesBySubscription(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListKeysSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListKeysSample.ts index 9f8e142e1e95..3f38deaaa8ec 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListKeysSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the keys associated with this workspace. This includes keys for the storage account, app insights and password for container registry @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists all the keys associated with this workspace. This includes keys for the storage account, app insights and password for container registry * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/listKeys.json */ -async function listWorkspaceKeys() { +async function listWorkspaceKeys(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"; @@ -39,7 +37,7 @@ async function listWorkspaceKeys() { console.log(result); } -async function main() { +async function main(): Promise { await listWorkspaceKeys(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListNotebookAccessTokenSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListNotebookAccessTokenSample.ts index 800ff8c8d21b..c3e08ecdeaf0 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListNotebookAccessTokenSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListNotebookAccessTokenSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to return notebook access token and refresh token @@ -20,7 +18,7 @@ dotenv.config(); * @summary return notebook access token and refresh token * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/listNotebookAccessToken.json */ -async function listWorkspaceKeys() { +async function listWorkspaceKeys(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -39,7 +37,7 @@ async function listWorkspaceKeys() { console.log(result); } -async function main() { +async function main(): Promise { await listWorkspaceKeys(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListNotebookKeysSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListNotebookKeysSample.ts index f6a01d26426f..1b31c24fc51b 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListNotebookKeysSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListNotebookKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List keys of a notebook. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List keys of a notebook. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Notebook/listKeys.json */ -async function listWorkspaceKeys() { +async function listWorkspaceKeys(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"; @@ -39,7 +37,7 @@ async function listWorkspaceKeys() { console.log(result); } -async function main() { +async function main(): Promise { await listWorkspaceKeys(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListOutboundNetworkDependenciesEndpointsSample.ts index a60dd3dc5066..437c6ae9c66d 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListOutboundNetworkDependenciesEndpointsSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListOutboundNetworkDependenciesEndpointsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) programmatically. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) programmatically. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/ExternalFQDN/get.json */ -async function listOutboundNetworkDependenciesEndpoints() { +async function listOutboundNetworkDependenciesEndpoints(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -40,7 +38,7 @@ async function listOutboundNetworkDependenciesEndpoints() { console.log(result); } -async function main() { +async function main(): Promise { await listOutboundNetworkDependenciesEndpoints(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListStorageAccountKeysSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListStorageAccountKeysSample.ts index 4c584e2db616..768f8d825e7b 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListStorageAccountKeysSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesListStorageAccountKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List storage account keys of a workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List storage account keys of a workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/listStorageAccountKeys.json */ -async function listWorkspaceKeys() { +async function listWorkspaceKeys(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"; @@ -39,7 +37,7 @@ async function listWorkspaceKeys() { console.log(result); } -async function main() { +async function main(): Promise { await listWorkspaceKeys(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesPrepareNotebookSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesPrepareNotebookSample.ts index 70213d4c4e14..839663917af9 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesPrepareNotebookSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesPrepareNotebookSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Prepare a notebook. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Prepare a notebook. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Notebook/prepare.json */ -async function prepareNotebook() { +async function prepareNotebook(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"; @@ -39,7 +37,7 @@ async function prepareNotebook() { console.log(result); } -async function main() { +async function main(): Promise { await prepareNotebook(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesResyncKeysSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesResyncKeysSample.ts index 5153197e0beb..3a40772003d6 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesResyncKeysSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesResyncKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Resync all the keys associated with this workspace. This includes keys for the storage account, app insights and password for container registry @@ -20,7 +18,7 @@ dotenv.config(); * @summary Resync all the keys associated with this workspace. This includes keys for the storage account, app insights and password for container registry * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/resyncKeys.json */ -async function resyncWorkspaceKeys() { +async function resyncWorkspaceKeys(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"; @@ -39,7 +37,7 @@ async function resyncWorkspaceKeys() { console.log(result); } -async function main() { +async function main(): Promise { await resyncWorkspaceKeys(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesUpdateSample.ts index 308094cd6d03..129c2b450556 100644 --- a/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples-dev/workspacesUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a machine learning workspace with the specified parameters. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Updates a machine learning workspace with the specified parameters. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/update.json */ -async function updateWorkspace() { +async function updateWorkspace(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -48,7 +46,7 @@ async function updateWorkspace() { console.log(result); } -async function main() { +async function main(): Promise { await updateWorkspace(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchDeploymentsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchDeploymentsCreateOrUpdateSample.ts index 4a3cc5886d98..acbb8875aadf 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchDeploymentsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchDeploymentsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates/updates a batch inference deployment (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates/updates a batch inference deployment (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchDeployment/createOrUpdate.json */ -async function createOrUpdateWorkspaceBatchDeployment() { +async function createOrUpdateWorkspaceBatchDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -86,7 +84,7 @@ async function createOrUpdateWorkspaceBatchDeployment() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateWorkspaceBatchDeployment(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchDeploymentsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchDeploymentsDeleteSample.ts index e1f4e93904f7..cd7ee665d0da 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchDeploymentsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchDeploymentsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete Batch Inference deployment (asynchronous). @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete Batch Inference deployment (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchDeployment/delete.json */ -async function deleteWorkspaceBatchDeployment() { +async function deleteWorkspaceBatchDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteWorkspaceBatchDeployment() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspaceBatchDeployment(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchDeploymentsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchDeploymentsGetSample.ts index 7866349099dd..925d2f9ee852 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchDeploymentsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchDeploymentsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a batch inference deployment by id. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a batch inference deployment by id. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchDeployment/get.json */ -async function getWorkspaceBatchDeployment() { +async function getWorkspaceBatchDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getWorkspaceBatchDeployment() { console.log(result); } -async function main() { +async function main(): Promise { getWorkspaceBatchDeployment(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchDeploymentsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchDeploymentsListSample.ts index 938a6acd4361..2b371b3e5468 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchDeploymentsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchDeploymentsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists Batch inference deployments in the workspace. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Lists Batch inference deployments in the workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchDeployment/list.json */ -async function listWorkspaceBatchDeployment() { +async function listWorkspaceBatchDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function listWorkspaceBatchDeployment() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceBatchDeployment(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchDeploymentsUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchDeploymentsUpdateSample.ts index 2a6272cda1b5..c1c349e5a063 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchDeploymentsUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchDeploymentsUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update a batch inference deployment (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update a batch inference deployment (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchDeployment/update.json */ -async function updateWorkspaceBatchDeployment() { +async function updateWorkspaceBatchDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -49,7 +47,7 @@ async function updateWorkspaceBatchDeployment() { console.log(result); } -async function main() { +async function main(): Promise { updateWorkspaceBatchDeployment(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsCreateOrUpdateSample.ts index f1e680411de0..47cfd420eb24 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a batch inference endpoint (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates a batch inference endpoint (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchEndpoint/createOrUpdate.json */ -async function createOrUpdateWorkspaceBatchEndpoint() { +async function createOrUpdateWorkspaceBatchEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -67,7 +65,7 @@ async function createOrUpdateWorkspaceBatchEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateWorkspaceBatchEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsDeleteSample.ts index 0003bb89b7f8..a86468398d05 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete Batch Inference Endpoint (asynchronous). @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete Batch Inference Endpoint (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchEndpoint/delete.json */ -async function deleteWorkspaceBatchEndpoint() { +async function deleteWorkspaceBatchEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceBatchEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspaceBatchEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsGetSample.ts index 7441ff42ca43..468b08370049 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a batch inference endpoint by name. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a batch inference endpoint by name. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchEndpoint/get.json */ -async function getWorkspaceBatchEndpoint() { +async function getWorkspaceBatchEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceBatchEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { getWorkspaceBatchEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsListKeysSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsListKeysSample.ts index 9e8a6c9a2b69..b3ebf6dcfd92 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsListKeysSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsListKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists batch Inference Endpoint keys. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists batch Inference Endpoint keys. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchEndpoint/listKeys.json */ -async function listKeysWorkspaceBatchEndpoint() { +async function listKeysWorkspaceBatchEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function listKeysWorkspaceBatchEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { listKeysWorkspaceBatchEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsListSample.ts index 60c142875481..deb29ea70408 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists Batch inference endpoint in the workspace. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Lists Batch inference endpoint in the workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchEndpoint/list.json */ -async function listWorkspaceBatchEndpoint() { +async function listWorkspaceBatchEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -48,7 +46,7 @@ async function listWorkspaceBatchEndpoint() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceBatchEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsUpdateSample.ts index 77079c3ad693..61108aad14af 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/batchEndpointsUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update a batch inference endpoint (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update a batch inference endpoint (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/BatchEndpoint/update.json */ -async function updateWorkspaceBatchEndpoint() { +async function updateWorkspaceBatchEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function updateWorkspaceBatchEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { updateWorkspaceBatchEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeContainersCreateOrUpdateSample.ts index c71e81e5993d..aacc21ed2a27 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/CodeContainer/createOrUpdate.json */ -async function createOrUpdateWorkspaceCodeContainer() { +async function createOrUpdateWorkspaceCodeContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function createOrUpdateWorkspaceCodeContainer() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateWorkspaceCodeContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeContainersDeleteSample.ts index 05c3779bb4b6..94149ed7154c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/CodeContainer/delete.json */ -async function deleteWorkspaceCodeContainer() { +async function deleteWorkspaceCodeContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceCodeContainer() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspaceCodeContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeContainersGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeContainersGetSample.ts index a982f6ab94c8..65d652556273 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeContainersGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeContainersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/CodeContainer/get.json */ -async function getWorkspaceCodeContainer() { +async function getWorkspaceCodeContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceCodeContainer() { console.log(result); } -async function main() { +async function main(): Promise { getWorkspaceCodeContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeContainersListSample.ts index 9ab01a552506..d5e5340014f2 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeContainersListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List containers. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/CodeContainer/list.json */ -async function listWorkspaceCodeContainer() { +async function listWorkspaceCodeContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listWorkspaceCodeContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceCodeContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsCreateOrGetStartPendingUploadSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsCreateOrGetStartPendingUploadSample.ts index 7e417346fe1f..c598e9fb31e9 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsCreateOrGetStartPendingUploadSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsCreateOrGetStartPendingUploadSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Generate a storage location and credential for the client to upload a code asset to. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Generate a storage location and credential for the client to upload a code asset to. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/CodeVersion/createOrGetStartPendingUpload.json */ -async function createOrGetStartPendingUploadWorkspaceCodeVersion() { +async function createOrGetStartPendingUploadWorkspaceCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function createOrGetStartPendingUploadWorkspaceCodeVersion() { console.log(result); } -async function main() { +async function main(): Promise { createOrGetStartPendingUploadWorkspaceCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsCreateOrUpdateSample.ts index 15b55749fc26..c056524e185b 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/CodeVersion/createOrUpdate.json */ -async function createOrUpdateWorkspaceCodeVersion() { +async function createOrUpdateWorkspaceCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -56,7 +54,7 @@ async function createOrUpdateWorkspaceCodeVersion() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateWorkspaceCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsDeleteSample.ts index ea27376a5dbf..1c12b32bda14 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/CodeVersion/delete.json */ -async function deleteWorkspaceCodeVersion() { +async function deleteWorkspaceCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteWorkspaceCodeVersion() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspaceCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsGetSample.ts index 17aec3fc4c85..a1447064464a 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/CodeVersion/get.json */ -async function getWorkspaceCodeVersion() { +async function getWorkspaceCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getWorkspaceCodeVersion() { console.log(result); } -async function main() { +async function main(): Promise { getWorkspaceCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsListSample.ts index 8e019eb84fc8..2cab97280fcf 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List versions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List versions. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/CodeVersion/list.json */ -async function listWorkspaceCodeVersion() { +async function listWorkspaceCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function listWorkspaceCodeVersion() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsPublishSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsPublishSample.ts index ed0a9955566a..234fca41021a 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsPublishSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/codeVersionsPublishSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Publish version asset into registry. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Publish version asset into registry. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/CodeVersion/publish.json */ -async function publishWorkspaceCodeVersion() { +async function publishWorkspaceCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function publishWorkspaceCodeVersion() { console.log(result); } -async function main() { +async function main(): Promise { publishWorkspaceCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentContainersCreateOrUpdateSample.ts index 568515c69777..6c5a549ed6c4 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ComponentContainer/createOrUpdate.json */ -async function createOrUpdateWorkspaceComponentContainer() { +async function createOrUpdateWorkspaceComponentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function createOrUpdateWorkspaceComponentContainer() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateWorkspaceComponentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentContainersDeleteSample.ts index 1466d3a7a0c7..f4bd45ab74e6 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ComponentContainer/delete.json */ -async function deleteWorkspaceComponentContainer() { +async function deleteWorkspaceComponentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceComponentContainer() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspaceComponentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentContainersGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentContainersGetSample.ts index 7b9d5062f824..cb93488183c6 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentContainersGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentContainersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ComponentContainer/get.json */ -async function getWorkspaceComponentContainer() { +async function getWorkspaceComponentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceComponentContainer() { console.log(result); } -async function main() { +async function main(): Promise { getWorkspaceComponentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentContainersListSample.ts index 7c6b8d981393..fb8698d7b03c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentContainersListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List component containers. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List component containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ComponentContainer/list.json */ -async function listWorkspaceComponentContainer() { +async function listWorkspaceComponentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listWorkspaceComponentContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceComponentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentVersionsCreateOrUpdateSample.ts index 22e916dd77d1..59469a59a444 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ComponentVersion/createOrUpdate.json */ -async function createOrUpdateWorkspaceComponentVersion() { +async function createOrUpdateWorkspaceComponentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -56,7 +54,7 @@ async function createOrUpdateWorkspaceComponentVersion() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateWorkspaceComponentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentVersionsDeleteSample.ts index 9cc760ecb869..d0ba0e2da6c6 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ComponentVersion/delete.json */ -async function deleteWorkspaceComponentVersion() { +async function deleteWorkspaceComponentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteWorkspaceComponentVersion() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspaceComponentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentVersionsGetSample.ts index fbbf3c3ff463..6941571cda31 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ComponentVersion/get.json */ -async function getWorkspaceComponentVersion() { +async function getWorkspaceComponentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getWorkspaceComponentVersion() { console.log(result); } -async function main() { +async function main(): Promise { getWorkspaceComponentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentVersionsListSample.ts index 07cb7f05da5d..0298edab9d5b 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List component versions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List component versions. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ComponentVersion/list.json */ -async function listWorkspaceComponentVersion() { +async function listWorkspaceComponentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function listWorkspaceComponentVersion() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceComponentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentVersionsPublishSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentVersionsPublishSample.ts index 3f21d93b2be4..003b09f3a324 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentVersionsPublishSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/componentVersionsPublishSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Publish version asset into registry. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Publish version asset into registry. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ComponentVersion/publish.json */ -async function publishWorkspaceComponentVersion() { +async function publishWorkspaceComponentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function publishWorkspaceComponentVersion() { console.log(result); } -async function main() { +async function main(): Promise { publishWorkspaceComponentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeCreateOrUpdateSample.ts index baaf4270ae3b..257834d86826 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/createOrUpdate/KubernetesCompute.json */ -async function attachAKubernetesCompute() { +async function attachAKubernetesCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -73,7 +71,7 @@ async function attachAKubernetesCompute() { * @summary Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/createOrUpdate/BasicAmlCompute.json */ -async function createAAmlCompute() { +async function createAAmlCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -123,7 +121,7 @@ async function createAAmlCompute() { * @summary Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/createOrUpdate/BasicDataFactoryCompute.json */ -async function createADataFactoryCompute() { +async function createADataFactoryCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -155,7 +153,7 @@ async function createADataFactoryCompute() { * @summary Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/createOrUpdate/BasicAKSCompute.json */ -async function createAnAksCompute() { +async function createAnAksCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -187,7 +185,7 @@ async function createAnAksCompute() { * @summary Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/createOrUpdate/ComputeInstance.json */ -async function createAnComputeInstanceCompute() { +async function createAnComputeInstanceCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -263,7 +261,7 @@ async function createAnComputeInstanceCompute() { * @summary Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/createOrUpdate/ComputeInstanceWithSchedules.json */ -async function createAnComputeInstanceComputeWithSchedules() { +async function createAnComputeInstanceComputeWithSchedules(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -323,7 +321,7 @@ async function createAnComputeInstanceComputeWithSchedules() { * @summary Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/createOrUpdate/ComputeInstanceMinimal.json */ -async function createAnComputeInstanceComputeWithMinimalInputs() { +async function createAnComputeInstanceComputeWithMinimalInputs(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -358,7 +356,7 @@ async function createAnComputeInstanceComputeWithMinimalInputs() { * @summary Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/createOrUpdate/AmlCompute.json */ -async function updateAAmlCompute() { +async function updateAAmlCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -400,7 +398,7 @@ async function updateAAmlCompute() { * @summary Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/createOrUpdate/AKSCompute.json */ -async function updateAnAksCompute() { +async function updateAnAksCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -432,7 +430,7 @@ async function updateAnAksCompute() { console.log(result); } -async function main() { +async function main(): Promise { attachAKubernetesCompute(); createAAmlCompute(); createADataFactoryCompute(); diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeDeleteSample.ts index b54358e6584c..805065532644 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes specified Machine Learning compute. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes specified Machine Learning compute. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/delete.json */ -async function deleteCompute() { +async function deleteCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -43,7 +41,7 @@ async function deleteCompute() { console.log(result); } -async function main() { +async function main(): Promise { deleteCompute(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeGetSample.ts index 6dd040f49389..3534d5b538df 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use 'keys' nested resource to get them. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use 'keys' nested resource to get them. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/get/AKSCompute.json */ -async function getAAksCompute() { +async function getAAksCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -47,7 +45,7 @@ async function getAAksCompute() { * @summary Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use 'keys' nested resource to get them. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/get/AmlCompute.json */ -async function getAAmlCompute() { +async function getAAmlCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -74,7 +72,7 @@ async function getAAmlCompute() { * @summary Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use 'keys' nested resource to get them. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/get/KubernetesCompute.json */ -async function getAKubernetesCompute() { +async function getAKubernetesCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -101,7 +99,7 @@ async function getAKubernetesCompute() { * @summary Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use 'keys' nested resource to get them. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/get/ComputeInstance.json */ -async function getAnComputeInstance() { +async function getAnComputeInstance(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -122,7 +120,7 @@ async function getAnComputeInstance() { console.log(result); } -async function main() { +async function main(): Promise { getAAksCompute(); getAAmlCompute(); getAKubernetesCompute(); diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeListKeysSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeListKeysSample.ts index 33560ac9125f..be5b3ea54435 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeListKeysSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeListKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets secrets related to Machine Learning compute (storage keys, service credentials, etc). @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets secrets related to Machine Learning compute (storage keys, service credentials, etc). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/listKeys.json */ -async function listAksComputeKeys() { +async function listAksComputeKeys(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -41,7 +39,7 @@ async function listAksComputeKeys() { console.log(result); } -async function main() { +async function main(): Promise { listAksComputeKeys(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeListNodesSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeListNodesSample.ts index 23ad3137a22f..083811543c40 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeListNodesSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeListNodesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the details (e.g IP address, port etc) of all the compute nodes in the compute. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get the details (e.g IP address, port etc) of all the compute nodes in the compute. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/listNodes.json */ -async function getComputeNodesInformationForACompute() { +async function getComputeNodesInformationForACompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -44,7 +42,7 @@ async function getComputeNodesInformationForACompute() { console.log(resArray); } -async function main() { +async function main(): Promise { getComputeNodesInformationForACompute(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeListSample.ts index de7761963cb1..660b589f77de 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets computes in specified workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets computes in specified workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/list.json */ -async function getComputes() { +async function getComputes(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -42,7 +40,7 @@ async function getComputes() { console.log(resArray); } -async function main() { +async function main(): Promise { getComputes(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeRestartSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeRestartSample.ts index a5e194ff3ed9..c0e61a5fcc1c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeRestartSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeRestartSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Posts a restart action to a compute instance @@ -20,7 +18,7 @@ dotenv.config(); * @summary Posts a restart action to a compute instance * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/restart.json */ -async function restartComputeInstanceCompute() { +async function restartComputeInstanceCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -41,7 +39,7 @@ async function restartComputeInstanceCompute() { console.log(result); } -async function main() { +async function main(): Promise { restartComputeInstanceCompute(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeStartSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeStartSample.ts index 08ee7f6de91c..c22b93e05587 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeStartSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeStartSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Posts a start action to a compute instance @@ -20,7 +18,7 @@ dotenv.config(); * @summary Posts a start action to a compute instance * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/start.json */ -async function startComputeInstanceCompute() { +async function startComputeInstanceCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -41,7 +39,7 @@ async function startComputeInstanceCompute() { console.log(result); } -async function main() { +async function main(): Promise { startComputeInstanceCompute(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeStopSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeStopSample.ts index a97dc238d115..0f248ab93c15 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeStopSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeStopSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Posts a stop action to a compute instance @@ -20,7 +18,7 @@ dotenv.config(); * @summary Posts a stop action to a compute instance * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/stop.json */ -async function stopComputeInstanceCompute() { +async function stopComputeInstanceCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -41,7 +39,7 @@ async function stopComputeInstanceCompute() { console.log(result); } -async function main() { +async function main(): Promise { stopComputeInstanceCompute(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeUpdateSample.ts index d475110dccd0..9a5067da09df 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/computeUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Compute/patch.json */ -async function updateAAmlCompute() { +async function updateAAmlCompute(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -54,7 +52,7 @@ async function updateAAmlCompute() { console.log(result); } -async function main() { +async function main(): Promise { updateAAmlCompute(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataContainersCreateOrUpdateSample.ts index 3afb2ab5d3c1..34a1fbed5177 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/DataContainer/createOrUpdate.json */ -async function createOrUpdateWorkspaceDataContainer() { +async function createOrUpdateWorkspaceDataContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -53,7 +51,7 @@ async function createOrUpdateWorkspaceDataContainer() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateWorkspaceDataContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataContainersDeleteSample.ts index 37698ffcf662..aa1f6507186d 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/DataContainer/delete.json */ -async function deleteWorkspaceDataContainer() { +async function deleteWorkspaceDataContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceDataContainer() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspaceDataContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataContainersGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataContainersGetSample.ts index 30d4017af1a6..d32fb6d52cc5 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataContainersGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataContainersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/DataContainer/get.json */ -async function getWorkspaceDataContainer() { +async function getWorkspaceDataContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceDataContainer() { console.log(result); } -async function main() { +async function main(): Promise { getWorkspaceDataContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataContainersListSample.ts index 713680cba38e..c2f10283c40e 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataContainersListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List data containers. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List data containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/DataContainer/list.json */ -async function listWorkspaceDataContainer() { +async function listWorkspaceDataContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listWorkspaceDataContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceDataContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataVersionsCreateOrUpdateSample.ts index 29c7512158ed..6695b62241c2 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/DataVersionBase/createOrUpdate.json */ -async function createOrUpdateWorkspaceDataVersionBase() { +async function createOrUpdateWorkspaceDataVersionBase(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -57,7 +55,7 @@ async function createOrUpdateWorkspaceDataVersionBase() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateWorkspaceDataVersionBase(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataVersionsDeleteSample.ts index c7ade717d109..e977679edcd0 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/DataVersionBase/delete.json */ -async function deleteWorkspaceDataVersionBase() { +async function deleteWorkspaceDataVersionBase(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteWorkspaceDataVersionBase() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspaceDataVersionBase(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataVersionsGetSample.ts index e4f9905ad12e..1a6d2b0541e0 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/DataVersionBase/get.json */ -async function getWorkspaceDataVersionBase() { +async function getWorkspaceDataVersionBase(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getWorkspaceDataVersionBase() { console.log(result); } -async function main() { +async function main(): Promise { getWorkspaceDataVersionBase(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataVersionsListSample.ts index d1ea7cd4ddd9..54d7863df414 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List data versions in the data container @@ -23,7 +21,7 @@ dotenv.config(); * @summary List data versions in the data container * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/DataVersionBase/list.json */ -async function listWorkspaceDataVersionBase() { +async function listWorkspaceDataVersionBase(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function listWorkspaceDataVersionBase() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceDataVersionBase(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataVersionsPublishSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataVersionsPublishSample.ts index 0ae266b71176..cef1d5783cd4 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataVersionsPublishSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/dataVersionsPublishSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Publish version asset into registry. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Publish version asset into registry. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/DataVersionBase/publish.json */ -async function publishWorkspaceDataVersionBase() { +async function publishWorkspaceDataVersionBase(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function publishWorkspaceDataVersionBase() { console.log(result); } -async function main() { +async function main(): Promise { publishWorkspaceDataVersionBase(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/datastoresCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/datastoresCreateOrUpdateSample.ts index 4afdbd5f7dae..167e739f8262 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/datastoresCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/datastoresCreateOrUpdateSample.ts @@ -14,9 +14,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update datastore. @@ -24,7 +22,7 @@ dotenv.config(); * @summary Create or update datastore. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json */ -async function createOrUpdateDatastoreAzureDataLakeGen1WOrServicePrincipal() { +async function createOrUpdateDatastoreAzureDataLakeGen1WOrServicePrincipal(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -72,7 +70,7 @@ async function createOrUpdateDatastoreAzureDataLakeGen1WOrServicePrincipal() { * @summary Create or update datastore. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json */ -async function createOrUpdateDatastoreAzureDataLakeGen2WOrServicePrincipal() { +async function createOrUpdateDatastoreAzureDataLakeGen2WOrServicePrincipal(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -123,7 +121,7 @@ async function createOrUpdateDatastoreAzureDataLakeGen2WOrServicePrincipal() { * @summary Create or update datastore. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json */ -async function createOrUpdateDatastoreAzureFileStoreWOrAccountKey() { +async function createOrUpdateDatastoreAzureFileStoreWOrAccountKey(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -170,7 +168,7 @@ async function createOrUpdateDatastoreAzureFileStoreWOrAccountKey() { * @summary Create or update datastore. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json */ -async function createOrUpdateDatastoreAzureBlobWOrAccountKey() { +async function createOrUpdateDatastoreAzureBlobWOrAccountKey(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -211,7 +209,7 @@ async function createOrUpdateDatastoreAzureBlobWOrAccountKey() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateDatastoreAzureDataLakeGen1WOrServicePrincipal(); createOrUpdateDatastoreAzureDataLakeGen2WOrServicePrincipal(); createOrUpdateDatastoreAzureFileStoreWOrAccountKey(); diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/datastoresDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/datastoresDeleteSample.ts index 0548afa63e38..34d552d4932b 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/datastoresDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/datastoresDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete datastore. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete datastore. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Datastore/delete.json */ -async function deleteDatastore() { +async function deleteDatastore(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteDatastore() { console.log(result); } -async function main() { +async function main(): Promise { deleteDatastore(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/datastoresGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/datastoresGetSample.ts index fe57664d7508..066ceadece79 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/datastoresGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/datastoresGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get datastore. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get datastore. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Datastore/get.json */ -async function getDatastore() { +async function getDatastore(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getDatastore() { console.log(result); } -async function main() { +async function main(): Promise { getDatastore(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/datastoresListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/datastoresListSample.ts index b74b90800d79..de646a030800 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/datastoresListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/datastoresListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List datastores. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List datastores. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Datastore/list.json */ -async function listDatastores() { +async function listDatastores(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -60,7 +58,7 @@ async function listDatastores() { console.log(resArray); } -async function main() { +async function main(): Promise { listDatastores(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/datastoresListSecretsSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/datastoresListSecretsSample.ts index 3db1523adaf5..5ec452ae68cf 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/datastoresListSecretsSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/datastoresListSecretsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get datastore secrets. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get datastore secrets. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Datastore/listSecrets.json */ -async function getDatastoreSecrets() { +async function getDatastoreSecrets(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getDatastoreSecrets() { console.log(result); } -async function main() { +async function main(): Promise { getDatastoreSecrets(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentContainersCreateOrUpdateSample.ts index 09c21122d21a..aefde2decabe 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/EnvironmentContainer/createOrUpdate.json */ -async function createOrUpdateWorkspaceEnvironmentContainer() { +async function createOrUpdateWorkspaceEnvironmentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -60,7 +58,7 @@ async function createOrUpdateWorkspaceEnvironmentContainer() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateWorkspaceEnvironmentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentContainersDeleteSample.ts index 113f98f4926b..bec182c0e780 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/EnvironmentContainer/delete.json */ -async function deleteWorkspaceEnvironmentContainer() { +async function deleteWorkspaceEnvironmentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceEnvironmentContainer() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspaceEnvironmentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentContainersGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentContainersGetSample.ts index fc5c23f1b57d..63138bb46341 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentContainersGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentContainersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/EnvironmentContainer/get.json */ -async function getWorkspaceEnvironmentContainer() { +async function getWorkspaceEnvironmentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceEnvironmentContainer() { console.log(result); } -async function main() { +async function main(): Promise { getWorkspaceEnvironmentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentContainersListSample.ts index b25cb8665d4d..c0050e80b15a 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentContainersListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List environment containers. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List environment containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/EnvironmentContainer/list.json */ -async function listWorkspaceEnvironmentContainer() { +async function listWorkspaceEnvironmentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listWorkspaceEnvironmentContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceEnvironmentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentVersionsCreateOrUpdateSample.ts index ff0eb69d30e8..fa1cfc0d777b 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates an EnvironmentVersion. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or updates an EnvironmentVersion. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/EnvironmentVersion/createOrUpdate.json */ -async function createOrUpdateWorkspaceEnvironmentVersion() { +async function createOrUpdateWorkspaceEnvironmentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -67,7 +65,7 @@ async function createOrUpdateWorkspaceEnvironmentVersion() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateWorkspaceEnvironmentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentVersionsDeleteSample.ts index d6da4cf26c54..0568f700d8cb 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/EnvironmentVersion/delete.json */ -async function deleteWorkspaceEnvironmentVersion() { +async function deleteWorkspaceEnvironmentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteWorkspaceEnvironmentVersion() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspaceEnvironmentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentVersionsGetSample.ts index f97afce693e2..ec9190910d7c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/EnvironmentVersion/get.json */ -async function getWorkspaceEnvironmentVersion() { +async function getWorkspaceEnvironmentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getWorkspaceEnvironmentVersion() { console.log(result); } -async function main() { +async function main(): Promise { getWorkspaceEnvironmentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentVersionsListSample.ts index 5a0e2f143407..c1ebe08a0287 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List versions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List versions. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/EnvironmentVersion/list.json */ -async function listWorkspaceEnvironmentVersion() { +async function listWorkspaceEnvironmentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function listWorkspaceEnvironmentVersion() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceEnvironmentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentVersionsPublishSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentVersionsPublishSample.ts index 80130a5b99e1..f8c187ed1479 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentVersionsPublishSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/environmentVersionsPublishSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Publish version asset into registry. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Publish version asset into registry. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/EnvironmentVersion/publish.json */ -async function publishWorkspaceEnvironmentVersion() { +async function publishWorkspaceEnvironmentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function publishWorkspaceEnvironmentVersion() { console.log(result); } -async function main() { +async function main(): Promise { publishWorkspaceEnvironmentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresGetSample.ts index 024bb5ea8632..795d4f820388 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get feature. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get feature. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Feature/get.json */ -async function getFeature() { +async function getFeature(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -45,7 +43,7 @@ async function getFeature() { console.log(result); } -async function main() { +async function main(): Promise { getFeature(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresListSample.ts index 3d5e4217ad61..234c2c0589b2 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List Features. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List Features. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Feature/list.json */ -async function listFeature() { +async function listFeature(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -58,7 +56,7 @@ async function listFeature() { console.log(resArray); } -async function main() { +async function main(): Promise { listFeature(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetContainersCreateOrUpdateSample.ts index bcfe8dd122fb..01252c242d1c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturesetContainer/createOrUpdate.json */ -async function createOrUpdateWorkspaceFeaturesetContainer() { +async function createOrUpdateWorkspaceFeaturesetContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -53,7 +51,7 @@ async function createOrUpdateWorkspaceFeaturesetContainer() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateWorkspaceFeaturesetContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetContainersDeleteSample.ts index aac914e911ca..2c6c88b33a68 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturesetContainer/delete.json */ -async function deleteWorkspaceFeaturesetContainer() { +async function deleteWorkspaceFeaturesetContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceFeaturesetContainer() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspaceFeaturesetContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetContainersGetEntitySample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetContainersGetEntitySample.ts index 18fb2be76bfa..3b9827158b8c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetContainersGetEntitySample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetContainersGetEntitySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturesetContainer/getEntity.json */ -async function getEntityWorkspaceFeaturesetContainer() { +async function getEntityWorkspaceFeaturesetContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getEntityWorkspaceFeaturesetContainer() { console.log(result); } -async function main() { +async function main(): Promise { getEntityWorkspaceFeaturesetContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetContainersListSample.ts index b7cefcc84530..43591dffbd29 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetContainersListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List featurestore entity containers. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List featurestore entity containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturesetContainer/list.json */ -async function listWorkspaceFeaturesetContainer() { +async function listWorkspaceFeaturesetContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function listWorkspaceFeaturesetContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceFeaturesetContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetVersionsBackfillSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetVersionsBackfillSample.ts index d33dfc3761c4..3142ae3c4c99 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetVersionsBackfillSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetVersionsBackfillSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Backfill. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Backfill. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturesetVersion/backfill.json */ -async function backfillWorkspaceFeaturesetVersion() { +async function backfillWorkspaceFeaturesetVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -60,7 +58,7 @@ async function backfillWorkspaceFeaturesetVersion() { console.log(result); } -async function main() { +async function main(): Promise { backfillWorkspaceFeaturesetVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetVersionsCreateOrUpdateSample.ts index 507dd7b484ca..6cf8cf616ff7 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturesetVersion/createOrUpdate.json */ -async function createOrUpdateWorkspaceFeaturesetVersion() { +async function createOrUpdateWorkspaceFeaturesetVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -79,7 +77,7 @@ async function createOrUpdateWorkspaceFeaturesetVersion() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateWorkspaceFeaturesetVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetVersionsDeleteSample.ts index ae2b44113ab5..d7c9e8f2b558 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturesetVersion/delete.json */ -async function deleteWorkspaceFeaturesetVersion() { +async function deleteWorkspaceFeaturesetVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteWorkspaceFeaturesetVersion() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspaceFeaturesetVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetVersionsGetSample.ts index f1b700c3abed..d83b24e92fab 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturesetVersion/get.json */ -async function getWorkspaceFeaturesetVersion() { +async function getWorkspaceFeaturesetVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getWorkspaceFeaturesetVersion() { console.log(result); } -async function main() { +async function main(): Promise { getWorkspaceFeaturesetVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetVersionsListSample.ts index eed7fe9dfe09..2f25e4743b66 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featuresetVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List versions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List versions. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturesetVersion/list.json */ -async function listWorkspaceFeaturesetVersion() { +async function listWorkspaceFeaturesetVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function listWorkspaceFeaturesetVersion() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceFeaturesetVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityContainersCreateOrUpdateSample.ts index 630bd80608bd..0d790436bb02 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturestoreEntityContainer/createOrUpdate.json */ -async function createOrUpdateWorkspaceFeaturestoreEntityContainer() { +async function createOrUpdateWorkspaceFeaturestoreEntityContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -54,7 +52,7 @@ async function createOrUpdateWorkspaceFeaturestoreEntityContainer() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateWorkspaceFeaturestoreEntityContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityContainersDeleteSample.ts index dc48a1cec76d..ede57a840baf 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturestoreEntityContainer/delete.json */ -async function deleteWorkspaceFeaturestoreEntityContainer() { +async function deleteWorkspaceFeaturestoreEntityContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceFeaturestoreEntityContainer() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspaceFeaturestoreEntityContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityContainersGetEntitySample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityContainersGetEntitySample.ts index 110ce6910074..d72b0854795c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityContainersGetEntitySample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityContainersGetEntitySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturestoreEntityContainer/getEntity.json */ -async function getEntityWorkspaceFeaturestoreEntityContainer() { +async function getEntityWorkspaceFeaturestoreEntityContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getEntityWorkspaceFeaturestoreEntityContainer() { console.log(result); } -async function main() { +async function main(): Promise { getEntityWorkspaceFeaturestoreEntityContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityContainersListSample.ts index 31201ac40353..a0a25db60c67 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityContainersListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List featurestore entity containers. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List featurestore entity containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturestoreEntityContainer/list.json */ -async function listWorkspaceFeaturestoreEntityContainer() { +async function listWorkspaceFeaturestoreEntityContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function listWorkspaceFeaturestoreEntityContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceFeaturestoreEntityContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityVersionsCreateOrUpdateSample.ts index 53d95e50571c..6b44ff7d45b0 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturestoreEntityVersion/createOrUpdate.json */ -async function createOrUpdateWorkspaceFeaturestoreEntityVersion() { +async function createOrUpdateWorkspaceFeaturestoreEntityVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -58,7 +56,7 @@ async function createOrUpdateWorkspaceFeaturestoreEntityVersion() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateWorkspaceFeaturestoreEntityVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityVersionsDeleteSample.ts index 27d932c612de..8c82018aedfa 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturestoreEntityVersion/delete.json */ -async function deleteWorkspaceFeaturestoreEntityVersion() { +async function deleteWorkspaceFeaturestoreEntityVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteWorkspaceFeaturestoreEntityVersion() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspaceFeaturestoreEntityVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityVersionsGetSample.ts index a4a1b3f5738b..71ac9ada34dd 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturestoreEntityVersion/get.json */ -async function getWorkspaceFeaturestoreEntityVersion() { +async function getWorkspaceFeaturestoreEntityVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getWorkspaceFeaturestoreEntityVersion() { console.log(result); } -async function main() { +async function main(): Promise { getWorkspaceFeaturestoreEntityVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityVersionsListSample.ts index c66411138bde..0f5f64011cc0 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/featurestoreEntityVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List versions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List versions. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/FeaturestoreEntityVersion/list.json */ -async function listWorkspaceFeaturestoreEntityVersion() { +async function listWorkspaceFeaturestoreEntityVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -54,7 +52,7 @@ async function listWorkspaceFeaturestoreEntityVersion() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceFeaturestoreEntityVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/jobsCancelSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/jobsCancelSample.ts index f5df07d7d46e..5da8720bf4b4 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/jobsCancelSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/jobsCancelSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Cancels a Job (asynchronous). @@ -20,7 +18,7 @@ dotenv.config(); * @summary Cancels a Job (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/cancel.json */ -async function cancelJob() { +async function cancelJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function cancelJob() { console.log(result); } -async function main() { +async function main(): Promise { cancelJob(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/jobsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/jobsCreateOrUpdateSample.ts index 5e213ae1b849..bb5b2746345c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/jobsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/jobsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates and executes a Job. @@ -25,7 +23,7 @@ For update case, the Tags in the definition passed in will replace Tags in the e For update case, the Tags in the definition passed in will replace Tags in the existing job. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/AutoMLJob/createOrUpdate.json */ -async function createOrUpdateAutoMlJob() { +async function createOrUpdateAutoMlJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -101,7 +99,7 @@ For update case, the Tags in the definition passed in will replace Tags in the e For update case, the Tags in the definition passed in will replace Tags in the existing job. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/CommandJob/createOrUpdate.json */ -async function createOrUpdateCommandJob() { +async function createOrUpdateCommandJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -183,7 +181,7 @@ For update case, the Tags in the definition passed in will replace Tags in the e For update case, the Tags in the definition passed in will replace Tags in the existing job. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/PipelineJob/createOrUpdate.json */ -async function createOrUpdatePipelineJob() { +async function createOrUpdatePipelineJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -248,7 +246,7 @@ For update case, the Tags in the definition passed in will replace Tags in the e For update case, the Tags in the definition passed in will replace Tags in the existing job. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/SweepJob/createOrUpdate.json */ -async function createOrUpdateSweepJob() { +async function createOrUpdateSweepJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -317,7 +315,7 @@ async function createOrUpdateSweepJob() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateAutoMlJob(); createOrUpdateCommandJob(); createOrUpdatePipelineJob(); diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/jobsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/jobsDeleteSample.ts index 63700bad5d71..1b705137093a 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/jobsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/jobsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a Job (asynchronous). @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes a Job (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/delete.json */ -async function deleteJob() { +async function deleteJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function deleteJob() { console.log(result); } -async function main() { +async function main(): Promise { deleteJob(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/jobsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/jobsGetSample.ts index ae5b69523876..20de4c1b847b 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/jobsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/jobsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a Job by name/id. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a Job by name/id. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/AutoMLJob/get.json */ -async function getAutoMlJob() { +async function getAutoMlJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getAutoMlJob() { * @summary Gets a Job by name/id. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/CommandJob/get.json */ -async function getCommandJob() { +async function getCommandJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -66,7 +64,7 @@ async function getCommandJob() { * @summary Gets a Job by name/id. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/PipelineJob/get.json */ -async function getPipelineJob() { +async function getPipelineJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -89,7 +87,7 @@ async function getPipelineJob() { * @summary Gets a Job by name/id. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/SweepJob/get.json */ -async function getSweepJob() { +async function getSweepJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -106,7 +104,7 @@ async function getSweepJob() { console.log(result); } -async function main() { +async function main(): Promise { getAutoMlJob(); getCommandJob(); getPipelineJob(); diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/jobsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/jobsListSample.ts index acf74d48ac4c..c0c8685af56e 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/jobsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/jobsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists Jobs in the workspace. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Lists Jobs in the workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/AutoMLJob/list.json */ -async function listAutoMlJob() { +async function listAutoMlJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -48,7 +46,7 @@ async function listAutoMlJob() { * @summary Lists Jobs in the workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/CommandJob/list.json */ -async function listCommandJob() { +async function listCommandJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -80,7 +78,7 @@ async function listCommandJob() { * @summary Lists Jobs in the workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/PipelineJob/list.json */ -async function listPipelineJob() { +async function listPipelineJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -112,7 +110,7 @@ async function listPipelineJob() { * @summary Lists Jobs in the workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Job/SweepJob/list.json */ -async function listSweepJob() { +async function listSweepJob(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -138,7 +136,7 @@ async function listSweepJob() { console.log(resArray); } -async function main() { +async function main(): Promise { listAutoMlJob(); listCommandJob(); listPipelineJob(); diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/managedNetworkProvisionsProvisionManagedNetworkSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/managedNetworkProvisionsProvisionManagedNetworkSample.ts index c68d0c2d8569..d1ed3a5d6f4a 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/managedNetworkProvisionsProvisionManagedNetworkSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/managedNetworkProvisionsProvisionManagedNetworkSample.ts @@ -14,9 +14,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Provisions the managed network of a machine learning workspace. @@ -24,7 +22,7 @@ dotenv.config(); * @summary Provisions the managed network of a machine learning workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/ManagedNetwork/provision.json */ -async function provisionManagedNetwork() { +async function provisionManagedNetwork(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -48,7 +46,7 @@ async function provisionManagedNetwork() { console.log(result); } -async function main() { +async function main(): Promise { provisionManagedNetwork(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/managedNetworkSettingsRuleCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/managedNetworkSettingsRuleCreateOrUpdateSample.ts index 0d9b189799cf..2832a9ec239d 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/managedNetworkSettingsRuleCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/managedNetworkSettingsRuleCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates an outbound rule in the managed network of a machine learning workspace. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or updates an outbound rule in the managed network of a machine learning workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/ManagedNetwork/createOrUpdateRule.json */ -async function createOrUpdateManagedNetworkSettingsRule() { +async function createOrUpdateManagedNetworkSettingsRule(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -54,7 +52,7 @@ async function createOrUpdateManagedNetworkSettingsRule() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateManagedNetworkSettingsRule(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/managedNetworkSettingsRuleDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/managedNetworkSettingsRuleDeleteSample.ts index 352e1fc5f651..cfa95f14faad 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/managedNetworkSettingsRuleDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/managedNetworkSettingsRuleDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes an outbound rule from the managed network of a machine learning workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes an outbound rule from the managed network of a machine learning workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/ManagedNetwork/deleteRule.json */ -async function deleteManagedNetworkSettingsRule() { +async function deleteManagedNetworkSettingsRule(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteManagedNetworkSettingsRule() { console.log(result); } -async function main() { +async function main(): Promise { deleteManagedNetworkSettingsRule(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/managedNetworkSettingsRuleGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/managedNetworkSettingsRuleGetSample.ts index 8ecf848bd80d..af8fd48df092 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/managedNetworkSettingsRuleGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/managedNetworkSettingsRuleGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets an outbound rule from the managed network of a machine learning workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets an outbound rule from the managed network of a machine learning workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/ManagedNetwork/getRule.json */ -async function getManagedNetworkSettingsRule() { +async function getManagedNetworkSettingsRule(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getManagedNetworkSettingsRule() { console.log(result); } -async function main() { +async function main(): Promise { getManagedNetworkSettingsRule(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/managedNetworkSettingsRuleListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/managedNetworkSettingsRuleListSample.ts index 6afab3f829f0..fad012ab18e6 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/managedNetworkSettingsRuleListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/managedNetworkSettingsRuleListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the managed network outbound rules for a machine learning workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists the managed network outbound rules for a machine learning workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/ManagedNetwork/listRule.json */ -async function listManagedNetworkSettingsRule() { +async function listManagedNetworkSettingsRule(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listManagedNetworkSettingsRule() { console.log(resArray); } -async function main() { +async function main(): Promise { listManagedNetworkSettingsRule(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/marketplaceSubscriptionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/marketplaceSubscriptionsCreateOrUpdateSample.ts index 77465ff8fb03..a1c368d829ac 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/marketplaceSubscriptionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/marketplaceSubscriptionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update Marketplace Subscription (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update Marketplace Subscription (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/MarketplaceSubscription/createOrUpdate.json */ -async function createOrUpdateWorkspaceMarketplaceSubscription() { +async function createOrUpdateWorkspaceMarketplaceSubscription(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -47,7 +45,7 @@ async function createOrUpdateWorkspaceMarketplaceSubscription() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateWorkspaceMarketplaceSubscription(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/marketplaceSubscriptionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/marketplaceSubscriptionsDeleteSample.ts index 3b2d4c663df7..5aadd73192df 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/marketplaceSubscriptionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/marketplaceSubscriptionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete Marketplace Subscription (asynchronous). @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete Marketplace Subscription (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/MarketplaceSubscription/delete.json */ -async function deleteWorkspaceMarketplaceSubscription() { +async function deleteWorkspaceMarketplaceSubscription(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceMarketplaceSubscription() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspaceMarketplaceSubscription(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/marketplaceSubscriptionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/marketplaceSubscriptionsGetSample.ts index 9b1d32d130bc..e9ba6744485d 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/marketplaceSubscriptionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/marketplaceSubscriptionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/MarketplaceSubscription/get.json */ -async function getWorkspaceMarketplaceSubscription() { +async function getWorkspaceMarketplaceSubscription(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceMarketplaceSubscription() { console.log(result); } -async function main() { +async function main(): Promise { getWorkspaceMarketplaceSubscription(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/marketplaceSubscriptionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/marketplaceSubscriptionsListSample.ts index c831c051d2d1..6d1794752fe4 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/marketplaceSubscriptionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/marketplaceSubscriptionsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List containers. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/MarketplaceSubscription/list.json */ -async function listWorkspaceMarketplaceSubscription() { +async function listWorkspaceMarketplaceSubscription(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listWorkspaceMarketplaceSubscription() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceMarketplaceSubscription(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelContainersCreateOrUpdateSample.ts index 09577ab3aade..7c837000c58f 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ModelContainer/createOrUpdate.json */ -async function createOrUpdateWorkspaceModelContainer() { +async function createOrUpdateWorkspaceModelContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function createOrUpdateWorkspaceModelContainer() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateWorkspaceModelContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelContainersDeleteSample.ts index 6e87462a9d88..b3de213c3b6c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ModelContainer/delete.json */ -async function deleteWorkspaceModelContainer() { +async function deleteWorkspaceModelContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceModelContainer() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspaceModelContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelContainersGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelContainersGetSample.ts index e2cc3d214617..aa6fa3e7e767 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelContainersGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelContainersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ModelContainer/get.json */ -async function getWorkspaceModelContainer() { +async function getWorkspaceModelContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceModelContainer() { console.log(result); } -async function main() { +async function main(): Promise { getWorkspaceModelContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelContainersListSample.ts index 24f97f9d3673..540e7cc57549 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelContainersListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List model containers. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List model containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ModelContainer/list.json */ -async function listWorkspaceModelContainer() { +async function listWorkspaceModelContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listWorkspaceModelContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceModelContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelVersionsCreateOrUpdateSample.ts index f00b050c6477..ba14d3641b61 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ModelVersion/createOrUpdate.json */ -async function createOrUpdateWorkspaceModelVersion() { +async function createOrUpdateWorkspaceModelVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -58,7 +56,7 @@ async function createOrUpdateWorkspaceModelVersion() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateWorkspaceModelVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelVersionsDeleteSample.ts index ccdd98f82880..d1e873f5512c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ModelVersion/delete.json */ -async function deleteWorkspaceModelVersion() { +async function deleteWorkspaceModelVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteWorkspaceModelVersion() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspaceModelVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelVersionsGetSample.ts index a692b11a51b7..74f67fbea574 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ModelVersion/get.json */ -async function getWorkspaceModelVersion() { +async function getWorkspaceModelVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getWorkspaceModelVersion() { console.log(result); } -async function main() { +async function main(): Promise { getWorkspaceModelVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelVersionsListSample.ts index aad5166c59a9..cde786a8e732 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List model versions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List model versions. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ModelVersion/list.json */ -async function listWorkspaceModelVersion() { +async function listWorkspaceModelVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -64,7 +62,7 @@ async function listWorkspaceModelVersion() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceModelVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelVersionsPublishSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelVersionsPublishSample.ts index 97fad1c3c443..3f0f9ba8046f 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelVersionsPublishSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/modelVersionsPublishSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Publish version asset into registry. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Publish version asset into registry. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ModelVersion/publish.json */ -async function publishWorkspaceModelVersion() { +async function publishWorkspaceModelVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function publishWorkspaceModelVersion() { console.log(result); } -async function main() { +async function main(): Promise { publishWorkspaceModelVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsCreateOrUpdateSample.ts index 32a9b3842c06..ae4d734cfdc7 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update Inference Endpoint Deployment (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update Inference Endpoint Deployment (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/KubernetesOnlineDeployment/createOrUpdate.json */ -async function createOrUpdateKubernetesOnlineDeployment() { +async function createOrUpdateKubernetesOnlineDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -98,7 +96,7 @@ async function createOrUpdateKubernetesOnlineDeployment() { * @summary Create or update Inference Endpoint Deployment (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/ManagedOnlineDeployment/createOrUpdate.json */ -async function createOrUpdateManagedOnlineDeployment() { +async function createOrUpdateManagedOnlineDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -170,7 +168,7 @@ async function createOrUpdateManagedOnlineDeployment() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateKubernetesOnlineDeployment(); createOrUpdateManagedOnlineDeployment(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsDeleteSample.ts index b09838dad2f2..c140012994f4 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete Inference Endpoint Deployment (asynchronous). @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete Inference Endpoint Deployment (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/OnlineDeployment/delete.json */ -async function deleteWorkspaceOnlineDeployment() { +async function deleteWorkspaceOnlineDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteWorkspaceOnlineDeployment() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspaceOnlineDeployment(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsGetLogsSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsGetLogsSample.ts index 05e4167317ad..15216d30bdbe 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsGetLogsSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsGetLogsSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Polls an Endpoint operation. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Polls an Endpoint operation. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/getLogs.json */ -async function getOnlineDeploymentLogs() { +async function getOnlineDeploymentLogs(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function getOnlineDeploymentLogs() { console.log(result); } -async function main() { +async function main(): Promise { getOnlineDeploymentLogs(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsGetSample.ts index baeedac07f0d..411b547967e7 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get Inference Deployment Deployment. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get Inference Deployment Deployment. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json */ -async function getKubernetesOnlineDeployment() { +async function getKubernetesOnlineDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -49,7 +47,7 @@ async function getKubernetesOnlineDeployment() { * @summary Get Inference Deployment Deployment. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/ManagedOnlineDeployment/get.json */ -async function getManagedOnlineDeployment() { +async function getManagedOnlineDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -72,7 +70,7 @@ async function getManagedOnlineDeployment() { console.log(result); } -async function main() { +async function main(): Promise { getKubernetesOnlineDeployment(); getManagedOnlineDeployment(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsListSample.ts index 085a8631abb8..2b12fee9eebf 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List Inference Endpoint Deployments. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List Inference Endpoint Deployments. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/list.json */ -async function listOnlineDeployments() { +async function listOnlineDeployments(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function listOnlineDeployments() { console.log(resArray); } -async function main() { +async function main(): Promise { listOnlineDeployments(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsListSkusSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsListSkusSample.ts index 58f9701ecf36..26dff8a425fe 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsListSkusSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsListSkusSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List Inference Endpoint Deployment Skus. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List Inference Endpoint Deployment Skus. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/KubernetesOnlineDeployment/listSkus.json */ -async function listKubernetesOnlineDeploymentSkus() { +async function listKubernetesOnlineDeploymentSkus(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -58,7 +56,7 @@ async function listKubernetesOnlineDeploymentSkus() { * @summary List Inference Endpoint Deployment Skus. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/ManagedOnlineDeployment/listSkus.json */ -async function listManagedOnlineDeploymentSkus() { +async function listManagedOnlineDeploymentSkus(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -87,7 +85,7 @@ async function listManagedOnlineDeploymentSkus() { console.log(resArray); } -async function main() { +async function main(): Promise { listKubernetesOnlineDeploymentSkus(); listManagedOnlineDeploymentSkus(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsUpdateSample.ts index f0c2f6d995a4..d1b6666263ed 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineDeploymentsUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update Online Deployment (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update Online Deployment (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/KubernetesOnlineDeployment/update.json */ -async function updateKubernetesOnlineDeployment() { +async function updateKubernetesOnlineDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -63,7 +61,7 @@ async function updateKubernetesOnlineDeployment() { * @summary Update Online Deployment (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/ManagedOnlineDeployment/update.json */ -async function updateManagedOnlineDeployment() { +async function updateManagedOnlineDeployment(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -97,7 +95,7 @@ async function updateManagedOnlineDeployment() { console.log(result); } -async function main() { +async function main(): Promise { updateKubernetesOnlineDeployment(); updateManagedOnlineDeployment(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsCreateOrUpdateSample.ts index eef2b7b2e459..4f635f89701d 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update Online Endpoint (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update Online Endpoint (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/OnlineEndpoint/createOrUpdate.json */ -async function createOrUpdateWorkspaceOnlineEndpoint() { +async function createOrUpdateWorkspaceOnlineEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -68,7 +66,7 @@ async function createOrUpdateWorkspaceOnlineEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateWorkspaceOnlineEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsDeleteSample.ts index ef8c53229db8..7f58666955d0 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete Online Endpoint (asynchronous). @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete Online Endpoint (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/OnlineEndpoint/delete.json */ -async function deleteWorkspaceOnlineEndpoint() { +async function deleteWorkspaceOnlineEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceOnlineEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspaceOnlineEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsGetSample.ts index c0edcf9e481a..757df62661f4 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get Online Endpoint. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get Online Endpoint. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/OnlineEndpoint/get.json */ -async function getWorkspaceOnlineEndpoint() { +async function getWorkspaceOnlineEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceOnlineEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { getWorkspaceOnlineEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsGetTokenSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsGetTokenSample.ts index a7860aebf82b..3b83ed2a1126 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsGetTokenSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsGetTokenSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Retrieve a valid AML token for an Endpoint using AMLToken-based authentication. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Retrieve a valid AML token for an Endpoint using AMLToken-based authentication. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/OnlineEndpoint/getToken.json */ -async function getTokenWorkspaceOnlineEndpoint() { +async function getTokenWorkspaceOnlineEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getTokenWorkspaceOnlineEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { getTokenWorkspaceOnlineEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsListKeysSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsListKeysSample.ts index bfd30d041fec..d87e017b9f31 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsListKeysSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsListKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List EndpointAuthKeys for an Endpoint using Key-based authentication. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List EndpointAuthKeys for an Endpoint using Key-based authentication. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/OnlineEndpoint/listKeys.json */ -async function listKeysWorkspaceOnlineEndpoint() { +async function listKeysWorkspaceOnlineEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function listKeysWorkspaceOnlineEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { listKeysWorkspaceOnlineEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsListSample.ts index 3fb6fd9587ac..efb31353438e 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List Online Endpoints. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List Online Endpoints. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/OnlineEndpoint/list.json */ -async function listWorkspaceOnlineEndpoint() { +async function listWorkspaceOnlineEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -60,7 +58,7 @@ async function listWorkspaceOnlineEndpoint() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceOnlineEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsRegenerateKeysSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsRegenerateKeysSample.ts index ff6c4bc366d8..da6e3610588f 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsRegenerateKeysSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsRegenerateKeysSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/OnlineEndpoint/regenerateKeys.json */ -async function regenerateKeysWorkspaceOnlineEndpoint() { +async function regenerateKeysWorkspaceOnlineEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -49,7 +47,7 @@ async function regenerateKeysWorkspaceOnlineEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { regenerateKeysWorkspaceOnlineEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsUpdateSample.ts index 356e900c201b..2bf6c6403c4c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/onlineEndpointsUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update Online Endpoint (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update Online Endpoint (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/OnlineEndpoint/update.json */ -async function updateWorkspaceOnlineEndpoint() { +async function updateWorkspaceOnlineEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function updateWorkspaceOnlineEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { updateWorkspaceOnlineEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/operationsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/operationsListSample.ts index cb5f8b0b618d..e14cf5354b73 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/operationsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all of the available Azure Machine Learning Workspaces REST API operations. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists all of the available Azure Machine Learning Workspaces REST API operations. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/operationsList.json */ -async function operationsList() { +async function operationsList(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -36,7 +34,7 @@ async function operationsList() { console.log(resArray); } -async function main() { +async function main(): Promise { operationsList(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts index 80ee214a703c..7ed18170a7a4 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update the state of specified private endpoint connection associated with the workspace. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update the state of specified private endpoint connection associated with the workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/PrivateEndpointConnection/createOrUpdate.json */ -async function workspacePutPrivateEndpointConnection() { +async function workspacePutPrivateEndpointConnection(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function workspacePutPrivateEndpointConnection() { console.log(result); } -async function main() { +async function main(): Promise { workspacePutPrivateEndpointConnection(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/privateEndpointConnectionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/privateEndpointConnectionsDeleteSample.ts index f6041bbe23b8..fb71039a7bda 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/privateEndpointConnectionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes the specified private endpoint connection associated with the workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes the specified private endpoint connection associated with the workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/PrivateEndpointConnection/delete.json */ -async function workspaceDeletePrivateEndpointConnection() { +async function workspaceDeletePrivateEndpointConnection(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function workspaceDeletePrivateEndpointConnection() { console.log(result); } -async function main() { +async function main(): Promise { workspaceDeletePrivateEndpointConnection(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/privateEndpointConnectionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/privateEndpointConnectionsGetSample.ts index 2dca0253c4f0..4d06890765d7 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/privateEndpointConnectionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/privateEndpointConnectionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the specified private endpoint connection associated with the workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the specified private endpoint connection associated with the workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/PrivateEndpointConnection/get.json */ -async function workspaceGetPrivateEndpointConnection() { +async function workspaceGetPrivateEndpointConnection(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function workspaceGetPrivateEndpointConnection() { console.log(result); } -async function main() { +async function main(): Promise { workspaceGetPrivateEndpointConnection(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/privateEndpointConnectionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/privateEndpointConnectionsListSample.ts index a723b06c9a5a..8a191eb1547e 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/privateEndpointConnectionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/privateEndpointConnectionsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List all the private endpoint connections associated with the workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List all the private endpoint connections associated with the workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/PrivateEndpointConnection/list.json */ -async function storageAccountListPrivateEndpointConnections() { +async function storageAccountListPrivateEndpointConnections(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function storageAccountListPrivateEndpointConnections() { console.log(resArray); } -async function main() { +async function main(): Promise { storageAccountListPrivateEndpointConnections(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/privateLinkResourcesListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/privateLinkResourcesListSample.ts index 3d9c72808054..92ce0c6ed93c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/privateLinkResourcesListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/privateLinkResourcesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the private link resources that need to be created for a workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the private link resources that need to be created for a workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/PrivateLinkResource/list.json */ -async function workspaceListPrivateLinkResources() { +async function workspaceListPrivateLinkResources(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -39,7 +37,7 @@ async function workspaceListPrivateLinkResources() { console.log(result); } -async function main() { +async function main(): Promise { workspaceListPrivateLinkResources(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/quotasListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/quotasListSample.ts index 10617023874a..574eaff8fb94 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/quotasListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/quotasListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the currently assigned Workspace Quotas based on VMFamily. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the currently assigned Workspace Quotas based on VMFamily. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Quota/list.json */ -async function listWorkspaceQuotasByVMFamily() { +async function listWorkspaceQuotasByVMFamily(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -37,7 +35,7 @@ async function listWorkspaceQuotasByVMFamily() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceQuotasByVMFamily(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/quotasUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/quotasUpdateSample.ts index 15aa79c9caac..836c0122761c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/quotasUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/quotasUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update quota for each VM family in workspace. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update quota for each VM family in workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Quota/update.json */ -async function updateQuotas() { +async function updateQuotas(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -53,7 +51,7 @@ async function updateQuotas() { console.log(result); } -async function main() { +async function main(): Promise { updateQuotas(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesCreateOrUpdateSample.ts index d4a81307771c..ce9fc6e806ef 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update registry @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update registry * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/createOrUpdate-SystemCreated.json */ -async function createOrUpdateRegistryWithSystemCreatedAccounts() { +async function createOrUpdateRegistryWithSystemCreatedAccounts(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -106,7 +104,7 @@ async function createOrUpdateRegistryWithSystemCreatedAccounts() { * @summary Create or update registry * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/createOrUpdate-UserCreated.json */ -async function createOrUpdateRegistryWithUserCreatedAccounts() { +async function createOrUpdateRegistryWithUserCreatedAccounts(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -175,7 +173,7 @@ async function createOrUpdateRegistryWithUserCreatedAccounts() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateRegistryWithSystemCreatedAccounts(); createOrUpdateRegistryWithUserCreatedAccounts(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesDeleteSample.ts index 073f1f12d5d6..a64d64f9b34c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete registry @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete registry * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/delete.json */ -async function deleteRegistry() { +async function deleteRegistry(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -39,7 +37,7 @@ async function deleteRegistry() { console.log(result); } -async function main() { +async function main(): Promise { deleteRegistry(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesGetSample.ts index b82ee94edcdd..c3667721ea31 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get registry @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get registry * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/get-SystemCreated.json */ -async function getRegistryWithSystemCreatedAccounts() { +async function getRegistryWithSystemCreatedAccounts(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function getRegistryWithSystemCreatedAccounts() { * @summary Get registry * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/get-UserCreated.json */ -async function getRegistryWithUserCreatedAccounts() { +async function getRegistryWithUserCreatedAccounts(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -58,7 +56,7 @@ async function getRegistryWithUserCreatedAccounts() { console.log(result); } -async function main() { +async function main(): Promise { getRegistryWithSystemCreatedAccounts(); getRegistryWithUserCreatedAccounts(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesListBySubscriptionSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesListBySubscriptionSample.ts index ccf98a6a7f9d..e7957be82a80 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesListBySubscriptionSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesListBySubscriptionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List registries by subscription @@ -20,7 +18,7 @@ dotenv.config(); * @summary List registries by subscription * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/listBySubscription.json */ -async function listRegistriesBySubscription() { +async function listRegistriesBySubscription(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -36,7 +34,7 @@ async function listRegistriesBySubscription() { console.log(resArray); } -async function main() { +async function main(): Promise { listRegistriesBySubscription(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesListSample.ts index d9389b9478a5..fdc4a014d980 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List registries @@ -20,7 +18,7 @@ dotenv.config(); * @summary List registries * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/list-SystemCreated.json */ -async function listRegistriesWithSystemCreatedAccounts() { +async function listRegistriesWithSystemCreatedAccounts(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -44,7 +42,7 @@ async function listRegistriesWithSystemCreatedAccounts() { * @summary List registries * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/list-UserCreated.json */ -async function listRegistriesWithUserCreatedAccounts() { +async function listRegistriesWithUserCreatedAccounts(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -62,7 +60,7 @@ async function listRegistriesWithUserCreatedAccounts() { console.log(resArray); } -async function main() { +async function main(): Promise { listRegistriesWithSystemCreatedAccounts(); listRegistriesWithUserCreatedAccounts(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesRemoveRegionsSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesRemoveRegionsSample.ts index b782f256851a..c54052ac1009 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesRemoveRegionsSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesRemoveRegionsSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Remove regions from registry @@ -23,7 +21,7 @@ dotenv.config(); * @summary Remove regions from registry * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/removeRegions.json */ -async function removeRegionsFromRegistry() { +async function removeRegionsFromRegistry(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -104,7 +102,7 @@ async function removeRegionsFromRegistry() { console.log(result); } -async function main() { +async function main(): Promise { removeRegionsFromRegistry(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesUpdateSample.ts index b6b29153a1bd..9ce2f73e3aac 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registriesUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update tags @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update tags * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/update-SystemCreated.json */ -async function updateRegistryWithSystemCreatedAccounts() { +async function updateRegistryWithSystemCreatedAccounts(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -63,7 +61,7 @@ async function updateRegistryWithSystemCreatedAccounts() { * @summary Update tags * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/update-UserCreated.json */ -async function updateRegistryWithUserCreatedAccounts() { +async function updateRegistryWithUserCreatedAccounts(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -94,7 +92,7 @@ async function updateRegistryWithUserCreatedAccounts() { console.log(result); } -async function main() { +async function main(): Promise { updateRegistryWithSystemCreatedAccounts(); updateRegistryWithUserCreatedAccounts(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeContainersCreateOrUpdateSample.ts index 2a6daa6da92a..3a94e0d6e976 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update Code container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update Code container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/CodeContainer/createOrUpdate.json */ -async function createOrUpdateRegistryCodeContainer() { +async function createOrUpdateRegistryCodeContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function createOrUpdateRegistryCodeContainer() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateRegistryCodeContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeContainersDeleteSample.ts index 93bec53859b9..3cb67ecb8943 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete Code container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete Code container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/CodeContainer/delete.json */ -async function deleteRegistryCodeContainer() { +async function deleteRegistryCodeContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteRegistryCodeContainer() { console.log(result); } -async function main() { +async function main(): Promise { deleteRegistryCodeContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeContainersGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeContainersGetSample.ts index ab4f7866fb55..5c4d380905d5 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeContainersGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeContainersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get Code container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get Code container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/CodeContainer/get.json */ -async function getRegistryCodeContainer() { +async function getRegistryCodeContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getRegistryCodeContainer() { console.log(result); } -async function main() { +async function main(): Promise { getRegistryCodeContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeContainersListSample.ts index 1bd0f667e18b..135616fa09cc 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeContainersListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List containers. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/CodeContainer/list.json */ -async function listRegistryCodeContainer() { +async function listRegistryCodeContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listRegistryCodeContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { listRegistryCodeContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeVersionsCreateOrGetStartPendingUploadSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeVersionsCreateOrGetStartPendingUploadSample.ts index 8ae0206b1dff..50790f32f493 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeVersionsCreateOrGetStartPendingUploadSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeVersionsCreateOrGetStartPendingUploadSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Generate a storage location and credential for the client to upload a code asset to. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Generate a storage location and credential for the client to upload a code asset to. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/CodeVersion/createOrGetStartPendingUpload.json */ -async function createOrGetStartPendingUploadRegistryCodeVersion() { +async function createOrGetStartPendingUploadRegistryCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function createOrGetStartPendingUploadRegistryCodeVersion() { console.log(result); } -async function main() { +async function main(): Promise { createOrGetStartPendingUploadRegistryCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeVersionsCreateOrUpdateSample.ts index c5f33db32deb..7ca6b0ead80b 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/CodeVersion/createOrUpdate.json */ -async function createOrUpdateRegistryCodeVersion() { +async function createOrUpdateRegistryCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -56,7 +54,7 @@ async function createOrUpdateRegistryCodeVersion() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateRegistryCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeVersionsDeleteSample.ts index 26b0654b417e..b7461de33526 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/CodeVersion/delete.json */ -async function deleteRegistryCodeVersion() { +async function deleteRegistryCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteRegistryCodeVersion() { console.log(result); } -async function main() { +async function main(): Promise { deleteRegistryCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeVersionsGetSample.ts index eb1d00d95fc3..679e737f5d8a 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/CodeVersion/get.json */ -async function getRegistryCodeVersion() { +async function getRegistryCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getRegistryCodeVersion() { console.log(result); } -async function main() { +async function main(): Promise { getRegistryCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeVersionsListSample.ts index 5887917ad592..ccb333faab6a 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryCodeVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List versions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List versions. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/CodeVersion/list.json */ -async function listRegistryCodeVersion() { +async function listRegistryCodeVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function listRegistryCodeVersion() { console.log(resArray); } -async function main() { +async function main(): Promise { listRegistryCodeVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentContainersCreateOrUpdateSample.ts index 6fcbc8ffa72a..9763e6d49967 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ComponentContainer/createOrUpdate.json */ -async function createOrUpdateRegistryComponentContainer() { +async function createOrUpdateRegistryComponentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -53,7 +51,7 @@ async function createOrUpdateRegistryComponentContainer() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateRegistryComponentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentContainersDeleteSample.ts index 3492dda730fa..9e512feab915 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ComponentContainer/delete.json */ -async function deleteRegistryComponentContainer() { +async function deleteRegistryComponentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteRegistryComponentContainer() { console.log(result); } -async function main() { +async function main(): Promise { deleteRegistryComponentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentContainersGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentContainersGetSample.ts index 27f776fb1072..2b3c8da6e7e9 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentContainersGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentContainersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ComponentContainer/get.json */ -async function getRegistryComponentContainer() { +async function getRegistryComponentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getRegistryComponentContainer() { console.log(result); } -async function main() { +async function main(): Promise { getRegistryComponentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentContainersListSample.ts index 2aca54f0dc9d..dfc544631953 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentContainersListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List containers. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ComponentContainer/list.json */ -async function listRegistryComponentContainer() { +async function listRegistryComponentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listRegistryComponentContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { listRegistryComponentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentVersionsCreateOrUpdateSample.ts index 4b9a351a4a14..0a37dfdd1015 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ComponentVersion/createOrUpdate.json */ -async function createOrUpdateRegistryComponentVersion() { +async function createOrUpdateRegistryComponentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -57,7 +55,7 @@ async function createOrUpdateRegistryComponentVersion() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateRegistryComponentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentVersionsDeleteSample.ts index 23511f6d048e..7b2087d1013e 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ComponentVersion/delete.json */ -async function deleteRegistryComponentVersion() { +async function deleteRegistryComponentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteRegistryComponentVersion() { console.log(result); } -async function main() { +async function main(): Promise { deleteRegistryComponentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentVersionsGetSample.ts index 4787db640b6c..5e985cff64f3 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ComponentVersion/get.json */ -async function getRegistryComponentVersion() { +async function getRegistryComponentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getRegistryComponentVersion() { console.log(result); } -async function main() { +async function main(): Promise { getRegistryComponentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentVersionsListSample.ts index bdd4b85f0e8f..201112e423ff 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryComponentVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List versions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List versions. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ComponentVersion/list.json */ -async function listRegistryComponentVersion() { +async function listRegistryComponentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function listRegistryComponentVersion() { console.log(resArray); } -async function main() { +async function main(): Promise { listRegistryComponentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataContainersCreateOrUpdateSample.ts index 396dedf421d0..ed9a4e737b78 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/DataContainer/createOrUpdate.json */ -async function createOrUpdateRegistryDataContainer() { +async function createOrUpdateRegistryDataContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -54,7 +52,7 @@ async function createOrUpdateRegistryDataContainer() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateRegistryDataContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataContainersDeleteSample.ts index 2a7a155fb403..61c99153a423 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/DataContainer/delete.json */ -async function deleteRegistryDataContainer() { +async function deleteRegistryDataContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteRegistryDataContainer() { console.log(result); } -async function main() { +async function main(): Promise { deleteRegistryDataContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataContainersGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataContainersGetSample.ts index 2d541f59d0a4..135e24af455d 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataContainersGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataContainersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/DataContainer/get.json */ -async function getRegistryDataContainer() { +async function getRegistryDataContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getRegistryDataContainer() { console.log(result); } -async function main() { +async function main(): Promise { getRegistryDataContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataContainersListSample.ts index 58695dc1c9fb..460966680cc6 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataContainersListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List Data containers. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List Data containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/DataContainer/registryList.json */ -async function registryListRegistryDataContainer() { +async function registryListRegistryDataContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -48,7 +46,7 @@ async function registryListRegistryDataContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { registryListRegistryDataContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataReferencesGetBlobReferenceSasSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataReferencesGetBlobReferenceSasSample.ts index ea5e7efe5e9e..eb93800b2208 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataReferencesGetBlobReferenceSasSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataReferencesGetBlobReferenceSasSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get blob reference SAS Uri. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Get blob reference SAS Uri. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/DataReference/getBlobReferenceSAS.json */ -async function getBlobReferenceSasDataReference() { +async function getBlobReferenceSasDataReference(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -51,7 +49,7 @@ async function getBlobReferenceSasDataReference() { console.log(result); } -async function main() { +async function main(): Promise { getBlobReferenceSasDataReference(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataVersionsCreateOrGetStartPendingUploadSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataVersionsCreateOrGetStartPendingUploadSample.ts index 80cb17fd0580..ee37aaeb8f2e 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataVersionsCreateOrGetStartPendingUploadSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataVersionsCreateOrGetStartPendingUploadSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Generate a storage location and credential for the client to upload a data asset to. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Generate a storage location and credential for the client to upload a data asset to. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/DataVersionBase/createOrGetStartPendingUpload.json */ -async function createOrGetStartPendingUploadRegistryDataVersionBase() { +async function createOrGetStartPendingUploadRegistryDataVersionBase(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function createOrGetStartPendingUploadRegistryDataVersionBase() { console.log(result); } -async function main() { +async function main(): Promise { createOrGetStartPendingUploadRegistryDataVersionBase(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataVersionsCreateOrUpdateSample.ts index ac1ec0a2ce8b..fc2299868e50 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/DataVersionBase/createOrUpdate.json */ -async function createOrUpdateRegistryDataVersionBase() { +async function createOrUpdateRegistryDataVersionBase(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -59,7 +57,7 @@ async function createOrUpdateRegistryDataVersionBase() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateRegistryDataVersionBase(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataVersionsDeleteSample.ts index e52b12423541..b22c8d7f99c9 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/DataVersionBase/delete.json */ -async function deleteRegistryDataVersionBase() { +async function deleteRegistryDataVersionBase(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteRegistryDataVersionBase() { console.log(result); } -async function main() { +async function main(): Promise { deleteRegistryDataVersionBase(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataVersionsGetSample.ts index 6b5afe02eb34..2c1fc6d7dd1b 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/DataVersionBase/get.json */ -async function getRegistryDataVersionBase() { +async function getRegistryDataVersionBase(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getRegistryDataVersionBase() { console.log(result); } -async function main() { +async function main(): Promise { getRegistryDataVersionBase(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataVersionsListSample.ts index b77401765d72..305297741f84 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryDataVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List data versions in the data container @@ -23,7 +21,7 @@ dotenv.config(); * @summary List data versions in the data container * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/DataVersionBase/registryList.json */ -async function registryListRegistryDataVersionBase() { +async function registryListRegistryDataVersionBase(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -58,7 +56,7 @@ async function registryListRegistryDataVersionBase() { console.log(resArray); } -async function main() { +async function main(): Promise { registryListRegistryDataVersionBase(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentContainersCreateOrUpdateSample.ts index ab5eab073d4b..e9d97a38b191 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/EnvironmentContainer/createOrUpdate.json */ -async function createOrUpdateRegistryEnvironmentContainer() { +async function createOrUpdateRegistryEnvironmentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -61,7 +59,7 @@ async function createOrUpdateRegistryEnvironmentContainer() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateRegistryEnvironmentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentContainersDeleteSample.ts index da6fa758c10f..860bcecc168d 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/EnvironmentContainer/delete.json */ -async function deleteRegistryEnvironmentContainer() { +async function deleteRegistryEnvironmentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteRegistryEnvironmentContainer() { console.log(result); } -async function main() { +async function main(): Promise { deleteRegistryEnvironmentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentContainersGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentContainersGetSample.ts index 4fa56b2d488e..a8391edef146 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentContainersGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentContainersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/EnvironmentContainer/get.json */ -async function getRegistryEnvironmentContainer() { +async function getRegistryEnvironmentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getRegistryEnvironmentContainer() { console.log(result); } -async function main() { +async function main(): Promise { getRegistryEnvironmentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentContainersListSample.ts index 21935a500fd0..1cd2607c0680 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentContainersListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List environment containers. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List environment containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/EnvironmentContainer/list.json */ -async function listRegistryEnvironmentContainer() { +async function listRegistryEnvironmentContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listRegistryEnvironmentContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { listRegistryEnvironmentContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentVersionsCreateOrUpdateSample.ts index ab331c2e8a3b..00c403183652 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/EnvironmentVersion/createOrUpdate.json */ -async function createOrUpdateRegistryEnvironmentVersion() { +async function createOrUpdateRegistryEnvironmentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -68,7 +66,7 @@ async function createOrUpdateRegistryEnvironmentVersion() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateRegistryEnvironmentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentVersionsDeleteSample.ts index 16a4d41bd690..0d72282c72a5 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/EnvironmentVersion/delete.json */ -async function deleteRegistryEnvironmentVersion() { +async function deleteRegistryEnvironmentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteRegistryEnvironmentVersion() { console.log(result); } -async function main() { +async function main(): Promise { deleteRegistryEnvironmentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentVersionsGetSample.ts index 3c150d2b104e..d33af18d9ba7 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/EnvironmentVersion/get.json */ -async function getRegistryEnvironmentVersion() { +async function getRegistryEnvironmentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getRegistryEnvironmentVersion() { console.log(result); } -async function main() { +async function main(): Promise { getRegistryEnvironmentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentVersionsListSample.ts index 1b73468c8fba..c32c38ddc918 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryEnvironmentVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List versions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List versions. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/EnvironmentVersion/list.json */ -async function listRegistryEnvironmentVersion() { +async function listRegistryEnvironmentVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -54,7 +52,7 @@ async function listRegistryEnvironmentVersion() { console.log(resArray); } -async function main() { +async function main(): Promise { listRegistryEnvironmentVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelContainersCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelContainersCreateOrUpdateSample.ts index a2cb15f8749e..bc8c73e376d6 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelContainersCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelContainersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update model container. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update model container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ModelContainer/createOrUpdate.json */ -async function createOrUpdateRegistryModelContainer() { +async function createOrUpdateRegistryModelContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function createOrUpdateRegistryModelContainer() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateRegistryModelContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelContainersDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelContainersDeleteSample.ts index 6d314bbc7b86..820413acab43 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelContainersDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelContainersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ModelContainer/delete.json */ -async function deleteRegistryModelContainer() { +async function deleteRegistryModelContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteRegistryModelContainer() { console.log(result); } -async function main() { +async function main(): Promise { deleteRegistryModelContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelContainersGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelContainersGetSample.ts index 496c05570c6c..e816c627bb23 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelContainersGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelContainersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get container. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get container. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ModelContainer/get.json */ -async function getRegistryModelContainer() { +async function getRegistryModelContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getRegistryModelContainer() { console.log(result); } -async function main() { +async function main(): Promise { getRegistryModelContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelContainersListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelContainersListSample.ts index 7637e334b3c7..11ffc57d2ae7 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelContainersListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelContainersListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List model containers. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List model containers. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ModelContainer/list.json */ -async function listRegistryModelContainer() { +async function listRegistryModelContainer(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listRegistryModelContainer() { console.log(resArray); } -async function main() { +async function main(): Promise { listRegistryModelContainer(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelVersionsCreateOrGetStartPendingUploadSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelVersionsCreateOrGetStartPendingUploadSample.ts index 8891ecad511d..a0eb35bea072 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelVersionsCreateOrGetStartPendingUploadSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelVersionsCreateOrGetStartPendingUploadSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Generate a storage location and credential for the client to upload a model asset to. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Generate a storage location and credential for the client to upload a model asset to. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ModelVersion/createOrGetStartPendingUpload.json */ -async function createOrGetStartPendingUploadRegistryModelVersion() { +async function createOrGetStartPendingUploadRegistryModelVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function createOrGetStartPendingUploadRegistryModelVersion() { console.log(result); } -async function main() { +async function main(): Promise { createOrGetStartPendingUploadRegistryModelVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelVersionsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelVersionsCreateOrUpdateSample.ts index cf2c0946a613..1019caa251b1 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelVersionsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelVersionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update version. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ModelVersion/createOrUpdate.json */ -async function createOrUpdateRegistryModelVersion() { +async function createOrUpdateRegistryModelVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -58,7 +56,7 @@ async function createOrUpdateRegistryModelVersion() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateRegistryModelVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelVersionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelVersionsDeleteSample.ts index 7ef60f0020c0..dccf4ddffb82 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelVersionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ModelVersion/delete.json */ -async function deleteRegistryModelVersion() { +async function deleteRegistryModelVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function deleteRegistryModelVersion() { console.log(result); } -async function main() { +async function main(): Promise { deleteRegistryModelVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelVersionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelVersionsGetSample.ts index bac5734ae521..986098c014d8 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelVersionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get version. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ModelVersion/get.json */ -async function getRegistryModelVersion() { +async function getRegistryModelVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -43,7 +41,7 @@ async function getRegistryModelVersion() { console.log(result); } -async function main() { +async function main(): Promise { getRegistryModelVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelVersionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelVersionsListSample.ts index 6cccf32183f5..a8b5fbb619f5 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelVersionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/registryModelVersionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List versions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary List versions. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registry/ModelVersion/list.json */ -async function listRegistryModelVersion() { +async function listRegistryModelVersion(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -62,7 +60,7 @@ async function listRegistryModelVersion() { console.log(resArray); } -async function main() { +async function main(): Promise { listRegistryModelVersion(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/schedulesCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/schedulesCreateOrUpdateSample.ts index d62213693a34..c520008636ac 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/schedulesCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/schedulesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update schedule. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update schedule. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Schedule/createOrUpdate.json */ -async function createOrUpdateSchedule() { +async function createOrUpdateSchedule(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -67,7 +65,7 @@ async function createOrUpdateSchedule() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateSchedule(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/schedulesDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/schedulesDeleteSample.ts index 2cd3815b5492..6eb491e6982c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/schedulesDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/schedulesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete schedule. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete schedule. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Schedule/delete.json */ -async function deleteSchedule() { +async function deleteSchedule(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteSchedule() { console.log(result); } -async function main() { +async function main(): Promise { deleteSchedule(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/schedulesGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/schedulesGetSample.ts index 1972a825a653..772b9fd93ace 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/schedulesGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/schedulesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get schedule. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get schedule. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Schedule/get.json */ -async function getSchedule() { +async function getSchedule(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getSchedule() { console.log(result); } -async function main() { +async function main(): Promise { getSchedule(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/schedulesListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/schedulesListSample.ts index 4102c738646f..73f1bc88805e 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/schedulesListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/schedulesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List schedules in specified workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List schedules in specified workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Schedule/list.json */ -async function listSchedules() { +async function listSchedules(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listSchedules() { console.log(resArray); } -async function main() { +async function main(): Promise { listSchedules(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsCreateOrUpdateSample.ts index 5b42bb00839e..cec2c9021e51 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update Serverless Endpoint (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update Serverless Endpoint (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ServerlessEndpoint/createOrUpdate.json */ -async function createOrUpdateWorkspaceServerlessEndpoint() { +async function createOrUpdateWorkspaceServerlessEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -66,7 +64,7 @@ async function createOrUpdateWorkspaceServerlessEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateWorkspaceServerlessEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsDeleteSample.ts index f3297e2317b9..234e6ed9cabe 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete Serverless Endpoint (asynchronous). @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete Serverless Endpoint (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ServerlessEndpoint/delete.json */ -async function deleteWorkspaceServerlessEndpoint() { +async function deleteWorkspaceServerlessEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceServerlessEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspaceServerlessEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsGetSample.ts index 55ef6d0fd809..0ea8b6d15e4d 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get Serverless Endpoint. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get Serverless Endpoint. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ServerlessEndpoint/get.json */ -async function getWorkspaceServerlessEndpoint() { +async function getWorkspaceServerlessEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceServerlessEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { getWorkspaceServerlessEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsListKeysSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsListKeysSample.ts index c8b2b315110a..30a4ad07cf4c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsListKeysSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsListKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List EndpointAuthKeys for an Endpoint using Key-based authentication. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List EndpointAuthKeys for an Endpoint using Key-based authentication. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ServerlessEndpoint/listKeys.json */ -async function listKeysWorkspaceServerlessEndpoint() { +async function listKeysWorkspaceServerlessEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function listKeysWorkspaceServerlessEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { listKeysWorkspaceServerlessEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsListSample.ts index c30abd3d4a1e..31a7255c4949 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List Serverless Endpoints. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List Serverless Endpoints. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ServerlessEndpoint/list.json */ -async function listWorkspaceServerlessEndpoint() { +async function listWorkspaceServerlessEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -42,7 +40,7 @@ async function listWorkspaceServerlessEndpoint() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceServerlessEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsRegenerateKeysSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsRegenerateKeysSample.ts index 9da4e5a6e7ae..cdc306ee6268 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsRegenerateKeysSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsRegenerateKeysSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ServerlessEndpoint/regenerateKeys.json */ -async function regenerateKeysWorkspaceServerlessEndpoint() { +async function regenerateKeysWorkspaceServerlessEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -49,7 +47,7 @@ async function regenerateKeysWorkspaceServerlessEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { regenerateKeysWorkspaceServerlessEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsUpdateSample.ts index d744db6ed823..1e7dc27377c0 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/serverlessEndpointsUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update Serverless Endpoint (asynchronous). @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update Serverless Endpoint (asynchronous). * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/ServerlessEndpoint/update.json */ -async function updateWorkspaceServerlessEndpoint() { +async function updateWorkspaceServerlessEndpoint(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -56,7 +54,7 @@ async function updateWorkspaceServerlessEndpoint() { console.log(result); } -async function main() { +async function main(): Promise { updateWorkspaceServerlessEndpoint(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/usagesListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/usagesListSample.ts index a18c1efaa9a9..e796027e5724 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/usagesListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/usagesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the current usage information as well as limits for AML resources for given subscription and location. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the current usage information as well as limits for AML resources for given subscription and location. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Usage/list.json */ -async function listUsages() { +async function listUsages(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -37,7 +35,7 @@ async function listUsages() { console.log(resArray); } -async function main() { +async function main(): Promise { listUsages(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/virtualMachineSizesListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/virtualMachineSizesListSample.ts index 097eeb844dc3..e3a8031225e3 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/virtualMachineSizesListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/virtualMachineSizesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns supported VM Sizes in a location @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns supported VM Sizes in a location * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/VirtualMachineSize/list.json */ -async function listVMSizes() { +async function listVMSizes(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -34,7 +32,7 @@ async function listVMSizes() { console.log(result); } -async function main() { +async function main(): Promise { listVMSizes(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceConnectionsCreateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceConnectionsCreateSample.ts index 2f0cae1f2b1d..883a5e6b228d 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceConnectionsCreateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceConnectionsCreateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to @@ -23,7 +21,7 @@ dotenv.config(); * @summary * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/WorkspaceConnection/create.json */ -async function createWorkspaceConnection() { +async function createWorkspaceConnection(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -52,7 +50,7 @@ async function createWorkspaceConnection() { console.log(result); } -async function main() { +async function main(): Promise { createWorkspaceConnection(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceConnectionsDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceConnectionsDeleteSample.ts index c5e4ef992eb6..e56b1b5712e9 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceConnectionsDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceConnectionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to @@ -20,7 +18,7 @@ dotenv.config(); * @summary * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/WorkspaceConnection/delete.json */ -async function deleteWorkspaceConnection() { +async function deleteWorkspaceConnection(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function deleteWorkspaceConnection() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspaceConnection(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceConnectionsGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceConnectionsGetSample.ts index b62e7c3fe0f4..06722917601d 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceConnectionsGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceConnectionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to @@ -20,7 +18,7 @@ dotenv.config(); * @summary * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/WorkspaceConnection/get.json */ -async function getWorkspaceConnection() { +async function getWorkspaceConnection(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceConnection() { console.log(result); } -async function main() { +async function main(): Promise { getWorkspaceConnection(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceConnectionsListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceConnectionsListSample.ts index 9b52816cfd05..f209a861ac2e 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceConnectionsListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceConnectionsListSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to @@ -23,7 +21,7 @@ dotenv.config(); * @summary * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/WorkspaceConnection/list.json */ -async function listWorkspaceConnections() { +async function listWorkspaceConnections(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -49,7 +47,7 @@ async function listWorkspaceConnections() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceConnections(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceConnectionsListSecretsSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceConnectionsListSecretsSample.ts index d7a56c7e9d1b..6a1361a94e07 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceConnectionsListSecretsSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceConnectionsListSecretsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List all the secrets of a machine learning workspaces connections. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List all the secrets of a machine learning workspaces connections. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/WorkspaceConnection/listSecrets.json */ -async function getWorkspaceConnection() { +async function getWorkspaceConnection(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -41,7 +39,7 @@ async function getWorkspaceConnection() { console.log(result); } -async function main() { +async function main(): Promise { getWorkspaceConnection(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceFeaturesListSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceFeaturesListSample.ts index b496b26d661c..6f7946ab2741 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceFeaturesListSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspaceFeaturesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all enabled features for a workspace @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists all enabled features for a workspace * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/WorkspaceFeature/list.json */ -async function listWorkspaceFeatures() { +async function listWorkspaceFeatures(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -42,7 +40,7 @@ async function listWorkspaceFeatures() { console.log(resArray); } -async function main() { +async function main(): Promise { listWorkspaceFeatures(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesCreateOrUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesCreateOrUpdateSample.ts index fd827c900549..93e7288fb671 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesCreateOrUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a workspace with the specified parameters. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or updates a workspace with the specified parameters. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/create.json */ -async function createWorkspace() { +async function createWorkspace(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -88,7 +86,7 @@ async function createWorkspace() { console.log(result); } -async function main() { +async function main(): Promise { createWorkspace(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesDeleteSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesDeleteSample.ts index e73494135630..ef18af26afc9 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesDeleteSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a machine learning workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes a machine learning workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/delete.json */ -async function deleteWorkspace() { +async function deleteWorkspace(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -39,7 +37,7 @@ async function deleteWorkspace() { console.log(result); } -async function main() { +async function main(): Promise { deleteWorkspace(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesDiagnoseSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesDiagnoseSample.ts index 55c3bd082ef2..641a3c2f98f0 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesDiagnoseSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesDiagnoseSample.ts @@ -14,9 +14,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Diagnose workspace setup issue. @@ -24,7 +22,7 @@ dotenv.config(); * @summary Diagnose workspace setup issue. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/diagnose.json */ -async function diagnoseWorkspace() { +async function diagnoseWorkspace(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -58,7 +56,7 @@ async function diagnoseWorkspace() { console.log(result); } -async function main() { +async function main(): Promise { diagnoseWorkspace(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesGetSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesGetSample.ts index 122d0c189246..934c0b3361c7 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesGetSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified machine learning workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the properties of the specified machine learning workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/get.json */ -async function getWorkspace() { +async function getWorkspace(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -36,7 +34,7 @@ async function getWorkspace() { console.log(result); } -async function main() { +async function main(): Promise { getWorkspace(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListByResourceGroupSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListByResourceGroupSample.ts index 36299e623419..e61a21f7165c 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListByResourceGroupSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the available machine learning workspaces under the specified resource group. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists all the available machine learning workspaces under the specified resource group. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/listByResourceGroup.json */ -async function getWorkspacesByResourceGroup() { +async function getWorkspacesByResourceGroup(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -40,7 +38,7 @@ async function getWorkspacesByResourceGroup() { console.log(resArray); } -async function main() { +async function main(): Promise { getWorkspacesByResourceGroup(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListBySubscriptionSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListBySubscriptionSample.ts index 7e5f7da3156f..7ed6cb46faaf 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListBySubscriptionSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListBySubscriptionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the available machine learning workspaces under the specified subscription. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists all the available machine learning workspaces under the specified subscription. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/listBySubscription.json */ -async function getWorkspacesBySubscription() { +async function getWorkspacesBySubscription(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -36,7 +34,7 @@ async function getWorkspacesBySubscription() { console.log(resArray); } -async function main() { +async function main(): Promise { getWorkspacesBySubscription(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListKeysSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListKeysSample.ts index 477ed94c4937..444256a652e6 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListKeysSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the keys associated with this workspace. This includes keys for the storage account, app insights and password for container registry @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists all the keys associated with this workspace. This includes keys for the storage account, app insights and password for container registry * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/listKeys.json */ -async function listWorkspaceKeys() { +async function listWorkspaceKeys(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"; @@ -39,7 +37,7 @@ async function listWorkspaceKeys() { console.log(result); } -async function main() { +async function main(): Promise { listWorkspaceKeys(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListNotebookAccessTokenSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListNotebookAccessTokenSample.ts index 701a02443d5e..415ef680745e 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListNotebookAccessTokenSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListNotebookAccessTokenSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to return notebook access token and refresh token @@ -20,7 +18,7 @@ dotenv.config(); * @summary return notebook access token and refresh token * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/listNotebookAccessToken.json */ -async function listWorkspaceKeys() { +async function listWorkspaceKeys(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -39,7 +37,7 @@ async function listWorkspaceKeys() { console.log(result); } -async function main() { +async function main(): Promise { listWorkspaceKeys(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListNotebookKeysSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListNotebookKeysSample.ts index df3fb81d9b20..702e4d13c38b 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListNotebookKeysSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListNotebookKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List keys of a notebook. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List keys of a notebook. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Notebook/listKeys.json */ -async function listWorkspaceKeys() { +async function listWorkspaceKeys(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"; @@ -39,7 +37,7 @@ async function listWorkspaceKeys() { console.log(result); } -async function main() { +async function main(): Promise { listWorkspaceKeys(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListOutboundNetworkDependenciesEndpointsSample.ts index 2d9352285c35..1d089b057d89 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListOutboundNetworkDependenciesEndpointsSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListOutboundNetworkDependenciesEndpointsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) programmatically. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) programmatically. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/ExternalFQDN/get.json */ -async function listOutboundNetworkDependenciesEndpoints() { +async function listOutboundNetworkDependenciesEndpoints(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -40,7 +38,7 @@ async function listOutboundNetworkDependenciesEndpoints() { console.log(result); } -async function main() { +async function main(): Promise { listOutboundNetworkDependenciesEndpoints(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListStorageAccountKeysSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListStorageAccountKeysSample.ts index a0a63610a6d6..c9fcbcbd1b35 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListStorageAccountKeysSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesListStorageAccountKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List storage account keys of a workspace. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List storage account keys of a workspace. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/listStorageAccountKeys.json */ -async function listWorkspaceKeys() { +async function listWorkspaceKeys(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"; @@ -39,7 +37,7 @@ async function listWorkspaceKeys() { console.log(result); } -async function main() { +async function main(): Promise { listWorkspaceKeys(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesPrepareNotebookSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesPrepareNotebookSample.ts index 591d6ae162c8..08d2bab23f9a 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesPrepareNotebookSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesPrepareNotebookSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Prepare a notebook. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Prepare a notebook. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Notebook/prepare.json */ -async function prepareNotebook() { +async function prepareNotebook(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"; @@ -39,7 +37,7 @@ async function prepareNotebook() { console.log(result); } -async function main() { +async function main(): Promise { prepareNotebook(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesResyncKeysSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesResyncKeysSample.ts index b2a956f6dab1..1e41524867c1 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesResyncKeysSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesResyncKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureMachineLearningServicesManagementClient } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Resync all the keys associated with this workspace. This includes keys for the storage account, app insights and password for container registry @@ -20,7 +18,7 @@ dotenv.config(); * @summary Resync all the keys associated with this workspace. This includes keys for the storage account, app insights and password for container registry * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/resyncKeys.json */ -async function resyncWorkspaceKeys() { +async function resyncWorkspaceKeys(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"; @@ -39,7 +37,7 @@ async function resyncWorkspaceKeys() { console.log(result); } -async function main() { +async function main(): Promise { resyncWorkspaceKeys(); } diff --git a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesUpdateSample.ts b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesUpdateSample.ts index 7ba518c43133..325c0dbfeda3 100644 --- a/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesUpdateSample.ts +++ b/sdk/machinelearning/arm-machinelearning/samples/v3/typescript/src/workspacesUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureMachineLearningServicesManagementClient, } from "@azure/arm-machinelearning"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a machine learning workspace with the specified parameters. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Updates a machine learning workspace with the specified parameters. * x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/update.json */ -async function updateWorkspace() { +async function updateWorkspace(): Promise { const subscriptionId = process.env["MACHINELEARNING_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; @@ -48,7 +46,7 @@ async function updateWorkspace() { console.log(result); } -async function main() { +async function main(): Promise { updateWorkspace(); } diff --git a/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningServicesManagementClient.ts b/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningServicesManagementClient.ts index c23752c7fa1d..d017934dc0ec 100644 --- a/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningServicesManagementClient.ts +++ b/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningServicesManagementClient.ts @@ -15,17 +15,10 @@ import { } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { - OperationsImpl, - WorkspacesImpl, UsagesImpl, VirtualMachineSizesImpl, QuotasImpl, ComputeOperationsImpl, - PrivateEndpointConnectionsImpl, - PrivateLinkResourcesImpl, - WorkspaceConnectionsImpl, - ManagedNetworkSettingsRuleImpl, - ManagedNetworkProvisionsImpl, RegistryCodeContainersImpl, RegistryCodeVersionsImpl, RegistryComponentContainersImpl, @@ -63,19 +56,19 @@ import { ServerlessEndpointsImpl, RegistriesImpl, WorkspaceFeaturesImpl, -} from "./operations"; + OperationsImpl, + WorkspacesImpl, + PrivateEndpointConnectionsImpl, + PrivateLinkResourcesImpl, + WorkspaceConnectionsImpl, + ManagedNetworkSettingsRuleImpl, + ManagedNetworkProvisionsImpl, +} from "./operations/index.js"; import { - Operations, - Workspaces, Usages, VirtualMachineSizes, Quotas, ComputeOperations, - PrivateEndpointConnections, - PrivateLinkResources, - WorkspaceConnections, - ManagedNetworkSettingsRule, - ManagedNetworkProvisions, RegistryCodeContainers, RegistryCodeVersions, RegistryComponentContainers, @@ -113,8 +106,15 @@ import { ServerlessEndpoints, Registries, WorkspaceFeatures, -} from "./operationsInterfaces"; -import { AzureMachineLearningServicesManagementClientOptionalParams } from "./models"; + Operations, + Workspaces, + PrivateEndpointConnections, + PrivateLinkResources, + WorkspaceConnections, + ManagedNetworkSettingsRule, + ManagedNetworkProvisions, +} from "./operationsInterfaces/index.js"; +import { AzureMachineLearningServicesManagementClientOptionalParams } from "./models/index.js"; export class AzureMachineLearningServicesManagementClient extends coreClient.ServiceClient { $host: string; @@ -149,7 +149,7 @@ export class AzureMachineLearningServicesManagementClient extends coreClient.Ser credential: credentials, }; - const packageDetails = `azsdk-js-arm-machinelearning/3.0.0`; + const packageDetails = `azsdk-js-arm-machinelearning/4.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -203,18 +203,11 @@ export class AzureMachineLearningServicesManagementClient extends coreClient.Ser // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2024-04-01"; - this.operations = new OperationsImpl(this); - this.workspaces = new WorkspacesImpl(this); + this.apiVersion = options.apiVersion || "2024-10-01"; this.usages = new UsagesImpl(this); this.virtualMachineSizes = new VirtualMachineSizesImpl(this); this.quotas = new QuotasImpl(this); this.computeOperations = new ComputeOperationsImpl(this); - this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); - this.privateLinkResources = new PrivateLinkResourcesImpl(this); - this.workspaceConnections = new WorkspaceConnectionsImpl(this); - this.managedNetworkSettingsRule = new ManagedNetworkSettingsRuleImpl(this); - this.managedNetworkProvisions = new ManagedNetworkProvisionsImpl(this); this.registryCodeContainers = new RegistryCodeContainersImpl(this); this.registryCodeVersions = new RegistryCodeVersionsImpl(this); this.registryComponentContainers = new RegistryComponentContainersImpl( @@ -260,6 +253,13 @@ export class AzureMachineLearningServicesManagementClient extends coreClient.Ser this.serverlessEndpoints = new ServerlessEndpointsImpl(this); this.registries = new RegistriesImpl(this); this.workspaceFeatures = new WorkspaceFeaturesImpl(this); + this.operations = new OperationsImpl(this); + this.workspaces = new WorkspacesImpl(this); + this.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.addCustomApiVersionPolicy(options.apiVersion); } @@ -291,17 +291,10 @@ export class AzureMachineLearningServicesManagementClient extends coreClient.Ser this.pipeline.addPolicy(apiVersionPolicy); } - operations: Operations; - workspaces: Workspaces; usages: Usages; virtualMachineSizes: VirtualMachineSizes; quotas: Quotas; computeOperations: ComputeOperations; - privateEndpointConnections: PrivateEndpointConnections; - privateLinkResources: PrivateLinkResources; - workspaceConnections: WorkspaceConnections; - managedNetworkSettingsRule: ManagedNetworkSettingsRule; - managedNetworkProvisions: ManagedNetworkProvisions; registryCodeContainers: RegistryCodeContainers; registryCodeVersions: RegistryCodeVersions; registryComponentContainers: RegistryComponentContainers; @@ -339,4 +332,11 @@ export class AzureMachineLearningServicesManagementClient extends coreClient.Ser serverlessEndpoints: ServerlessEndpoints; registries: Registries; workspaceFeatures: WorkspaceFeatures; + operations: Operations; + workspaces: Workspaces; + privateEndpointConnections: PrivateEndpointConnections; + privateLinkResources: PrivateLinkResources; + workspaceConnections: WorkspaceConnections; + managedNetworkSettingsRule: ManagedNetworkSettingsRule; + managedNetworkProvisions: ManagedNetworkProvisions; } diff --git a/sdk/machinelearning/arm-machinelearning/src/index.ts b/sdk/machinelearning/arm-machinelearning/src/index.ts index 1289db1ee27d..b71aedf427e4 100644 --- a/sdk/machinelearning/arm-machinelearning/src/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/index.ts @@ -7,7 +7,7 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { AzureMachineLearningServicesManagementClient } from "./azureMachineLearningServicesManagementClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { AzureMachineLearningServicesManagementClient } from "./azureMachineLearningServicesManagementClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/machinelearning/arm-machinelearning/src/models/index.ts b/sdk/machinelearning/arm-machinelearning/src/models/index.ts index edd35d4c8d95..b36816c24027 100644 --- a/sdk/machinelearning/arm-machinelearning/src/models/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/models/index.ts @@ -8,11 +8,6 @@ import * as coreClient from "@azure/core-client"; -export type OutboundRuleUnion = - | OutboundRule - | PrivateEndpointOutboundRule - | ServiceTagOutboundRule - | FqdnOutboundRule; export type ComputeUnion = | Compute | Aks @@ -30,20 +25,6 @@ export type ComputeSecretsUnion = | AksComputeSecrets | VirtualMachineSecrets | DatabricksComputeSecrets; -export type WorkspaceConnectionPropertiesV2Union = - | WorkspaceConnectionPropertiesV2 - | PATAuthTypeWorkspaceConnectionProperties - | SASAuthTypeWorkspaceConnectionProperties - | UsernamePasswordAuthTypeWorkspaceConnectionProperties - | NoneAuthTypeWorkspaceConnectionProperties - | ManagedIdentityAuthTypeWorkspaceConnectionProperties - | AADAuthTypeWorkspaceConnectionProperties - | AccessKeyAuthTypeWorkspaceConnectionProperties - | AccountKeyAuthTypeWorkspaceConnectionProperties - | ApiKeyAuthWorkspaceConnectionProperties - | CustomKeysWorkspaceConnectionProperties - | OAuth2AuthTypeWorkspaceConnectionProperties - | ServicePrincipalAuthTypeWorkspaceConnectionProperties; export type PendingUploadCredentialDtoUnion = | PendingUploadCredentialDto | SASCredentialDto; @@ -74,14 +55,14 @@ export type DatastoreSecretsUnion = | CertificateDatastoreSecrets | SasDatastoreSecrets | ServicePrincipalDatastoreSecrets; -export type TriggerBaseUnion = TriggerBase | RecurrenceTrigger | CronTrigger; export type WebhookUnion = Webhook | AzureDevOpsWebhook; -export type NodesUnion = Nodes | AllNodes; +export type TriggerBaseUnion = TriggerBase | RecurrenceTrigger | CronTrigger; export type IdentityConfigurationUnion = | IdentityConfiguration | AmlToken | ManagedIdentity | UserIdentity; +export type NodesUnion = Nodes | AllNodes; export type OnlineScaleSettingsUnion = | OnlineScaleSettings | DefaultScaleSettings @@ -91,6 +72,25 @@ export type ScheduleActionBaseUnion = | CreateMonitorAction | EndpointScheduleAction | JobScheduleAction; +export type OutboundRuleUnion = + | OutboundRule + | PrivateEndpointOutboundRule + | ServiceTagOutboundRule + | FqdnOutboundRule; +export type WorkspaceConnectionPropertiesV2Union = + | WorkspaceConnectionPropertiesV2 + | PATAuthTypeWorkspaceConnectionProperties + | SASAuthTypeWorkspaceConnectionProperties + | UsernamePasswordAuthTypeWorkspaceConnectionProperties + | NoneAuthTypeWorkspaceConnectionProperties + | ManagedIdentityAuthTypeWorkspaceConnectionProperties + | AADAuthTypeWorkspaceConnectionProperties + | AccessKeyAuthTypeWorkspaceConnectionProperties + | AccountKeyAuthTypeWorkspaceConnectionProperties + | ApiKeyAuthWorkspaceConnectionProperties + | CustomKeysWorkspaceConnectionProperties + | OAuth2AuthTypeWorkspaceConnectionProperties + | ServicePrincipalAuthTypeWorkspaceConnectionProperties; export type MonitoringFeatureFilterBaseUnion = | MonitoringFeatureFilterBase | AllFeatures @@ -104,6 +104,14 @@ export type ForecastHorizonUnion = | ForecastHorizon | AutoForecastHorizon | CustomForecastHorizon; +export type JobOutputUnion = + | JobOutput + | CustomModelJobOutput + | MLFlowModelJobOutput + | MLTableJobOutput + | TritonModelJobOutput + | UriFileJobOutput + | UriFolderJobOutput; export type AutoMLVerticalUnion = | AutoMLVertical | Classification @@ -125,14 +133,6 @@ export type JobInputUnion = | TritonModelJobInput | UriFileJobInput | UriFolderJobInput; -export type JobOutputUnion = - | JobOutput - | CustomModelJobOutput - | MLFlowModelJobOutput - | MLTableJobOutput - | TritonModelJobOutput - | UriFileJobOutput - | UriFolderJobOutput; export type NCrossValidationsUnion = | NCrossValidations | AutoNCrossValidations @@ -174,6 +174,9 @@ export type DistributionConfigurationUnion = | PyTorch | TensorFlow; export type JobLimitsUnion = JobLimits | CommandJobLimits | SweepJobLimits; +export type MonitorComputeConfigurationBaseUnion = + | MonitorComputeConfigurationBase + | MonitorServerlessSparkCompute; export type MonitoringSignalBaseUnion = | MonitoringSignalBase | CustomMonitoringSignal @@ -181,9 +184,6 @@ export type MonitoringSignalBaseUnion = | DataQualityMonitoringSignal | FeatureAttributionDriftMonitoringSignal | PredictionDriftMonitoringSignal; -export type MonitorComputeConfigurationBaseUnion = - | MonitorComputeConfigurationBase - | MonitorServerlessSparkCompute; export type MonitoringInputDataBaseUnion = | MonitoringInputDataBase | FixedInputData @@ -218,68 +218,71 @@ export type DataVersionBasePropertiesUnion = | UriFileDataVersion | UriFolderDataVersion; -/** 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 { +/** The List Usages operation response. */ +export interface ListUsagesResult { /** - * List of operations supported by the resource provider + * The list of AML resource usages. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Operation[]; + readonly value?: Usage[]; /** - * URL to get the next set of operation list results (if there are any). + * The URI to fetch the next page of AML resource usage information. Call ListNext() with this to fetch the next page of AML resource usage information. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } -/** Details of a REST API operation, returned from the Resource Provider Operations API */ -export interface Operation { +/** Describes AML Resource Usage. */ +export interface Usage { /** - * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" + * Specifies the resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly id?: string; /** - * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. + * Region of the AML workspace in the id. * 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; + readonly amlWorkspaceLocation?: string; /** - * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" + * Specifies the resource type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly origin?: Origin; + readonly type?: string; /** - * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + * An enum describing the unit of usage measurement. * 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 { + readonly unit?: UsageUnit; /** - * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + * The current usage of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provider?: string; + readonly currentValue?: number; /** - * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + * The maximum permitted usage of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resource?: string; + readonly limit?: number; /** - * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". + * The name of the type of usage. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly name?: UsageName; +} + +/** The Usage Names. */ +export interface UsageName { /** - * The short, localized friendly description of the operation; suitable for tool tips and detailed views. + * The name of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly value?: string; + /** + * The localized name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly localizedValue?: string; } /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ @@ -331,2841 +334,2736 @@ export interface ErrorAdditionalInfo { readonly info?: Record; } -export interface EncryptionProperty { - /** Indicates whether or not the encryption is enabled for the workspace. */ - status: EncryptionStatus; - /** The identity that will be used to access the key vault for encryption at rest. */ - identity?: IdentityForCmk; - /** Customer Key vault properties. */ - keyVaultProperties: EncryptionKeyVaultProperties; -} - -/** Identity that will be used to access key vault for encryption at rest */ -export interface IdentityForCmk { - /** The ArmId of the user assigned identity that will be used to access the customer managed key vault */ - userAssignedIdentity?: string; -} - -export interface EncryptionKeyVaultProperties { - /** The ArmId of the keyVault where the customer owned encryption key is present. */ - keyVaultArmId: string; - /** Key vault uri to access the encryption key. */ - keyIdentifier: string; - /** For future use - The client id of the identity which will be used to access key vault. */ - identityClientId?: string; +/** The List Virtual Machine size operation response. */ +export interface VirtualMachineSizeListResult { + /** The list of virtual machine sizes supported by AmlCompute. */ + value?: VirtualMachineSize[]; } -/** The Private Endpoint resource. */ -export interface PrivateEndpoint { +/** Describes the properties of a VM size. */ +export interface VirtualMachineSize { /** - * The ARM identifier for Private Endpoint + * The name of the virtual machine size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; -} - -/** A collection of information about the state of the connection between service consumer and provider. */ -export interface PrivateLinkServiceConnectionState { - /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ - status?: PrivateEndpointServiceConnectionStatus; - /** The reason for approval/rejection of the connection. */ - description?: string; - /** A message indicating if changes on the service provider require any updates on the consumer. */ - actionsRequired?: string; -} - -/** Managed service identity (system assigned and/or user assigned identities) */ -export interface ManagedServiceIdentity { + readonly name?: string; /** - * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + * The family name of the virtual machine size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; + readonly family?: string; /** - * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + * The number of vCPUs supported by the virtual machine size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tenantId?: string; - /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */ - type: ManagedServiceIdentityType; - /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */ - userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity }; -} - -/** User assigned identity properties */ -export interface UserAssignedIdentity { + readonly vCPUs?: number; /** - * The principal ID of the assigned identity. + * The number of gPUs supported by the virtual machine size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; + readonly gpus?: number; /** - * The client ID of the assigned identity. + * The OS VHD disk size, in MB, allowed by the virtual machine size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly clientId?: string; -} - -/** The resource model definition representing SKU */ -export interface Sku { - /** The name of the SKU. Ex - P3. It is typically a letter+number code */ - name: string; - /** This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. */ - tier?: SkuTier; - /** The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. */ - size?: string; - /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ - family?: string; - /** If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. */ - capacity?: number; -} - -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { + readonly osVhdSizeMB?: number; /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * The resource volume size, in MB, allowed by the virtual machine size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly maxResourceVolumeMB?: number; /** - * The name of the resource + * The amount of memory, in GB, supported by the virtual machine size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly memoryGB?: number; /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * Specifies if the virtual machine size supports low priority VMs. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly lowPriorityCapable?: boolean; /** - * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Specifies if the virtual machine size supports premium IO. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; -} - -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; + readonly premiumIO?: boolean; + /** The estimated price information for using a VM. */ + estimatedVMPrices?: EstimatedVMPrices; + /** Specifies the compute types supported by the virtual machine size. */ + supportedComputeTypes?: string[]; } -export interface ServerlessComputeSettings { - /** The resource ID of an existing virtual network subnet in which serverless compute nodes should be deployed */ - serverlessComputeCustomSubnet?: string; - /** The flag to signal if serverless compute nodes deployed in custom vNet would have no public IP addresses for a workspace with private endpoint */ - serverlessComputeNoPublicIP?: boolean; -} - -export interface SharedPrivateLinkResource { - /** Unique name of the private link. */ - name?: string; - /** The resource id that private link links to. */ - privateLinkResourceId?: string; - /** The private link resource group id. */ - groupId?: string; - /** Request message. */ - requestMessage?: string; - /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ - status?: PrivateEndpointServiceConnectionStatus; +/** The estimated price info for using a VM. */ +export interface EstimatedVMPrices { + /** Three lettered code specifying the currency of the VM price. Example: USD */ + billingCurrency: BillingCurrency; + /** The unit of time measurement for the specified VM price. Example: OneHour */ + unitOfMeasure: UnitOfMeasure; + /** The list of estimated prices for using a VM of a particular OS type, tier, etc. */ + values: EstimatedVMPrice[]; } -export interface NotebookResourceInfo { - fqdn?: string; - /** the data plane resourceId that used to initialize notebook component */ - resourceId?: string; - /** The error that occurs when preparing notebook. */ - notebookPreparationError?: NotebookPreparationError; +/** The estimated price info for using a VM of a particular OS type, tier, etc. */ +export interface EstimatedVMPrice { + /** The price charged for using the VM. */ + retailPrice: number; + /** Operating system type used by the VM. */ + osType: VMPriceOSType; + /** The type of the VM. */ + vmTier: VMTier; } -export interface NotebookPreparationError { - errorMessage?: string; - statusCode?: number; +/** Quota update parameters. */ +export interface QuotaUpdateParameters { + /** The list for update quota. */ + value?: QuotaBaseProperties[]; + /** Region of workspace quota to be updated. */ + location?: string; } -export interface ServiceManagedResourcesSettings { - /** The settings for the service managed cosmosdb account. */ - cosmosDb?: CosmosDbSettings; +/** The properties for Quota update or retrieval. */ +export interface QuotaBaseProperties { + /** Specifies the resource ID. */ + id?: string; + /** Specifies the resource type. */ + type?: string; + /** The maximum permitted quota of the resource. */ + limit?: number; + /** An enum describing the unit of quota measurement. */ + unit?: QuotaUnit; } -export interface CosmosDbSettings { - /** The throughput of the collections in cosmosdb database */ - collectionsThroughput?: number; +/** The result of update workspace quota. */ +export interface UpdateWorkspaceQuotasResult { + /** + * The list of workspace quota update result. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: UpdateWorkspaceQuotas[]; + /** + * The URI to fetch the next page of workspace quota update result. Call ListNext() with this to fetch the next page of Workspace Quota update result. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } -/** 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; +/** The properties for update Quota response. */ +export interface UpdateWorkspaceQuotas { + /** + * Specifies the resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Specifies the resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** The maximum permitted quota of the resource. */ + limit?: number; + /** + * An enum describing the unit of quota measurement. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly unit?: QuotaUnit; + /** Status of update workspace quota. */ + status?: Status; } -/** 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; +/** The List WorkspaceQuotasByVMFamily operation response. */ +export interface ListWorkspaceQuotas { + /** + * The list of Workspace Quotas by VM Family + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: ResourceQuota[]; + /** + * The URI to fetch the next page of workspace quota information by VM Family. Call ListNext() with this to fetch the next page of Workspace Quota information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } -/** 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 quota assigned to a resource. */ +export interface ResourceQuota { + /** + * Specifies the resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Region of the AML workspace in the id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly amlWorkspaceLocation?: string; + /** + * Specifies the resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * Name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: ResourceName; + /** + * The maximum permitted quota of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly limit?: number; + /** + * An enum describing the unit of quota measurement. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly unit?: QuotaUnit; } -/** Settings for feature store type workspace. */ -export interface FeatureStoreSettings { - /** Compute runtime config for feature store type workspace. */ - computeRuntime?: ComputeRuntimeDto; - offlineStoreConnectionName?: string; - onlineStoreConnectionName?: string; +/** The Resource Name. */ +export interface ResourceName { + /** + * The name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: string; + /** + * The localized name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly localizedValue?: string; } -/** Compute runtime config for feature store type workspace. */ -export interface ComputeRuntimeDto { - sparkRuntimeVersion?: string; +/** Paginated list of Machine Learning compute objects wrapped in ARM resource envelope. */ +export interface PaginatedComputeResourcesList { + /** An array of Machine Learning compute objects wrapped in ARM resource envelope. */ + value?: ComputeResource[]; + /** A continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; } -/** WorkspaceHub's configuration object. */ -export interface WorkspaceHubConfig { - additionalWorkspaceStorageAccounts?: string[]; - defaultWorkspaceResourceGroup?: string; +/** Managed service identity (system assigned and/or user assigned identities) */ +export interface ManagedServiceIdentity { + /** + * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */ + type: ManagedServiceIdentityType; + /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */ + userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity }; } -/** The parameters for updating a machine learning workspace. */ -export interface WorkspaceUpdateParameters { - /** The resource tags for the machine learning workspace. */ - tags?: { [propertyName: string]: string }; - /** The sku of the workspace. */ - sku?: Sku; - /** The identity of the resource. */ - identity?: ManagedServiceIdentity; - /** The description of this workspace. */ - description?: string; - /** The friendly name for this workspace. */ - friendlyName?: string; - /** The compute name for image build */ - imageBuildCompute?: string; - /** The service managed resource settings. */ - serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; - /** The user assigned identity resource id that represents the workspace identity. */ - primaryUserAssignedIdentity?: string; - /** Settings for serverless compute created in the workspace */ - serverlessComputeSettings?: ServerlessComputeSettings; - /** Whether requests from Public Network are allowed. */ - publicNetworkAccess?: PublicNetworkAccess; - /** ARM id of the application insights associated with this workspace. */ - applicationInsights?: string; - /** ARM id of the container registry associated with this workspace. */ - containerRegistry?: string; - /** Settings for feature store type workspace. */ - featureStoreSettings?: FeatureStoreSettings; - /** Managed Network settings for a machine learning workspace. */ - managedNetwork?: ManagedNetworkSettings; - enableDataIsolation?: boolean; - /** Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. */ - v1LegacyMode?: boolean; - encryption?: EncryptionUpdateProperties; +/** User assigned identity properties */ +export interface UserAssignedIdentity { + /** + * The principal ID of the assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The client ID of the assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly clientId?: string; } -export interface EncryptionUpdateProperties { - keyVaultProperties: EncryptionKeyVaultUpdateProperties; -} - -export interface EncryptionKeyVaultUpdateProperties { - keyIdentifier: string; -} - -/** The result of a request to list machine learning workspaces. */ -export interface WorkspaceListResult { - /** The list of machine learning workspaces. Since this list may be incomplete, the nextLink field should be used to request the next list of machine learning workspaces. */ - value?: Workspace[]; - /** The URI that can be used to request the next list of machine learning workspaces. */ - nextLink?: string; -} - -/** Parameters to diagnose a workspace */ -export interface DiagnoseWorkspaceParameters { - /** Value of Parameters */ - value?: DiagnoseRequestProperties; +/** The resource model definition representing SKU */ +export interface Sku { + /** The name of the SKU. Ex - P3. It is typically a letter+number code */ + name: string; + /** This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. */ + tier?: SkuTier; + /** The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. */ + size?: string; + /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ + family?: string; + /** If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. */ + capacity?: number; } -export interface DiagnoseRequestProperties { - /** Setting for diagnosing user defined routing */ - udr?: { [propertyName: string]: Record }; - /** Setting for diagnosing network security group */ - nsg?: { [propertyName: string]: Record }; - /** Setting for diagnosing resource lock */ - resourceLock?: { [propertyName: string]: Record }; - /** Setting for diagnosing dns resolution */ - dnsResolution?: { [propertyName: string]: Record }; - /** Setting for diagnosing dependent storage account */ - storageAccount?: { [propertyName: string]: Record }; - /** Setting for diagnosing dependent key vault */ - keyVault?: { [propertyName: string]: Record }; - /** Setting for diagnosing dependent container registry */ - containerRegistry?: { [propertyName: string]: Record }; - /** Setting for diagnosing dependent application insights */ - applicationInsights?: { [propertyName: string]: Record }; - /** Setting for diagnosing unclassified category of problems */ - others?: { [propertyName: string]: Record }; +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; } -export interface DiagnoseResponseResult { - value?: DiagnoseResponseResultValue; +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; } -export interface DiagnoseResponseResultValue { - userDefinedRouteResults?: DiagnoseResult[]; - networkSecurityRuleResults?: DiagnoseResult[]; - resourceLockResults?: DiagnoseResult[]; - dnsResolutionResults?: DiagnoseResult[]; - storageAccountResults?: DiagnoseResult[]; - keyVaultResults?: DiagnoseResult[]; - containerRegistryResults?: DiagnoseResult[]; - applicationInsightsResults?: DiagnoseResult[]; - otherResults?: DiagnoseResult[]; +export interface ComputeResourceSchema { + /** Compute properties */ + properties?: ComputeUnion; } -/** Result of Diagnose */ -export interface DiagnoseResult { +/** Machine Learning compute object. */ +export interface Compute { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: + | "AKS" + | "Kubernetes" + | "AmlCompute" + | "ComputeInstance" + | "VirtualMachine" + | "HDInsight" + | "DataFactory" + | "Databricks" + | "DataLakeAnalytics" + | "SynapseSpark"; + /** Location for the underlying compute */ + computeLocation?: string; /** - * Code for workspace setup error + * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly code?: string; + readonly provisioningState?: ProvisioningState; + /** The description of the Machine Learning compute. */ + description?: string; /** - * Level of workspace setup error + * The time at which the compute was created. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly level?: DiagnoseResultLevel; + readonly createdOn?: Date; /** - * Message of workspace setup error + * The time at which the compute was last modified. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; -} - -export interface ListWorkspaceKeysResult { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly userStorageKey?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly userStorageResourceId?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly appInsightsInstrumentationKey?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly containerRegistryCredentials?: RegistryListCredentialsResult; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly notebookAccessKeys?: ListNotebookKeysResult; + readonly modifiedOn?: Date; + /** ARM resource id of the underlying compute */ + resourceId?: string; + /** + * Errors during provisioning + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningErrors?: ErrorResponse[]; + /** + * Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isAttachedCompute?: boolean; + /** Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. */ + disableLocalAuth?: boolean; } -export interface RegistryListCredentialsResult { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly username?: string; - passwords?: Password[]; +/** AmlCompute update parameters. */ +export interface ClusterUpdateParameters { + /** Properties of ClusterUpdate */ + properties?: ScaleSettingsInformation; } -export interface Password { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: string; +/** Desired scale settings for the amlCompute. */ +export interface ScaleSettingsInformation { + /** scale settings for AML Compute */ + scaleSettings?: ScaleSettings; } -export interface ListNotebookKeysResult { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly primaryAccessKey?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly secondaryAccessKey?: string; +/** scale settings for AML Compute */ +export interface ScaleSettings { + /** Max number of nodes to use */ + maxNodeCount: number; + /** Min number of nodes to use */ + minNodeCount?: number; + /** Node Idle Time before scaling down amlCompute. This string needs to be in the RFC Format. */ + nodeIdleTimeBeforeScaleDown?: string; } -/** The List Usages operation response. */ -export interface ListUsagesResult { +/** Result of AmlCompute Nodes */ +export interface AmlComputeNodesInformation { /** - * The list of AML resource usages. + * The collection of returned AmlCompute nodes details. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Usage[]; + readonly nodes?: AmlComputeNodeInformation[]; /** - * The URI to fetch the next page of AML resource usage information. Call ListNext() with this to fetch the next page of AML resource usage information. + * The continuation token. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } -/** Describes AML Resource Usage. */ -export interface Usage { - /** - * Specifies the resource ID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Region of the AML workspace in the id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly amlWorkspaceLocation?: string; - /** - * Specifies the resource type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; +/** Compute node information related to a AmlCompute. */ +export interface AmlComputeNodeInformation { /** - * An enum describing the unit of usage measurement. + * ID of the compute node. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: UsageUnit; + readonly nodeId?: string; /** - * The current usage of the resource. + * Private IP address of the compute node. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentValue?: number; + readonly privateIpAddress?: string; /** - * The maximum permitted usage of the resource. + * Public IP address of the compute node. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly publicIpAddress?: string; /** - * The name of the type of usage. + * SSH port number of the node. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: UsageName; -} - -/** The Usage Names. */ -export interface UsageName { + readonly port?: number; /** - * The name of the resource. + * State of the compute node. Values are idle, running, preparing, unusable, leaving and preempted. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: string; + readonly nodeState?: NodeState; /** - * The localized name of the resource. + * ID of the Experiment running on the node, if any else null. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly localizedValue?: string; + readonly runId?: string; } -/** The List Virtual Machine size operation response. */ -export interface VirtualMachineSizeListResult { - /** The list of virtual machine sizes supported by AmlCompute. */ - value?: VirtualMachineSize[]; +/** Secrets related to a Machine Learning compute. Might differ for every type of compute. */ +export interface ComputeSecrets { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "AKS" | "VirtualMachine" | "Databricks"; } -/** Describes the properties of a VM size. */ -export interface VirtualMachineSize { - /** - * The name of the virtual machine size. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The family name of the virtual machine size. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly family?: string; - /** - * The number of vCPUs supported by the virtual machine size. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly vCPUs?: number; - /** - * The number of gPUs supported by the virtual machine size. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly gpus?: number; - /** - * The OS VHD disk size, in MB, allowed by the virtual machine size. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly osVhdSizeMB?: number; - /** - * The resource volume size, in MB, allowed by the virtual machine size. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maxResourceVolumeMB?: number; - /** - * The amount of memory, in GB, supported by the virtual machine size. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly memoryGB?: number; - /** - * Specifies if the virtual machine size supports low priority VMs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lowPriorityCapable?: boolean; - /** - * Specifies if the virtual machine size supports premium IO. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly premiumIO?: boolean; - /** The estimated price information for using a VM. */ - estimatedVMPrices?: EstimatedVMPrices; - /** Specifies the compute types supported by the virtual machine size. */ - supportedComputeTypes?: string[]; +/** A paginated list of CodeContainer entities. */ +export interface CodeContainerResourceArmPaginatedResult { + /** The link to the next page of CodeContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type CodeContainer. */ + value?: CodeContainer[]; } -/** The estimated price info for using a VM. */ -export interface EstimatedVMPrices { - /** Three lettered code specifying the currency of the VM price. Example: USD */ - billingCurrency: BillingCurrency; - /** The unit of time measurement for the specified VM price. Example: OneHour */ - unitOfMeasure: UnitOfMeasure; - /** The list of estimated prices for using a VM of a particular OS type, tier, etc. */ - values: EstimatedVMPrice[]; +export interface 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 }; } -/** The estimated price info for using a VM of a particular OS type, tier, etc. */ -export interface EstimatedVMPrice { - /** The price charged for using the VM. */ - retailPrice: number; - /** Operating system type used by the VM. */ - osType: VMPriceOSType; - /** The type of the VM. */ - vmTier: VMTier; +/** 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[]; } -/** Quota update parameters. */ -export interface QuotaUpdateParameters { - /** The list for update quota. */ - value?: QuotaBaseProperties[]; - /** Region of workspace quota to be updated. */ - location?: string; +export interface PendingUploadRequestDto { + /** If PendingUploadId = null then random guid will be used. */ + pendingUploadId?: string; + /** TemporaryBlobReference is the only supported type */ + pendingUploadType?: PendingUploadType; } -/** The properties for Quota update or retrieval. */ -export interface QuotaBaseProperties { - /** Specifies the resource ID. */ - id?: string; - /** Specifies the resource type. */ - type?: string; - /** The maximum permitted quota of the resource. */ - limit?: number; - /** An enum describing the unit of quota measurement. */ - unit?: QuotaUnit; +export interface PendingUploadResponseDto { + /** Container level read, write, list SAS */ + blobReferenceForConsumption?: BlobReferenceForConsumptionDto; + /** ID for this upload request */ + pendingUploadId?: string; + /** TemporaryBlobReference is the only supported type */ + pendingUploadType?: PendingUploadType; } -/** The result of update workspace quota. */ -export interface UpdateWorkspaceQuotasResult { - /** - * The list of workspace quota update result. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: UpdateWorkspaceQuotas[]; +export interface BlobReferenceForConsumptionDto { /** - * The URI to fetch the next page of workspace quota update result. Call ListNext() with this to fetch the next page of Workspace Quota update result. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Blob URI path for client to upload data. + * Example: https://blob.windows.core.net/Container/Path */ - readonly nextLink?: string; + blobUri?: string; + /** Credential info to access storage account */ + credential?: PendingUploadCredentialDtoUnion; + /** Arm ID of the storage account to use */ + storageAccountArmId?: string; } -/** The properties for update Quota response. */ -export interface UpdateWorkspaceQuotas { - /** - * Specifies the resource ID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Specifies the resource type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** The maximum permitted quota of the resource. */ - limit?: number; - /** - * An enum describing the unit of quota measurement. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly unit?: QuotaUnit; - /** Status of update workspace quota. */ - status?: Status; +export interface PendingUploadCredentialDto { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialType: "SAS"; } -/** The List WorkspaceQuotasByVMFamily operation response. */ -export interface ListWorkspaceQuotas { - /** - * The list of Workspace Quotas by VM Family - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ResourceQuota[]; - /** - * The URI to fetch the next page of workspace quota information by VM Family. Call ListNext() with this to fetch the next page of Workspace Quota information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; +/** 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[]; } -/** The quota assigned to a resource. */ -export interface ResourceQuota { - /** - * Specifies the resource ID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Region of the AML workspace in the id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly amlWorkspaceLocation?: string; - /** - * Specifies the resource type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * Name of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: ResourceName; - /** - * The maximum permitted quota of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly limit?: number; - /** - * An enum describing the unit of quota measurement. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly unit?: QuotaUnit; +/** 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[]; } -/** The Resource Name. */ -export interface ResourceName { - /** - * The name of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: string; - /** - * The localized name of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly localizedValue?: string; +/** 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[]; } -/** Paginated list of Machine Learning compute objects wrapped in ARM resource envelope. */ -export interface PaginatedComputeResourcesList { - /** An array of Machine Learning compute objects wrapped in ARM resource envelope. */ - value?: ComputeResource[]; - /** A continuation link (absolute URI) to the next page of results in the list. */ +/** 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[]; } -export interface ComputeResourceSchema { - /** Compute properties */ - properties?: ComputeUnion; +/** 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; } -/** Machine Learning compute object. */ -export interface Compute { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: - | "AKS" - | "Kubernetes" - | "AmlCompute" - | "ComputeInstance" - | "VirtualMachine" - | "HDInsight" - | "DataFactory" - | "Databricks" - | "DataLakeAnalytics" - | "SynapseSpark"; - /** Location for the underlying compute */ - computeLocation?: string; - /** - * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; - /** The description of the Machine Learning compute. */ - description?: string; - /** - * The time at which the compute was created. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly createdOn?: Date; - /** - * The time at which the compute was last modified. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly modifiedOn?: Date; - /** ARM resource id of the underlying compute */ - resourceId?: string; - /** - * Errors during provisioning - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningErrors?: ErrorResponse[]; - /** - * Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isAttachedCompute?: boolean; - /** Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. */ - disableLocalAuth?: boolean; +/** BlobReferenceSASResponse for getBlobReferenceSAS API */ +export interface GetBlobReferenceSASResponseDto { + /** Blob reference for consumption details */ + blobReferenceForConsumption?: GetBlobReferenceForConsumptionDto; } -/** AmlCompute update parameters. */ -export interface ClusterUpdateParameters { - /** Properties of ClusterUpdate */ - properties?: ScaleSettingsInformation; +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; } -/** Desired scale settings for the amlCompute. */ -export interface ScaleSettingsInformation { - /** scale settings for AML Compute */ - scaleSettings?: ScaleSettings; +/** DataReferenceCredential base class */ +export interface DataReferenceCredential { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialType: + | "NoCredentials" + | "DockerCredentials" + | "ManagedIdentity" + | "SAS"; } -/** scale settings for AML Compute */ -export interface ScaleSettings { - /** Max number of nodes to use */ - maxNodeCount: number; - /** Min number of nodes to use */ - minNodeCount?: number; - /** Node Idle Time before scaling down amlCompute. This string needs to be in the RFC Format. */ - nodeIdleTimeBeforeScaleDown?: string; +/** 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[]; } -/** Result of AmlCompute Nodes */ -export interface AmlComputeNodesInformation { - /** - * The collection of returned AmlCompute nodes details. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nodes?: AmlComputeNodeInformation[]; - /** - * The continuation token. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; +/** 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[]; } -/** Compute node information related to a AmlCompute. */ -export interface AmlComputeNodeInformation { +/** Configuration settings for Docker build context */ +export interface BuildContext { /** - * ID of the compute node. - * NOTE: This property will not be serialized. It can only be populated by the server. + * [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. + * */ - readonly nodeId?: string; + contextUri: string; /** - * Private IP address of the compute node. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Path to the Dockerfile in the build context. + * */ - readonly privateIpAddress?: string; + 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. */ + nextLink?: string; + /** An array of objects of type BatchEndpoint. */ + value?: BatchEndpoint[]; +} + +/** Batch endpoint default values */ +export interface BatchEndpointDefaults { /** - * Public IP address of the compute node. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Name of the deployment that will be default for the endpoint. + * This deployment will end up getting 100% traffic when the endpoint scoring URL is invoked. */ - readonly publicIpAddress?: string; + deploymentName?: string; +} + +/** Inference Endpoint base definition */ +export interface EndpointPropertiesBase { + /** [Required] The authentication method for invoking the endpoint (data plane operation). Use 'Key' for key-based authentication. Use 'AMLToken' for Azure Machine Learning token-based authentication. Use 'AADToken' for Microsoft Entra token-based authentication. */ + authMode: EndpointAuthMode; + /** Description of the inference endpoint. */ + description?: string; /** - * SSH port number of the node. - * NOTE: This property will not be serialized. It can only be populated by the server. + * EndpointAuthKeys to set initially on an Endpoint. + * This property will always be returned as null. AuthKey values must be retrieved using the ListKeys API. */ - readonly port?: number; + keys?: EndpointAuthKeys; + /** Property dictionary. Properties can be added, but not removed or altered. */ + properties?: { [propertyName: string]: string | null }; /** - * State of the compute node. Values are idle, running, preparing, unusable, leaving and preempted. + * Endpoint URI. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nodeState?: NodeState; + readonly scoringUri?: string; /** - * ID of the Experiment running on the node, if any else null. + * Endpoint Swagger URI. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly runId?: string; + readonly swaggerUri?: string; } -export interface NotebookAccessTokenResult { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly notebookResourceId?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly hostName?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly publicDns?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly accessToken?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tokenType?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly expiresIn?: number; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly refreshToken?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly scope?: string; +/** Keys for endpoint authentication. */ +export interface EndpointAuthKeys { + /** The primary key. */ + primaryKey?: string; + /** The secondary key. */ + secondaryKey?: string; } -/** Secrets related to a Machine Learning compute. Might differ for every type of compute. */ -export interface ComputeSecrets { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "AKS" | "VirtualMachine" | "Databricks"; +/** Managed service identity (system assigned and/or user assigned identities) */ +export interface PartialManagedServiceIdentity { + /** Managed service identity (system assigned and/or user assigned identities) */ + type?: ManagedServiceIdentityType; + /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */ + userAssignedIdentities?: { [propertyName: string]: Record }; } -/** List of private endpoint connection associated with the specified workspace */ -export interface PrivateEndpointConnectionListResult { - /** Array of private endpoint connections */ - value?: PrivateEndpointConnection[]; +/** Strictly used in update requests. */ +export interface PartialMinimalTrackedResource { + /** Resource tags. */ + tags?: { [propertyName: string]: string | null }; } -/** A list of private link resources */ -export interface PrivateLinkResourceListResult { - /** Array of private link resources */ - value?: PrivateLinkResource[]; +/** A paginated list of BatchDeployment entities. */ +export interface BatchDeploymentTrackedResourceArmPaginatedResult { + /** The link to the next page of BatchDeployment objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type BatchDeployment. */ + value?: BatchDeployment[]; } -export interface ListStorageAccountKeysResult { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly userStorageKey?: string; +/** Properties relevant to different deployment types. */ +export interface BatchDeploymentConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + deploymentConfigurationType: "PipelineComponent"; } -export interface WorkspaceConnectionPropertiesV2 { +/** Base definition for asset references. */ +export interface AssetReferenceBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: - | "PAT" - | "SAS" - | "UsernamePassword" - | "None" - | "ManagedIdentity" - | "AAD" - | "AccessKey" - | "AccountKey" - | "ApiKey" - | "CustomKeys" - | "OAuth2" - | "ServicePrincipal"; - /** Category of the connection */ - category?: ConnectionCategory; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdByWorkspaceArmId?: string; - expiryTime?: Date; - /** - * Group based on connection category - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly group?: ConnectionGroup; - isSharedToAll?: boolean; - target?: string; - /** Store user metadata for this connection */ - metadata?: { [propertyName: string]: string }; - sharedUserList?: string[]; - /** Value details of the workspace connection. */ - value?: string; - /** format for the workspace connection value */ - valueFormat?: ValueFormat; -} - -export interface WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult { - value?: WorkspaceConnectionPropertiesV2BasicResource[]; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -export interface ExternalFqdnResponse { - value?: FqdnEndpoints[]; -} - -export interface FqdnEndpoints { - properties?: FqdnEndpointsProperties; -} - -export interface FqdnEndpointsProperties { - category?: string; - endpoints?: FqdnEndpoint[]; -} - -export interface FqdnEndpoint { - domainName?: string; - endpointDetails?: FqdnEndpointDetail[]; + referenceType: "Id" | "DataPath" | "OutputPath"; } -export interface FqdnEndpointDetail { - port?: number; +export interface ResourceConfiguration { + /** Optional number of instances or nodes used by the compute target. */ + instanceCount?: number; + /** Optional type of VM used as supported by the compute target. */ + instanceType?: string; + /** Additional properties bag. */ + properties?: { [propertyName: string]: Record }; } -/** 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[]; +/** Retry settings for a batch inference operation. */ +export interface BatchRetrySettings { + /** Maximum retry count for a mini-batch */ + maxRetries?: number; + /** Invocation timeout for a mini-batch, in ISO 8601 format. */ + timeout?: string; } -/** Managed Network Provisioning options for managed network of a machine learning workspace. */ -export interface ManagedNetworkProvisionOptions { - includeSpark?: boolean; +/** Base definition for endpoint deployment. */ +export interface EndpointDeploymentPropertiesBase { + /** Code configuration for the endpoint deployment. */ + codeConfiguration?: CodeConfiguration; + /** Description of the endpoint deployment. */ + description?: string; + /** ARM resource ID or AssetId of the environment specification for the endpoint deployment. */ + environmentId?: string; + /** Environment variables configuration for the deployment. */ + environmentVariables?: { [propertyName: string]: string | null }; + /** Property dictionary. Properties can be added, but not removed or altered. */ + properties?: { [propertyName: string]: string | null }; } -/** A paginated list of CodeContainer entities. */ -export interface CodeContainerResourceArmPaginatedResult { - /** An array of objects of type CodeContainer. */ - value?: CodeContainer[]; - /** The link to the next page of CodeContainer objects. If null, there are no additional pages. */ - nextLink?: string; +/** Configuration for a scoring code asset. */ +export interface CodeConfiguration { + /** ARM resource ID of the code asset. */ + codeId?: string; + /** [Required] The script to execute on startup. eg. "score.py" */ + scoringScript: string; } -export interface ResourceBase { - /** The asset description text. */ - description?: string; - /** Tag dictionary. Tags can be added, removed, and updated. */ +/** Strictly used in update requests. */ +export interface PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties { + /** Additional attributes of the entity. */ + properties?: PartialBatchDeployment; + /** Resource tags. */ tags?: { [propertyName: string]: string | null }; - /** The asset property dictionary. */ - properties?: { [propertyName: string]: string | null }; } -/** A paginated list of CodeVersion entities. */ -export interface CodeVersionResourceArmPaginatedResult { - /** An array of objects of type CodeVersion. */ - value?: CodeVersion[]; - /** The link to the next page of CodeVersion objects. If null, there are no additional pages. */ - nextLink?: string; +/** Mutable batch inference settings per deployment. */ +export interface PartialBatchDeployment { + /** Description of the endpoint deployment. */ + description?: string; } -export interface PendingUploadRequestDto { - /** If PendingUploadId = null then random guid will be used. */ - pendingUploadId?: string; - /** TemporaryBlobReference is the only supported type */ - pendingUploadType?: PendingUploadType; +/** Publishing destination registry asset information */ +export interface DestinationAsset { + /** Destination asset name */ + destinationName?: string; + /** Destination asset version */ + destinationVersion?: string; + /** Destination registry name */ + registryName?: string; } -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; +/** 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[]; } -export interface BlobReferenceForConsumptionDto { - /** - * Blob URI path for client to upload data. - * Example: https://blob.windows.core.net/Container/Path - */ - blobUri?: string; - /** Arm ID of the storage account to use */ - storageAccountArmId?: string; - /** Credential info to access storage account */ - credential?: PendingUploadCredentialDtoUnion; +/** 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"; } -export interface PendingUploadCredentialDto { +/** Base definition for datastore secrets. */ +export interface DatastoreSecrets { /** Polymorphic discriminator, which specifies the different types this object can be */ - credentialType: "SAS"; + secretsType: "AccountKey" | "Certificate" | "Sas" | "ServicePrincipal"; } -/** A paginated list of ComponentContainer entities. */ -export interface ComponentContainerResourceArmPaginatedResult { - /** An array of objects of type ComponentContainer. */ - value?: ComponentContainer[]; - /** The link to the next page of ComponentContainer objects. If null, there are no additional pages. */ +/** A paginated list of FeaturesetContainer entities. */ +export interface FeaturesetContainerResourceArmPaginatedResult { + /** The link to the next page of FeaturesetContainer objects. If null, there are no additional pages. */ nextLink?: string; + /** An array of objects of type FeaturesetContainer. */ + value?: FeaturesetContainer[]; } -/** A paginated list of ComponentVersion entities. */ -export interface ComponentVersionResourceArmPaginatedResult { - /** An array of objects of type ComponentVersion. */ - value?: ComponentVersion[]; - /** The link to the next page of ComponentVersion objects. If null, there are no additional pages. */ +/** A paginated list of Feature entities. */ +export interface FeatureResourceArmPaginatedResult { + /** The link to the next page of Feature objects. If null, there are no additional pages. */ nextLink?: string; + /** An array of objects of type Feature. */ + value?: Feature[]; } -/** A paginated list of DataContainer entities. */ -export interface DataContainerResourceArmPaginatedResult { - /** An array of objects of type DataContainer. */ - value?: DataContainer[]; - /** The link to the next page of DataContainer objects. If null, there are no additional pages. */ +/** A paginated list of FeaturesetVersion entities. */ +export interface FeaturesetVersionResourceArmPaginatedResult { + /** The link to the next page of FeaturesetVersion objects. If null, there are no additional pages. */ nextLink?: string; + /** An array of objects of type FeaturesetVersion. */ + value?: FeaturesetVersion[]; } -/** A paginated list of DataVersionBase entities. */ -export interface DataVersionBaseResourceArmPaginatedResult { - /** An array of objects of type DataVersionBase. */ - value?: DataVersionBase[]; - /** The link to the next page of DataVersionBase objects. If null, there are no additional pages. */ - nextLink?: string; +export interface MaterializationSettings { + /** Specifies the notification details */ + notification?: NotificationSetting; + /** Specifies the compute resource settings */ + resource?: MaterializationComputeResource; + /** Specifies the schedule details */ + schedule?: RecurrenceTrigger; + /** Specifies the spark compute settings */ + sparkConfiguration?: { [propertyName: string]: string | null }; + /** Specifies the stores to which materialization should happen */ + storeType?: MaterializationStoreType; } -/** 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; +/** Configuration for notification. */ +export interface NotificationSetting { + /** Send email notification to user on specified notification type */ + emailOn?: EmailNotificationEnableType[]; + /** This is the email recipient list which has a limitation of 499 characters in total concat with comma separator */ + emails?: string[]; + /** Send webhook callback to a service. Key is a user-provided name for the webhook. */ + webhooks?: { [propertyName: string]: WebhookUnion | null }; } -/** BlobReferenceSASResponse for getBlobReferenceSAS API */ -export interface GetBlobReferenceSASResponseDto { - /** Blob reference for consumption details */ - blobReferenceForConsumption?: GetBlobReferenceForConsumptionDto; +/** Webhook base */ +export interface Webhook { + /** Polymorphic discriminator, which specifies the different types this object can be */ + webhookType: "AzureDevOps"; + /** Send callback on a specified notification event */ + eventType?: string; } -export interface GetBlobReferenceForConsumptionDto { - /** Blob uri, example: https://blob.windows.core.net/Container/Path */ - blobUri?: string; - /** The ARM id of the storage account */ - storageAccountArmId?: string; - /** Credential info to access storage account */ - credential?: DataReferenceCredentialUnion; +/** DTO object representing compute resource */ +export interface MaterializationComputeResource { + /** Specifies the instance type */ + instanceType?: 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 { - /** An array of objects of type EnvironmentContainer. */ - value?: EnvironmentContainer[]; - /** The link to the next page of EnvironmentContainer objects. If null, there are no additional pages. */ - nextLink?: string; -} - -/** A paginated list of EnvironmentVersion entities. */ -export interface EnvironmentVersionResourceArmPaginatedResult { - /** An array of objects of type EnvironmentVersion. */ - value?: EnvironmentVersion[]; - /** The link to the next page of EnvironmentVersion objects. If null, there are no additional pages. */ - nextLink?: string; +export interface RecurrenceSchedule { + /** [Required] List of hours for the schedule. */ + hours: number[]; + /** [Required] List of minutes for the schedule. */ + minutes: number[]; + /** List of month days for the schedule */ + monthDays?: number[]; + /** List of days for the schedule. */ + weekDays?: WeekDay[]; } -/** Configuration settings for Docker build context */ -export interface BuildContext { +export interface TriggerBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + triggerType: "Recurrence" | "Cron"; /** - * [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. - * + * Specifies end time of schedule in ISO 8601, but without a UTC offset. Refer https://en.wikipedia.org/wiki/ISO_8601. + * Recommented format would be "2022-06-01T00:00:01" + * If not present, the schedule will run indefinitely */ - contextUri: string; + endTime?: string; + /** Specifies start time of schedule in ISO 8601 format, but without a UTC offset. */ + startTime?: string; /** - * Path to the Dockerfile in the build context. - * + * 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 */ - dockerfilePath?: string; + timeZone?: 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; +/** DTO object representing specification */ +export interface FeaturesetSpecification { + /** Specifies the spec path */ + path?: string; } -export interface Route { - /** [Required] The path for the route. */ - path: string; - /** [Required] The port for the route. */ - port: number; +/** Request payload for creating a backfill request for a given feature set version */ +export interface FeaturesetVersionBackfillRequest { + /** Specified the data availability status that you want to backfill */ + dataAvailabilityStatus?: DataAvailabilityStatus[]; + /** Specifies description */ + description?: string; + /** Specifies description */ + displayName?: string; + /** Specifies the backfill feature window to be materialized */ + featureWindow?: FeatureWindow; + /** Specify the jobId to retry the failed materialization */ + jobId?: string; + /** Specifies the properties */ + properties?: { [propertyName: string]: string | null }; + /** Specifies the compute resource settings */ + resource?: MaterializationComputeResource; + /** Specifies the spark compute settings */ + sparkConfiguration?: { [propertyName: string]: string | null }; + /** Specifies the tags */ + tags?: { [propertyName: string]: string | null }; } -/** A paginated list of ModelContainer entities. */ -export interface ModelContainerResourceArmPaginatedResult { - /** An array of objects of type ModelContainer. */ - value?: ModelContainer[]; - /** The link to the next page of ModelContainer objects. If null, there are no additional pages. */ +/** Specifies the feature window */ +export interface FeatureWindow { + /** Specifies the feature window end time */ + featureWindowEnd?: Date; + /** Specifies the feature window start time */ + featureWindowStart?: Date; +} + +/** Response payload for creating a backfill request for a given feature set version */ +export interface FeaturesetVersionBackfillResponse { + /** List of jobs submitted as part of the backfill request. */ + jobIds?: string[]; +} + +/** A paginated list of FeaturestoreEntityContainer entities. */ +export interface FeaturestoreEntityContainerResourceArmPaginatedResult { + /** The link to the next page of FeaturestoreEntityContainer objects. If null, there are no additional pages. */ nextLink?: string; + /** An array of objects of type FeaturestoreEntityContainer. */ + value?: FeaturestoreEntityContainer[]; } -/** A paginated list of ModelVersion entities. */ -export interface ModelVersionResourceArmPaginatedResult { - /** An array of objects of type ModelVersion. */ - value?: ModelVersion[]; - /** The link to the next page of ModelVersion objects. If null, there are no additional pages. */ +/** A paginated list of FeaturestoreEntityVersion entities. */ +export interface FeaturestoreEntityVersionResourceArmPaginatedResult { + /** The link to the next page of FeaturestoreEntityVersion objects. If null, there are no additional pages. */ nextLink?: string; + /** An array of objects of type FeaturestoreEntityVersion. */ + value?: FeaturestoreEntityVersion[]; } -export interface FlavorData { - /** Model flavor-specific data. */ - data?: { [propertyName: string]: string | null }; +/** DTO object representing index column */ +export interface IndexColumn { + /** Specifies the column name */ + columnName?: string; + /** Specifies the data type */ + dataType?: FeatureDataType; } -/** A paginated list of BatchEndpoint entities. */ -export interface BatchEndpointTrackedResourceArmPaginatedResult { - /** An array of objects of type BatchEndpoint. */ - value?: BatchEndpoint[]; - /** The link to the next page of BatchEndpoint 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 JobBase. */ + value?: JobBase[]; } -/** Batch endpoint default values */ -export interface BatchEndpointDefaults { - /** - * Name of the deployment that will be default for the endpoint. - * This deployment will end up getting 100% traffic when the endpoint scoring URL is invoked. - */ - deploymentName?: string; +/** Base definition for identity configuration. */ +export interface IdentityConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + identityType: "AMLToken" | "Managed" | "UserIdentity"; } -/** Inference Endpoint base definition */ -export interface EndpointPropertiesBase { - /** Description of the inference endpoint. */ - description?: string; - /** Property dictionary. Properties can be added, but not removed or altered. */ - properties?: { [propertyName: string]: string | null }; +/** Job endpoint definition */ +export interface JobService { + /** Url for endpoint. */ + endpoint?: string; /** - * Endpoint URI. + * Any error in the service. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly scoringUri?: string; + readonly errorMessage?: string; + /** Endpoint type. */ + jobServiceType?: string; /** - * Endpoint Swagger URI. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Nodes that user would like to start the service on. + * If Nodes is not set or set to null, the service will only be started on leader node. */ - readonly swaggerUri?: string; - /** [Required] Use 'Key' for key based authentication and 'AMLToken' for Azure Machine Learning token-based authentication. 'Key' doesn't expire but 'AMLToken' does. */ - authMode: EndpointAuthMode; + nodes?: NodesUnion; + /** Port for endpoint. */ + port?: number; + /** Additional properties to set on the endpoint. */ + properties?: { [propertyName: string]: string | null }; /** - * EndpointAuthKeys to set initially on an Endpoint. - * This property will always be returned as null. AuthKey values must be retrieved using the ListKeys API. + * Status of endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - keys?: EndpointAuthKeys; + readonly status?: string; } -/** Keys for endpoint authentication. */ -export interface EndpointAuthKeys { - /** The primary key. */ - primaryKey?: string; - /** The secondary key. */ - secondaryKey?: string; +/** Abstract Nodes definition */ +export interface Nodes { + /** Polymorphic discriminator, which specifies the different types this object can be */ + nodesValueType: "All"; } -/** Managed service identity (system assigned and/or user assigned identities) */ -export interface PartialManagedServiceIdentity { - /** Managed service identity (system assigned and/or user assigned identities) */ - type?: ManagedServiceIdentityType; - /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */ - userAssignedIdentities?: { [propertyName: string]: Record }; +/** A paginated list of MarketplaceSubscription entities. */ +export interface MarketplaceSubscriptionResourceArmPaginatedResult { + /** The link to the next page of MarketplaceSubscription objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type MarketplaceSubscription. */ + value?: MarketplaceSubscription[]; } -/** Strictly used in update requests. */ -export interface PartialMinimalTrackedResource { - /** Resource tags. */ - tags?: { [propertyName: string]: string | null }; +export interface MarketplaceSubscriptionProperties { + /** + * Marketplace Plan associated with the Marketplace Subscription. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly marketplacePlan?: MarketplacePlan; + /** + * Current status of the Marketplace Subscription. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly marketplaceSubscriptionStatus?: MarketplaceSubscriptionStatus; + /** [Required] Target Marketplace Model ID to create a Marketplace Subscription for. */ + modelId: string; + /** + * Provisioning State of the Marketplace Subscription. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: MarketplaceSubscriptionProvisioningState; } -/** A paginated list of BatchDeployment entities. */ -export interface BatchDeploymentTrackedResourceArmPaginatedResult { - /** An array of objects of type BatchDeployment. */ - value?: BatchDeployment[]; - /** The link to the next page of BatchDeployment objects. If null, there are no additional pages. */ - nextLink?: string; +export interface MarketplacePlan { + /** + * The identifying name of the Offer of the Marketplace Plan. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly offerId?: string; + /** + * The identifying name of the Plan of the Marketplace Plan. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly planId?: string; + /** + * The identifying name of the Publisher of the Marketplace Plan. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly publisherId?: string; } -/** Properties relevant to different deployment types. */ -export interface BatchDeploymentConfiguration { - /** Polymorphic discriminator, which specifies the different types this object can be */ - deploymentConfigurationType: "PipelineComponent"; -} - -/** Retry settings for a batch inference operation. */ -export interface BatchRetrySettings { - /** Maximum retry count for a mini-batch */ - maxRetries?: number; - /** Invocation timeout for a mini-batch, in ISO 8601 format. */ - timeout?: string; +/** A paginated list of OnlineEndpoint entities. */ +export interface OnlineEndpointTrackedResourceArmPaginatedResult { + /** The link to the next page of OnlineEndpoint objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type OnlineEndpoint. */ + value?: OnlineEndpoint[]; } -/** Base definition for asset references. */ -export interface AssetReferenceBase { - /** Polymorphic discriminator, which specifies the different types this object can be */ - referenceType: "Id" | "DataPath" | "OutputPath"; +/** A paginated list of OnlineDeployment entities. */ +export interface OnlineDeploymentTrackedResourceArmPaginatedResult { + /** The link to the next page of OnlineDeployment objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type OnlineDeployment. */ + value?: OnlineDeployment[]; } -export interface ResourceConfiguration { - /** Optional number of instances or nodes used by the compute target. */ - instanceCount?: number; - /** Optional type of VM used as supported by the compute target. */ - instanceType?: string; - /** Additional properties bag. */ - properties?: { [propertyName: string]: Record }; +export interface DataCollector { + /** + * [Required] The collection configuration. Each collection has it own configuration to collect model data and the name of collection can be arbitrary string. + * Model data collector can be used for either payload logging or custom logging or both of them. Collection request and response are reserved for payload logging, others are for custom logging. + */ + collections: { [propertyName: string]: Collection | null }; + /** The request logging configuration for mdc, it includes advanced logging settings for all collections. It's optional. */ + requestLogging?: RequestLogging; + /** + * When model data is collected to blob storage, we need to roll the data to different path to avoid logging all of them in a single blob file. + * If the rolling rate is hour, all data will be collected in the blob path /yyyy/MM/dd/HH/. + * If it's day, all data will be collected in blob path /yyyy/MM/dd/. + * The other benefit of rolling path is that model monitoring ui is able to select a time range of data very quickly. + */ + rollingRate?: RollingRateType; } -/** Base definition for endpoint deployment. */ -export interface EndpointDeploymentPropertiesBase { - /** Description of the endpoint deployment. */ - description?: string; - /** Property dictionary. Properties can be added, but not removed or altered. */ - properties?: { [propertyName: string]: string | null }; - /** Code configuration for the endpoint deployment. */ - codeConfiguration?: CodeConfiguration; - /** ARM resource ID or AssetId of the environment specification for the endpoint deployment. */ - environmentId?: string; - /** Environment variables configuration for the deployment. */ - environmentVariables?: { [propertyName: string]: string | null }; +export interface Collection { + /** The msi client id used to collect logging to blob storage. If it's null,backend will pick a registered endpoint identity to auth. */ + clientId?: string; + /** Enable or disable data collection. */ + dataCollectionMode?: DataCollectionMode; + /** The data asset arm resource id. Client side will ensure data asset is pointing to the blob storage, and backend will collect data to the blob storage. */ + dataId?: string; + /** The sampling rate for collection. Sampling rate 1.0 means we collect 100% of data by default. */ + samplingRate?: number; } -/** Configuration for a scoring code asset. */ -export interface CodeConfiguration { - /** ARM resource ID of the code asset. */ - codeId?: string; - /** [Required] The script to execute on startup. eg. "score.py" */ - scoringScript: string; +export interface RequestLogging { + /** For payload logging, we only collect payload by default. If customers also want to collect the specified headers, they can set them in captureHeaders so that backend will collect those headers along with payload. */ + captureHeaders?: string[]; } -/** Strictly used in update requests. */ -export interface PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties { - /** Additional attributes of the entity. */ - properties?: PartialBatchDeployment; - /** Resource tags. */ - tags?: { [propertyName: string]: string | null }; +/** Deployment container liveness/readiness probe configuration. */ +export interface ProbeSettings { + /** The number of failures to allow before returning an unhealthy status. */ + failureThreshold?: number; + /** The delay before the first probe in ISO 8601 format. */ + initialDelay?: string; + /** The length of time between probes in ISO 8601 format. */ + period?: string; + /** The number of successful probes before returning a healthy status. */ + successThreshold?: number; + /** The probe timeout in ISO 8601 format. */ + timeout?: string; } -/** Mutable batch inference settings per deployment. */ -export interface PartialBatchDeployment { - /** Description of the endpoint deployment. */ - description?: string; +/** Online deployment scoring requests configuration. */ +export interface OnlineRequestSettings { + /** The number of maximum concurrent requests per node allowed per deployment. Defaults to 1. */ + maxConcurrentRequestsPerInstance?: number; + /** + * (Deprecated for Managed Online Endpoints) The maximum amount of time a request will stay in the queue in ISO 8601 format. + * Defaults to 500ms. + * (Now increase `request_timeout_ms` to account for any networking/queue delays) + */ + maxQueueWait?: string; + /** + * The scoring timeout in ISO 8601 format. + * Defaults to 5000ms. + */ + requestTimeout?: string; } -/** Publishing destination registry asset information */ -export interface DestinationAsset { - /** Destination registry name */ - registryName?: string; - /** Destination asset name */ - destinationName?: string; - /** Destination asset version */ - destinationVersion?: string; +/** Online deployment scaling configuration. */ +export interface OnlineScaleSettings { + /** Polymorphic discriminator, which specifies the different types this object can be */ + scaleType: "Default" | "TargetUtilization"; } -/** A paginated list of Datastore entities. */ -export interface DatastoreResourceArmPaginatedResult { - /** An array of objects of type Datastore. */ - value?: Datastore[]; - /** The link to the next page of Datastore objects. If null, there are no additional pages. */ - nextLink?: string; +/** Common SKU definition. */ +export interface PartialSku { + /** If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. */ + capacity?: number; + /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ + family?: string; + /** The name of the SKU. Ex - P3. It is typically a letter+number code. */ + name?: string; + /** The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. */ + size?: string; + /** This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. */ + tier?: SkuTier; } -/** 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"; +export interface DeploymentLogsRequest { + /** The type of container to retrieve logs from. */ + containerType?: ContainerType; + /** The maximum number of lines to tail. */ + tail?: number; } -/** Base definition for datastore secrets. */ -export interface DatastoreSecrets { - /** Polymorphic discriminator, which specifies the different types this object can be */ - secretsType: "AccountKey" | "Certificate" | "Sas" | "ServicePrincipal"; +export interface DeploymentLogs { + /** The retrieved online deployment logs. */ + content?: string; } -/** A paginated list of FeaturesetContainer entities. */ -export interface FeaturesetContainerResourceArmPaginatedResult { - /** An array of objects of type FeaturesetContainer. */ - value?: FeaturesetContainer[]; - /** The link to the next page of FeaturesetContainer objects. If null, there are no additional pages. */ +/** A paginated list of SkuResource entities. */ +export interface SkuResourceArmPaginatedResult { + /** The link to the next page of SkuResource objects. If null, there are no additional pages. */ nextLink?: string; + /** An array of objects of type SkuResource. */ + value?: SkuResource[]; } -/** A paginated list of Feature entities. */ -export interface FeatureResourceArmPaginatedResult { - /** An array of objects of type Feature. */ - value?: Feature[]; - /** The link to the next page of Feature objects. If null, there are no additional pages. */ - nextLink?: string; +/** Fulfills ARM Contract requirement to list all available SKUS for a resource. */ +export interface SkuResource { + /** Gets or sets the Sku Capacity. */ + capacity?: SkuCapacity; + /** + * The resource type name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceType?: string; + /** Gets or sets the Sku. */ + sku?: SkuSetting; } -/** A paginated list of FeaturesetVersion entities. */ -export interface FeaturesetVersionResourceArmPaginatedResult { - /** An array of objects of type FeaturesetVersion. */ - value?: FeaturesetVersion[]; - /** The link to the next page of FeaturesetVersion objects. If null, there are no additional pages. */ - nextLink?: string; +/** SKU capacity information */ +export interface SkuCapacity { + /** Gets or sets the default capacity. */ + default?: number; + /** Gets or sets the maximum. */ + maximum?: number; + /** Gets or sets the minimum. */ + minimum?: number; + /** Gets or sets the type of the scale. */ + scaleType?: SkuScaleType; } -/** DTO object representing specification */ -export interface FeaturesetSpecification { - /** Specifies the spec path */ - path?: string; +/** SkuSetting fulfills the need for stripped down SKU info in ARM contract. */ +export interface SkuSetting { + /** [Required] The name of the SKU. Ex - P3. It is typically a letter+number code. */ + name: string; + /** This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. */ + tier?: SkuTier; } -export interface MaterializationSettings { - /** Specifies the stores to which materialization should happen */ - storeType?: MaterializationStoreType; - /** Specifies the schedule details */ - schedule?: RecurrenceTrigger; - /** Specifies the notification details */ - notification?: NotificationSetting; - /** Specifies the compute resource settings */ - resource?: MaterializationComputeResource; - /** Specifies the spark compute settings */ - sparkConfiguration?: { [propertyName: string]: string | null }; +export interface RegenerateEndpointKeysRequest { + /** [Required] Specification for which type of key to generate. Primary or Secondary. */ + keyType: KeyType; + /** The value the key is set to. */ + keyValue?: string; } -export interface RecurrenceSchedule { - /** [Required] List of hours for the schedule. */ - hours: number[]; - /** [Required] List of minutes for the schedule. */ - minutes: number[]; - /** List of days for the schedule. */ - weekDays?: WeekDay[]; - /** List of month days for the schedule */ - monthDays?: number[]; +/** Service Token */ +export interface EndpointAuthToken { + /** Access token for endpoint authentication. */ + accessToken?: string; + /** Access token expiry time (UTC). */ + expiryTimeUtc?: number; + /** Refresh access token after time (UTC). */ + refreshAfterTimeUtc?: number; + /** Access token type. */ + tokenType?: string; } -export interface TriggerBase { - /** Polymorphic discriminator, which specifies the different types this object can be */ - triggerType: "Recurrence" | "Cron"; - /** - * Specifies end time of schedule in ISO 8601, but without a UTC offset. Refer https://en.wikipedia.org/wiki/ISO_8601. - * Recommented format would be "2022-06-01T00:00:01" - * If not present, the schedule will run indefinitely - */ - endTime?: string; - /** Specifies start time of schedule in ISO 8601 format, but without a UTC offset. */ - 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; -} - -/** Configuration for notification. */ -export interface NotificationSetting { - /** This is the email recipient list which has a limitation of 499 characters in total concat with comma separator */ - emails?: string[]; - /** Send email notification to user on specified notification type */ - emailOn?: EmailNotificationEnableType[]; - /** Send webhook callback to a service. Key is a user-provided name for the webhook. */ - webhooks?: { [propertyName: string]: WebhookUnion | null }; -} - -/** Webhook base */ -export interface Webhook { - /** Polymorphic discriminator, which specifies the different types this object can be */ - webhookType: "AzureDevOps"; - /** Send callback on a specified notification event */ - eventType?: string; -} - -/** DTO object representing compute resource */ -export interface MaterializationComputeResource { - /** Specifies the instance type */ - instanceType?: string; -} - -/** Request payload for creating a backfill request for a given feature set version */ -export interface FeaturesetVersionBackfillRequest { - /** Specifies description */ - displayName?: string; - /** Specifies description */ - description?: string; - /** Specifies the backfill feature window to be materialized */ - featureWindow?: FeatureWindow; - /** Specified the data availability status that you want to backfill */ - dataAvailabilityStatus?: DataAvailabilityStatus[]; - /** Specify the jobId to retry the failed materialization */ - jobId?: string; - /** Specifies the tags */ - tags?: { [propertyName: string]: string | null }; - /** Specifies the compute resource settings */ - resource?: MaterializationComputeResource; - /** Specifies the spark compute settings */ - sparkConfiguration?: { [propertyName: string]: string | null }; - /** Specifies the properties */ - properties?: { [propertyName: string]: string | null }; -} - -/** Specifies the feature window */ -export interface FeatureWindow { - /** Specifies the feature window start time */ - featureWindowStart?: Date; - /** Specifies the feature window end time */ - featureWindowEnd?: Date; -} - -/** Response payload for creating a backfill request for a given feature set version */ -export interface FeaturesetVersionBackfillResponse { - /** List of jobs submitted as part of the backfill request. */ - jobIds?: string[]; -} - -/** A paginated list of FeaturestoreEntityContainer entities. */ -export interface FeaturestoreEntityContainerResourceArmPaginatedResult { - /** An array of objects of type FeaturestoreEntityContainer. */ - value?: FeaturestoreEntityContainer[]; - /** The link to the next page of FeaturestoreEntityContainer objects. If null, there are no additional pages. */ - nextLink?: string; -} - -/** A paginated list of FeaturestoreEntityVersion entities. */ -export interface FeaturestoreEntityVersionResourceArmPaginatedResult { - /** An array of objects of type FeaturestoreEntityVersion. */ - value?: FeaturestoreEntityVersion[]; - /** The link to the next page of FeaturestoreEntityVersion objects. If null, there are no additional pages. */ +/** A paginated list of Schedule entities. */ +export interface ScheduleResourceArmPaginatedResult { + /** The link to the next page of Schedule objects. If null, there are no additional pages. */ nextLink?: string; + /** An array of objects of type Schedule. */ + value?: Schedule[]; } -/** DTO object representing index column */ -export interface IndexColumn { - /** Specifies the data type */ - dataType?: FeatureDataType; - /** Specifies the column name */ - columnName?: string; +export interface ScheduleActionBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + actionType: "CreateMonitor" | "InvokeBatchEndpoint" | "CreateJob"; } -/** A paginated list of JobBase entities. */ -export interface JobBaseResourceArmPaginatedResult { - /** An array of objects of type JobBase. */ - value?: JobBase[]; - /** The link to the next page of JobBase objects. If null, there are no additional pages. */ +/** A paginated list of ServerlessEndpoint entities. */ +export interface ServerlessEndpointTrackedResourceArmPaginatedResult { + /** The link to the next page of ServerlessEndpoint objects. If null, there are no additional pages. */ nextLink?: string; + /** An array of objects of type ServerlessEndpoint. */ + value?: ServerlessEndpoint[]; } -/** Job endpoint definition */ -export interface JobService { - /** Endpoint type. */ - jobServiceType?: string; - /** Port for endpoint. */ - port?: number; - /** Url for endpoint. */ - endpoint?: string; +export interface ServerlessEndpointProperties { + /** [Required] Specifies the authentication mode for the Serverless endpoint. */ + authMode: ServerlessInferenceEndpointAuthMode; + /** Specifies the content safety options. If omitted, the default content safety settings will be configured */ + contentSafety?: ContentSafety; /** - * Status of endpoint. + * The current state of the ServerlessEndpoint. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: string; + readonly endpointState?: ServerlessEndpointState; /** - * Any error in the service. + * The inference uri to target when making requests against the serverless endpoint * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; - /** Additional properties to set on the endpoint. */ - properties?: { [propertyName: string]: string | null }; + readonly inferenceEndpoint?: ServerlessInferenceEndpoint; /** - * 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. + * The MarketplaceSubscription Azure ID associated to this ServerlessEndpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - nodes?: NodesUnion; + readonly marketplaceSubscriptionId?: string; + /** The model settings (model id) for the model being serviced on the ServerlessEndpoint. */ + modelSettings?: ModelSettings; + /** + * Provisioning state for the endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: EndpointProvisioningState; } -/** Abstract Nodes definition */ -export interface Nodes { - /** Polymorphic discriminator, which specifies the different types this object can be */ - nodesValueType: "All"; +export interface ContentSafety { + /** [Required] Specifies the status of content safety. */ + contentSafetyStatus: ContentSafetyStatus; } -/** Base definition for identity configuration. */ -export interface IdentityConfiguration { - /** Polymorphic discriminator, which specifies the different types this object can be */ - identityType: "AMLToken" | "Managed" | "UserIdentity"; +export interface ServerlessInferenceEndpoint { + /** + * Specifies any required headers to target this serverless endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly headers?: { [propertyName: string]: string | null }; + /** [Required] The inference uri to target when making requests against the Serverless Endpoint. */ + uri: string; } -/** A paginated list of MarketplaceSubscription entities. */ -export interface MarketplaceSubscriptionResourceArmPaginatedResult { - /** An array of objects of type MarketplaceSubscription. */ - value?: MarketplaceSubscription[]; - /** The link to the next page of MarketplaceSubscription objects. If null, there are no additional pages. */ +export interface ModelSettings { + /** The unique model identifier that this ServerlessEndpoint should provision. */ + modelId?: 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[]; } -export interface MarketplaceSubscriptionProperties { - /** [Required] Target Marketplace Model ID to create a Marketplace Subscription for. */ - modelId: string; - /** - * Marketplace Plan associated with the Marketplace Subscription. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly marketplacePlan?: MarketplacePlan; - /** - * Current status of the Marketplace Subscription. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly marketplaceSubscriptionStatus?: MarketplaceSubscriptionStatus; +/** ARM ResourceId of a resource */ +export interface ArmResourceId { /** - * Provisioning State of the Marketplace Subscription. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Arm ResourceId is in the format "/subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Storage/storageAccounts/{StorageAccountName}" + * or "/subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{AcrName}" */ - readonly provisioningState?: MarketplaceSubscriptionProvisioningState; + resourceId?: string; } -export interface MarketplacePlan { - /** - * The identifying name of the Publisher of the Marketplace Plan. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly publisherId?: string; +/** Private endpoint connection definition. */ +export interface RegistryPrivateEndpointConnection { /** - * The identifying name of the Offer of the Marketplace Plan. - * NOTE: This property will not be serialized. It can only be populated by the server. + * This is the private endpoint connection name created on SRP + * Full resource id: /subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.MachineLearningServices/{resourceType}/{resourceName}/registryPrivateEndpointConnections/{peConnectionName} */ - readonly offerId?: string; + id?: string; + /** Same as workspace location. */ + location?: string; + /** The group ids */ + groupIds?: string[]; + /** The PE network resource that is linked to this PE connection. */ + privateEndpoint?: PrivateEndpointResource; + /** The connection state. */ + registryPrivateLinkServiceConnectionState?: RegistryPrivateLinkServiceConnectionState; + /** One of null, "Succeeded", "Provisioning", "Failed". While not approved, it's null. */ + provisioningState?: string; +} + +/** The Private Endpoint resource. */ +export interface PrivateEndpoint { /** - * The identifying name of the Plan of the Marketplace Plan. + * The ARM identifier for Private Endpoint * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly planId?: string; -} - -/** A paginated list of OnlineEndpoint entities. */ -export interface OnlineEndpointTrackedResourceArmPaginatedResult { - /** An array of objects of type OnlineEndpoint. */ - value?: OnlineEndpoint[]; - /** The link to the next page of OnlineEndpoint objects. If null, there are no additional pages. */ - nextLink?: string; + readonly id?: string; } -/** A paginated list of OnlineDeployment entities. */ -export interface OnlineDeploymentTrackedResourceArmPaginatedResult { - /** An array of objects of type OnlineDeployment. */ - value?: OnlineDeployment[]; - /** The link to the next page of OnlineDeployment objects. If null, there are no additional pages. */ - nextLink?: 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; } -/** Online deployment scaling configuration. */ -export interface OnlineScaleSettings { - /** Polymorphic discriminator, which specifies the different types this object can be */ - scaleType: "Default" | "TargetUtilization"; -} - -/** Online deployment scoring requests configuration. */ -export interface OnlineRequestSettings { - /** - * (Deprecated for Managed Online Endpoints) The maximum amount of time a request will stay in the queue in ISO 8601 format. - * Defaults to 500ms. - * (Now increase `request_timeout_ms` to account for any networking/queue delays) - */ - maxQueueWait?: string; - /** - * The scoring timeout in ISO 8601 format. - * Defaults to 5000ms. - */ - requestTimeout?: string; - /** The number of maximum concurrent requests per node allowed per deployment. Defaults to 1. */ - maxConcurrentRequestsPerInstance?: number; -} - -/** Deployment container liveness/readiness probe configuration. */ -export interface ProbeSettings { - /** The number of failures to allow before returning an unhealthy status. */ - failureThreshold?: number; - /** The number of successful probes before returning a healthy status. */ - successThreshold?: number; - /** The probe timeout in ISO 8601 format. */ - timeout?: string; - /** The length of time between probes in ISO 8601 format. */ - period?: string; - /** The delay before the first probe in ISO 8601 format. */ - initialDelay?: string; -} - -export interface DataCollector { - /** - * [Required] The collection configuration. Each collection has it own configuration to collect model data and the name of collection can be arbitrary string. - * Model data collector can be used for either payload logging or custom logging or both of them. Collection request and response are reserved for payload logging, others are for custom logging. - */ - collections: { [propertyName: string]: Collection | null }; - /** - * When model data is collected to blob storage, we need to roll the data to different path to avoid logging all of them in a single blob file. - * If the rolling rate is hour, all data will be collected in the blob path /yyyy/MM/dd/HH/. - * If it's day, all data will be collected in blob path /yyyy/MM/dd/. - * The other benefit of rolling path is that model monitoring ui is able to select a time range of data very quickly. - */ - rollingRate?: RollingRateType; - /** The request logging configuration for mdc, it includes advanced logging settings for all collections. It's optional. */ - requestLogging?: RequestLogging; -} - -export interface Collection { - /** The sampling rate for collection. Sampling rate 1.0 means we collect 100% of data by default. */ - samplingRate?: number; - /** Enable or disable data collection. */ - dataCollectionMode?: DataCollectionMode; - /** The data asset arm resource id. Client side will ensure data asset is pointing to the blob storage, and backend will collect data to the blob storage. */ - dataId?: string; - /** The msi client id used to collect logging to blob storage. If it's null,backend will pick a registered endpoint identity to auth. */ - clientId?: string; +/** 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[]; } -export interface RequestLogging { - /** For payload logging, we only collect payload by default. If customers also want to collect the specified headers, they can set them in captureHeaders so that backend will collect those headers along with payload. */ - captureHeaders?: string[]; +/** 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; } -/** Common SKU definition. */ -export interface PartialSku { - /** The name of the SKU. Ex - P3. It is typically a letter+number code. */ - name?: string; - /** This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. */ - tier?: SkuTier; - /** The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. */ - size?: string; - /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ - family?: string; - /** If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. */ - capacity?: number; +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 DeploymentLogsRequest { - /** The type of container to retrieve logs from. */ - containerType?: ContainerType; - /** The maximum number of lines to tail. */ - tail?: number; +/** 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; } -export interface DeploymentLogs { - /** The retrieved online deployment logs. */ - content?: string; +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; } -/** A paginated list of SkuResource entities. */ -export interface SkuResourceArmPaginatedResult { - /** An array of objects of type SkuResource. */ - value?: SkuResource[]; - /** The link to the next page of SkuResource objects. If null, there are no additional pages. */ - nextLink?: string; +/** 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 }; } -/** Fulfills ARM Contract requirement to list all available SKUS for a resource. */ -export interface SkuResource { +/** The List Aml user feature operation response. */ +export interface ListAmlUserFeatureResult { /** - * The resource type name. + * The list of AML user facing features. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resourceType?: string; - /** Gets or sets the Sku. */ - sku?: SkuSetting; - /** Gets or sets the Sku Capacity. */ - capacity?: SkuCapacity; -} - -/** SkuSetting fulfills the need for stripped down SKU info in ARM contract. */ -export interface SkuSetting { - /** [Required] The name of the SKU. Ex - P3. It is typically a letter+number code. */ - name: string; - /** This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. */ - tier?: SkuTier; -} - -/** SKU capacity information */ -export interface SkuCapacity { - /** Gets or sets the minimum. */ - minimum?: number; - /** Gets or sets the maximum. */ - maximum?: number; - /** Gets or sets the default capacity. */ - default?: number; - /** Gets or sets the type of the scale. */ - scaleType?: SkuScaleType; -} - -export interface RegenerateEndpointKeysRequest { - /** [Required] Specification for which type of key to generate. Primary or Secondary. */ - keyType: KeyType; - /** The value the key is set to. */ - keyValue?: string; -} - -/** Service Token */ -export interface EndpointAuthToken { - /** Access token for endpoint authentication. */ - accessToken?: string; - /** Access token type. */ - tokenType?: string; - /** Access token expiry time (UTC). */ - expiryTimeUtc?: number; - /** Refresh access token after time (UTC). */ - refreshAfterTimeUtc?: number; -} - -/** A paginated list of Schedule entities. */ -export interface ScheduleResourceArmPaginatedResult { - /** An array of objects of type Schedule. */ - value?: Schedule[]; - /** The link to the next page of Schedule objects. If null, there are no additional pages. */ - nextLink?: string; -} - -export interface ScheduleActionBase { - /** Polymorphic discriminator, which specifies the different types this object can be */ - actionType: "CreateMonitor" | "InvokeBatchEndpoint" | "CreateJob"; + readonly value?: AmlUserFeature[]; + /** + * The URI to fetch the next page of AML user features information. Call ListNext() with this to fetch the next page of AML user features information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } -/** A paginated list of ServerlessEndpoint entities. */ -export interface ServerlessEndpointTrackedResourceArmPaginatedResult { - /** An array of objects of type ServerlessEndpoint. */ - value?: ServerlessEndpoint[]; - /** The link to the next page of ServerlessEndpoint objects. If null, there are no additional pages. */ - nextLink?: string; +/** Features enabled for a workspace */ +export interface AmlUserFeature { + /** Specifies the feature ID */ + id?: string; + /** Specifies the feature name */ + displayName?: string; + /** Describes the feature for user experience */ + description?: string; } -export interface ServerlessEndpointProperties { - /** The model settings (model id) for the model being serviced on the ServerlessEndpoint. */ - modelSettings?: ModelSettings; - /** [Required] Specifies the authentication mode for the Serverless endpoint. */ - authMode: ServerlessInferenceEndpointAuthMode; +/** 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 { /** - * The inference uri to target when making requests against the serverless endpoint + * List of operations supported by the resource provider * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly inferenceEndpoint?: ServerlessInferenceEndpoint; + readonly value?: Operation[]; /** - * Provisioning state for the endpoint. + * 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 provisioningState?: EndpointProvisioningState; + readonly nextLink?: string; +} + +/** Details of a REST API operation, returned from the Resource Provider Operations API */ +export interface Operation { /** - * The current state of the ServerlessEndpoint. + * 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 endpointState?: ServerlessEndpointState; + readonly name?: string; /** - * The MarketplaceSubscription Azure ID associated to this ServerlessEndpoint. + * 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 marketplaceSubscriptionId?: string; - /** Specifies the content safety options. If omitted, the default content safety settings will be configured */ - contentSafety?: ContentSafety; -} - -export interface ModelSettings { - /** The unique model identifier that this ServerlessEndpoint should provision. */ - modelId?: string; -} - -export interface ServerlessInferenceEndpoint { - /** [Required] The inference uri to target when making requests against the Serverless Endpoint. */ - uri: string; + readonly isDataAction?: boolean; + /** Localized display information for this particular operation. */ + display?: OperationDisplay; /** - * Specifies any required headers to target this serverless endpoint. + * 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 headers?: { [propertyName: string]: string | null }; + 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; } -export interface ContentSafety { - /** [Required] Specifies the status of content safety. */ - contentSafetyStatus: ContentSafetyStatus; +/** 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; } -/** 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[]; +export interface EncryptionProperty { + /** Indicates whether or not the encryption is enabled for the workspace. */ + status: EncryptionStatus; + /** The identity that will be used to access the key vault for encryption at rest. */ + identity?: IdentityForCmk; + /** Customer Key vault properties. */ + keyVaultProperties: EncryptionKeyVaultProperties; } -/** 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; +/** Identity that will be used to access key vault for encryption at rest */ +export interface IdentityForCmk { + /** The ArmId of the user assigned identity that will be used to access the customer managed key vault */ + userAssignedIdentity?: string; } -/** 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; +export interface EncryptionKeyVaultProperties { + /** The ArmId of the keyVault where the customer owned encryption key is present. */ + keyVaultArmId: string; + /** Key vault uri to access the encryption key. */ + keyIdentifier: string; + /** For future use - The client id of the identity which will be used to access key vault. */ + identityClientId?: string; } -/** The 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. */ +/** A collection of information about the state of the connection between service consumer and provider. */ +export interface PrivateLinkServiceConnectionState { + /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ + status?: PrivateEndpointServiceConnectionStatus; + /** The reason for approval/rejection of the connection. */ description?: string; - /** Connection status of the service consumer with the service provider */ - status?: EndpointServiceConnectionStatus; + /** A message indicating if changes on the service provider require any updates on the consumer. */ + actionsRequired?: string; } -/** Details for each region the registry is in */ -export interface RegistryRegionArmDetails { - /** List of ACR accounts */ - acrDetails?: AcrDetails[]; - /** The location where the registry exists */ - location?: string; - /** List of storage accounts */ - storageAccountDetails?: StorageAccountDetails[]; +export interface ServerlessComputeSettings { + /** The resource ID of an existing virtual network subnet in which serverless compute nodes should be deployed */ + serverlessComputeCustomSubnet?: string; + /** The flag to signal if serverless compute nodes deployed in custom vNet would have no public IP addresses for a workspace with private endpoint */ + serverlessComputeNoPublicIP?: boolean; } -/** 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 SharedPrivateLinkResource { + /** Unique name of the private link. */ + name?: string; + /** The resource id that private link links to. */ + privateLinkResourceId?: string; + /** The private link resource group id. */ + groupId?: string; + /** Request message. */ + requestMessage?: string; + /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ + status?: PrivateEndpointServiceConnectionStatus; } -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 NotebookResourceInfo { + fqdn?: string; + /** the data plane resourceId that used to initialize notebook component */ + resourceId?: string; + /** The error that occurs when preparing notebook. */ + notebookPreparationError?: NotebookPreparationError; } -export interface UserCreatedAcrAccount { - /** ARM ResourceId of a resource */ - armResourceId?: ArmResourceId; +export interface NotebookPreparationError { + errorMessage?: string; + statusCode?: number; } -/** 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 ServiceManagedResourcesSettings { + /** The settings for the service managed cosmosdb account. */ + cosmosDb?: CosmosDbSettings; } -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 CosmosDbSettings { + /** The throughput of the collections in cosmosdb database */ + collectionsThroughput?: number; } -export interface UserCreatedStorageAccount { - /** ARM ResourceId of a resource */ - armResourceId?: ArmResourceId; +/** 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; + /** Firewall Sku used for FQDN Rules */ + firewallSku?: FirewallSku; } -/** 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 }; +/** 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; } -/** The List Aml user feature operation response. */ -export interface ListAmlUserFeatureResult { - /** - * The list of AML user facing features. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: AmlUserFeature[]; - /** - * The URI to fetch the next page of AML user features information. Call ListNext() with this to fetch the next page of AML user features information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; +/** 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; } -/** Features enabled for a workspace */ -export interface AmlUserFeature { - /** Specifies the feature ID */ - id?: string; - /** Specifies the feature name */ - displayName?: string; - /** Describes the feature for user experience */ - description?: string; +/** Settings for feature store type workspace. */ +export interface FeatureStoreSettings { + /** Compute runtime config for feature store type workspace. */ + computeRuntime?: ComputeRuntimeDto; + offlineStoreConnectionName?: string; + onlineStoreConnectionName?: string; } -/** Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet. */ -export interface ResourceId { - /** The ID of the resource */ - id: string; +/** Compute runtime config for feature store type workspace. */ +export interface ComputeRuntimeDto { + sparkRuntimeVersion?: string; } -export interface AKSSchema { - /** AKS properties */ - properties?: AKSSchemaProperties; +/** WorkspaceHub's configuration object. */ +export interface WorkspaceHubConfig { + additionalWorkspaceStorageAccounts?: string[]; + defaultWorkspaceResourceGroup?: string; } -/** AKS properties */ -export interface AKSSchemaProperties { - /** Cluster full qualified domain name */ - clusterFqdn?: string; - /** - * System services - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemServices?: SystemService[]; - /** Number of agents */ - agentCount?: number; - /** Agent virtual machine size */ - agentVmSize?: string; - /** Intended usage of the cluster */ - clusterPurpose?: ClusterPurpose; - /** SSL configuration */ - sslConfiguration?: SslConfiguration; - /** AKS networking configuration for vnet */ - aksNetworkingConfiguration?: AksNetworkingConfiguration; - /** Load Balancer Type */ - loadBalancerType?: LoadBalancerType; - /** Load Balancer Subnet */ - loadBalancerSubnet?: string; +/** The parameters for updating a machine learning workspace. */ +export interface WorkspaceUpdateParameters { + /** The resource tags for the machine learning workspace. */ + tags?: { [propertyName: string]: string }; + /** The sku of the workspace. */ + sku?: Sku; + /** The identity of the resource. */ + identity?: ManagedServiceIdentity; + /** The description of this workspace. */ + description?: string; + /** The friendly name for this workspace. */ + friendlyName?: string; + /** The compute name for image build */ + imageBuildCompute?: string; + /** The service managed resource settings. */ + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; + /** The user assigned identity resource id that represents the workspace identity. */ + primaryUserAssignedIdentity?: string; + /** Settings for serverless compute created in the workspace */ + serverlessComputeSettings?: ServerlessComputeSettings; + /** Whether requests from Public Network are allowed. */ + publicNetworkAccess?: PublicNetworkAccess; + /** ARM id of the application insights associated with this workspace. */ + applicationInsights?: string; + /** ARM id of the container registry associated with this workspace. */ + containerRegistry?: string; + /** Settings for feature store type workspace. */ + featureStoreSettings?: FeatureStoreSettings; + /** Managed Network settings for a machine learning workspace. */ + managedNetwork?: ManagedNetworkSettings; + enableDataIsolation?: boolean; + /** Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. */ + v1LegacyMode?: boolean; + encryption?: EncryptionUpdateProperties; } -/** A system service running on a compute. */ -export interface SystemService { - /** - * The type of this system service. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemServiceType?: string; - /** - * Public IP address - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly publicIpAddress?: string; - /** - * The version for this type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly version?: string; +export interface EncryptionUpdateProperties { + keyVaultProperties: EncryptionKeyVaultUpdateProperties; } -/** The ssl configuration for scoring */ -export interface SslConfiguration { - /** Enable or disable ssl for scoring */ - status?: SslConfigStatus; - /** Cert data */ - cert?: string; - /** Key data */ - key?: string; - /** CNAME of the cert */ - cname?: string; - /** Leaf domain label of public endpoint */ - leafDomainLabel?: string; - /** Indicates whether to overwrite existing domain label. */ - overwriteExistingDomain?: boolean; +export interface EncryptionKeyVaultUpdateProperties { + keyIdentifier: string; } -/** Advance configuration for AKS networking */ -export interface AksNetworkingConfiguration { - /** Virtual network subnet resource ID the compute nodes belong to */ - subnetId?: string; - /** A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges. */ - serviceCidr?: string; - /** An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr. */ - dnsServiceIP?: string; - /** A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any Subnet IP ranges or the Kubernetes service address range. */ - dockerBridgeCidr?: string; +/** The result of a request to list machine learning workspaces. */ +export interface WorkspaceListResult { + /** The list of machine learning workspaces. Since this list may be incomplete, the nextLink field should be used to request the next list of machine learning workspaces. */ + value?: Workspace[]; + /** The URI that can be used to request the next list of machine learning workspaces. */ + nextLink?: string; } -/** Kubernetes Compute Schema */ -export interface KubernetesSchema { - /** Properties of Kubernetes */ - properties?: KubernetesProperties; +/** Parameters to diagnose a workspace */ +export interface DiagnoseWorkspaceParameters { + /** Value of Parameters */ + value?: DiagnoseRequestProperties; } -/** Kubernetes properties */ -export interface KubernetesProperties { - /** Relay connection string. */ - relayConnectionString?: string; - /** ServiceBus connection string. */ - serviceBusConnectionString?: string; - /** Extension principal-id. */ - extensionPrincipalId?: string; - /** Extension instance release train. */ - extensionInstanceReleaseTrain?: string; - /** VC name. */ - vcName?: string; - /** Compute namespace */ - namespace?: string; - /** Default instance type */ - defaultInstanceType?: string; - /** Instance Type Schema */ - instanceTypes?: { [propertyName: string]: InstanceTypeSchema }; +export interface DiagnoseRequestProperties { + /** Setting for diagnosing user defined routing */ + udr?: { [propertyName: string]: Record }; + /** Setting for diagnosing network security group */ + nsg?: { [propertyName: string]: Record }; + /** Setting for diagnosing resource lock */ + resourceLock?: { [propertyName: string]: Record }; + /** Setting for diagnosing dns resolution */ + dnsResolution?: { [propertyName: string]: Record }; + /** Setting for diagnosing dependent storage account */ + storageAccount?: { [propertyName: string]: Record }; + /** Setting for diagnosing dependent key vault */ + keyVault?: { [propertyName: string]: Record }; + /** Setting for diagnosing dependent container registry */ + containerRegistry?: { [propertyName: string]: Record }; + /** Setting for diagnosing dependent application insights */ + applicationInsights?: { [propertyName: string]: Record }; + /** Setting for diagnosing unclassified category of problems */ + others?: { [propertyName: string]: Record }; } -/** Instance type schema. */ -export interface InstanceTypeSchema { - /** Node Selector */ - nodeSelector?: { [propertyName: string]: string | null }; - /** Resource requests/limits for this instance type */ - resources?: InstanceTypeSchemaResources; +export interface DiagnoseResponseResult { + value?: DiagnoseResponseResultValue; } -/** Resource requests/limits for this instance type */ -export interface InstanceTypeSchemaResources { - /** Resource requests for this instance type */ - requests?: { [propertyName: string]: string }; - /** Resource limits for this instance type */ - limits?: { [propertyName: string]: string }; +export interface DiagnoseResponseResultValue { + userDefinedRouteResults?: DiagnoseResult[]; + networkSecurityRuleResults?: DiagnoseResult[]; + resourceLockResults?: DiagnoseResult[]; + dnsResolutionResults?: DiagnoseResult[]; + storageAccountResults?: DiagnoseResult[]; + keyVaultResults?: DiagnoseResult[]; + containerRegistryResults?: DiagnoseResult[]; + applicationInsightsResults?: DiagnoseResult[]; + otherResults?: DiagnoseResult[]; } -/** AML Compute properties */ -export interface AmlComputeProperties { - /** Compute OS Type */ - osType?: OsType; - /** Virtual Machine Size */ - vmSize?: string; - /** Virtual Machine priority */ - vmPriority?: VmPriority; - /** Virtual Machine image for AML Compute - windows only */ - virtualMachineImage?: VirtualMachineImage; - /** Network is isolated or not */ - isolatedNetwork?: boolean; - /** Scale settings for AML Compute */ - scaleSettings?: ScaleSettings; - /** Credentials for an administrator user account that will be created on each compute node. */ - userAccountCredentials?: UserAccountCredentials; - /** Virtual network subnet resource ID the compute nodes belong to. */ - subnet?: ResourceId; - /** State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on all nodes of the cluster. Enabled - Indicates that the public ssh port is open on all nodes of the cluster. NotSpecified - Indicates that the public ssh port is closed on all nodes of the cluster if VNet is defined, else is open all public nodes. It can be default only during cluster creation time, after creation it will be either enabled or disabled. */ - remoteLoginPortPublicAccess?: RemoteLoginPortPublicAccess; - /** - * Allocation state of the compute. Possible values are: steady - Indicates that the compute is not resizing. There are no changes to the number of compute nodes in the compute in progress. A compute enters this state when it is created and when no operations are being performed on the compute to change the number of compute nodes. resizing - Indicates that the compute is resizing; that is, compute nodes are being added to or removed from the compute. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly allocationState?: AllocationState; - /** - * The time at which the compute entered its current allocation state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly allocationStateTransitionTime?: Date; - /** - * Collection of errors encountered by various compute nodes during node setup. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errors?: ErrorResponse[]; +/** Result of Diagnose */ +export interface DiagnoseResult { /** - * The number of compute nodes currently assigned to the compute. + * Code for workspace setup error * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentNodeCount?: number; + readonly code?: string; /** - * The target number of compute nodes for the compute. If the allocationState is resizing, this property denotes the target node count for the ongoing resize operation. If the allocationState is steady, this property denotes the target node count for the previous resize operation. + * Level of workspace setup error * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly targetNodeCount?: number; + readonly level?: DiagnoseResultLevel; /** - * Counts of various node states on the compute. + * Message of workspace setup error * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nodeStateCounts?: NodeStateCounts; - /** Enable or disable node public IP address provisioning. Possible values are: Possible values are: true - Indicates that the compute nodes will have public IPs provisioned. false - Indicates that the compute nodes will have a private endpoint and no public IPs. */ - enableNodePublicIp?: boolean; - /** A property bag containing additional properties. */ - propertyBag?: Record; -} - -/** Virtual Machine image for Windows AML Compute */ -export interface VirtualMachineImage { - /** Virtual Machine image path */ - id: string; + readonly message?: string; } -/** Settings for user account that gets created on each on the nodes of a compute. */ -export interface UserAccountCredentials { - /** Name of the administrator user account which can be used to SSH to nodes. */ - adminUserName: string; - /** SSH public key of the administrator user account. */ - adminUserSshPublicKey?: string; - /** Password of the administrator user account. */ - adminUserPassword?: string; +export interface ListWorkspaceKeysResult { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly userStorageKey?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly userStorageResourceId?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly appInsightsInstrumentationKey?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly containerRegistryCredentials?: RegistryListCredentialsResult; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly notebookAccessKeys?: ListNotebookKeysResult; } -/** Counts of various compute node states on the amlCompute. */ -export interface NodeStateCounts { - /** - * Number of compute nodes in idle state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly idleNodeCount?: number; - /** - * Number of compute nodes which are running jobs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly runningNodeCount?: number; - /** - * Number of compute nodes which are being prepared. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly preparingNodeCount?: number; - /** - * Number of compute nodes which are in unusable state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly unusableNodeCount?: number; - /** - * Number of compute nodes which are leaving the amlCompute. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly leavingNodeCount?: number; - /** - * Number of compute nodes which are in preempted state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly preemptedNodeCount?: number; +export interface RegistryListCredentialsResult { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly location?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly username?: string; + passwords?: Password[]; } -/** Properties(top level) of AmlCompute */ -export interface AmlComputeSchema { - /** Properties of AmlCompute */ - properties?: AmlComputeProperties; +export interface Password { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly name?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly value?: string; } -/** Compute Instance properties */ -export interface ComputeInstanceProperties { - /** Virtual Machine Size */ - vmSize?: string; - /** Virtual network subnet resource ID the compute nodes belong to. */ - subnet?: ResourceId; - /** Policy for sharing applications on this compute instance among users of parent workspace. If Personal, only the creator can access applications on this compute instance. When Shared, any workspace user can access applications on this instance depending on his/her assigned role. */ - applicationSharingPolicy?: ApplicationSharingPolicy; - /** Specifies policy and settings for SSH access. */ - sshSettings?: ComputeInstanceSshSettings; - /** 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. - */ - readonly connectivityEndpoints?: ComputeInstanceConnectivityEndpoints; - /** - * Describes available applications and their endpoints on this ComputeInstance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly applications?: ComputeInstanceApplication[]; - /** - * Describes information on user who created this ComputeInstance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly createdBy?: ComputeInstanceCreatedBy; - /** - * Collection of errors encountered on this ComputeInstance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errors?: ErrorResponse[]; - /** - * The current state of this ComputeInstance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly state?: ComputeInstanceState; - /** The Compute Instance Authorization type. Available values are personal (default). */ - computeInstanceAuthorizationType?: ComputeInstanceAuthorizationType; - /** Settings for a personal compute instance. */ - personalComputeInstanceSettings?: PersonalComputeInstanceSettings; - /** Details of customized scripts to execute for setting up the cluster. */ - setupScripts?: SetupScripts; - /** - * The last operation on ComputeInstance. - * 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. */ - 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; - /** - * Describes informations of containers on this ComputeInstance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly containers?: ComputeInstanceContainer[]; - /** - * Describes informations of dataDisks on this ComputeInstance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly dataDisks?: ComputeInstanceDataDisk[]; - /** - * Describes informations of dataMounts on this ComputeInstance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly dataMounts?: ComputeInstanceDataMount[]; - /** - * ComputeInstance version. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly versions?: ComputeInstanceVersion; +export interface ListNotebookKeysResult { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly primaryAccessKey?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly secondaryAccessKey?: string; } -/** Specifies policy and settings for SSH access. */ -export interface ComputeInstanceSshSettings { - /** State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh port is open and accessible according to the VNet/subnet policy if applicable. */ - sshPublicAccess?: SshPublicAccess; - /** - * Describes the admin user name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly adminUserName?: string; +export interface NotebookAccessTokenResult { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly notebookResourceId?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly hostName?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly publicDns?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly accessToken?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly tokenType?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly expiresIn?: number; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly refreshToken?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly scope?: string; +} + +/** List of private endpoint connection associated with the specified workspace */ +export interface PrivateEndpointConnectionListResult { + /** Array of private endpoint connections */ + value?: PrivateEndpointConnection[]; +} + +/** A list of private link resources */ +export interface PrivateLinkResourceListResult { + /** Array of private link resources */ + value?: PrivateLinkResource[]; +} + +export interface ListStorageAccountKeysResult { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly userStorageKey?: string; +} + +export interface WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: + | "PAT" + | "SAS" + | "UsernamePassword" + | "None" + | "ManagedIdentity" + | "AAD" + | "AccessKey" + | "AccountKey" + | "ApiKey" + | "CustomKeys" + | "OAuth2" + | "ServicePrincipal"; + /** Category of the connection */ + category?: ConnectionCategory; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly createdByWorkspaceArmId?: string; + expiryTime?: Date; /** - * Describes the port for connecting through SSH. + * Group based on connection category * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sshPort?: number; - /** Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs. */ - adminPublicKey?: string; + readonly group?: ConnectionGroup; + isSharedToAll?: boolean; + target?: string; + /** Store user metadata for this connection */ + metadata?: { [propertyName: string]: string }; + sharedUserList?: string[]; + /** Value details of the workspace connection. */ + value?: string; + /** format for the workspace connection value */ + valueFormat?: ValueFormat; } -/** 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[]; +/** The properties that the machine learning workspace connection will be updated with. */ +export interface WorkspaceConnectionUpdateParameter { + /** The properties that the machine learning workspace connection will be updated with. */ + properties?: WorkspaceConnectionPropertiesV2Union; } -/** 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; +export interface WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult { + value?: WorkspaceConnectionPropertiesV2BasicResource[]; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly nextLink?: 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; +export interface ExternalFqdnResponse { + value?: FqdnEndpoints[]; } -/** 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; +export interface FqdnEndpoints { + properties?: FqdnEndpointsProperties; } -/** 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; +export interface FqdnEndpointsProperties { + category?: string; + endpoints?: FqdnEndpoint[]; } -/** 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; +export interface FqdnEndpoint { + domainName?: string; + endpointDetails?: FqdnEndpointDetail[]; } -/** 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; +export interface FqdnEndpointDetail { + port?: number; } -/** Describes the volume options for the container */ -export interface VolumeOptions { - /** Indicate whether volume is nocopy */ - nocopy?: boolean; +/** 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[]; } -/** Describes the tmpfs options for the container */ -export interface TmpfsOptions { - /** Mention the Tmpfs size */ - size?: number; +/** Managed Network Provisioning options for managed network of a machine learning workspace. */ +export interface ManagedNetworkProvisionOptions { + includeSpark?: boolean; } -/** 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; +/** Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet. */ +export interface ResourceId { + /** The ID of the resource */ + id: string; } -/** Defines all connectivity endpoints and properties for an ComputeInstance. */ -export interface ComputeInstanceConnectivityEndpoints { - /** - * Public IP Address of this ComputeInstance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly publicIpAddress?: string; +export interface AKSSchema { + /** AKS properties */ + properties?: AKSSchemaProperties; +} + +/** AKS properties */ +export interface AKSSchemaProperties { + /** Cluster full qualified domain name */ + clusterFqdn?: string; /** - * Private IP Address of this ComputeInstance (local to the VNET in which the compute instance is deployed). + * System services * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateIpAddress?: string; -} - -/** Defines an Aml Instance application and its connectivity endpoint URI. */ -export interface ComputeInstanceApplication { - /** Name of the ComputeInstance application. */ - displayName?: string; - /** Application' endpoint URI. */ - endpointUri?: string; + readonly systemServices?: SystemService[]; + /** Number of agents */ + agentCount?: number; + /** Agent virtual machine size */ + agentVmSize?: string; + /** Intended usage of the cluster */ + clusterPurpose?: ClusterPurpose; + /** SSL configuration */ + sslConfiguration?: SslConfiguration; + /** AKS networking configuration for vnet */ + aksNetworkingConfiguration?: AksNetworkingConfiguration; + /** Load Balancer Type */ + loadBalancerType?: LoadBalancerType; + /** Load Balancer Subnet */ + loadBalancerSubnet?: string; } -/** Describes information on user who created this ComputeInstance. */ -export interface ComputeInstanceCreatedBy { +/** A system service running on a compute. */ +export interface SystemService { /** - * Name of the user. + * The type of this system service. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly userName?: string; + readonly systemServiceType?: string; /** - * Uniquely identifies user' Azure Active Directory organization. + * Public IP address * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly userOrgId?: string; + readonly publicIpAddress?: string; /** - * Uniquely identifies the user within his/her organization. + * The version for this type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly userId?: string; -} - -/** Settings for a personal compute instance. */ -export interface PersonalComputeInstanceSettings { - /** A user explicitly assigned to a personal compute instance. */ - assignedUser?: AssignedUser; + readonly version?: string; } -/** A user that can be assigned to a compute instance. */ -export interface AssignedUser { - /** User’s AAD Object Id. */ - objectId: string; - /** User’s AAD Tenant Id. */ - tenantId: string; +/** The ssl configuration for scoring */ +export interface SslConfiguration { + /** Enable or disable ssl for scoring */ + status?: SslConfigStatus; + /** Cert data */ + cert?: string; + /** Key data */ + key?: string; + /** CNAME of the cert */ + cname?: string; + /** Leaf domain label of public endpoint */ + leafDomainLabel?: string; + /** Indicates whether to overwrite existing domain label. */ + overwriteExistingDomain?: boolean; } -/** Details of customized scripts to execute for setting up the cluster. */ -export interface SetupScripts { - /** Customized setup scripts */ - scripts?: ScriptsToExecute; +/** Advance configuration for AKS networking */ +export interface AksNetworkingConfiguration { + /** Virtual network subnet resource ID the compute nodes belong to */ + subnetId?: string; + /** A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges. */ + serviceCidr?: string; + /** An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr. */ + dnsServiceIP?: string; + /** A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any Subnet IP ranges or the Kubernetes service address range. */ + dockerBridgeCidr?: string; } -/** Customized setup scripts */ -export interface ScriptsToExecute { - /** Script that's run every time the machine starts. */ - startupScript?: ScriptReference; - /** Script that's run only once during provision of the compute. */ - creationScript?: ScriptReference; +/** Kubernetes Compute Schema */ +export interface KubernetesSchema { + /** Properties of Kubernetes */ + properties?: KubernetesProperties; } -/** Script reference */ -export interface ScriptReference { - /** The storage source of the script: workspace. */ - scriptSource?: string; - /** The location of scripts in the mounted volume. */ - scriptData?: string; - /** Optional command line arguments passed to the script to run. */ - scriptArguments?: string; - /** Optional time period passed to timeout command. */ - timeout?: string; +/** Kubernetes properties */ +export interface KubernetesProperties { + /** Relay connection string. */ + relayConnectionString?: string; + /** ServiceBus connection string. */ + serviceBusConnectionString?: string; + /** Extension principal-id. */ + extensionPrincipalId?: string; + /** Extension instance release train. */ + extensionInstanceReleaseTrain?: string; + /** VC name. */ + vcName?: string; + /** Compute namespace */ + namespace?: string; + /** Default instance type */ + defaultInstanceType?: string; + /** Instance Type Schema */ + instanceTypes?: { [propertyName: string]: InstanceTypeSchema }; } -/** The last operation on ComputeInstance. */ -export interface ComputeInstanceLastOperation { - /** Name of the last operation. */ - operationName?: OperationName; - /** Time of the last operation. */ - operationTime?: Date; - /** Operation status. */ - operationStatus?: OperationStatus; - /** Trigger of operation. */ - operationTrigger?: OperationTrigger; +/** Instance type schema. */ +export interface InstanceTypeSchema { + /** Node Selector */ + nodeSelector?: { [propertyName: string]: string | null }; + /** Resource requests/limits for this instance type */ + resources?: InstanceTypeSchemaResources; } -/** The list of schedules to be applied on the computes */ -export interface ComputeSchedules { - /** The list of compute start stop schedules to be applied. */ - computeStartStop?: ComputeStartStopSchedule[]; +/** Resource requests/limits for this instance type */ +export interface InstanceTypeSchemaResources { + /** Resource requests for this instance type */ + requests?: { [propertyName: string]: string }; + /** Resource limits for this instance type */ + limits?: { [propertyName: string]: string }; } -/** Compute start stop schedule properties */ -export interface ComputeStartStopSchedule { +/** AML Compute properties */ +export interface AmlComputeProperties { + /** Compute OS Type */ + osType?: OsType; + /** Virtual Machine Size */ + vmSize?: string; + /** Virtual Machine priority */ + vmPriority?: VmPriority; + /** Virtual Machine image for AML Compute - windows only */ + virtualMachineImage?: VirtualMachineImage; + /** Network is isolated or not */ + isolatedNetwork?: boolean; + /** Scale settings for AML Compute */ + scaleSettings?: ScaleSettings; + /** Credentials for an administrator user account that will be created on each compute node. */ + userAccountCredentials?: UserAccountCredentials; + /** Virtual network subnet resource ID the compute nodes belong to. */ + subnet?: ResourceId; + /** State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on all nodes of the cluster. Enabled - Indicates that the public ssh port is open on all nodes of the cluster. NotSpecified - Indicates that the public ssh port is closed on all nodes of the cluster if VNet is defined, else is open all public nodes. It can be default only during cluster creation time, after creation it will be either enabled or disabled. */ + remoteLoginPortPublicAccess?: RemoteLoginPortPublicAccess; /** - * A system assigned id for the schedule. + * Allocation state of the compute. Possible values are: steady - Indicates that the compute is not resizing. There are no changes to the number of compute nodes in the compute in progress. A compute enters this state when it is created and when no operations are being performed on the compute to change the number of compute nodes. resizing - Indicates that the compute is resizing; that is, compute nodes are being added to or removed from the compute. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly allocationState?: AllocationState; /** - * The current deployment state of schedule. + * The time at which the compute entered its current allocation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningStatus?: ProvisioningStatus; - /** Is the schedule enabled or disabled? */ - status?: ScheduleStatus; - /** [Required] The compute power action. */ - action?: ComputePowerAction; - /** [Required] The schedule trigger type. */ - triggerType?: ComputeTriggerType; - /** Required if triggerType is Recurrence. */ - recurrence?: Recurrence; - /** Required if triggerType is Cron. */ - cron?: Cron; - /** [Deprecated] Not used any more. */ - schedule?: ScheduleBase; -} - -/** The workflow trigger recurrence for ComputeStartStop schedule type. */ -export interface Recurrence { - /** [Required] The frequency to trigger schedule. */ - frequency?: ComputeRecurrenceFrequency; - /** [Required] Specifies schedule interval in conjunction with frequency */ - interval?: number; - /** The start time in yyyy-MM-ddTHH:mm:ss format. */ - startTime?: string; + readonly allocationStateTransitionTime?: Date; /** - * 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 + * Collection of errors encountered by various compute nodes during node setup. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - timeZone?: string; - /** [Required] The recurrence schedule. */ - schedule?: ComputeRecurrenceSchedule; + readonly errors?: ErrorResponse[]; + /** + * The number of compute nodes currently assigned to the compute. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentNodeCount?: number; + /** + * The target number of compute nodes for the compute. If the allocationState is resizing, this property denotes the target node count for the ongoing resize operation. If the allocationState is steady, this property denotes the target node count for the previous resize operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly targetNodeCount?: number; + /** + * Counts of various node states on the compute. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nodeStateCounts?: NodeStateCounts; + /** Enable or disable node public IP address provisioning. Possible values are: Possible values are: true - Indicates that the compute nodes will have public IPs provisioned. false - Indicates that the compute nodes will have a private endpoint and no public IPs. */ + enableNodePublicIp?: boolean; + /** A property bag containing additional properties. */ + propertyBag?: Record; } -export interface ComputeRecurrenceSchedule { - /** [Required] List of hours for the schedule. */ - hours: number[]; - /** [Required] List of minutes for the schedule. */ - minutes: number[]; - /** List of month days for the schedule */ - monthDays?: number[]; - /** List of days for the schedule. */ - weekDays?: ComputeWeekDay[]; +/** Virtual Machine image for Windows AML Compute */ +export interface VirtualMachineImage { + /** Virtual Machine image path */ + id: string; } -/** The workflow trigger cron for ComputeStartStop schedule type. */ -export interface Cron { - /** The start time in yyyy-MM-ddTHH:mm:ss format. */ - startTime?: string; +/** Settings for user account that gets created on each on the nodes of a compute. */ +export interface UserAccountCredentials { + /** Name of the administrator user account which can be used to SSH to nodes. */ + adminUserName: string; + /** SSH public key of the administrator user account. */ + adminUserSshPublicKey?: string; + /** Password of the administrator user account. */ + adminUserPassword?: string; +} + +/** Counts of various compute node states on the amlCompute. */ +export interface NodeStateCounts { /** - * 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 + * Number of compute nodes in idle state. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - timeZone?: string; + readonly idleNodeCount?: number; /** - * [Required] Specifies cron expression of schedule. - * The expression should follow NCronTab format. + * Number of compute nodes which are running jobs. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - expression?: string; + readonly runningNodeCount?: number; + /** + * Number of compute nodes which are being prepared. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly preparingNodeCount?: number; + /** + * Number of compute nodes which are in unusable state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly unusableNodeCount?: number; + /** + * Number of compute nodes which are leaving the amlCompute. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly leavingNodeCount?: number; + /** + * Number of compute nodes which are in preempted state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly preemptedNodeCount?: number; } -export interface ScheduleBase { - /** A system assigned id for the schedule. */ - id?: string; - /** The current deployment state of schedule. */ - provisioningStatus?: ScheduleProvisioningState; - /** Is the schedule enabled or disabled? */ - status?: ScheduleStatus; +/** Properties(top level) of AmlCompute */ +export interface AmlComputeSchema { + /** Properties of AmlCompute */ + properties?: AmlComputeProperties; } -/** Defines an Aml Instance container. */ -export interface ComputeInstanceContainer { - /** Name of the ComputeInstance container. */ - name?: string; - /** Auto save settings. */ - autosave?: Autosave; - /** Information of GPU. */ - gpu?: string; - /** network of this container. */ - network?: Network; - /** Environment information of this container. */ - environment?: ComputeInstanceEnvironmentInfo; +/** Compute Instance properties */ +export interface ComputeInstanceProperties { + /** Virtual Machine Size */ + vmSize?: string; + /** Virtual network subnet resource ID the compute nodes belong to. */ + subnet?: ResourceId; + /** Policy for sharing applications on this compute instance among users of parent workspace. If Personal, only the creator can access applications on this compute instance. When Shared, any workspace user can access applications on this instance depending on his/her assigned role. */ + applicationSharingPolicy?: ApplicationSharingPolicy; + /** Specifies policy and settings for SSH access. */ + sshSettings?: ComputeInstanceSshSettings; + /** List of Custom Services added to the compute. */ + customServices?: CustomService[]; /** - * services of this containers. + * 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 services?: Record[]; + 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. + */ + readonly connectivityEndpoints?: ComputeInstanceConnectivityEndpoints; + /** + * Describes available applications and their endpoints on this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly applications?: ComputeInstanceApplication[]; + /** + * Describes information on user who created this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdBy?: ComputeInstanceCreatedBy; + /** + * Collection of errors encountered on this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errors?: ErrorResponse[]; + /** + * The current state of this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: ComputeInstanceState; + /** The Compute Instance Authorization type. Available values are personal (default). */ + computeInstanceAuthorizationType?: ComputeInstanceAuthorizationType; + /** Settings for a personal compute instance. */ + personalComputeInstanceSettings?: PersonalComputeInstanceSettings; + /** Details of customized scripts to execute for setting up the cluster. */ + setupScripts?: SetupScripts; + /** + * The last operation on ComputeInstance. + * 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. */ + 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; + /** + * Describes informations of containers on this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly containers?: ComputeInstanceContainer[]; + /** + * Describes informations of dataDisks on this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dataDisks?: ComputeInstanceDataDisk[]; + /** + * Describes informations of dataMounts on this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dataMounts?: ComputeInstanceDataMount[]; + /** + * ComputeInstance version. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly versions?: ComputeInstanceVersion; } -/** Environment information */ -export interface ComputeInstanceEnvironmentInfo { - /** name of environment. */ +/** Specifies policy and settings for SSH access. */ +export interface ComputeInstanceSshSettings { + /** State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh port is open and accessible according to the VNet/subnet policy if applicable. */ + sshPublicAccess?: SshPublicAccess; + /** + * Describes the admin user name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly adminUserName?: string; + /** + * Describes the port for connecting through SSH. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sshPort?: number; + /** Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs. */ + adminPublicKey?: string; +} + +/** 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; - /** version of environment. */ - version?: 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[]; } -/** Defines an Aml Instance DataDisk. */ -export interface ComputeInstanceDataDisk { - /** Caching type of Data Disk. */ - caching?: Caching; - /** The initial disk size in gigabytes. */ - diskSizeGB?: number; - /** The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun. */ - lun?: number; - /** type of this storage account. */ - storageAccountType?: StorageAccountType; +/** 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; } -/** Defines an Aml Instance DataMount. */ -export interface ComputeInstanceDataMount { - /** Source of the ComputeInstance data mount. */ - source?: string; - /** Data source type. */ - sourceType?: SourceType; - /** name of the ComputeInstance data mount. */ - mountName?: string; - /** Mount Action. */ - mountAction?: MountAction; - /** who this data mount created by. */ - createdBy?: string; - /** Path of this data mount. */ - mountPath?: string; - /** Mount state. */ - mountState?: MountState; - /** The time when the disk mounted. */ - mountedOn?: Date; - /** Error of this data mount. */ - error?: string; +/** 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; } -/** Version of computeInstance. */ -export interface ComputeInstanceVersion { - /** Runtime of compute instance. */ - runtime?: 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; } -/** Properties(top level) of ComputeInstance */ -export interface ComputeInstanceSchema { - /** Properties of ComputeInstance */ - properties?: ComputeInstanceProperties; +/** 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; } -export interface VirtualMachineSchema { - properties?: VirtualMachineSchemaProperties; +/** 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; } -export interface VirtualMachineSchemaProperties { - /** Virtual Machine size */ - virtualMachineSize?: string; - /** Port open for ssh connections. */ - sshPort?: number; - /** Notebook server port open for ssh connections. */ - notebookServerPort?: number; - /** Public IP address of the virtual machine. */ - address?: string; - /** Admin credentials for virtual machine */ - administratorAccount?: VirtualMachineSshCredentials; - /** Indicates whether this compute will be used for running notebooks. */ - isNotebookInstanceCompute?: boolean; +/** 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; } -/** Admin credentials for virtual machine */ -export interface VirtualMachineSshCredentials { - /** Username of admin account */ - username?: string; - /** Password of admin account */ - password?: string; - /** Public key data */ - publicKeyData?: string; - /** Private key data */ - privateKeyData?: string; +/** Describes the volume options for the container */ +export interface VolumeOptions { + /** Indicate whether volume is nocopy */ + nocopy?: boolean; } -/** HDInsight compute properties */ -export interface HDInsightProperties { - /** Port open for ssh connections on the master node of the cluster. */ - sshPort?: number; - /** Public IP address of the master node of the cluster. */ - address?: string; - /** Admin credentials for master node of the cluster */ - administratorAccount?: VirtualMachineSshCredentials; +/** Describes the tmpfs options for the container */ +export interface TmpfsOptions { + /** Mention the Tmpfs size */ + size?: number; } -export interface HDInsightSchema { - /** HDInsight compute properties */ - properties?: HDInsightProperties; +/** 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; } -/** Properties of Databricks */ -export interface DatabricksProperties { - /** Databricks access token */ - databricksAccessToken?: string; - /** Workspace Url */ - workspaceUrl?: string; +/** Defines all connectivity endpoints and properties for an ComputeInstance. */ +export interface ComputeInstanceConnectivityEndpoints { + /** + * Public IP Address of this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly publicIpAddress?: string; + /** + * Private IP Address of this ComputeInstance (local to the VNET in which the compute instance is deployed). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateIpAddress?: string; } -export interface DatabricksSchema { - /** Properties of Databricks */ - properties?: DatabricksProperties; +/** Defines an Aml Instance application and its connectivity endpoint URI. */ +export interface ComputeInstanceApplication { + /** Name of the ComputeInstance application. */ + displayName?: string; + /** Application' endpoint URI. */ + endpointUri?: string; } -export interface DataLakeAnalyticsSchema { - properties?: DataLakeAnalyticsSchemaProperties; +/** Describes information on user who created this ComputeInstance. */ +export interface ComputeInstanceCreatedBy { + /** + * Name of the user. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly userName?: string; + /** + * Uniquely identifies user' Azure Active Directory organization. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly userOrgId?: string; + /** + * Uniquely identifies the user within his/her organization. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly userId?: string; } -export interface DataLakeAnalyticsSchemaProperties { - /** DataLake Store Account Name */ - dataLakeStoreAccountName?: string; +/** Settings for a personal compute instance. */ +export interface PersonalComputeInstanceSettings { + /** A user explicitly assigned to a personal compute instance. */ + assignedUser?: AssignedUser; } -export interface SynapseSparkProperties { - /** Auto scale properties. */ - autoScaleProperties?: AutoScaleProperties; - /** Auto pause properties. */ - autoPauseProperties?: AutoPauseProperties; - /** Spark version. */ - sparkVersion?: string; - /** The number of compute nodes currently assigned to the compute. */ - nodeCount?: number; - /** Node size. */ - nodeSize?: string; - /** Node size family. */ - nodeSizeFamily?: string; - /** Azure subscription identifier. */ - subscriptionId?: string; - /** Name of the resource group in which workspace is located. */ - resourceGroup?: string; - /** Name of Azure Machine Learning workspace. */ - workspaceName?: string; - /** Pool name. */ - poolName?: string; +/** A user that can be assigned to a compute instance. */ +export interface AssignedUser { + /** User’s AAD Object Id. */ + objectId: string; + /** User’s AAD Tenant Id. */ + tenantId: string; } -/** Auto scale properties */ -export interface AutoScaleProperties { - minNodeCount?: number; - enabled?: boolean; - maxNodeCount?: number; +/** Details of customized scripts to execute for setting up the cluster. */ +export interface SetupScripts { + /** Customized setup scripts */ + scripts?: ScriptsToExecute; } -/** Auto pause properties */ -export interface AutoPauseProperties { - delayInMinutes?: number; - enabled?: boolean; +/** Customized setup scripts */ +export interface ScriptsToExecute { + /** Script that's run every time the machine starts. */ + startupScript?: ScriptReference; + /** Script that's run only once during provision of the compute. */ + creationScript?: ScriptReference; } -/** Properties of AksComputeSecrets */ -export interface AksComputeSecretsProperties { - /** Content of kubeconfig file that can be used to connect to the Kubernetes cluster. */ - userKubeConfig?: string; - /** Content of kubeconfig file that can be used to connect to the Kubernetes cluster. */ - adminKubeConfig?: string; - /** Image registry pull secret. */ - imagePullSecretName?: string; -} - -export interface VirtualMachineSecretsSchema { - /** Admin credentials for virtual machine. */ - administratorAccount?: VirtualMachineSshCredentials; +/** Script reference */ +export interface ScriptReference { + /** The storage source of the script: workspace. */ + scriptSource?: string; + /** The location of scripts in the mounted volume. */ + scriptData?: string; + /** Optional command line arguments passed to the script to run. */ + scriptArguments?: string; + /** Optional time period passed to timeout command. */ + timeout?: string; } -/** Properties of Databricks Compute Secrets */ -export interface DatabricksComputeSecretsProperties { - /** access token for databricks account. */ - databricksAccessToken?: string; +/** The last operation on ComputeInstance. */ +export interface ComputeInstanceLastOperation { + /** Name of the last operation. */ + operationName?: OperationName; + /** Time of the last operation. */ + operationTime?: Date; + /** Operation status. */ + operationStatus?: OperationStatus; + /** Trigger of operation. */ + operationTrigger?: OperationTrigger; } -/** 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; +/** The list of schedules to be applied on the computes */ +export interface ComputeSchedules { + /** The list of compute start stop schedules to be applied. */ + computeStartStop?: ComputeStartStopSchedule[]; } -/** 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; +/** Compute start stop schedule properties */ +export interface ComputeStartStopSchedule { + /** + * A system assigned id for the schedule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The current deployment state of schedule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatus?: ProvisioningStatus; + /** Is the schedule enabled or disabled? */ + status?: ScheduleStatus; + /** [Required] The compute power action. */ + action?: ComputePowerAction; + /** [Required] The schedule trigger type. */ + triggerType?: ComputeTriggerType; + /** Required if triggerType is Recurrence. */ + recurrence?: Recurrence; + /** Required if triggerType is Cron. */ + cron?: Cron; + /** [Deprecated] Not used any more. */ + schedule?: ScheduleBase; } -/** 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; +/** The workflow trigger recurrence for ComputeStartStop schedule type. */ +export interface Recurrence { + /** [Required] The frequency to trigger schedule. */ + frequency?: ComputeRecurrenceFrequency; + /** [Required] Specifies schedule interval in conjunction with frequency */ + interval?: number; + /** The start time in yyyy-MM-ddTHH:mm:ss format. */ + startTime?: string; /** - * Optional, if provided, the ServiceTag property will be ignored. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies time zone in which the schedule runs. + * TimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11 */ - readonly addressPrefixes?: string[]; - portRanges?: string; - protocol?: string; - serviceTag?: string; + timeZone?: string; + /** [Required] The recurrence schedule. */ + schedule?: ComputeRecurrenceSchedule; } -export interface WorkspaceConnectionUsernamePassword { - username?: string; - password?: string; - /** Optional, required by connections like SalesForce for extra security in addition to UsernamePassword */ - securityToken?: string; +export interface ComputeRecurrenceSchedule { + /** [Required] List of hours for the schedule. */ + hours: number[]; + /** [Required] List of minutes for the schedule. */ + minutes: number[]; + /** List of month days for the schedule */ + monthDays?: number[]; + /** List of days for the schedule. */ + weekDays?: ComputeWeekDay[]; } -export interface WorkspaceConnectionPersonalAccessToken { - pat?: string; +/** 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 WorkspaceConnectionSharedAccessSignature { - sas?: string; +export interface ScheduleBase { + /** A system assigned id for the schedule. */ + id?: string; + /** The current deployment state of schedule. */ + provisioningStatus?: ScheduleProvisioningState; + /** Is the schedule enabled or disabled? */ + status?: ScheduleStatus; } -export interface WorkspaceConnectionAccountKey { - key?: string; +/** Defines an Aml Instance container. */ +export interface ComputeInstanceContainer { + /** Name of the ComputeInstance container. */ + name?: string; + /** Auto save settings. */ + autosave?: Autosave; + /** Information of GPU. */ + gpu?: string; + /** network of this container. */ + network?: Network; + /** Environment information of this container. */ + environment?: ComputeInstanceEnvironmentInfo; + /** + * services of this containers. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly services?: Record[]; } -export interface WorkspaceConnectionManagedIdentity { - resourceId?: string; - clientId?: string; +/** Environment information */ +export interface ComputeInstanceEnvironmentInfo { + /** name of environment. */ + name?: string; + /** version of environment. */ + version?: string; } -export interface WorkspaceConnectionAccessKey { - accessKeyId?: string; - secretAccessKey?: string; +/** Defines an Aml Instance DataDisk. */ +export interface ComputeInstanceDataDisk { + /** Caching type of Data Disk. */ + caching?: Caching; + /** The initial disk size in gigabytes. */ + diskSizeGB?: number; + /** The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun. */ + lun?: number; + /** type of this storage account. */ + storageAccountType?: StorageAccountType; } -/** Api key object for workspace connection credential. */ -export interface WorkspaceConnectionApiKey { - key?: string; +/** Defines an Aml Instance DataMount. */ +export interface ComputeInstanceDataMount { + /** Source of the ComputeInstance data mount. */ + source?: string; + /** Data source type. */ + sourceType?: SourceType; + /** name of the ComputeInstance data mount. */ + mountName?: string; + /** Mount Action. */ + mountAction?: MountAction; + /** who this data mount created by. */ + createdBy?: string; + /** Path of this data mount. */ + mountPath?: string; + /** Mount state. */ + mountState?: MountState; + /** The time when the disk mounted. */ + mountedOn?: Date; + /** Error of this data mount. */ + error?: string; } -/** Custom Keys credential object */ -export interface CustomKeys { - /** Dictionary of */ - keys?: { [propertyName: string]: string }; +/** Version of computeInstance. */ +export interface ComputeInstanceVersion { + /** Runtime of compute instance. */ + runtime?: string; } -/** - * ClientId and ClientSecret are required. Other properties are optional - * depending on each OAuth2 provider's implementation. - */ -export interface WorkspaceConnectionOAuth2 { - /** Required by Concur connection category */ - authUrl?: string; - /** Client id in the format of UUID */ - clientId?: string; - clientSecret?: string; - /** Required by GoogleAdWords connection category */ - developerToken?: string; - password?: string; - /** - * Required by GoogleBigQuery, GoogleAdWords, Hubspot, QuickBooks, Square, Xero, Zoho - * where user needs to get RefreshToken offline - */ - refreshToken?: string; - /** Required by QuickBooks and Xero connection categories */ - tenantId?: string; - /** - * Concur, ServiceNow auth server AccessToken grant type is 'Password' - * which requires UsernamePassword - */ - username?: string; +/** Properties(top level) of ComputeInstance */ +export interface ComputeInstanceSchema { + /** Properties of ComputeInstance */ + properties?: ComputeInstanceProperties; } -export interface WorkspaceConnectionServicePrincipal { - clientId?: string; - clientSecret?: string; - tenantId?: string; +export interface VirtualMachineSchema { + properties?: VirtualMachineSchemaProperties; } -export interface MonitoringFeatureFilterBase { - /** Polymorphic discriminator, which specifies the different types this object can be */ - filterType: "AllFeatures" | "FeatureSubset" | "TopNByAttribution"; +export interface VirtualMachineSchemaProperties { + /** Virtual Machine size */ + virtualMachineSize?: string; + /** Port open for ssh connections. */ + sshPort?: number; + /** Notebook server port open for ssh connections. */ + notebookServerPort?: number; + /** Public IP address of the virtual machine. */ + address?: string; + /** Admin credentials for virtual machine */ + administratorAccount?: VirtualMachineSshCredentials; + /** Indicates whether this compute will be used for running notebooks. */ + isNotebookInstanceCompute?: boolean; } -/** Monitor compute identity base definition. */ -export interface MonitorComputeIdentityBase { - /** Polymorphic discriminator, which specifies the different types this object can be */ +/** Admin credentials for virtual machine */ +export interface VirtualMachineSshCredentials { + /** Username of admin account */ + username?: string; + /** Password of admin account */ + password?: string; + /** Public key data */ + publicKeyData?: string; + /** Private key data */ + privateKeyData?: string; +} + +/** HDInsight compute properties */ +export interface HDInsightProperties { + /** Port open for ssh connections on the master node of the cluster. */ + sshPort?: number; + /** Public IP address of the master node of the cluster. */ + address?: string; + /** Admin credentials for master node of the cluster */ + administratorAccount?: VirtualMachineSshCredentials; +} + +export interface HDInsightSchema { + /** HDInsight compute properties */ + properties?: HDInsightProperties; +} + +/** Properties of Databricks */ +export interface DatabricksProperties { + /** Databricks access token */ + databricksAccessToken?: string; + /** Workspace Url */ + workspaceUrl?: string; +} + +export interface DatabricksSchema { + /** Properties of Databricks */ + properties?: DatabricksProperties; +} + +export interface DataLakeAnalyticsSchema { + properties?: DataLakeAnalyticsSchemaProperties; +} + +export interface DataLakeAnalyticsSchemaProperties { + /** DataLake Store Account Name */ + dataLakeStoreAccountName?: string; +} + +export interface SynapseSparkProperties { + /** Auto scale properties. */ + autoScaleProperties?: AutoScaleProperties; + /** Auto pause properties. */ + autoPauseProperties?: AutoPauseProperties; + /** Spark version. */ + sparkVersion?: string; + /** The number of compute nodes currently assigned to the compute. */ + nodeCount?: number; + /** Node size. */ + nodeSize?: string; + /** Node size family. */ + nodeSizeFamily?: string; + /** Azure subscription identifier. */ + subscriptionId?: string; + /** Name of the resource group in which workspace is located. */ + resourceGroup?: string; + /** Name of Azure Machine Learning workspace. */ + workspaceName?: string; + /** Pool name. */ + poolName?: string; +} + +/** Auto scale properties */ +export interface AutoScaleProperties { + minNodeCount?: number; + enabled?: boolean; + maxNodeCount?: number; +} + +/** Auto pause properties */ +export interface AutoPauseProperties { + delayInMinutes?: number; + enabled?: boolean; +} + +/** Properties of AksComputeSecrets */ +export interface AksComputeSecretsProperties { + /** Content of kubeconfig file that can be used to connect to the Kubernetes cluster. */ + userKubeConfig?: string; + /** Content of kubeconfig file that can be used to connect to the Kubernetes cluster. */ + adminKubeConfig?: string; + /** Image registry pull secret. */ + imagePullSecretName?: string; +} + +export interface VirtualMachineSecretsSchema { + /** Admin credentials for virtual machine. */ + administratorAccount?: VirtualMachineSshCredentials; +} + +/** Properties of Databricks Compute Secrets */ +export interface DatabricksComputeSecretsProperties { + /** access token for databricks account. */ + databricksAccessToken?: string; +} + +/** 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; +} + +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 { - /** [Required] Input Asset URI. */ - uri: string; /** Input Asset Delivery Mode. */ mode?: InputDeliveryMode; + /** [Required] Input Asset URI. */ + uri: string; } /** Asset output type. */ export interface AssetJobOutput { - /** Output Asset URI. */ - uri?: string; /** Output Asset Delivery Mode. */ mode?: OutputDeliveryMode; + /** Output Asset URI. */ + uri?: string; } /** The desired maximum forecast horizon in units of time-series frequency. */ @@ -3174,6 +3072,25 @@ export interface ForecastHorizon { mode: "Auto" | "Custom"; } +/** Job output definition container information on where to find job output/logs. */ +export interface JobOutput { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobOutputType: + | "custom_model" + | "mlflow_model" + | "mltable" + | "triton_model" + | "uri_file" + | "uri_folder"; + /** Description for the output. */ + description?: string; +} + +export interface QueueSettings { + /** Controls the compute job tier */ + jobTier?: JobTier; +} + /** * AutoML vertical class. * Base class for AutoML verticals - TableVertical/ImageVertical/NLPVertical @@ -3193,13 +3110,13 @@ export interface AutoMLVertical { | "TextNER"; /** Log verbosity for the job. */ logVerbosity?: LogVerbosity; - /** [Required] Training data input. */ - trainingData: MLTableJobInput; /** * Target column name: This is prediction values column. * Also known as label column name in context of classification tasks. */ targetColumnName?: string; + /** [Required] Training data input. */ + trainingData: MLTableJobInput; } /** Command job definition. */ @@ -3217,25 +3134,6 @@ export interface JobInput { description?: string; } -/** Job output definition container information on where to find job output/logs. */ -export interface JobOutput { - /** Polymorphic discriminator, which specifies the different types this object can be */ - jobOutputType: - | "custom_model" - | "mlflow_model" - | "mltable" - | "triton_model" - | "uri_file" - | "uri_folder"; - /** Description for the output. */ - description?: string; -} - -export interface QueueSettings { - /** Controls the compute job tier */ - jobTier?: JobTier; -} - /** N-Cross validations value. */ export interface NCrossValidations { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -3262,20 +3160,20 @@ export interface TargetRollingWindowSize { /** Base definition for Azure datastore contents configuration. */ export interface AzureDatastore { - /** Azure Subscription Id */ - subscriptionId?: string; /** 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 */ policyType: "Bandit" | "MedianStopping" | "TruncationSelection"; - /** Interval (number of runs) between policy evaluations. */ - evaluationInterval?: number; /** Number of intervals by which to delay the first evaluation. */ delayEvaluation?: number; + /** Interval (number of runs) between policy evaluations. */ + evaluationInterval?: number; } /** @@ -3315,10 +3213,12 @@ export interface PredictionDriftMetricThresholdBase { /** Training related configuration. */ export interface TrainingSettings { + /** Enable recommendation of DNN models. */ + enableDnnTraining?: boolean; + /** Flag to turn on explainability on best model. */ + enableModelExplainability?: boolean; /** Flag for enabling onnx compatible models. */ enableOnnxCompatibleModels?: boolean; - /** Stack ensemble settings for stack ensemble run. */ - stackEnsembleSettings?: StackEnsembleSettings; /** Enable stack ensemble run. */ enableStackEnsemble?: boolean; /** Enable voting ensemble run. */ @@ -3328,24 +3228,26 @@ export interface TrainingSettings { * Configure this parameter with a higher value than 300 secs, if more time is needed. */ ensembleModelDownloadTimeout?: string; - /** Flag to turn on explainability on best model. */ - enableModelExplainability?: boolean; - /** Enable recommendation of DNN models. */ - enableDnnTraining?: boolean; + /** Stack ensemble settings for stack ensemble run. */ + stackEnsembleSettings?: StackEnsembleSettings; } /** Advances setting to customize StackEnsemble run. */ export interface StackEnsembleSettings { - /** The meta-learner is a model trained on the output of the individual heterogeneous models. */ - stackMetaLearnerType?: StackMetaLearnerType; - /** Specifies the proportion of the training set (when choosing train and validation type of training) to be reserved for training the meta-learner. Default value is 0.2. */ - stackMetaLearnerTrainPercentage?: number; /** Optional parameters to pass to the initializer of the meta-learner. */ stackMetaLearnerKWargs?: Record; + /** Specifies the proportion of the training set (when choosing train and validation type of training) to be reserved for training the meta-learner. Default value is 0.2. */ + stackMetaLearnerTrainPercentage?: number; + /** The meta-learner is a model trained on the output of the individual heterogeneous models. */ + stackMetaLearnerType?: StackMetaLearnerType; } /** Abstract class for AutoML tasks that use table dataset as input - such as Classification/Regression/Forecasting. */ export interface TableVertical { + /** Columns to use for CVSplit data. */ + cvSplitColumnNames?: string[]; + /** Featurization inputs needed for AutoML job. */ + featurizationSettings?: TableVerticalFeaturizationSettings; /** Execution constraints for AutoMLJob. */ limitSettings?: TableVerticalLimitSettings; /** @@ -3353,46 +3255,24 @@ export interface TableVertical { * when validation dataset is not provided. */ nCrossValidations?: NCrossValidationsUnion; - /** Columns to use for CVSplit data. */ - cvSplitColumnNames?: string[]; - /** The name of the sample weight column. Automated ML supports a weighted column as an input, causing rows in the data to be weighted up or down. */ - weightColumnName?: string; - /** Validation data inputs. */ - validationData?: MLTableJobInput; /** Test data input. */ testData?: MLTableJobInput; /** - * The fraction of training dataset that needs to be set aside for validation purpose. + * The fraction of test dataset that needs to be set aside for validation purpose. * Values between (0.0 , 1.0) * Applied when validation dataset is not provided. */ - validationDataSize?: number; + testDataSize?: number; + /** Validation data inputs. */ + validationData?: MLTableJobInput; /** - * The fraction of test dataset that needs to be set aside for validation purpose. + * The fraction of training dataset that needs to be set aside for validation purpose. * Values between (0.0 , 1.0) * Applied when validation dataset is not provided. */ - testDataSize?: number; - /** Featurization inputs needed for AutoML job. */ - featurizationSettings?: TableVerticalFeaturizationSettings; -} - -/** Job execution constraints. */ -export interface TableVerticalLimitSettings { - /** Number of iterations. */ - maxTrials?: number; - /** Iteration timeout. */ - trialTimeout?: string; - /** AutoML job timeout. */ - timeout?: string; - /** Maximum Concurrent iterations. */ - maxConcurrentTrials?: number; - /** Max cores per iteration. */ - maxCoresPerTrial?: number; - /** Exit score for the AutoML job. */ - exitScore?: number; - /** Enable early termination, determines whether or not if AutoMLJob will terminate early if there is no score improvement in last 20 iterations. */ - enableEarlyTermination?: boolean; + validationDataSize?: number; + /** The name of the sample weight column. Automated ML supports a weighted column as an input, causing rows in the data to be weighted up or down. */ + weightColumnName?: string; } /** Column transformer parameters. */ @@ -3412,25 +3292,43 @@ export interface FeaturizationSettings { datasetLanguage?: string; } -/** Base definition for job distribution configuration. */ -export interface DistributionConfiguration { - /** Polymorphic discriminator, which specifies the different types this object can be */ - distributionType: "Mpi" | "PyTorch" | "TensorFlow"; -} - -export interface JobLimits { - /** Polymorphic discriminator, which specifies the different types this object can be */ - jobLimitsType: "Command" | "Sweep"; - /** The max run duration in ISO 8601 format, after which the job will be cancelled. Only supports duration with precision as low as Seconds. */ - timeout?: string; -} - -/** Resource requirements for each container instance within an online deployment. */ -export interface ContainerResourceRequirements { - /** Container resource request info: */ - containerResourceRequests?: ContainerResourceSettings; +/** Job execution constraints. */ +export interface TableVerticalLimitSettings { + /** Enable early termination, determines whether or not if AutoMLJob will terminate early if there is no score improvement in last 20 iterations. */ + enableEarlyTermination?: boolean; + /** Exit score for the AutoML job. */ + exitScore?: number; + /** Maximum Concurrent iterations. */ + maxConcurrentTrials?: number; + /** Max cores per iteration. */ + maxCoresPerTrial?: number; + /** Number of iterations. */ + maxTrials?: number; + /** AutoML job timeout. */ + timeout?: string; + /** Iteration timeout. */ + trialTimeout?: string; +} + +/** Base definition for job distribution configuration. */ +export interface DistributionConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + distributionType: "Mpi" | "PyTorch" | "TensorFlow"; +} + +export interface JobLimits { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobLimitsType: "Command" | "Sweep"; + /** The max run duration in ISO 8601 format, after which the job will be cancelled. Only supports duration with precision as low as Seconds. */ + timeout?: string; +} + +/** Resource requirements for each container instance within an online deployment. */ +export interface ContainerResourceRequirements { /** Container resource limit info: */ containerResourceLimits?: ContainerResourceSettings; + /** Container resource request info: */ + containerResourceRequests?: ContainerResourceSettings; } export interface ContainerResourceSettings { @@ -3440,34 +3338,50 @@ export interface ContainerResourceSettings { */ cpu?: string; /** - * Memory size request/limit for container. More info: + * Number of Nvidia GPU cards request/limit for container. More info: * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ */ - memory?: string; + gpu?: string; /** - * Number of Nvidia GPU cards request/limit for container. More info: + * Memory size request/limit for container. More info: * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ */ - gpu?: string; + memory?: string; } 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 }; - /** [Required] The ARM resource ID of the compute resource to run the monitoring job on. */ - computeConfiguration: MonitorComputeConfigurationBaseUnion; - /** The monitor's notification settings. */ - alertNotificationSettings?: MonitorNotificationSettings; +} + +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 model asset targeted by this monitor. */ - modelId?: string; /** 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; } @@ -3486,41 +3400,25 @@ export interface MonitoringSignalBase { properties?: { [propertyName: string]: string | null }; } -/** Monitor compute configuration base definition. */ -export interface MonitorComputeConfigurationBase { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "ServerlessSpark"; -} - -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[]; -} - export interface CustomMetricThreshold { - /** The threshold value. If null, a default value will be set depending on the selected metric. */ - threshold?: MonitoringThreshold; /** [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; - /** Mapping of column names to special uses. */ - columns?: { [propertyName: string]: string | null }; } export interface FeatureImportanceSettings { @@ -3531,10 +3429,10 @@ export interface FeatureImportanceSettings { } export interface FeatureAttributionMetricThreshold { - /** The threshold value. If null, a default value will be set depending on the selected metric. */ - threshold?: MonitoringThreshold; /** [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. */ @@ -3544,23 +3442,18 @@ export interface ForecastingSettings { * These should be ISO 3166 two-letter country/region codes, for example 'US' or 'GB'. */ countryOrRegionForHolidays?: string; - /** The name of the time column. This parameter is required when forecasting to specify the datetime column in the input data used for building the time series and inferring its frequency. */ - timeColumnName?: string; - /** The number of past periods to lag from the target column. */ - targetLags?: TargetLagsUnion; - /** The number of past periods used to create a rolling window average of the target column. */ - targetRollingWindowSize?: TargetRollingWindowSizeUnion; - /** The desired maximum forecast horizon in units of time-series frequency. */ - forecastHorizon?: ForecastHorizonUnion; /** - * The names of columns used to group a timeseries. It can be used to create multiple series. - * If grain is not defined, the data set is assumed to be one time-series. This parameter is used with task type forecasting. + * 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. */ - timeSeriesIdColumnNames?: string[]; - /** When forecasting, this parameter represents the period with which the forecast is desired, for example daily, weekly, yearly, etc. The forecast frequency is dataset frequency by default. */ - frequency?: string; + cvStepSize?: number; /** Flag for generating lags for the numeric features with 'auto' or null. */ featureLags?: FeatureLags; + /** The desired maximum forecast horizon in units of time-series frequency. */ + forecastHorizon?: ForecastHorizonUnion; + /** When forecasting, this parameter represents the period with which the forecast is desired, for example daily, weekly, yearly, etc. The forecast frequency is dataset frequency by default. */ + frequency?: string; /** * Set time series seasonality as an integer multiple of the series frequency. * If seasonality is set to 'auto', it will be inferred. @@ -3568,19 +3461,24 @@ export interface ForecastingSettings { seasonality?: SeasonalityUnion; /** The parameter defining how if AutoML should handle short time series. */ shortSeriesHandlingConfig?: ShortSeriesHandlingConfiguration; - /** Configure STL Decomposition of the time-series target column. */ - useStl?: UseStl; /** * The function to be used to aggregate the time series target column to conform to a user specified frequency. * If the TargetAggregateFunction is set i.e. not 'None', but the freq parameter is not set, the error is raised. The possible target aggregation functions are: "sum", "max", "min" and "mean". */ targetAggregateFunction?: TargetAggregationFunction; + /** The number of past periods to lag from the target column. */ + targetLags?: TargetLagsUnion; + /** The number of past periods used to create a rolling window average of the target column. */ + targetRollingWindowSize?: TargetRollingWindowSizeUnion; + /** The name of the time column. This parameter is required when forecasting to specify the datetime column in the input data used for building the time series and inferring its frequency. */ + timeColumnName?: string; /** - * Number of periods between the origin time of one CV fold and the next fold. For - * example, if `CVStepSize` = 3 for daily data, the origin time for each fold will be - * three days apart. + * The names of columns used to group a timeseries. It can be used to create multiple series. + * If grain is not defined, the data set is assumed to be one time-series. This parameter is used with task type forecasting. */ - cvStepSize?: number; + timeSeriesIdColumnNames?: string[]; + /** Configure STL Decomposition of the time-series target column. */ + useStl?: UseStl; } /** @@ -3589,10 +3487,10 @@ export interface ForecastingSettings { * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. */ export interface ImageModelSettings { - /** Enable AMSGrad when optimizer is 'adam' or 'adamw'. */ - amsGradient?: boolean; /** Settings for advanced scenarios. */ advancedSettings?: string; + /** Enable AMSGrad when optimizer is 'adam' or 'adamw'. */ + amsGradient?: boolean; /** Settings for using Augmentations. */ augmentations?: string; /** Value of 'beta1' when optimizer is 'adam' or 'adamw'. Must be a float in the range [0, 1]. */ @@ -3601,10 +3499,10 @@ export interface ImageModelSettings { beta2?: number; /** Frequency to store model checkpoints. Must be a positive integer. */ checkpointFrequency?: number; - /** The id of a previous run that has a pretrained checkpoint for incremental training. */ - checkpointRunId?: string; /** The pretrained checkpoint model for incremental training. */ checkpointModel?: MLFlowModelJobInput; + /** The id of a previous run that has a pretrained checkpoint for incremental training. */ + checkpointRunId?: string; /** Whether to use distributed training. */ distributed?: boolean; /** Enable early stopping logic during training. */ @@ -3619,10 +3517,10 @@ export interface ImageModelSettings { * the run is stopped. Must be a positive integer. */ earlyStoppingPatience?: number; - /** Frequency to evaluate validation dataset to get metric scores. Must be a positive integer. */ - evaluationFrequency?: number; /** Enable normalization when exporting ONNX model. */ enableOnnxNormalization?: boolean; + /** Frequency to evaluate validation dataset to get metric scores. Must be a positive integer. */ + evaluationFrequency?: number; /** * Gradient accumulation means running a configured number of "GradAccumulationStep" steps without * updating the model weights while accumulating the gradients of those steps, and then using @@ -3713,10 +3611,10 @@ export interface ImageModelDistributionSettings { * the run is stopped. Must be a positive integer. */ earlyStoppingPatience?: string; - /** Frequency to evaluate validation dataset to get metric scores. Must be a positive integer. */ - evaluationFrequency?: string; /** Enable normalization when exporting ONNX model. */ enableOnnxNormalization?: string; + /** Frequency to evaluate validation dataset to get metric scores. Must be a positive integer. */ + evaluationFrequency?: string; /** * Gradient accumulation means running a configured number of "GradAccumulationStep" steps without * updating the model weights while accumulating the gradients of those steps, and then using @@ -3789,20 +3687,20 @@ export interface ImageVertical { /** Limit settings for the AutoML job. */ export interface ImageLimitSettings { + /** Maximum number of concurrent AutoML iterations. */ + maxConcurrentTrials?: number; /** Maximum number of AutoML iterations. */ maxTrials?: number; /** AutoML job timeout. */ timeout?: string; - /** Maximum number of concurrent AutoML iterations. */ - maxConcurrentTrials?: number; } /** Model sweeping and hyperparameter sweeping related settings. */ export interface ImageSweepSettings { - /** [Required] Type of the hyperparameter sampling algorithms. */ - samplingAlgorithm: SamplingAlgorithmType; /** Type of early termination policy. */ earlyTermination?: EarlyTerminationPolicyUnion; + /** [Required] Type of the hyperparameter sampling algorithms. */ + samplingAlgorithm: SamplingAlgorithmType; } /** OneLake artifact (data source) configuration. */ @@ -3818,30 +3716,36 @@ export interface OneLakeArtifact { * NLP - Natural Language Processing. */ export interface NlpVertical { - /** Execution constraints for AutoMLJob. */ - limitSettings?: NlpVerticalLimitSettings; /** Featurization inputs needed for AutoML job. */ featurizationSettings?: NlpVerticalFeaturizationSettings; + /** Execution constraints for AutoMLJob. */ + limitSettings?: NlpVerticalLimitSettings; /** Validation data inputs. */ validationData?: MLTableJobInput; } /** Job execution constraints. */ export interface NlpVerticalLimitSettings { - /** AutoML job timeout. */ - timeout?: string; - /** Number of AutoML iterations. */ - maxTrials?: number; /** Maximum Concurrent AutoML iterations. */ maxConcurrentTrials?: number; + /** Number of AutoML iterations. */ + maxTrials?: number; + /** AutoML job timeout. */ + timeout?: string; } /** Optimization objective. */ export interface Objective { - /** [Required] Name of the metric to optimize. */ - primaryMetric: string; /** [Required] Defines supported metric goals for hyperparameter tuning */ goal: Goal; + /** [Required] Name of the metric to optimize. */ + primaryMetric: string; +} + +/** Spark job entry point definition. */ +export interface SparkJobEntry { + /** Polymorphic discriminator, which specifies the different types this object can be */ + sparkJobEntryType: "SparkJobPythonEntry" | "SparkJobScalaEntry"; } export interface SparkResourceConfiguration { @@ -3851,81 +3755,188 @@ export interface SparkResourceConfiguration { runtimeVersion?: string; } -/** Spark job entry point definition. */ -export interface SparkJobEntry { - /** Polymorphic discriminator, which specifies the different types this object can be */ - sparkJobEntryType: "SparkJobPythonEntry" | "SparkJobScalaEntry"; -} - /** Trial component definition. */ export interface TrialComponent { /** ARM resource ID of the code asset. */ codeId?: string; /** [Required] The command to execute on startup of the job. eg. "python train.py" */ command: string; + /** Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. */ + distribution?: DistributionConfigurationUnion; /** [Required] The ARM resource ID of the Environment specification for the job. */ environmentId: string; /** Environment variables included in the job. */ environmentVariables?: { [propertyName: string]: string | null }; - /** Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. */ - distribution?: DistributionConfigurationUnion; /** Compute Resource configuration for the job. */ 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; +/** 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; } -/** 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. */ - identity?: ManagedServiceIdentity; - /** Specifies the location of the resource. */ - location?: string; - /** Contains resource tags defined as key/value pairs. */ - tags?: { [propertyName: string]: string }; - /** The sku of the workspace. */ - sku?: Sku; - /** The resource of private end point. */ - privateEndpoint?: PrivateEndpoint; - /** A collection of information about the state of the connection between service consumer and provider. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; +/** 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; /** - * The provisioning state of the private endpoint connection resource. + * 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 provisioningState?: PrivateEndpointConnectionProvisioningState; + readonly addressPrefixes?: string[]; + portRanges?: string; + protocol?: string; + serviceTag?: string; } -/** An object that represents a machine learning workspace. */ -export interface Workspace extends Resource { - /** The identity of the resource. */ - identity?: ManagedServiceIdentity; - kind?: string; - /** Specifies the location of the resource. */ - location?: string; - /** Contains resource tags defined as key/value pairs. */ - tags?: { [propertyName: string]: string }; - /** The sku of the workspace. */ - sku?: Sku; - /** - * The immutable id associated with this workspace. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly workspaceId?: string; - /** The description of this workspace. */ - description?: string; - /** The friendly name for this workspace. This name in mutable */ - friendlyName?: string; - /** ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created */ - keyVault?: string; +export interface WorkspaceConnectionUsernamePassword { + username?: string; + password?: string; + /** Optional, required by connections like SalesForce for extra security in addition to UsernamePassword */ + securityToken?: string; +} + +export interface WorkspaceConnectionPersonalAccessToken { + pat?: string; +} + +export interface WorkspaceConnectionSharedAccessSignature { + sas?: string; +} + +export interface WorkspaceConnectionAccountKey { + key?: string; +} + +export interface WorkspaceConnectionManagedIdentity { + resourceId?: string; + clientId?: string; +} + +export interface WorkspaceConnectionAccessKey { + accessKeyId?: string; + secretAccessKey?: string; +} + +/** Api key object for workspace connection credential. */ +export interface WorkspaceConnectionApiKey { + key?: string; +} + +/** Custom Keys credential object */ +export interface CustomKeys { + /** Dictionary of */ + keys?: { [propertyName: string]: string }; +} + +/** + * ClientId and ClientSecret are required. Other properties are optional + * depending on each OAuth2 provider's implementation. + */ +export interface WorkspaceConnectionOAuth2 { + /** Required by Concur connection category */ + authUrl?: string; + /** Client id in the format of UUID */ + clientId?: string; + clientSecret?: string; + /** Required by GoogleAdWords connection category */ + developerToken?: string; + password?: string; + /** + * Required by GoogleBigQuery, GoogleAdWords, Hubspot, QuickBooks, Square, Xero, Zoho + * where user needs to get RefreshToken offline + */ + refreshToken?: string; + /** Required by QuickBooks and Xero connection categories */ + tenantId?: string; + /** + * Concur, ServiceNow auth server AccessToken grant type is 'Password' + * which requires UsernamePassword + */ + username?: string; +} + +export interface WorkspaceConnectionServicePrincipal { + clientId?: string; + clientSecret?: string; + tenantId?: string; +} + +/** Managed service identity (system assigned and/or user assigned identities) */ +export interface RegistryPartialManagedServiceIdentity + extends ManagedServiceIdentity {} + +/** Machine Learning compute object wrapped into ARM resource envelope. */ +export interface ComputeResource extends Resource, ComputeResourceSchema { + /** The identity of the resource. */ + identity?: ManagedServiceIdentity; + /** Specifies the location of the resource. */ + location?: string; + /** Contains resource tags defined as key/value pairs. */ + tags?: { [propertyName: string]: string }; + /** The sku of the workspace. */ + sku?: Sku; +} + +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} + +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResource extends Resource { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The geo-location where the resource lives */ + location: string; +} + +/** The Private Endpoint Connection resource. */ +export interface PrivateEndpointConnection extends Resource { + /** The identity of the resource. */ + identity?: ManagedServiceIdentity; + /** Specifies the location of the resource. */ + location?: string; + /** Contains resource tags defined as key/value pairs. */ + tags?: { [propertyName: string]: string }; + /** The sku of the workspace. */ + sku?: Sku; + /** The resource of private end point. */ + privateEndpoint?: PrivateEndpoint; + /** A collection of information about the state of the connection between service consumer and provider. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + /** + * The provisioning state of the private endpoint connection resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: PrivateEndpointConnectionProvisioningState; +} + +/** An object that represents a machine learning workspace. */ +export interface Workspace extends Resource { + /** The identity of the resource. */ + identity?: ManagedServiceIdentity; + kind?: string; + /** Specifies the location of the resource. */ + location?: string; + /** Contains resource tags defined as key/value pairs. */ + tags?: { [propertyName: string]: string }; + /** The sku of the workspace. */ + sku?: Sku; + /** + * The immutable id associated with this workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly workspaceId?: string; + /** The description of this workspace. */ + description?: string; + /** The friendly name for this workspace. This name in mutable */ + friendlyName?: string; + /** ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created */ + keyVault?: string; /** ARM id of the application insights associated with this workspace. */ applicationInsights?: string; /** ARM id of the container registry associated with this workspace. */ @@ -4005,18 +4016,6 @@ export interface Workspace extends Resource { workspaceHubConfig?: WorkspaceHubConfig; } -/** Machine Learning compute object wrapped into ARM resource envelope. */ -export interface ComputeResource extends Resource, ComputeResourceSchema { - /** The identity of the resource. */ - identity?: ManagedServiceIdentity; - /** Specifies the location of the resource. */ - location?: string; - /** Contains resource tags defined as key/value pairs. */ - tags?: { [propertyName: string]: string }; - /** The sku of the workspace. */ - sku?: Sku; -} - /** A private link resource */ export interface PrivateLinkResource extends Resource { /** The identity of the resource. */ @@ -4051,40 +4050,6 @@ export interface OutboundRuleBasicResource extends Resource { properties: OutboundRuleUnion; } -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends Resource {} - -/** The 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; -} - -/** 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 */ @@ -4170,216 +4135,97 @@ export interface DatabricksComputeSecrets computeType: "Databricks"; } -export interface PATAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "PAT"; - credentials?: WorkspaceConnectionPersonalAccessToken; -} - -export interface SASAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "SAS"; - credentials?: WorkspaceConnectionSharedAccessSignature; +export interface 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 UsernamePasswordAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "UsernamePassword"; - credentials?: WorkspaceConnectionUsernamePassword; +export interface AssetBase extends ResourceBase { + /** If the name version are system generated (anonymous registration). */ + isAnonymous?: boolean; + /** Is the asset archived? */ + isArchived?: boolean; } -export interface NoneAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "None"; +/** 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; } -export interface ManagedIdentityAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "ManagedIdentity"; - credentials?: WorkspaceConnectionManagedIdentity; -} - -/** This connection type covers the AAD auth for any applicable Azure service */ -export interface AADAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "AAD"; -} - -export interface AccessKeyAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "AccessKey"; - credentials?: WorkspaceConnectionAccessKey; -} - -/** This connection type covers the account key connection for Azure storage */ -export interface AccountKeyAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "AccountKey"; - credentials?: WorkspaceConnectionAccountKey; -} - -/** - * This connection type covers the generic ApiKey auth connection categories, for examples: - * AzureOpenAI: - * Category:= AzureOpenAI - * AuthType:= ApiKey (as type discriminator) - * Credentials:= {ApiKey} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.ApiKey - * Target:= {ApiBase} - * - * CognitiveService: - * Category:= CognitiveService - * AuthType:= ApiKey (as type discriminator) - * Credentials:= {SubscriptionKey} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.ApiKey - * Target:= ServiceRegion={serviceRegion} - * - * CognitiveSearch: - * Category:= CognitiveSearch - * AuthType:= ApiKey (as type discriminator) - * Credentials:= {Key} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.ApiKey - * Target:= {Endpoint} - * - * Use Metadata property bag for ApiType, ApiVersion, Kind and other metadata fields - */ -export interface ApiKeyAuthWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "ApiKey"; - /** Api key object for workspace connection credential. */ - credentials?: WorkspaceConnectionApiKey; -} - -/** - * Category:= CustomKeys - * AuthType:= CustomKeys (as type discriminator) - * Credentials:= {CustomKeys} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.CustomKeys - * Target:= {any value} - * Use Metadata property bag for ApiVersion and other metadata fields - */ -export interface CustomKeysWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "CustomKeys"; - /** Custom Keys credential object */ - credentials?: CustomKeys; -} - -export interface OAuth2AuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "OAuth2"; - /** - * ClientId and ClientSecret are required. Other properties are optional - * depending on each OAuth2 provider's implementation. - */ - credentials?: WorkspaceConnectionOAuth2; -} - -export interface ServicePrincipalAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "ServicePrincipal"; - credentials?: WorkspaceConnectionServicePrincipal; -} - -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 { - /** Is the asset archived? */ - isArchived?: boolean; - /** If the name version are system generated (anonymous registration). */ - isAnonymous?: boolean; -} - -/** Base definition for datastore contents configuration. */ -export interface DatastoreProperties extends ResourceBase { - /** [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; - /** [Required] Account credentials. */ - credentials: DatastoreCredentialsUnion; -} - -/** DTO object representing feature */ -export interface FeatureProperties extends ResourceBase { - /** Specifies name */ - featureName?: string; - /** Specifies type */ - dataType?: FeatureDataType; +/** DTO object representing feature */ +export interface FeatureProperties extends ResourceBase { + /** Specifies type */ + dataType?: FeatureDataType; + /** Specifies name */ + featureName?: string; } /** Base definition for a job. */ export interface JobBaseProperties extends ResourceBase { - /** [Required] Specifies the type of job. */ - jobType: JobType; + /** ARM resource ID of the component resource. */ + componentId?: string; + /** ARM resource ID of the compute resource. */ + computeId?: string; /** Display name of job. */ displayName?: string; - /** - * Status of the job. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: JobStatus; /** The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. */ experimentName?: string; - /** - * List of JobEndpoints. - * For local jobs, a job endpoint will have an endpoint value of FileStreamObject. - */ - services?: { [propertyName: string]: JobService | null }; - /** ARM resource ID of the compute resource. */ - computeId?: string; - /** Is the asset archived? */ - isArchived?: boolean; /** * Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. * Defaults to AmlToken if null. */ identity?: IdentityConfigurationUnion; - /** ARM resource ID of the component resource. */ - componentId?: string; + /** Is the asset archived? */ + isArchived?: boolean; + /** [Required] Specifies the type of job. */ + jobType: JobType; /** Notification setting for the job */ notificationSetting?: NotificationSetting; + /** + * 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; - /** [Required] Specifies the trigger details */ - trigger: TriggerBaseUnion; - /** [Required] Specifies the action of the schedule */ - action: ScheduleActionBaseUnion; /** * 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 { @@ -4399,10 +4245,10 @@ export interface AnonymousAccessCredential extends DataReferenceCredential { export interface DockerCredential extends DataReferenceCredential { /** Polymorphic discriminator, which specifies the different types this object can be */ credentialType: "DockerCredentials"; - /** DockerCredential user name */ - userName?: string; /** DockerCredential user password */ password?: string; + /** DockerCredential user name */ + userName?: string; } /** Credential for user managed identity */ @@ -4411,12 +4257,12 @@ export interface ManagedIdentityCredential extends DataReferenceCredential { credentialType: "ManagedIdentity"; /** ManagedIdentityCredential identity type */ managedIdentityType?: string; - /** Full arm scope for the Id. For ManagedIdentityType = SystemManaged, this field is null. */ - userManagedIdentityResourceId?: 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; } @@ -4442,22 +4288,22 @@ export interface BatchEndpointProperties extends EndpointPropertiesBase { /** Online endpoint configuration */ export interface OnlineEndpointProperties extends EndpointPropertiesBase { - /** - * Provisioning state for the endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: EndpointProvisioningState; /** * ARM resource ID of the compute if it exists. * optional */ compute?: string; + /** Percentage of traffic to be mirrored to each deployment without using returned scoring. Traffic values need to sum to utmost 50. */ + mirrorTraffic?: { [propertyName: string]: number }; + /** + * Provisioning state for the endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: EndpointProvisioningState; /** Set to "Enabled" for endpoints that should allow public access when Private Link is enabled. */ publicNetworkAccess?: PublicNetworkAccessType; /** Percentage of traffic from endpoint to divert to each deployment. Traffic values need to sum to 100. */ traffic?: { [propertyName: string]: number }; - /** 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 }; } /** Strictly used in update requests. */ @@ -4477,10 +4323,10 @@ export interface PartialMinimalTrackedResourceWithSku /** Strictly used in update requests. */ export interface PartialMinimalTrackedResourceWithSkuAndIdentity extends PartialMinimalTrackedResource { - /** Sku details required for ARM contract for Autoscaling. */ - sku?: PartialSku; /** Managed service identity (system assigned and/or user assigned identities) */ identity?: PartialManagedServiceIdentity; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: PartialSku; } /** Properties for a Batch Pipeline Component Deployment. */ @@ -4510,30 +4356,30 @@ export interface IdAssetReference extends AssetReferenceBase { export interface DataPathAssetReference extends AssetReferenceBase { /** Polymorphic discriminator, which specifies the different types this object can be */ referenceType: "DataPath"; - /** The path of the file/directory in the datastore. */ - path?: string; /** ARM resource ID of the datastore where the asset is located. */ datastoreId?: string; + /** The path of the file/directory in the datastore. */ + path?: string; } /** Reference to an asset via its path in a job output. */ export interface OutputPathAssetReference extends AssetReferenceBase { /** Polymorphic discriminator, which specifies the different types this object can be */ referenceType: "OutputPath"; - /** The path of the file/directory in the job output. */ - path?: string; /** ARM resource ID of the job. */ jobId?: string; + /** The path of the file/directory in the job output. */ + path?: string; } export interface DeploymentResourceConfiguration extends ResourceConfiguration {} export interface JobResourceConfiguration extends ResourceConfiguration { - /** Size of the docker container's shared memory block. This should be in the format of (number)(unit) where number as to be greater than 0 and the unit can be one of b(bytes), k(kilobytes), m(megabytes), or g(gigabytes). */ - shmSize?: string; /** Extra arguments to pass to the Docker run command. This would override any parameters that have already been set by the system, or in this section. This parameter is only supported for Azure ML compute types. */ dockerArgs?: string; + /** Size of the docker container's shared memory block. This should be in the format of (number)(unit) where number as to be greater than 0 and the unit can be one of b(bytes), k(kilobytes), m(megabytes), or g(gigabytes). */ + shmSize?: string; } /** Batch inference settings per deployment. */ @@ -4551,73 +4397,73 @@ export interface BatchDeploymentProperties * If set to -1 (the lower bound), all failures during batch inference will be ignored. */ errorThreshold?: number; - /** - * Retry Settings for the batch inference operation. - * If not provided, will default to the defaults defined in BatchRetrySettings. - */ - retrySettings?: BatchRetrySettings; + /** Logging level for batch inference operation. */ + loggingLevel?: BatchLoggingLevel; + /** Indicates maximum number of parallelism per instance. */ + maxConcurrencyPerInstance?: number; /** * Size of the mini-batch passed to each batch invocation. * For FileDataset, this is the number of files per mini-batch. * For TabularDataset, this is the size of the records in bytes, per mini-batch. */ miniBatchSize?: number; - /** Logging level for batch inference operation. */ - loggingLevel?: BatchLoggingLevel; /** Reference to the model asset for the endpoint deployment. */ model?: AssetReferenceBaseUnion; - /** Indicates maximum number of parallelism per instance. */ - maxConcurrencyPerInstance?: number; /** Indicates how the output will be organized. */ outputAction?: BatchOutputAction; /** Customized output file name for append_row output action. */ outputFileName?: string; + /** + * Provisioning state for the endpoint deployment. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: DeploymentProvisioningState; /** * Indicates compute configuration for the job. * If not provided, will default to the defaults defined in ResourceConfiguration. */ resources?: DeploymentResourceConfiguration; /** - * Provisioning state for the endpoint deployment. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Retry Settings for the batch inference operation. + * If not provided, will default to the defaults defined in BatchRetrySettings. */ - readonly provisioningState?: DeploymentProvisioningState; + retrySettings?: BatchRetrySettings; } export interface OnlineDeploymentProperties extends EndpointDeploymentPropertiesBase { - /** [Required] The compute type of the endpoint. */ - endpointComputeType: EndpointComputeType; - /** - * Scale settings for the deployment. - * If it is null or not provided, - * it defaults to TargetUtilizationScaleSettings for KubernetesOnlineDeployment - * and to DefaultScaleSettings for ManagedOnlineDeployment. - */ - scaleSettings?: OnlineScaleSettingsUnion; - /** Request settings for the deployment. */ - requestSettings?: OnlineRequestSettings; - /** The path to mount the model in custom container. */ - modelMountPath?: string; /** If true, enables Application Insights logging. */ appInsightsEnabled?: boolean; + /** The mdc configuration, we disable mdc when it's null. */ + dataCollector?: DataCollector; + /** If Enabled, allow egress public network access. If Disabled, this will create secure egress. Default: Enabled. */ + egressPublicNetworkAccess?: EgressPublicNetworkAccessType; + /** [Required] The compute type of the endpoint. */ + endpointComputeType: EndpointComputeType; + /** Compute instance type. Default: Standard_F4s_v2. */ + instanceType?: string; /** Liveness probe monitors the health of the container regularly. */ livenessProbe?: ProbeSettings; - /** Readiness probe validates if the container is ready to serve traffic. The properties and defaults are the same as liveness probe. */ - readinessProbe?: ProbeSettings; + /** The URI path to the model. */ + model?: string; + /** The path to mount the model in custom container. */ + modelMountPath?: string; /** * Provisioning state for the endpoint deployment. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: DeploymentProvisioningState; - /** Compute instance type. */ - instanceType?: string; - /** The URI path to the model. */ - model?: string; - /** If Enabled, allow egress public network access. If Disabled, this will create secure egress. Default: Enabled. */ - egressPublicNetworkAccess?: EgressPublicNetworkAccessType; - /** The mdc configuration, we disable mdc when it's null. */ - dataCollector?: DataCollector; + /** Readiness probe validates if the container is ready to serve traffic. The properties and defaults are the same as liveness probe. */ + readinessProbe?: ProbeSettings; + /** Request settings for the deployment. */ + requestSettings?: OnlineRequestSettings; + /** + * Scale settings for the deployment. + * If it is null or not provided, + * it defaults to TargetUtilizationScaleSettings for KubernetesOnlineDeployment + * and to DefaultScaleSettings for ManagedOnlineDeployment. + */ + scaleSettings?: OnlineScaleSettingsUnion; } /** Account key datastore credentials configuration. */ @@ -4634,16 +4480,16 @@ export interface CertificateDatastoreCredentials extends DatastoreCredentials { 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] Service principal client ID. */ - clientId: string; /** [Required] Thumbprint of the certificate used for authentication. */ thumbprint: string; - /** [Required] Service principal secrets. */ - secrets: CertificateDatastoreSecrets; } /** Empty/none datastore credentials. */ @@ -4667,14 +4513,14 @@ export interface ServicePrincipalDatastoreCredentials credentialsType: "ServicePrincipal"; /** Authority URL used for authentication. */ authorityUrl?: string; - /** Resource the service principal has access to. */ - resourceUrl?: string; - /** [Required] ID of the tenant to which the service principal belongs. */ - tenantId: string; /** [Required] Service principal client ID. */ clientId: string; + /** Resource the service principal has access to. */ + resourceUrl?: string; /** [Required] Service principal secrets. */ secrets: ServicePrincipalDatastoreSecrets; + /** [Required] ID of the tenant to which the service principal belongs. */ + tenantId: string; } /** Datastore account key secrets. */ @@ -4709,6 +4555,12 @@ export interface ServicePrincipalDatastoreSecrets extends DatastoreSecrets { clientSecret?: string; } +/** Webhook details specific for Azure DevOps */ +export interface AzureDevOpsWebhook extends Webhook { + /** Polymorphic discriminator, which specifies the different types this object can be */ + webhookType: "AzureDevOps"; +} + export interface RecurrenceTrigger extends TriggerBase { /** Polymorphic discriminator, which specifies the different types this object can be */ triggerType: "Recurrence"; @@ -4730,18 +4582,6 @@ export interface CronTrigger extends TriggerBase { expression: string; } -/** Webhook details specific for Azure DevOps */ -export interface AzureDevOpsWebhook extends Webhook { - /** Polymorphic discriminator, which specifies the different types this object can be */ - webhookType: "AzureDevOps"; -} - -/** 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"; -} - /** AML Token identity configuration. */ export interface AmlToken extends IdentityConfiguration { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -4766,6 +4606,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"; @@ -4774,14 +4620,14 @@ export interface DefaultScaleSettings extends OnlineScaleSettings { export interface TargetUtilizationScaleSettings extends OnlineScaleSettings { /** Polymorphic discriminator, which specifies the different types this object can be */ scaleType: "TargetUtilization"; + /** The maximum number of instances that the deployment can scale to. The quota will be reserved for max_instances. */ + maxInstances?: number; + /** The minimum number of instances to always be present. */ + minInstances?: number; /** The polling interval in ISO 8691 format. Only supports duration with precision as low as Seconds. */ pollingInterval?: string; /** Target CPU usage for the autoscaler. */ targetUtilizationPercentage?: number; - /** The minimum number of instances to always be present. */ - minInstances?: number; - /** The maximum number of instances that the deployment can scale to. The quota will be reserved for max_instances. */ - maxInstances?: number; } export interface CreateMonitorAction extends ScheduleActionBase { @@ -4808,6 +4654,154 @@ export interface JobScheduleAction extends ScheduleActionBase { jobDefinition: JobBasePropertiesUnion; } +/** The PE network resource that is linked to this PE connection. */ +export interface PrivateEndpointResource extends PrivateEndpoint { + /** The subnetId that the private endpoint is connected to. */ + subnetArmId?: string; +} + +/** 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; +} + +export interface PATAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "PAT"; + credentials?: WorkspaceConnectionPersonalAccessToken; +} + +export interface SASAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "SAS"; + credentials?: WorkspaceConnectionSharedAccessSignature; +} + +export interface UsernamePasswordAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "UsernamePassword"; + credentials?: WorkspaceConnectionUsernamePassword; +} + +export interface NoneAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "None"; +} + +export interface ManagedIdentityAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "ManagedIdentity"; + credentials?: WorkspaceConnectionManagedIdentity; +} + +/** This connection type covers the AAD auth for any applicable Azure service */ +export interface AADAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "AAD"; +} + +export interface AccessKeyAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "AccessKey"; + credentials?: WorkspaceConnectionAccessKey; +} + +/** This connection type covers the account key connection for Azure storage */ +export interface AccountKeyAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "AccountKey"; + credentials?: WorkspaceConnectionAccountKey; +} + +/** + * This connection type covers the generic ApiKey auth connection categories, for examples: + * AzureOpenAI: + * Category:= AzureOpenAI + * AuthType:= ApiKey (as type discriminator) + * Credentials:= {ApiKey} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.ApiKey + * Target:= {ApiBase} + * + * CognitiveService: + * Category:= CognitiveService + * AuthType:= ApiKey (as type discriminator) + * Credentials:= {SubscriptionKey} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.ApiKey + * Target:= ServiceRegion={serviceRegion} + * + * CognitiveSearch: + * Category:= CognitiveSearch + * AuthType:= ApiKey (as type discriminator) + * Credentials:= {Key} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.ApiKey + * Target:= {Endpoint} + * + * Use Metadata property bag for ApiType, ApiVersion, Kind and other metadata fields + */ +export interface ApiKeyAuthWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "ApiKey"; + /** Api key object for workspace connection credential. */ + credentials?: WorkspaceConnectionApiKey; +} + +/** + * Category:= CustomKeys + * AuthType:= CustomKeys (as type discriminator) + * Credentials:= {CustomKeys} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.CustomKeys + * Target:= {any value} + * Use Metadata property bag for ApiVersion and other metadata fields + */ +export interface CustomKeysWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "CustomKeys"; + /** Custom Keys credential object */ + credentials?: CustomKeys; +} + +export interface OAuth2AuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "OAuth2"; + /** + * ClientId and ClientSecret are required. Other properties are optional + * depending on each OAuth2 provider's implementation. + */ + credentials?: WorkspaceConnectionOAuth2; +} + +export interface ServicePrincipalAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "ServicePrincipal"; + credentials?: WorkspaceConnectionServicePrincipal; +} + export interface AllFeatures extends MonitoringFeatureFilterBase { /** Polymorphic discriminator, which specifies the different types this object can be */ filterType: "AllFeatures"; @@ -4919,22 +4913,22 @@ export interface CustomForecastHorizon extends ForecastHorizon { export interface Classification extends TableVertical, AutoMLVertical { /** Polymorphic discriminator, which specifies the different types this object can be */ taskType: "Classification"; + /** Positive label for binary metrics calculation. */ + positiveLabel?: string; /** Primary metric for the task. */ primaryMetric?: ClassificationPrimaryMetrics; /** Inputs for training phase for an AutoML Job. */ trainingSettings?: ClassificationTrainingSettings; - /** Positive label for binary metrics calculation. */ - positiveLabel?: string; } /** Forecasting task in AutoML Table vertical. */ export interface Forecasting extends TableVertical, AutoMLVertical { /** Polymorphic discriminator, which specifies the different types this object can be */ taskType: "Forecasting"; - /** Primary metric for forecasting task. */ - primaryMetric?: ForecastingPrimaryMetrics; /** Forecasting task specific inputs. */ forecastingSettings?: ForecastingSettings; + /** Primary metric for forecasting task. */ + primaryMetric?: ForecastingPrimaryMetrics; /** Inputs for training phase for an AutoML Job. */ trainingSettings?: ForecastingTrainingSettings; } @@ -5128,10 +5122,10 @@ export interface AzureDataLakeGen1Datastore DatastoreProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ datastoreType: "AzureDataLakeGen1"; - /** [Required] Azure Data Lake store name. */ - storeName: string; /** 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. */ @@ -5140,12 +5134,12 @@ export interface AzureDataLakeGen2Datastore DatastoreProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ datastoreType: "AzureDataLakeGen2"; - /** [Required] The name of the Data Lake Gen2 filesystem. */ - filesystem: string; /** [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. */ @@ -5160,10 +5154,10 @@ export interface AzureFileDatastore datastoreType: "AzureFile"; /** [Required] Storage account name. */ accountName: string; - /** [Required] The name of the Azure file share that the datastore points to. */ - fileShareName: 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. */ @@ -5174,10 +5168,10 @@ export interface AzureFileDatastore export interface BanditPolicy extends EarlyTerminationPolicy { /** Polymorphic discriminator, which specifies the different types this object can be */ policyType: "Bandit"; - /** Ratio of the allowed distance from the best performing run. */ - slackFactor?: number; /** Absolute distance allowed from the best performing run. */ slackAmount?: number; + /** Ratio of the allowed distance from the best performing run. */ + slackFactor?: number; } /** Defines an early termination policy based on running averages of the primary metric of all runs */ @@ -5210,10 +5204,10 @@ export interface GridSamplingAlgorithm extends SamplingAlgorithm { export interface RandomSamplingAlgorithm extends SamplingAlgorithm { /** Polymorphic discriminator, which specifies the different types this object can be */ samplingAlgorithmType: "Random"; - /** An optional integer to use as the seed for random number generation */ - seed?: number; /** The specific type of random algorithm */ rule?: RandomSamplingAlgorithmRule; + /** An optional integer to use as the seed for random number generation */ + seed?: number; } export interface CategoricalDataDriftMetricThreshold @@ -5291,20 +5285,20 @@ export interface RegressionTrainingSettings extends TrainingSettings { /** Featurization Configuration. */ export interface TableVerticalFeaturizationSettings extends FeaturizationSettings { + /** These transformers shall not be used in featurization. */ + blockedTransformers?: BlockedTransformers[]; + /** Dictionary of column name and its type (int, float, string, datetime etc). */ + columnNameAndTypes?: { [propertyName: string]: string | null }; + /** Determines whether to use Dnn based featurizers for data featurization. */ + enableDnnFeaturization?: boolean; /** * Featurization mode - User can keep the default 'Auto' mode and AutoML will take care of necessary transformation of the data in featurization phase. * If 'Off' is selected then no featurization is done. * If 'Custom' is selected then user can specify additional inputs to customize how featurization is done. */ mode?: FeaturizationMode; - /** These transformers shall not be used in featurization. */ - blockedTransformers?: BlockedTransformers[]; - /** Dictionary of column name and its type (int, float, string, datetime etc). */ - columnNameAndTypes?: { [propertyName: string]: string | null }; /** User can specify additional transformers to be used along with the columns to which it would be applied and parameters for the transformer constructor. */ transformerParams?: { [propertyName: string]: ColumnTransformer[] | null }; - /** Determines whether to use Dnn based featurizers for data featurization. */ - enableDnnFeaturization?: boolean; } export interface NlpVerticalFeaturizationSettings @@ -5330,10 +5324,10 @@ export interface PyTorch extends DistributionConfiguration { export interface TensorFlow extends DistributionConfiguration { /** Polymorphic discriminator, which specifies the different types this object can be */ distributionType: "TensorFlow"; - /** Number of workers. If not specified, will default to the instance count. */ - workerCount?: number; /** Number of parameter server tasks. */ parameterServerCount?: number; + /** Number of workers. If not specified, will default to the instance count. */ + workerCount?: number; } /** Command Job limit class. */ @@ -5346,23 +5340,36 @@ export interface CommandJobLimits extends JobLimits { export interface SweepJobLimits extends JobLimits { /** Polymorphic discriminator, which specifies the different types this object can be */ jobLimitsType: "Sweep"; - /** Sweep Job max total trials. */ - maxTotalTrials?: number; /** Sweep Job max concurrent trials. */ maxConcurrentTrials?: number; + /** Sweep Job max total trials. */ + maxTotalTrials?: number; /** Sweep Job Trial timeout value. */ trialTimeout?: string; } +/** Monitor serverless spark compute definition. */ +export interface MonitorServerlessSparkCompute + extends MonitorComputeConfigurationBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "ServerlessSpark"; + /** [Required] The identity scheme leveraged to by the spark jobs running on serverless Spark. */ + computeIdentity: MonitorComputeIdentityBaseUnion; + /** [Required] The instance type running the Spark job. */ + instanceType: string; + /** [Required] The Spark runtime version. */ + runtimeVersion: string; +} + export interface CustomMonitoringSignal extends MonitoringSignalBase { /** Polymorphic discriminator, which specifies the different types this object can be */ signalType: "Custom"; + /** [Required] 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] Reference to the component asset used to calculate the custom metrics. */ - componentId: string; /** [Required] A list of metrics to calculate and their associated thresholds. */ metricThresholds: CustomMetricThreshold[]; } @@ -5370,85 +5377,72 @@ export interface CustomMonitoringSignal extends MonitoringSignalBase { export interface DataDriftMonitoringSignal extends MonitoringSignalBase { /** Polymorphic discriminator, which specifies the different types this object can be */ signalType: "DataDrift"; - /** The feature filter which identifies which feature to calculate drift over. */ - features?: MonitoringFeatureFilterBaseUnion; + /** 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; - /** A dictionary that maps feature names to their respective data types. */ - featureDataTypeOverride?: { - [propertyName: string]: MonitoringFeatureDataType; - }; } export interface DataQualityMonitoringSignal extends MonitoringSignalBase { /** Polymorphic discriminator, which specifies the different types this object can be */ signalType: "DataQuality"; - /** The features to calculate drift over. */ - features?: MonitoringFeatureFilterBaseUnion; + /** 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; - /** A dictionary that maps feature names to their respective data types. */ - featureDataTypeOverride?: { - [propertyName: string]: MonitoringFeatureDataType; - }; } export interface FeatureAttributionDriftMonitoringSignal extends MonitoringSignalBase { /** Polymorphic discriminator, which specifies the different types this object can be */ signalType: "FeatureAttributionDrift"; - /** [Required] A list of metrics to calculate and their associated thresholds. */ - metricThreshold: FeatureAttributionMetricThreshold; + /** 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; - /** A dictionary that maps feature names to their respective data types. */ - featureDataTypeOverride?: { - [propertyName: string]: MonitoringFeatureDataType; - }; } 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; - /** A dictionary that maps feature names to their respective data types. */ - featureDataTypeOverride?: { - [propertyName: string]: MonitoringFeatureDataType; - }; -} - -/** 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; } /** Fixed input data definition. */ @@ -5461,24 +5455,24 @@ export interface FixedInputData extends MonitoringInputDataBase { 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; - /** Reference to the component asset used to preprocess the data. */ - preprocessingComponentId?: string; } /** Static input data definition. */ export interface StaticInputData extends MonitoringInputDataBase { /** Polymorphic discriminator, which specifies the different types this object can be */ inputDataType: "Static"; - /** [Required] The start date of the data window. */ - windowStart: Date; - /** [Required] The end date of the data window. */ - windowEnd: Date; /** 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; } /** @@ -5830,56 +5824,56 @@ export interface Schedule extends ProxyResource { } export interface BatchEndpoint extends TrackedResource { - /** [Required] Additional attributes of the entity. */ - properties: BatchEndpointProperties; - /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ - kind?: string; /** Managed service identity (system assigned and/or user assigned identities) */ identity?: ManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** [Required] Additional attributes of the entity. */ + properties: BatchEndpointProperties; /** Sku details required for ARM contract for Autoscaling. */ sku?: Sku; } export interface BatchDeployment extends TrackedResource { - /** [Required] Additional attributes of the entity. */ - properties: BatchDeploymentProperties; - /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ - kind?: string; /** Managed service identity (system assigned and/or user assigned identities) */ identity?: ManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** [Required] Additional attributes of the entity. */ + properties: BatchDeploymentProperties; /** Sku details required for ARM contract for Autoscaling. */ sku?: Sku; } export interface OnlineEndpoint extends TrackedResource { - /** [Required] Additional attributes of the entity. */ - properties: OnlineEndpointProperties; - /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ - kind?: string; /** Managed service identity (system assigned and/or user assigned identities) */ identity?: ManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** [Required] Additional attributes of the entity. */ + properties: OnlineEndpointProperties; /** Sku details required for ARM contract for Autoscaling. */ sku?: Sku; } export interface OnlineDeployment extends TrackedResource { - /** [Required] Additional attributes of the entity. */ - properties: OnlineDeploymentPropertiesUnion; - /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ - kind?: string; /** Managed service identity (system assigned and/or user assigned identities) */ identity?: ManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** [Required] Additional attributes of the entity. */ + properties: OnlineDeploymentPropertiesUnion; /** Sku details required for ARM contract for Autoscaling. */ sku?: Sku; } export interface ServerlessEndpoint extends TrackedResource { - /** [Required] Additional attributes of the entity. */ - properties: ServerlessEndpointProperties; - /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ - kind?: string; /** Managed service identity (system assigned and/or user assigned identities) */ identity?: ManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** [Required] Additional attributes of the entity. */ + properties: ServerlessEndpointProperties; /** Sku details required for ARM contract for Autoscaling. */ sku?: Sku; } @@ -6007,6 +6001,15 @@ export interface DataVersionBaseProperties extends AssetBase { /** Environment version details. */ export interface EnvironmentVersionProperties extends AssetBase { + /** Defines if image needs to be rebuilt based on base image changes. */ + autoRebuild?: AutoRebuildSetting; + /** Configuration settings for Docker build context. */ + build?: BuildContext; + /** + * Standard configuration file used by Conda that lets you install any kind of package, including Python, R, and C/C++ packages. + * + */ + condaFile?: string; /** * Environment type is either user managed or curated by the Azure ML service * @@ -6018,19 +6021,10 @@ export interface EnvironmentVersionProperties extends AssetBase { * */ image?: string; - /** - * Standard configuration file used by Conda that lets you install any kind of package, including Python, R, and C/C++ packages. - * - */ - condaFile?: string; - /** Configuration settings for Docker build context. */ - build?: BuildContext; - /** The OS type of the environment. */ - osType?: OperatingSystemType; /** Defines configuration specific to inference. */ inferenceConfig?: InferenceContainerProperties; - /** Defines if image needs to be rebuilt based on base image changes. */ - autoRebuild?: AutoRebuildSetting; + /** 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. @@ -6044,12 +6038,12 @@ export interface EnvironmentVersionProperties extends AssetBase { export interface ModelVersionProperties extends AssetBase { /** Mapping of model flavors to their properties. */ flavors?: { [propertyName: string]: FlavorData | null }; + /** Name of the training job which produced this model */ + jobName?: string; /** The storage format for this entity. Used for NCD. */ modelType?: string; /** The URI path to the model contents. */ modelUri?: string; - /** Name of the training job which produced this model */ - jobName?: string; /** * Provisioning state for the model version. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6061,32 +6055,32 @@ export interface ModelVersionProperties extends AssetBase { /** DTO object representing feature set version */ export interface FeaturesetVersionProperties extends AssetBase { - /** Specifies the feature spec details */ - specification?: FeaturesetSpecification; - /** Specifies the materialization settings */ - materializationSettings?: MaterializationSettings; - /** Specifies the asset stage */ - stage?: string; /** Specifies list of entities */ entities?: string[]; + /** Specifies the materialization settings */ + materializationSettings?: MaterializationSettings; /** * Provisioning state for the featureset version container. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: AssetProvisioningState; + /** Specifies the feature spec details */ + specification?: FeaturesetSpecification; + /** Specifies the asset stage */ + stage?: string; } /** DTO object representing feature entity version */ export interface FeaturestoreEntityVersionProperties extends AssetBase { /** Specifies index columns */ indexColumns?: IndexColumn[]; - /** Specifies the asset stage */ - stage?: string; /** * Provisioning state for the featurestore entity version. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: AssetProvisioningState; + /** Specifies the asset stage */ + stage?: string; } /** OneLake (Trident) datastore configuration. */ @@ -6095,10 +6089,10 @@ export interface OneLakeDatastore extends DatastoreProperties { datastoreType: "OneLake"; /** [Required] OneLake artifact backing the datastore. */ artifact: OneLakeArtifactUnion; - /** [Required] OneLake workspace name. */ - oneLakeWorkspaceName: string; /** OneLake endpoint to use for the datastore. */ endpoint?: string; + /** [Required] OneLake workspace name. */ + oneLakeWorkspaceName: string; /** Indicates which identity to use to authenticate service data access to customer's storage. */ serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; } @@ -6111,8 +6105,6 @@ export interface OneLakeDatastore extends DatastoreProperties { export interface AutoMLJob extends JobBaseProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ jobType: "AutoML"; - /** Compute Resource configuration for the job. */ - resources?: JobResourceConfiguration; /** * The ARM resource ID of the Environment specification for the job. * This is optional value to provide, if not provided, AutoML will default this to Production AutoML curated environment version when running the job. @@ -6120,36 +6112,36 @@ export interface AutoMLJob extends JobBaseProperties { environmentId?: string; /** Environment variables included in the job. */ environmentVariables?: { [propertyName: string]: string | null }; - /** [Required] This represents scenario which can be one of Tables/NLP/Image */ - taskDetails: AutoMLVerticalUnion; /** Mapping of output data bindings used in the job. */ outputs?: { [propertyName: string]: JobOutputUnion | null }; /** Queue settings for the job */ queueSettings?: QueueSettings; + /** Compute Resource configuration for the job. */ + resources?: JobResourceConfiguration; + /** [Required] This represents scenario which can be one of Tables/NLP/Image */ + taskDetails: AutoMLVerticalUnion; } /** Command job definition. */ export interface CommandJob extends JobBaseProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ jobType: "Command"; - /** Compute Resource configuration for the job. */ - resources?: JobResourceConfiguration; /** ARM resource ID of the code asset. */ codeId?: string; /** [Required] The command to execute on startup of the job. eg. "python train.py" */ command: string; + /** Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. */ + distribution?: DistributionConfigurationUnion; /** [Required] The ARM resource ID of the Environment specification for the job. */ environmentId: string; + /** Environment variables included in the job. */ + environmentVariables?: { [propertyName: string]: string | null }; /** Mapping of input data bindings used in the job. */ inputs?: { [propertyName: string]: JobInputUnion | null }; - /** Mapping of output data bindings used in the job. */ - outputs?: { [propertyName: string]: JobOutputUnion | null }; - /** Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. */ - distribution?: DistributionConfigurationUnion; /** Command Job limit. */ limits?: CommandJobLimits; - /** Environment variables included in the job. */ - environmentVariables?: { [propertyName: string]: string | null }; + /** Mapping of output data bindings used in the job. */ + outputs?: { [propertyName: string]: JobOutputUnion | null }; /** * Input parameters. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6157,20 +6149,22 @@ export interface CommandJob extends JobBaseProperties { readonly parameters?: Record; /** Queue settings for the job */ queueSettings?: QueueSettings; + /** Compute Resource configuration for the job. */ + resources?: JobResourceConfiguration; } /** Pipeline Job definition: defines generic to MFE attributes. */ export interface PipelineJob extends JobBaseProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ jobType: "Pipeline"; - /** Pipeline settings, for things like ContinueRunOnStepFailure etc. */ - settings?: Record; - /** Jobs construct the Pipeline Job. */ - jobs?: { [propertyName: string]: Record }; /** Inputs for the pipeline job. */ inputs?: { [propertyName: string]: JobInputUnion | null }; + /** Jobs construct the Pipeline Job. */ + jobs?: { [propertyName: string]: Record }; /** Outputs for the pipeline job */ outputs?: { [propertyName: string]: JobOutputUnion | null }; + /** Pipeline settings, for things like ContinueRunOnStepFailure etc. */ + settings?: Record; /** ARM resource ID of source job. */ sourceJobId?: string; } @@ -6179,58 +6173,58 @@ export interface PipelineJob extends JobBaseProperties { export interface SparkJob extends JobBaseProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ jobType: "Spark"; - /** Compute Resource configuration for the job. */ - resources?: SparkResourceConfiguration; + /** Archive files used in the job. */ + archives?: string[]; /** Arguments for the job. */ args?: string; /** [Required] arm-id of the code asset. */ codeId: string; + /** Spark configured properties. */ + conf?: { [propertyName: string]: string | null }; /** [Required] The entry to execute on startup of the job. */ entry: SparkJobEntryUnion; /** The ARM resource ID of the Environment specification for the job. */ environmentId?: string; + /** Environment variables included in the job. */ + environmentVariables?: { [propertyName: string]: string | null }; + /** Files used in the job. */ + files?: string[]; /** Mapping of input data bindings used in the job. */ inputs?: { [propertyName: string]: JobInputUnion | null }; + /** Jar files used in the job. */ + jars?: string[]; /** Mapping of output data bindings used in the job. */ outputs?: { [propertyName: string]: JobOutputUnion | null }; /** Python files used in the job. */ pyFiles?: string[]; - /** Jar files used in the job. */ - jars?: string[]; - /** Files used in the job. */ - files?: string[]; - /** Archive files used in the job. */ - archives?: string[]; - /** Spark configured properties. */ - conf?: { [propertyName: string]: string | null }; /** Queue settings for the job */ queueSettings?: QueueSettings; - /** Environment variables included in the job. */ - environmentVariables?: { [propertyName: string]: string | null }; + /** Compute Resource configuration for the job. */ + resources?: SparkResourceConfiguration; } /** Sweep job definition. */ export interface SweepJob extends JobBaseProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ jobType: "Sweep"; - /** [Required] A dictionary containing each parameter and its distribution. The dictionary key is the name of the parameter */ - searchSpace: Record; - /** [Required] The hyperparameter sampling algorithm */ - samplingAlgorithm: SamplingAlgorithmUnion; - /** Sweep Job limit. */ - limits?: SweepJobLimits; /** Early termination policies enable canceling poor-performing runs before they complete */ earlyTermination?: EarlyTerminationPolicyUnion; - /** [Required] Optimization objective. */ - objective: Objective; - /** [Required] Trial component definition. */ - trial: TrialComponent; /** Mapping of input data bindings used in the job. */ inputs?: { [propertyName: string]: JobInputUnion | null }; + /** Sweep Job limit. */ + limits?: SweepJobLimits; + /** [Required] Optimization objective. */ + objective: Objective; /** Mapping of output data bindings used in the job. */ outputs?: { [propertyName: string]: JobOutputUnion | null }; /** Queue settings for the job */ queueSettings?: QueueSettings; + /** [Required] The hyperparameter sampling algorithm */ + samplingAlgorithm: SamplingAlgorithmUnion; + /** [Required] A dictionary containing each parameter and its distribution. The dictionary key is the name of the parameter */ + searchSpace: Record; + /** [Required] Trial component definition. */ + trial: TrialComponent; } /** Properties specific to a KubernetesOnlineDeployment. */ @@ -6267,46 +6261,6 @@ 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. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; -} - -/** Defines headers for Workspaces_resyncKeys operation. */ -export interface WorkspacesResyncKeysHeaders { - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; -} - -/** Defines headers for 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. */ @@ -6321,28 +6275,6 @@ export interface ComputeDeleteHeaders { location?: string; } -/** 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. */ @@ -6873,161 +6805,210 @@ export interface RegistriesRemoveRegionsHeaders { 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 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 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; +/** Defines headers for Workspaces_delete operation. */ +export interface WorkspacesDeleteHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} -/** Known values of {@link ActionType} that the service accepts. */ -export enum KnownActionType { - /** Internal */ - Internal = "Internal", +/** 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. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for Workspaces_resyncKeys operation. */ +export interface WorkspacesResyncKeysHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for 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 ManagedNetworkSettingsRule_delete operation. */ +export interface ManagedNetworkSettingsRuleDeleteHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; +} + +/** Defines headers for ManagedNetworkSettingsRule_createOrUpdate operation. */ +export interface ManagedNetworkSettingsRuleCreateOrUpdateHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for ManagedNetworkProvisions_provisionManagedNetwork operation. */ +export interface ManagedNetworkProvisionsProvisionManagedNetworkHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Known values of {@link UsageUnit} that the service accepts. */ +export enum KnownUsageUnit { + /** Count */ + Count = "Count", } /** - * Defines values for ActionType. \ - * {@link KnownActionType} can be used interchangeably with ActionType, + * Defines values for UsageUnit. \ + * {@link KnownUsageUnit} can be used interchangeably with UsageUnit, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Internal** + * **Count** */ -export type ActionType = string; +export type UsageUnit = string; -/** Known values of {@link ProvisioningState} that the service accepts. */ -export enum KnownProvisioningState { - /** Unknown */ - Unknown = "Unknown", - /** Updating */ - Updating = "Updating", - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled", +/** Known values of {@link BillingCurrency} that the service accepts. */ +export enum KnownBillingCurrency { + /** USD */ + USD = "USD", } /** - * Defines values for ProvisioningState. \ - * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * Defines values for BillingCurrency. \ + * {@link KnownBillingCurrency} can be used interchangeably with BillingCurrency, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Unknown** \ - * **Updating** \ - * **Creating** \ - * **Deleting** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** + * **USD** */ -export type ProvisioningState = string; +export type BillingCurrency = string; -/** Known values of {@link EncryptionStatus} that the service accepts. */ -export enum KnownEncryptionStatus { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled", +/** Known values of {@link UnitOfMeasure} that the service accepts. */ +export enum KnownUnitOfMeasure { + /** OneHour */ + OneHour = "OneHour", } /** - * Defines values for EncryptionStatus. \ - * {@link KnownEncryptionStatus} can be used interchangeably with EncryptionStatus, + * Defines values for UnitOfMeasure. \ + * {@link KnownUnitOfMeasure} can be used interchangeably with UnitOfMeasure, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **OneHour** */ -export type EncryptionStatus = string; +export type UnitOfMeasure = string; -/** Known values of {@link PublicNetworkAccess} that the service accepts. */ -export enum KnownPublicNetworkAccess { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled", +/** Known values of {@link VMPriceOSType} that the service accepts. */ +export enum KnownVMPriceOSType { + /** Linux */ + Linux = "Linux", + /** Windows */ + Windows = "Windows", } /** - * Defines values for PublicNetworkAccess. \ - * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, + * Defines values for VMPriceOSType. \ + * {@link KnownVMPriceOSType} can be used interchangeably with VMPriceOSType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **Linux** \ + * **Windows** */ -export type PublicNetworkAccess = string; +export type VMPriceOSType = string; -/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ -export enum KnownPrivateEndpointServiceConnectionStatus { - /** Pending */ - Pending = "Pending", - /** Approved */ - Approved = "Approved", - /** Rejected */ - Rejected = "Rejected", - /** Disconnected */ - Disconnected = "Disconnected", - /** Timeout */ - Timeout = "Timeout", +/** Known values of {@link VMTier} that the service accepts. */ +export enum KnownVMTier { + /** Standard */ + Standard = "Standard", + /** LowPriority */ + LowPriority = "LowPriority", + /** Spot */ + Spot = "Spot", } /** - * Defines values for PrivateEndpointServiceConnectionStatus. \ - * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, + * Defines values for VMTier. \ + * {@link KnownVMTier} can be used interchangeably with VMTier, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Pending** \ - * **Approved** \ - * **Rejected** \ - * **Disconnected** \ - * **Timeout** + * **Standard** \ + * **LowPriority** \ + * **Spot** */ -export type PrivateEndpointServiceConnectionStatus = string; +export type VMTier = string; -/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ -export enum KnownPrivateEndpointConnectionProvisioningState { - /** Succeeded */ - Succeeded = "Succeeded", - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", - /** Failed */ - Failed = "Failed", +/** Known values of {@link QuotaUnit} that the service accepts. */ +export enum KnownQuotaUnit { + /** Count */ + Count = "Count", } /** - * Defines values for PrivateEndpointConnectionProvisioningState. \ - * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, + * Defines values for QuotaUnit. \ + * {@link KnownQuotaUnit} can be used interchangeably with QuotaUnit, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Succeeded** \ - * **Creating** \ - * **Deleting** \ - * **Failed** + * **Count** */ -export type PrivateEndpointConnectionProvisioningState = string; +export type QuotaUnit = string; + +/** Known values of {@link Status} that the service accepts. */ +export enum KnownStatus { + /** Undefined */ + Undefined = "Undefined", + /** Success */ + Success = "Success", + /** Failure */ + Failure = "Failure", + /** InvalidQuotaBelowClusterMinimum */ + InvalidQuotaBelowClusterMinimum = "InvalidQuotaBelowClusterMinimum", + /** InvalidQuotaExceedsSubscriptionLimit */ + InvalidQuotaExceedsSubscriptionLimit = "InvalidQuotaExceedsSubscriptionLimit", + /** InvalidVMFamilyName */ + InvalidVMFamilyName = "InvalidVMFamilyName", + /** OperationNotSupportedForSku */ + OperationNotSupportedForSku = "OperationNotSupportedForSku", + /** OperationNotEnabledForRegion */ + OperationNotEnabledForRegion = "OperationNotEnabledForRegion", +} + +/** + * Defines values for Status. \ + * {@link KnownStatus} can be used interchangeably with Status, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Undefined** \ + * **Success** \ + * **Failure** \ + * **InvalidQuotaBelowClusterMinimum** \ + * **InvalidQuotaExceedsSubscriptionLimit** \ + * **InvalidVMFamilyName** \ + * **OperationNotSupportedForSku** \ + * **OperationNotEnabledForRegion** + */ +export type Status = string; /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ export enum KnownManagedServiceIdentityType { @@ -7077,1622 +7058,1343 @@ 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", +/** Known values of {@link ComputeType} that the service accepts. */ +export enum KnownComputeType { + /** AKS */ + AKS = "AKS", + /** Kubernetes */ + Kubernetes = "Kubernetes", + /** AmlCompute */ + AmlCompute = "AmlCompute", + /** ComputeInstance */ + ComputeInstance = "ComputeInstance", + /** DataFactory */ + DataFactory = "DataFactory", + /** VirtualMachine */ + VirtualMachine = "VirtualMachine", + /** HDInsight */ + HDInsight = "HDInsight", + /** Databricks */ + Databricks = "Databricks", + /** DataLakeAnalytics */ + DataLakeAnalytics = "DataLakeAnalytics", + /** SynapseSpark */ + SynapseSpark = "SynapseSpark", } /** - * Defines values for IsolationMode. \ - * {@link KnownIsolationMode} can be used interchangeably with IsolationMode, + * Defines values for ComputeType. \ + * {@link KnownComputeType} can be used interchangeably with ComputeType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Disabled** \ - * **AllowInternetOutbound** \ - * **AllowOnlyApprovedOutbound** + * **AKS** \ + * **Kubernetes** \ + * **AmlCompute** \ + * **ComputeInstance** \ + * **DataFactory** \ + * **VirtualMachine** \ + * **HDInsight** \ + * **Databricks** \ + * **DataLakeAnalytics** \ + * **SynapseSpark** */ -export type IsolationMode = string; +export type ComputeType = string; -/** Known values of {@link RuleCategory} that the service accepts. */ -export enum KnownRuleCategory { - /** Required */ - Required = "Required", - /** Recommended */ - Recommended = "Recommended", - /** UserDefined */ - UserDefined = "UserDefined", - /** Dependency */ - Dependency = "Dependency", +/** 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 RuleCategory. \ - * {@link KnownRuleCategory} can be used interchangeably with RuleCategory, + * 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 - * **Required** \ - * **Recommended** \ - * **UserDefined** \ - * **Dependency** + * **Unknown** \ + * **Updating** \ + * **Creating** \ + * **Deleting** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** */ -export type RuleCategory = string; +export type ProvisioningState = string; -/** Known values of {@link RuleStatus} that the service accepts. */ -export enum KnownRuleStatus { - /** Inactive */ - Inactive = "Inactive", - /** Active */ - Active = "Active", +/** Known values of {@link UnderlyingResourceAction} that the service accepts. */ +export enum KnownUnderlyingResourceAction { + /** Delete */ + Delete = "Delete", + /** Detach */ + Detach = "Detach", } /** - * Defines values for RuleStatus. \ - * {@link KnownRuleStatus} can be used interchangeably with RuleStatus, + * Defines values for UnderlyingResourceAction. \ + * {@link KnownUnderlyingResourceAction} can be used interchangeably with UnderlyingResourceAction, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Inactive** \ - * **Active** + * **Delete** \ + * **Detach** */ -export type RuleStatus = string; +export type UnderlyingResourceAction = string; -/** Known values of {@link RuleType} that the service accepts. */ -export enum KnownRuleType { - /** Fqdn */ - Fqdn = "FQDN", - /** PrivateEndpoint */ - PrivateEndpoint = "PrivateEndpoint", - /** ServiceTag */ - ServiceTag = "ServiceTag", +/** Known values of {@link NodeState} that the service accepts. */ +export enum KnownNodeState { + /** Idle */ + Idle = "idle", + /** Running */ + Running = "running", + /** Preparing */ + Preparing = "preparing", + /** Unusable */ + Unusable = "unusable", + /** Leaving */ + Leaving = "leaving", + /** Preempted */ + Preempted = "preempted", } /** - * Defines values for RuleType. \ - * {@link KnownRuleType} can be used interchangeably with RuleType, + * Defines values for NodeState. \ + * {@link KnownNodeState} can be used interchangeably with NodeState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **FQDN** \ - * **PrivateEndpoint** \ - * **ServiceTag** + * **idle** \ + * **running** \ + * **preparing** \ + * **unusable** \ + * **leaving** \ + * **preempted** */ -export type RuleType = string; +export type NodeState = string; -/** Known values of {@link ManagedNetworkStatus} that the service accepts. */ -export enum KnownManagedNetworkStatus { - /** Inactive */ - Inactive = "Inactive", - /** Active */ - Active = "Active", +/** Known values of {@link AssetProvisioningState} that the service accepts. */ +export enum KnownAssetProvisioningState { + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled", + /** Creating */ + Creating = "Creating", + /** Updating */ + Updating = "Updating", + /** Deleting */ + Deleting = "Deleting", } /** - * Defines values for ManagedNetworkStatus. \ - * {@link KnownManagedNetworkStatus} can be used interchangeably with ManagedNetworkStatus, + * 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 - * **Inactive** \ - * **Active** + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **Creating** \ + * **Updating** \ + * **Deleting** */ -export type ManagedNetworkStatus = string; +export type AssetProvisioningState = string; -/** Known values of {@link DiagnoseResultLevel} that the service accepts. */ -export enum KnownDiagnoseResultLevel { - /** Warning */ - Warning = "Warning", - /** Error */ - Error = "Error", - /** Information */ - Information = "Information", +/** Known values of {@link PendingUploadType} that the service accepts. */ +export enum KnownPendingUploadType { + /** None */ + None = "None", + /** TemporaryBlobReference */ + TemporaryBlobReference = "TemporaryBlobReference", } /** - * Defines values for DiagnoseResultLevel. \ - * {@link KnownDiagnoseResultLevel} can be used interchangeably with DiagnoseResultLevel, + * 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 - * **Warning** \ - * **Error** \ - * **Information** + * **None** \ + * **TemporaryBlobReference** */ -export type DiagnoseResultLevel = string; +export type PendingUploadType = string; -/** Known values of {@link UsageUnit} that the service accepts. */ -export enum KnownUsageUnit { - /** Count */ - Count = "Count", +/** Known values of {@link PendingUploadCredentialType} that the service accepts. */ +export enum KnownPendingUploadCredentialType { + /** SAS */ + SAS = "SAS", } /** - * Defines values for UsageUnit. \ - * {@link KnownUsageUnit} can be used interchangeably with UsageUnit, + * 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 - * **Count** + * **SAS** */ -export type UsageUnit = string; +export type PendingUploadCredentialType = string; -/** Known values of {@link BillingCurrency} that the service accepts. */ -export enum KnownBillingCurrency { - /** USD */ - USD = "USD", +/** Known values of {@link ListViewType} that the service accepts. */ +export enum KnownListViewType { + /** ActiveOnly */ + ActiveOnly = "ActiveOnly", + /** ArchivedOnly */ + ArchivedOnly = "ArchivedOnly", + /** All */ + All = "All", } /** - * Defines values for BillingCurrency. \ - * {@link KnownBillingCurrency} can be used interchangeably with BillingCurrency, + * 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 - * **USD** + * **ActiveOnly** \ + * **ArchivedOnly** \ + * **All** */ -export type BillingCurrency = string; +export type ListViewType = string; -/** Known values of {@link UnitOfMeasure} that the service accepts. */ -export enum KnownUnitOfMeasure { - /** OneHour */ - OneHour = "OneHour", +/** 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 UnitOfMeasure. \ - * {@link KnownUnitOfMeasure} can be used interchangeably with UnitOfMeasure, + * 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 - * **OneHour** + * **uri_file** \ + * **uri_folder** \ + * **mltable** */ -export type UnitOfMeasure = string; +export type DataType = string; -/** Known values of {@link VMPriceOSType} that the service accepts. */ -export enum KnownVMPriceOSType { - /** Linux */ - Linux = "Linux", - /** Windows */ - Windows = "Windows", +/** 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 VMPriceOSType. \ - * {@link KnownVMPriceOSType} can be used interchangeably with VMPriceOSType, + * 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 - * **Linux** \ - * **Windows** + * **SAS** \ + * **DockerCredentials** \ + * **ManagedIdentity** \ + * **NoCredentials** */ -export type VMPriceOSType = string; +export type DataReferenceCredentialType = string; -/** Known values of {@link VMTier} that the service accepts. */ -export enum KnownVMTier { - /** Standard */ - Standard = "Standard", - /** LowPriority */ - LowPriority = "LowPriority", - /** Spot */ - Spot = "Spot", +/** Known values of {@link AutoRebuildSetting} that the service accepts. */ +export enum KnownAutoRebuildSetting { + /** Disabled */ + Disabled = "Disabled", + /** OnBaseImageUpdate */ + OnBaseImageUpdate = "OnBaseImageUpdate", } /** - * Defines values for VMTier. \ - * {@link KnownVMTier} can be used interchangeably with VMTier, + * 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 - * **Standard** \ - * **LowPriority** \ - * **Spot** + * **Disabled** \ + * **OnBaseImageUpdate** */ -export type VMTier = string; +export type AutoRebuildSetting = string; -/** Known values of {@link QuotaUnit} that the service accepts. */ -export enum KnownQuotaUnit { - /** Count */ - Count = "Count", +/** Known values of {@link EnvironmentType} that the service accepts. */ +export enum KnownEnvironmentType { + /** Curated */ + Curated = "Curated", + /** UserCreated */ + UserCreated = "UserCreated", } /** - * Defines values for QuotaUnit. \ - * {@link KnownQuotaUnit} can be used interchangeably with QuotaUnit, + * 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 - * **Count** + * **Curated** \ + * **UserCreated** */ -export type QuotaUnit = string; +export type EnvironmentType = string; -/** Known values of {@link Status} that the service accepts. */ -export enum KnownStatus { - /** Undefined */ - Undefined = "Undefined", - /** Success */ - Success = "Success", - /** Failure */ - Failure = "Failure", - /** InvalidQuotaBelowClusterMinimum */ - InvalidQuotaBelowClusterMinimum = "InvalidQuotaBelowClusterMinimum", - /** InvalidQuotaExceedsSubscriptionLimit */ - InvalidQuotaExceedsSubscriptionLimit = "InvalidQuotaExceedsSubscriptionLimit", - /** InvalidVMFamilyName */ - InvalidVMFamilyName = "InvalidVMFamilyName", - /** OperationNotSupportedForSku */ - OperationNotSupportedForSku = "OperationNotSupportedForSku", - /** OperationNotEnabledForRegion */ - OperationNotEnabledForRegion = "OperationNotEnabledForRegion", +/** Known values of {@link OperatingSystemType} that the service accepts. */ +export enum KnownOperatingSystemType { + /** Linux */ + Linux = "Linux", + /** Windows */ + Windows = "Windows", } /** - * Defines values for Status. \ - * {@link KnownStatus} can be used interchangeably with Status, + * 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 - * **Undefined** \ - * **Success** \ - * **Failure** \ - * **InvalidQuotaBelowClusterMinimum** \ - * **InvalidQuotaExceedsSubscriptionLimit** \ - * **InvalidVMFamilyName** \ - * **OperationNotSupportedForSku** \ - * **OperationNotEnabledForRegion** + * **Linux** \ + * **Windows** */ -export type Status = string; +export type OperatingSystemType = string; -/** Known values of {@link ComputeType} that the service accepts. */ -export enum KnownComputeType { - /** AKS */ - AKS = "AKS", - /** Kubernetes */ - Kubernetes = "Kubernetes", - /** AmlCompute */ - AmlCompute = "AmlCompute", - /** ComputeInstance */ - ComputeInstance = "ComputeInstance", - /** DataFactory */ - DataFactory = "DataFactory", - /** VirtualMachine */ - VirtualMachine = "VirtualMachine", - /** HDInsight */ - HDInsight = "HDInsight", - /** Databricks */ - Databricks = "Databricks", - /** DataLakeAnalytics */ - DataLakeAnalytics = "DataLakeAnalytics", - /** SynapseSpark */ - SynapseSpark = "SynapseSpark", +/** Known values of {@link 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 ComputeType. \ - * {@link KnownComputeType} can be used interchangeably with ComputeType, + * 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 - * **AKS** \ - * **Kubernetes** \ - * **AmlCompute** \ - * **ComputeInstance** \ - * **DataFactory** \ - * **VirtualMachine** \ - * **HDInsight** \ - * **Databricks** \ - * **DataLakeAnalytics** \ - * **SynapseSpark** + * **Creating** \ + * **Deleting** \ + * **Succeeded** \ + * **Failed** \ + * **Updating** \ + * **Canceled** */ -export type ComputeType = string; +export type EndpointProvisioningState = string; -/** Known values of {@link UnderlyingResourceAction} that the service accepts. */ -export enum KnownUnderlyingResourceAction { - /** Delete */ - Delete = "Delete", - /** Detach */ - Detach = "Detach", +/** Known values of {@link EndpointAuthMode} that the service accepts. */ +export enum KnownEndpointAuthMode { + /** AMLToken */ + AMLToken = "AMLToken", + /** Key */ + Key = "Key", + /** AADToken */ + AADToken = "AADToken", } /** - * Defines values for UnderlyingResourceAction. \ - * {@link KnownUnderlyingResourceAction} can be used interchangeably with UnderlyingResourceAction, + * 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 - * **Delete** \ - * **Detach** + * **AMLToken** \ + * **Key** \ + * **AADToken** */ -export type UnderlyingResourceAction = string; +export type EndpointAuthMode = string; -/** Known values of {@link NodeState} that the service accepts. */ -export enum KnownNodeState { - /** Idle */ - Idle = "idle", - /** Running */ - Running = "running", - /** Preparing */ - Preparing = "preparing", - /** Unusable */ - Unusable = "unusable", - /** Leaving */ - Leaving = "leaving", - /** Preempted */ - Preempted = "preempted", +/** Known values of {@link BatchDeploymentConfigurationType} that the service accepts. */ +export enum KnownBatchDeploymentConfigurationType { + /** Model */ + Model = "Model", + /** PipelineComponent */ + PipelineComponent = "PipelineComponent", } /** - * Defines values for NodeState. \ - * {@link KnownNodeState} can be used interchangeably with NodeState, + * Defines values for BatchDeploymentConfigurationType. \ + * {@link KnownBatchDeploymentConfigurationType} can be used interchangeably with BatchDeploymentConfigurationType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **idle** \ - * **running** \ - * **preparing** \ - * **unusable** \ - * **leaving** \ - * **preempted** + * **Model** \ + * **PipelineComponent** */ -export type NodeState = string; +export type BatchDeploymentConfigurationType = string; -/** Known values of {@link ConnectionAuthType} that the service accepts. */ -export enum KnownConnectionAuthType { - /** PAT */ - PAT = "PAT", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** UsernamePassword */ - UsernamePassword = "UsernamePassword", - /** None */ - None = "None", - /** SAS */ - SAS = "SAS", +/** Known values of {@link BatchLoggingLevel} that the service accepts. */ +export enum KnownBatchLoggingLevel { + /** Info */ + Info = "Info", + /** Warning */ + Warning = "Warning", + /** Debug */ + Debug = "Debug", +} + +/** + * Defines values for BatchLoggingLevel. \ + * {@link KnownBatchLoggingLevel} can be used interchangeably with BatchLoggingLevel, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Info** \ + * **Warning** \ + * **Debug** + */ +export type BatchLoggingLevel = string; + +/** Known values of {@link ReferenceType} that the service accepts. */ +export enum KnownReferenceType { + /** Id */ + Id = "Id", + /** DataPath */ + DataPath = "DataPath", + /** OutputPath */ + OutputPath = "OutputPath", +} + +/** + * Defines values for ReferenceType. \ + * {@link KnownReferenceType} can be used interchangeably with ReferenceType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Id** \ + * **DataPath** \ + * **OutputPath** + */ +export type ReferenceType = string; + +/** Known values of {@link BatchOutputAction} that the service accepts. */ +export enum KnownBatchOutputAction { + /** SummaryOnly */ + SummaryOnly = "SummaryOnly", + /** AppendRow */ + AppendRow = "AppendRow", +} + +/** + * Defines values for BatchOutputAction. \ + * {@link KnownBatchOutputAction} can be used interchangeably with BatchOutputAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SummaryOnly** \ + * **AppendRow** + */ +export type BatchOutputAction = string; + +/** Known values of {@link DeploymentProvisioningState} that the service accepts. */ +export enum KnownDeploymentProvisioningState { + /** Creating */ + Creating = "Creating", + /** Deleting */ + Deleting = "Deleting", + /** Scaling */ + Scaling = "Scaling", + /** Updating */ + Updating = "Updating", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled", +} + +/** + * Defines values for DeploymentProvisioningState. \ + * {@link KnownDeploymentProvisioningState} can be used interchangeably with DeploymentProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Deleting** \ + * **Scaling** \ + * **Updating** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** + */ +export type DeploymentProvisioningState = string; + +/** Known values of {@link CredentialsType} that the service accepts. */ +export enum KnownCredentialsType { /** AccountKey */ AccountKey = "AccountKey", + /** Certificate */ + Certificate = "Certificate", + /** None */ + None = "None", + /** Sas */ + Sas = "Sas", /** ServicePrincipal */ ServicePrincipal = "ServicePrincipal", - /** AccessKey */ - AccessKey = "AccessKey", - /** ApiKey */ - ApiKey = "ApiKey", - /** CustomKeys */ - CustomKeys = "CustomKeys", - /** OAuth2 */ - OAuth2 = "OAuth2", - /** AAD */ - AAD = "AAD", } /** - * Defines values for ConnectionAuthType. \ - * {@link KnownConnectionAuthType} can be used interchangeably with ConnectionAuthType, + * Defines values for CredentialsType. \ + * {@link KnownCredentialsType} can be used interchangeably with CredentialsType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **PAT** \ - * **ManagedIdentity** \ - * **UsernamePassword** \ - * **None** \ - * **SAS** \ * **AccountKey** \ - * **ServicePrincipal** \ - * **AccessKey** \ - * **ApiKey** \ - * **CustomKeys** \ - * **OAuth2** \ - * **AAD** + * **Certificate** \ + * **None** \ + * **Sas** \ + * **ServicePrincipal** */ -export type ConnectionAuthType = string; +export type CredentialsType = string; -/** Known values of {@link ConnectionCategory} that the service accepts. */ -export enum KnownConnectionCategory { - /** PythonFeed */ - PythonFeed = "PythonFeed", - /** ContainerRegistry */ - ContainerRegistry = "ContainerRegistry", - /** Git */ - Git = "Git", - /** S3 */ - S3 = "S3", - /** Snowflake */ - Snowflake = "Snowflake", - /** AzureSqlDb */ - AzureSqlDb = "AzureSqlDb", - /** AzureSynapseAnalytics */ - AzureSynapseAnalytics = "AzureSynapseAnalytics", - /** AzureMySqlDb */ - AzureMySqlDb = "AzureMySqlDb", - /** AzurePostgresDb */ - AzurePostgresDb = "AzurePostgresDb", - /** AdlsGen2 */ - AdlsGen2 = "ADLSGen2", - /** Redis */ - Redis = "Redis", - /** ApiKey */ - ApiKey = "ApiKey", - /** AzureOpenAI */ - AzureOpenAI = "AzureOpenAI", - /** CognitiveSearch */ - CognitiveSearch = "CognitiveSearch", - /** CognitiveService */ - CognitiveService = "CognitiveService", - /** CustomKeys */ - CustomKeys = "CustomKeys", +/** Known values of {@link DatastoreType} that the service accepts. */ +export enum KnownDatastoreType { /** AzureBlob */ AzureBlob = "AzureBlob", - /** AzureOneLake */ - AzureOneLake = "AzureOneLake", - /** CosmosDb */ - CosmosDb = "CosmosDb", - /** CosmosDbMongoDbApi */ - CosmosDbMongoDbApi = "CosmosDbMongoDbApi", - /** AzureDataExplorer */ - AzureDataExplorer = "AzureDataExplorer", - /** AzureMariaDb */ - AzureMariaDb = "AzureMariaDb", - /** AzureDatabricksDeltaLake */ - AzureDatabricksDeltaLake = "AzureDatabricksDeltaLake", - /** AzureSqlMi */ - AzureSqlMi = "AzureSqlMi", - /** AzureTableStorage */ - AzureTableStorage = "AzureTableStorage", - /** AmazonRdsForOracle */ - AmazonRdsForOracle = "AmazonRdsForOracle", - /** AmazonRdsForSqlServer */ - AmazonRdsForSqlServer = "AmazonRdsForSqlServer", - /** AmazonRedshift */ - AmazonRedshift = "AmazonRedshift", - /** Db2 */ - Db2 = "Db2", - /** Drill */ - Drill = "Drill", - /** GoogleBigQuery */ - GoogleBigQuery = "GoogleBigQuery", - /** Greenplum */ - Greenplum = "Greenplum", - /** Hbase */ - Hbase = "Hbase", - /** Hive */ - Hive = "Hive", - /** Impala */ - Impala = "Impala", - /** Informix */ - Informix = "Informix", - /** MariaDb */ - MariaDb = "MariaDb", - /** MicrosoftAccess */ - MicrosoftAccess = "MicrosoftAccess", - /** MySql */ - MySql = "MySql", - /** Netezza */ - Netezza = "Netezza", - /** Oracle */ - Oracle = "Oracle", - /** Phoenix */ - Phoenix = "Phoenix", - /** PostgreSql */ - PostgreSql = "PostgreSql", - /** Presto */ - Presto = "Presto", - /** SapOpenHub */ - SapOpenHub = "SapOpenHub", - /** SapBw */ - SapBw = "SapBw", - /** SapHana */ - SapHana = "SapHana", - /** SapTable */ - SapTable = "SapTable", - /** Spark */ - Spark = "Spark", - /** SqlServer */ - SqlServer = "SqlServer", - /** Sybase */ - Sybase = "Sybase", - /** Teradata */ - Teradata = "Teradata", - /** Vertica */ - Vertica = "Vertica", - /** Cassandra */ - Cassandra = "Cassandra", - /** Couchbase */ - Couchbase = "Couchbase", - /** MongoDbV2 */ - MongoDbV2 = "MongoDbV2", - /** MongoDbAtlas */ - MongoDbAtlas = "MongoDbAtlas", - /** AmazonS3Compatible */ - AmazonS3Compatible = "AmazonS3Compatible", - /** FileServer */ - FileServer = "FileServer", - /** FtpServer */ - FtpServer = "FtpServer", - /** GoogleCloudStorage */ - GoogleCloudStorage = "GoogleCloudStorage", - /** Hdfs */ - Hdfs = "Hdfs", - /** OracleCloudStorage */ - OracleCloudStorage = "OracleCloudStorage", - /** Sftp */ - Sftp = "Sftp", - /** GenericHttp */ - GenericHttp = "GenericHttp", - /** ODataRest */ - ODataRest = "ODataRest", - /** Odbc */ - Odbc = "Odbc", - /** GenericRest */ - GenericRest = "GenericRest", - /** AmazonMws */ - AmazonMws = "AmazonMws", - /** Concur */ - Concur = "Concur", - /** Dynamics */ - Dynamics = "Dynamics", - /** DynamicsAx */ - DynamicsAx = "DynamicsAx", - /** DynamicsCrm */ - DynamicsCrm = "DynamicsCrm", - /** GoogleAdWords */ - GoogleAdWords = "GoogleAdWords", - /** Hubspot */ - Hubspot = "Hubspot", - /** Jira */ - Jira = "Jira", - /** Magento */ - Magento = "Magento", - /** Marketo */ - Marketo = "Marketo", - /** Office365 */ - Office365 = "Office365", - /** Eloqua */ - Eloqua = "Eloqua", - /** Responsys */ - Responsys = "Responsys", - /** OracleServiceCloud */ - OracleServiceCloud = "OracleServiceCloud", - /** PayPal */ - PayPal = "PayPal", - /** QuickBooks */ - QuickBooks = "QuickBooks", - /** Salesforce */ - Salesforce = "Salesforce", - /** SalesforceServiceCloud */ - SalesforceServiceCloud = "SalesforceServiceCloud", - /** SalesforceMarketingCloud */ - SalesforceMarketingCloud = "SalesforceMarketingCloud", - /** SapCloudForCustomer */ - SapCloudForCustomer = "SapCloudForCustomer", - /** SapEcc */ - SapEcc = "SapEcc", - /** ServiceNow */ - ServiceNow = "ServiceNow", - /** SharePointOnlineList */ - SharePointOnlineList = "SharePointOnlineList", - /** Shopify */ - Shopify = "Shopify", - /** Square */ - Square = "Square", - /** WebTable */ - WebTable = "WebTable", - /** Xero */ - Xero = "Xero", - /** Zoho */ - Zoho = "Zoho", - /** GenericContainerRegistry */ - GenericContainerRegistry = "GenericContainerRegistry", - /** OpenAI */ - OpenAI = "OpenAI", - /** Serp */ - Serp = "Serp", - /** BingLLMSearch */ - BingLLMSearch = "BingLLMSearch", - /** Serverless */ - Serverless = "Serverless", - /** AIServices */ - AIServices = "AIServices", -} - -/** - * Defines values for ConnectionCategory. \ - * {@link KnownConnectionCategory} can be used interchangeably with ConnectionCategory, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **PythonFeed** \ - * **ContainerRegistry** \ - * **Git** \ - * **S3** \ - * **Snowflake** \ - * **AzureSqlDb** \ - * **AzureSynapseAnalytics** \ - * **AzureMySqlDb** \ - * **AzurePostgresDb** \ - * **ADLSGen2** \ - * **Redis** \ - * **ApiKey** \ - * **AzureOpenAI** \ - * **CognitiveSearch** \ - * **CognitiveService** \ - * **CustomKeys** \ - * **AzureBlob** \ - * **AzureOneLake** \ - * **CosmosDb** \ - * **CosmosDbMongoDbApi** \ - * **AzureDataExplorer** \ - * **AzureMariaDb** \ - * **AzureDatabricksDeltaLake** \ - * **AzureSqlMi** \ - * **AzureTableStorage** \ - * **AmazonRdsForOracle** \ - * **AmazonRdsForSqlServer** \ - * **AmazonRedshift** \ - * **Db2** \ - * **Drill** \ - * **GoogleBigQuery** \ - * **Greenplum** \ - * **Hbase** \ - * **Hive** \ - * **Impala** \ - * **Informix** \ - * **MariaDb** \ - * **MicrosoftAccess** \ - * **MySql** \ - * **Netezza** \ - * **Oracle** \ - * **Phoenix** \ - * **PostgreSql** \ - * **Presto** \ - * **SapOpenHub** \ - * **SapBw** \ - * **SapHana** \ - * **SapTable** \ - * **Spark** \ - * **SqlServer** \ - * **Sybase** \ - * **Teradata** \ - * **Vertica** \ - * **Cassandra** \ - * **Couchbase** \ - * **MongoDbV2** \ - * **MongoDbAtlas** \ - * **AmazonS3Compatible** \ - * **FileServer** \ - * **FtpServer** \ - * **GoogleCloudStorage** \ - * **Hdfs** \ - * **OracleCloudStorage** \ - * **Sftp** \ - * **GenericHttp** \ - * **ODataRest** \ - * **Odbc** \ - * **GenericRest** \ - * **AmazonMws** \ - * **Concur** \ - * **Dynamics** \ - * **DynamicsAx** \ - * **DynamicsCrm** \ - * **GoogleAdWords** \ - * **Hubspot** \ - * **Jira** \ - * **Magento** \ - * **Marketo** \ - * **Office365** \ - * **Eloqua** \ - * **Responsys** \ - * **OracleServiceCloud** \ - * **PayPal** \ - * **QuickBooks** \ - * **Salesforce** \ - * **SalesforceServiceCloud** \ - * **SalesforceMarketingCloud** \ - * **SapCloudForCustomer** \ - * **SapEcc** \ - * **ServiceNow** \ - * **SharePointOnlineList** \ - * **Shopify** \ - * **Square** \ - * **WebTable** \ - * **Xero** \ - * **Zoho** \ - * **GenericContainerRegistry** \ - * **OpenAI** \ - * **Serp** \ - * **BingLLMSearch** \ - * **Serverless** \ - * **AIServices** - */ -export type ConnectionCategory = string; - -/** Known values of {@link ConnectionGroup} that the service accepts. */ -export enum KnownConnectionGroup { - /** Azure */ - Azure = "Azure", - /** AzureAI */ - AzureAI = "AzureAI", - /** Database */ - Database = "Database", - /** NoSQL */ - NoSQL = "NoSQL", - /** File */ - File = "File", - /** GenericProtocol */ - GenericProtocol = "GenericProtocol", - /** ServicesAndApps */ - ServicesAndApps = "ServicesAndApps", -} - -/** - * Defines values for ConnectionGroup. \ - * {@link KnownConnectionGroup} can be used interchangeably with ConnectionGroup, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Azure** \ - * **AzureAI** \ - * **Database** \ - * **NoSQL** \ - * **File** \ - * **GenericProtocol** \ - * **ServicesAndApps** - */ -export type ConnectionGroup = string; - -/** Known values of {@link ValueFormat} that the service accepts. */ -export enum KnownValueFormat { - /** Json */ - Json = "JSON", -} - -/** - * Defines values for ValueFormat. \ - * {@link KnownValueFormat} can be used interchangeably with ValueFormat, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **JSON** - */ -export type ValueFormat = string; - -/** Known values of {@link AssetProvisioningState} that the service accepts. */ -export enum KnownAssetProvisioningState { - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled", - /** Creating */ - Creating = "Creating", - /** Updating */ - Updating = "Updating", - /** Deleting */ - Deleting = "Deleting", + /** AzureDataLakeGen1 */ + AzureDataLakeGen1 = "AzureDataLakeGen1", + /** AzureDataLakeGen2 */ + AzureDataLakeGen2 = "AzureDataLakeGen2", + /** AzureFile */ + AzureFile = "AzureFile", + /** OneLake */ + OneLake = "OneLake", } /** - * Defines values for AssetProvisioningState. \ - * {@link KnownAssetProvisioningState} can be used interchangeably with AssetProvisioningState, + * Defines values for DatastoreType. \ + * {@link KnownDatastoreType} can be used interchangeably with DatastoreType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Succeeded** \ - * **Failed** \ - * **Canceled** \ - * **Creating** \ - * **Updating** \ - * **Deleting** + * **AzureBlob** \ + * **AzureDataLakeGen1** \ + * **AzureDataLakeGen2** \ + * **AzureFile** \ + * **OneLake** */ -export type AssetProvisioningState = string; +export type DatastoreType = string; -/** Known values of {@link PendingUploadType} that the service accepts. */ -export enum KnownPendingUploadType { - /** None */ - None = "None", - /** TemporaryBlobReference */ - TemporaryBlobReference = "TemporaryBlobReference", +/** Known values of {@link SecretsType} that the service accepts. */ +export enum KnownSecretsType { + /** AccountKey */ + AccountKey = "AccountKey", + /** Certificate */ + Certificate = "Certificate", + /** Sas */ + Sas = "Sas", + /** ServicePrincipal */ + ServicePrincipal = "ServicePrincipal", } /** - * Defines values for PendingUploadType. \ - * {@link KnownPendingUploadType} can be used interchangeably with PendingUploadType, + * Defines values for SecretsType. \ + * {@link KnownSecretsType} can be used interchangeably with SecretsType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None** \ - * **TemporaryBlobReference** + * **AccountKey** \ + * **Certificate** \ + * **Sas** \ + * **ServicePrincipal** */ -export type PendingUploadType = string; +export type SecretsType = string; -/** Known values of {@link PendingUploadCredentialType} that the service accepts. */ -export enum KnownPendingUploadCredentialType { - /** SAS */ - SAS = "SAS", +/** Known values of {@link FeatureDataType} that the service accepts. */ +export enum KnownFeatureDataType { + /** String */ + String = "String", + /** Integer */ + Integer = "Integer", + /** Long */ + Long = "Long", + /** Float */ + Float = "Float", + /** Double */ + Double = "Double", + /** Binary */ + Binary = "Binary", + /** Datetime */ + Datetime = "Datetime", + /** Boolean */ + Boolean = "Boolean", } /** - * Defines values for PendingUploadCredentialType. \ - * {@link KnownPendingUploadCredentialType} can be used interchangeably with PendingUploadCredentialType, + * Defines values for FeatureDataType. \ + * {@link KnownFeatureDataType} can be used interchangeably with FeatureDataType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **SAS** + * **String** \ + * **Integer** \ + * **Long** \ + * **Float** \ + * **Double** \ + * **Binary** \ + * **Datetime** \ + * **Boolean** */ -export type PendingUploadCredentialType = string; +export type FeatureDataType = string; -/** Known values of {@link ListViewType} that the service accepts. */ -export enum KnownListViewType { - /** ActiveOnly */ - ActiveOnly = "ActiveOnly", - /** ArchivedOnly */ - ArchivedOnly = "ArchivedOnly", - /** All */ - All = "All", +/** Known values of {@link EmailNotificationEnableType} that the service accepts. */ +export enum KnownEmailNotificationEnableType { + /** JobCompleted */ + JobCompleted = "JobCompleted", + /** JobFailed */ + JobFailed = "JobFailed", + /** JobCancelled */ + JobCancelled = "JobCancelled", } /** - * Defines values for ListViewType. \ - * {@link KnownListViewType} can be used interchangeably with ListViewType, + * Defines values for EmailNotificationEnableType. \ + * {@link KnownEmailNotificationEnableType} can be used interchangeably with EmailNotificationEnableType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ActiveOnly** \ - * **ArchivedOnly** \ - * **All** + * **JobCompleted** \ + * **JobFailed** \ + * **JobCancelled** */ -export type ListViewType = string; +export type EmailNotificationEnableType = string; -/** Known values of {@link DataType} that the service accepts. */ -export enum KnownDataType { - /** UriFile */ - UriFile = "uri_file", - /** UriFolder */ - UriFolder = "uri_folder", - /** Mltable */ - Mltable = "mltable", +/** Known values of {@link WebhookType} that the service accepts. */ +export enum KnownWebhookType { + /** AzureDevOps */ + AzureDevOps = "AzureDevOps", } /** - * Defines values for DataType. \ - * {@link KnownDataType} can be used interchangeably with DataType, + * Defines values for WebhookType. \ + * {@link KnownWebhookType} can be used interchangeably with WebhookType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **uri_file** \ - * **uri_folder** \ - * **mltable** + * **AzureDevOps** */ -export type DataType = string; +export type WebhookType = 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", +/** Known values of {@link RecurrenceFrequency} that the service accepts. */ +export enum KnownRecurrenceFrequency { + /** Minute frequency */ + Minute = "Minute", + /** Hour frequency */ + Hour = "Hour", + /** Day frequency */ + Day = "Day", + /** Week frequency */ + Week = "Week", + /** Month frequency */ + Month = "Month", } /** - * Defines values for DataReferenceCredentialType. \ - * {@link KnownDataReferenceCredentialType} can be used interchangeably with DataReferenceCredentialType, + * Defines values for RecurrenceFrequency. \ + * {@link KnownRecurrenceFrequency} can be used interchangeably with RecurrenceFrequency, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **SAS** \ - * **DockerCredentials** \ - * **ManagedIdentity** \ - * **NoCredentials** + * **Minute**: Minute frequency \ + * **Hour**: Hour frequency \ + * **Day**: Day frequency \ + * **Week**: Week frequency \ + * **Month**: Month frequency */ -export type DataReferenceCredentialType = string; +export type RecurrenceFrequency = string; -/** Known values of {@link EnvironmentType} that the service accepts. */ -export enum KnownEnvironmentType { - /** Curated */ - Curated = "Curated", - /** UserCreated */ - UserCreated = "UserCreated", +/** Known values of {@link WeekDay} that the service accepts. */ +export enum KnownWeekDay { + /** Monday weekday */ + Monday = "Monday", + /** Tuesday weekday */ + Tuesday = "Tuesday", + /** Wednesday weekday */ + Wednesday = "Wednesday", + /** Thursday weekday */ + Thursday = "Thursday", + /** Friday weekday */ + Friday = "Friday", + /** Saturday weekday */ + Saturday = "Saturday", + /** Sunday weekday */ + Sunday = "Sunday", } /** - * Defines values for EnvironmentType. \ - * {@link KnownEnvironmentType} can be used interchangeably with EnvironmentType, + * Defines values for WeekDay. \ + * {@link KnownWeekDay} can be used interchangeably with WeekDay, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Curated** \ - * **UserCreated** + * **Monday**: Monday weekday \ + * **Tuesday**: Tuesday weekday \ + * **Wednesday**: Wednesday weekday \ + * **Thursday**: Thursday weekday \ + * **Friday**: Friday weekday \ + * **Saturday**: Saturday weekday \ + * **Sunday**: Sunday weekday */ -export type EnvironmentType = string; +export type WeekDay = string; -/** Known values of {@link OperatingSystemType} that the service accepts. */ -export enum KnownOperatingSystemType { - /** Linux */ - Linux = "Linux", - /** Windows */ - Windows = "Windows", +/** Known values of {@link TriggerType} that the service accepts. */ +export enum KnownTriggerType { + /** Recurrence */ + Recurrence = "Recurrence", + /** Cron */ + Cron = "Cron", } /** - * Defines values for OperatingSystemType. \ - * {@link KnownOperatingSystemType} can be used interchangeably with OperatingSystemType, + * Defines values for TriggerType. \ + * {@link KnownTriggerType} can be used interchangeably with TriggerType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Linux** \ - * **Windows** + * **Recurrence** \ + * **Cron** */ -export type OperatingSystemType = string; +export type TriggerType = string; -/** Known values of {@link AutoRebuildSetting} that the service accepts. */ -export enum KnownAutoRebuildSetting { - /** Disabled */ - Disabled = "Disabled", - /** OnBaseImageUpdate */ - OnBaseImageUpdate = "OnBaseImageUpdate", +/** Known values of {@link MaterializationStoreType} that the service accepts. */ +export enum KnownMaterializationStoreType { + /** None */ + None = "None", + /** Online */ + Online = "Online", + /** Offline */ + Offline = "Offline", + /** OnlineAndOffline */ + OnlineAndOffline = "OnlineAndOffline", } /** - * Defines values for AutoRebuildSetting. \ - * {@link KnownAutoRebuildSetting} can be used interchangeably with AutoRebuildSetting, + * Defines values for MaterializationStoreType. \ + * {@link KnownMaterializationStoreType} can be used interchangeably with MaterializationStoreType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Disabled** \ - * **OnBaseImageUpdate** + * **None** \ + * **Online** \ + * **Offline** \ + * **OnlineAndOffline** */ -export type AutoRebuildSetting = string; +export type MaterializationStoreType = string; -/** Known values of {@link EndpointProvisioningState} that the service accepts. */ -export enum KnownEndpointProvisioningState { - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Updating */ - Updating = "Updating", - /** Canceled */ - Canceled = "Canceled", +/** Known values of {@link DataAvailabilityStatus} that the service accepts. */ +export enum KnownDataAvailabilityStatus { + /** None */ + None = "None", + /** Pending */ + Pending = "Pending", + /** Incomplete */ + Incomplete = "Incomplete", + /** Complete */ + Complete = "Complete", } /** - * Defines values for EndpointProvisioningState. \ - * {@link KnownEndpointProvisioningState} can be used interchangeably with EndpointProvisioningState, + * Defines values for DataAvailabilityStatus. \ + * {@link KnownDataAvailabilityStatus} can be used interchangeably with DataAvailabilityStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Creating** \ - * **Deleting** \ - * **Succeeded** \ - * **Failed** \ - * **Updating** \ - * **Canceled** + * **None** \ + * **Pending** \ + * **Incomplete** \ + * **Complete** */ -export type EndpointProvisioningState = string; +export type DataAvailabilityStatus = string; -/** Known values of {@link EndpointAuthMode} that the service accepts. */ -export enum KnownEndpointAuthMode { +/** Known values of {@link IdentityConfigurationType} that the service accepts. */ +export enum KnownIdentityConfigurationType { + /** Managed */ + Managed = "Managed", /** AMLToken */ AMLToken = "AMLToken", - /** Key */ - Key = "Key", - /** AADToken */ - AADToken = "AADToken", + /** UserIdentity */ + UserIdentity = "UserIdentity", } /** - * Defines values for EndpointAuthMode. \ - * {@link KnownEndpointAuthMode} can be used interchangeably with EndpointAuthMode, + * 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** \ - * **Key** \ - * **AADToken** + * **UserIdentity** */ -export type EndpointAuthMode = string; +export type IdentityConfigurationType = string; -/** Known values of {@link BatchDeploymentConfigurationType} that the service accepts. */ -export enum KnownBatchDeploymentConfigurationType { - /** Model */ - Model = "Model", - /** PipelineComponent */ - PipelineComponent = "PipelineComponent", +/** Known values of {@link JobType} that the service accepts. */ +export enum KnownJobType { + /** AutoML */ + AutoML = "AutoML", + /** Command */ + Command = "Command", + /** Sweep */ + Sweep = "Sweep", + /** Pipeline */ + Pipeline = "Pipeline", + /** Spark */ + Spark = "Spark", } /** - * Defines values for BatchDeploymentConfigurationType. \ - * {@link KnownBatchDeploymentConfigurationType} can be used interchangeably with BatchDeploymentConfigurationType, + * 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 - * **Model** \ - * **PipelineComponent** + * **AutoML** \ + * **Command** \ + * **Sweep** \ + * **Pipeline** \ + * **Spark** */ -export type BatchDeploymentConfigurationType = string; +export type JobType = string; -/** Known values of {@link BatchLoggingLevel} that the service accepts. */ -export enum KnownBatchLoggingLevel { - /** Info */ - Info = "Info", - /** Warning */ - Warning = "Warning", - /** Debug */ - Debug = "Debug", +/** Known values of {@link NodesValueType} that the service accepts. */ +export enum KnownNodesValueType { + /** All */ + All = "All", } /** - * Defines values for BatchLoggingLevel. \ - * {@link KnownBatchLoggingLevel} can be used interchangeably with BatchLoggingLevel, + * 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 - * **Info** \ - * **Warning** \ - * **Debug** + * **All** */ -export type BatchLoggingLevel = string; +export type NodesValueType = string; -/** Known values of {@link ReferenceType} that the service accepts. */ -export enum KnownReferenceType { - /** Id */ - Id = "Id", - /** DataPath */ - DataPath = "DataPath", - /** OutputPath */ - OutputPath = "OutputPath", +/** Known values of {@link JobStatus} that the service accepts. */ +export enum KnownJobStatus { + /** Run hasn't started yet. */ + NotStarted = "NotStarted", + /** Run has started. The user has a run ID. */ + Starting = "Starting", + /** (Not used currently) It will be used if ES is creating the compute target. */ + Provisioning = "Provisioning", + /** The run environment is being prepared. */ + Preparing = "Preparing", + /** The job is queued in the compute target. For example, in BatchAI the job is in queued state, while waiting for all required nodes to be ready. */ + Queued = "Queued", + /** The job started to run in the compute target. */ + Running = "Running", + /** Job is completed in the target. It is in output collection state now. */ + Finalizing = "Finalizing", + /** Cancellation has been requested for the job. */ + CancelRequested = "CancelRequested", + /** Job completed successfully. This reflects that both the job itself and output collection states completed successfully */ + Completed = "Completed", + /** Job failed. */ + Failed = "Failed", + /** Following cancellation request, the job is now successfully canceled. */ + Canceled = "Canceled", + /** + * When heartbeat is enabled, if the run isn't updating any information to RunHistory then the run goes to NotResponding state. + * NotResponding is the only state that is exempt from strict transition orders. A run can go from NotResponding to any of the previous states. + */ + NotResponding = "NotResponding", + /** The job is paused by users. Some adjustment to labeling jobs can be made only in paused state. */ + Paused = "Paused", + /** Default job status if not mapped to all other statuses */ + Unknown = "Unknown", } /** - * Defines values for ReferenceType. \ - * {@link KnownReferenceType} can be used interchangeably with ReferenceType, + * Defines values for JobStatus. \ + * {@link KnownJobStatus} can be used interchangeably with JobStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Id** \ - * **DataPath** \ - * **OutputPath** + * **NotStarted**: Run hasn't started yet. \ + * **Starting**: Run has started. The user has a run ID. \ + * **Provisioning**: (Not used currently) It will be used if ES is creating the compute target. \ + * **Preparing**: The run environment is being prepared. \ + * **Queued**: The job is queued in the compute target. For example, in BatchAI the job is in queued state, while waiting for all required nodes to be ready. \ + * **Running**: The job started to run in the compute target. \ + * **Finalizing**: Job is completed in the target. It is in output collection state now. \ + * **CancelRequested**: Cancellation has been requested for the job. \ + * **Completed**: Job completed successfully. This reflects that both the job itself and output collection states completed successfully \ + * **Failed**: Job failed. \ + * **Canceled**: Following cancellation request, the job is now successfully canceled. \ + * **NotResponding**: When heartbeat is enabled, if the run isn't updating any information to RunHistory then the run goes to NotResponding state. + * NotResponding is the only state that is exempt from strict transition orders. A run can go from NotResponding to any of the previous states. \ + * **Paused**: The job is paused by users. Some adjustment to labeling jobs can be made only in paused state. \ + * **Unknown**: Default job status if not mapped to all other statuses */ -export type ReferenceType = string; +export type JobStatus = string; -/** Known values of {@link BatchOutputAction} that the service accepts. */ -export enum KnownBatchOutputAction { - /** SummaryOnly */ - SummaryOnly = "SummaryOnly", - /** AppendRow */ - AppendRow = "AppendRow", +/** Known values of {@link MarketplaceSubscriptionStatus} that the service accepts. */ +export enum KnownMarketplaceSubscriptionStatus { + /** + * The customer can now use the Marketplace Subscription's + * model and will be billed. + */ + Subscribed = "Subscribed", + /** + * The customer could not be billed for the Marketplace Subscription. + * The customer will not be able to access the model. + */ + Suspended = "Suspended", + /** + * Marketplace Subscriptions reach this state in response to an explicit customer or CSP action. + * A Marketplace Subscription can also be canceled implicitly, as a result of nonpayment of dues, + * after being in the Suspended state for some time. + */ + Unsubscribed = "Unsubscribed", } /** - * Defines values for BatchOutputAction. \ - * {@link KnownBatchOutputAction} can be used interchangeably with BatchOutputAction, + * Defines values for MarketplaceSubscriptionStatus. \ + * {@link KnownMarketplaceSubscriptionStatus} can be used interchangeably with MarketplaceSubscriptionStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **SummaryOnly** \ - * **AppendRow** + * **Subscribed**: The customer can now use the Marketplace Subscription's + * model and will be billed. \ + * **Suspended**: The customer could not be billed for the Marketplace Subscription. + * The customer will not be able to access the model. \ + * **Unsubscribed**: Marketplace Subscriptions reach this state in response to an explicit customer or CSP action. + * A Marketplace Subscription can also be canceled implicitly, as a result of nonpayment of dues, + * after being in the Suspended state for some time. */ -export type BatchOutputAction = string; +export type MarketplaceSubscriptionStatus = string; -/** Known values of {@link DeploymentProvisioningState} that the service accepts. */ -export enum KnownDeploymentProvisioningState { - /** Creating */ +/** Known values of {@link MarketplaceSubscriptionProvisioningState} that the service accepts. */ +export enum KnownMarketplaceSubscriptionProvisioningState { + /** MarketplaceSubscription is being created. */ Creating = "Creating", - /** Deleting */ + /** MarketplaceSubscription is being deleted. */ Deleting = "Deleting", - /** Scaling */ - Scaling = "Scaling", - /** Updating */ - Updating = "Updating", - /** Succeeded */ + /** MarketplaceSubscription is successfully provisioned. */ Succeeded = "Succeeded", - /** Failed */ + /** MarketplaceSubscription provisioning failed. */ Failed = "Failed", + /** MarketplaceSubscription is being updated. */ + Updating = "Updating", /** Canceled */ Canceled = "Canceled", } /** - * Defines values for DeploymentProvisioningState. \ - * {@link KnownDeploymentProvisioningState} can be used interchangeably with DeploymentProvisioningState, + * Defines values for MarketplaceSubscriptionProvisioningState. \ + * {@link KnownMarketplaceSubscriptionProvisioningState} can be used interchangeably with MarketplaceSubscriptionProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Creating** \ - * **Deleting** \ - * **Scaling** \ - * **Updating** \ - * **Succeeded** \ - * **Failed** \ + * **Creating**: MarketplaceSubscription is being created. \ + * **Deleting**: MarketplaceSubscription is being deleted. \ + * **Succeeded**: MarketplaceSubscription is successfully provisioned. \ + * **Failed**: MarketplaceSubscription provisioning failed. \ + * **Updating**: MarketplaceSubscription is being updated. \ * **Canceled** */ -export type DeploymentProvisioningState = string; +export type MarketplaceSubscriptionProvisioningState = string; -/** Known values of {@link DatastoreType} that the service accepts. */ -export enum KnownDatastoreType { - /** AzureBlob */ - AzureBlob = "AzureBlob", - /** AzureDataLakeGen1 */ - AzureDataLakeGen1 = "AzureDataLakeGen1", - /** AzureDataLakeGen2 */ - AzureDataLakeGen2 = "AzureDataLakeGen2", - /** AzureFile */ - AzureFile = "AzureFile", - /** OneLake */ - OneLake = "OneLake", +/** Known values of {@link EndpointComputeType} that the service accepts. */ +export enum KnownEndpointComputeType { + /** Managed */ + Managed = "Managed", + /** Kubernetes */ + Kubernetes = "Kubernetes", + /** AzureMLCompute */ + AzureMLCompute = "AzureMLCompute", } /** - * Defines values for DatastoreType. \ - * {@link KnownDatastoreType} can be used interchangeably with DatastoreType, + * Defines values for EndpointComputeType. \ + * {@link KnownEndpointComputeType} can be used interchangeably with EndpointComputeType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AzureBlob** \ - * **AzureDataLakeGen1** \ - * **AzureDataLakeGen2** \ - * **AzureFile** \ - * **OneLake** + * **Managed** \ + * **Kubernetes** \ + * **AzureMLCompute** */ -export type DatastoreType = string; +export type EndpointComputeType = string; -/** Known values of {@link CredentialsType} that the service accepts. */ -export enum KnownCredentialsType { - /** AccountKey */ - AccountKey = "AccountKey", - /** Certificate */ - Certificate = "Certificate", - /** None */ - None = "None", - /** Sas */ - Sas = "Sas", - /** ServicePrincipal */ - ServicePrincipal = "ServicePrincipal", +/** Known values of {@link OrderString} that the service accepts. */ +export enum KnownOrderString { + /** CreatedAtDesc */ + CreatedAtDesc = "CreatedAtDesc", + /** CreatedAtAsc */ + CreatedAtAsc = "CreatedAtAsc", + /** UpdatedAtDesc */ + UpdatedAtDesc = "UpdatedAtDesc", + /** UpdatedAtAsc */ + UpdatedAtAsc = "UpdatedAtAsc", } /** - * Defines values for CredentialsType. \ - * {@link KnownCredentialsType} can be used interchangeably with CredentialsType, + * Defines values for OrderString. \ + * {@link KnownOrderString} can be used interchangeably with OrderString, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AccountKey** \ - * **Certificate** \ - * **None** \ - * **Sas** \ - * **ServicePrincipal** + * **CreatedAtDesc** \ + * **CreatedAtAsc** \ + * **UpdatedAtDesc** \ + * **UpdatedAtAsc** */ -export type CredentialsType = string; +export type OrderString = string; -/** Known values of {@link SecretsType} that the service accepts. */ -export enum KnownSecretsType { - /** AccountKey */ - AccountKey = "AccountKey", - /** Certificate */ - Certificate = "Certificate", - /** Sas */ - Sas = "Sas", - /** ServicePrincipal */ - ServicePrincipal = "ServicePrincipal", +/** Known values of {@link PublicNetworkAccessType} that the service accepts. */ +export enum KnownPublicNetworkAccessType { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", } /** - * Defines values for SecretsType. \ - * {@link KnownSecretsType} can be used interchangeably with SecretsType, + * Defines values for PublicNetworkAccessType. \ + * {@link KnownPublicNetworkAccessType} can be used interchangeably with PublicNetworkAccessType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AccountKey** \ - * **Certificate** \ - * **Sas** \ - * **ServicePrincipal** + * **Enabled** \ + * **Disabled** */ -export type SecretsType = string; +export type PublicNetworkAccessType = string; -/** Known values of {@link FeatureDataType} that the service accepts. */ -export enum KnownFeatureDataType { - /** String */ - String = "String", - /** Integer */ - Integer = "Integer", - /** Long */ - Long = "Long", - /** Float */ - Float = "Float", - /** Double */ - Double = "Double", - /** Binary */ - Binary = "Binary", - /** Datetime */ - Datetime = "Datetime", - /** Boolean */ - Boolean = "Boolean", +/** Known values of {@link DataCollectionMode} that the service accepts. */ +export enum KnownDataCollectionMode { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", } /** - * Defines values for FeatureDataType. \ - * {@link KnownFeatureDataType} can be used interchangeably with FeatureDataType, + * Defines values for DataCollectionMode. \ + * {@link KnownDataCollectionMode} can be used interchangeably with DataCollectionMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **String** \ - * **Integer** \ - * **Long** \ - * **Float** \ - * **Double** \ - * **Binary** \ - * **Datetime** \ - * **Boolean** + * **Enabled** \ + * **Disabled** */ -export type FeatureDataType = string; +export type DataCollectionMode = string; -/** Known values of {@link MaterializationStoreType} that the service accepts. */ -export enum KnownMaterializationStoreType { - /** None */ - None = "None", - /** Online */ - Online = "Online", - /** Offline */ - Offline = "Offline", - /** OnlineAndOffline */ - OnlineAndOffline = "OnlineAndOffline", +/** Known values of {@link RollingRateType} that the service accepts. */ +export enum KnownRollingRateType { + /** Year */ + Year = "Year", + /** Month */ + Month = "Month", + /** Day */ + Day = "Day", + /** Hour */ + Hour = "Hour", + /** Minute */ + Minute = "Minute", } /** - * Defines values for MaterializationStoreType. \ - * {@link KnownMaterializationStoreType} can be used interchangeably with MaterializationStoreType, + * Defines values for RollingRateType. \ + * {@link KnownRollingRateType} can be used interchangeably with RollingRateType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None** \ - * **Online** \ - * **Offline** \ - * **OnlineAndOffline** + * **Year** \ + * **Month** \ + * **Day** \ + * **Hour** \ + * **Minute** */ -export type MaterializationStoreType = string; +export type RollingRateType = string; -/** Known values of {@link RecurrenceFrequency} that the service accepts. */ -export enum KnownRecurrenceFrequency { - /** Minute frequency */ - Minute = "Minute", - /** Hour frequency */ - Hour = "Hour", - /** Day frequency */ - Day = "Day", - /** Week frequency */ - Week = "Week", - /** Month frequency */ - Month = "Month", +/** Known values of {@link EgressPublicNetworkAccessType} that the service accepts. */ +export enum KnownEgressPublicNetworkAccessType { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", } /** - * Defines values for RecurrenceFrequency. \ - * {@link KnownRecurrenceFrequency} can be used interchangeably with RecurrenceFrequency, + * Defines values for EgressPublicNetworkAccessType. \ + * {@link KnownEgressPublicNetworkAccessType} can be used interchangeably with EgressPublicNetworkAccessType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Minute**: Minute frequency \ - * **Hour**: Hour frequency \ - * **Day**: Day frequency \ - * **Week**: Week frequency \ - * **Month**: Month frequency + * **Enabled** \ + * **Disabled** */ -export type RecurrenceFrequency = string; +export type EgressPublicNetworkAccessType = string; -/** Known values of {@link WeekDay} that the service accepts. */ -export enum KnownWeekDay { - /** Monday weekday */ - Monday = "Monday", - /** Tuesday weekday */ - Tuesday = "Tuesday", - /** Wednesday weekday */ - Wednesday = "Wednesday", - /** Thursday weekday */ - Thursday = "Thursday", - /** Friday weekday */ - Friday = "Friday", - /** Saturday weekday */ - Saturday = "Saturday", - /** Sunday weekday */ - Sunday = "Sunday", +/** Known values of {@link ScaleType} that the service accepts. */ +export enum KnownScaleType { + /** Default */ + Default = "Default", + /** TargetUtilization */ + TargetUtilization = "TargetUtilization", } /** - * Defines values for WeekDay. \ - * {@link KnownWeekDay} can be used interchangeably with WeekDay, + * Defines values for ScaleType. \ + * {@link KnownScaleType} can be used interchangeably with ScaleType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Monday**: Monday weekday \ - * **Tuesday**: Tuesday weekday \ - * **Wednesday**: Wednesday weekday \ - * **Thursday**: Thursday weekday \ - * **Friday**: Friday weekday \ - * **Saturday**: Saturday weekday \ - * **Sunday**: Sunday weekday + * **Default** \ + * **TargetUtilization** */ -export type WeekDay = string; +export type ScaleType = string; -/** Known values of {@link TriggerType} that the service accepts. */ -export enum KnownTriggerType { - /** Recurrence */ - Recurrence = "Recurrence", - /** Cron */ - Cron = "Cron", +/** Known values of {@link ContainerType} that the service accepts. */ +export enum KnownContainerType { + /** StorageInitializer */ + StorageInitializer = "StorageInitializer", + /** InferenceServer */ + InferenceServer = "InferenceServer", } /** - * Defines values for TriggerType. \ - * {@link KnownTriggerType} can be used interchangeably with TriggerType, + * Defines values for ContainerType. \ + * {@link KnownContainerType} can be used interchangeably with ContainerType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Recurrence** \ - * **Cron** + * **StorageInitializer** \ + * **InferenceServer** */ -export type TriggerType = string; +export type ContainerType = string; -/** Known values of {@link EmailNotificationEnableType} that the service accepts. */ -export enum KnownEmailNotificationEnableType { - /** JobCompleted */ - JobCompleted = "JobCompleted", - /** JobFailed */ - JobFailed = "JobFailed", - /** JobCancelled */ - JobCancelled = "JobCancelled", +/** Known values of {@link SkuScaleType} that the service accepts. */ +export enum KnownSkuScaleType { + /** Automatically scales node count. */ + Automatic = "Automatic", + /** Node count scaled upon user request. */ + Manual = "Manual", + /** Fixed set of nodes. */ + None = "None", } /** - * Defines values for EmailNotificationEnableType. \ - * {@link KnownEmailNotificationEnableType} can be used interchangeably with EmailNotificationEnableType, + * Defines values for SkuScaleType. \ + * {@link KnownSkuScaleType} can be used interchangeably with SkuScaleType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **JobCompleted** \ - * **JobFailed** \ - * **JobCancelled** + * **Automatic**: Automatically scales node count. \ + * **Manual**: Node count scaled upon user request. \ + * **None**: Fixed set of nodes. */ -export type EmailNotificationEnableType = string; +export type SkuScaleType = string; -/** Known values of {@link WebhookType} that the service accepts. */ -export enum KnownWebhookType { - /** AzureDevOps */ - AzureDevOps = "AzureDevOps", +/** Known values of {@link KeyType} that the service accepts. */ +export enum KnownKeyType { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary", } /** - * Defines values for WebhookType. \ - * {@link KnownWebhookType} can be used interchangeably with WebhookType, + * Defines values for KeyType. \ + * {@link KnownKeyType} can be used interchangeably with KeyType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AzureDevOps** + * **Primary** \ + * **Secondary** */ -export type WebhookType = string; +export type KeyType = string; -/** Known values of {@link DataAvailabilityStatus} that the service accepts. */ -export enum KnownDataAvailabilityStatus { - /** None */ - None = "None", - /** Pending */ - Pending = "Pending", - /** Incomplete */ - Incomplete = "Incomplete", - /** Complete */ - Complete = "Complete", +/** Known values of {@link ScheduleListViewType} that the service accepts. */ +export enum KnownScheduleListViewType { + /** EnabledOnly */ + EnabledOnly = "EnabledOnly", + /** DisabledOnly */ + DisabledOnly = "DisabledOnly", + /** All */ + All = "All", } /** - * Defines values for DataAvailabilityStatus. \ - * {@link KnownDataAvailabilityStatus} can be used interchangeably with DataAvailabilityStatus, + * Defines values for ScheduleListViewType. \ + * {@link KnownScheduleListViewType} can be used interchangeably with ScheduleListViewType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None** \ - * **Pending** \ - * **Incomplete** \ - * **Complete** + * **EnabledOnly** \ + * **DisabledOnly** \ + * **All** */ -export type DataAvailabilityStatus = string; +export type ScheduleListViewType = 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", - /** Spark */ - Spark = "Spark", +/** Known values of {@link ScheduleActionType} that the service accepts. */ +export enum KnownScheduleActionType { + /** CreateJob */ + CreateJob = "CreateJob", + /** InvokeBatchEndpoint */ + InvokeBatchEndpoint = "InvokeBatchEndpoint", + /** CreateMonitor */ + CreateMonitor = "CreateMonitor", } /** - * Defines values for JobType. \ - * {@link KnownJobType} can be used interchangeably with JobType, + * Defines values for ScheduleActionType. \ + * {@link KnownScheduleActionType} can be used interchangeably with ScheduleActionType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AutoML** \ - * **Command** \ - * **Sweep** \ - * **Pipeline** \ - * **Spark** + * **CreateJob** \ + * **InvokeBatchEndpoint** \ + * **CreateMonitor** */ -export type JobType = string; +export type ScheduleActionType = string; -/** Known values of {@link JobStatus} that the service accepts. */ -export enum KnownJobStatus { - /** Run hasn't started yet. */ - NotStarted = "NotStarted", - /** Run has started. The user has a run ID. */ - Starting = "Starting", - /** (Not used currently) It will be used if ES is creating the compute target. */ - Provisioning = "Provisioning", - /** The run environment is being prepared. */ - Preparing = "Preparing", - /** The job is queued in the compute target. For example, in BatchAI the job is in queued state, while waiting for all required nodes to be ready. */ - Queued = "Queued", - /** The job started to run in the compute target. */ - Running = "Running", - /** Job is completed in the target. It is in output collection state now. */ - Finalizing = "Finalizing", - /** Cancellation has been requested for the job. */ - CancelRequested = "CancelRequested", - /** Job completed successfully. This reflects that both the job itself and output collection states completed successfully */ - Completed = "Completed", - /** Job failed. */ +/** Known values of {@link ScheduleProvisioningStatus} that the service accepts. */ +export enum KnownScheduleProvisioningStatus { + /** Creating */ + Creating = "Creating", + /** Updating */ + Updating = "Updating", + /** Deleting */ + Deleting = "Deleting", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ Failed = "Failed", - /** Following cancellation request, the job is now successfully canceled. */ + /** Canceled */ Canceled = "Canceled", - /** - * When heartbeat is enabled, if the run isn't updating any information to RunHistory then the run goes to NotResponding state. - * NotResponding is the only state that is exempt from strict transition orders. A run can go from NotResponding to any of the previous states. - */ - NotResponding = "NotResponding", - /** The job is paused by users. Some adjustment to labeling jobs can be made only in paused state. */ - Paused = "Paused", - /** Default job status if not mapped to all other statuses */ - Unknown = "Unknown", } /** - * Defines values for JobStatus. \ - * {@link KnownJobStatus} can be used interchangeably with JobStatus, + * Defines values for ScheduleProvisioningStatus. \ + * {@link KnownScheduleProvisioningStatus} can be used interchangeably with ScheduleProvisioningStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **NotStarted**: Run hasn't started yet. \ - * **Starting**: Run has started. The user has a run ID. \ - * **Provisioning**: (Not used currently) It will be used if ES is creating the compute target. \ - * **Preparing**: The run environment is being prepared. \ - * **Queued**: The job is queued in the compute target. For example, in BatchAI the job is in queued state, while waiting for all required nodes to be ready. \ - * **Running**: The job started to run in the compute target. \ - * **Finalizing**: Job is completed in the target. It is in output collection state now. \ - * **CancelRequested**: Cancellation has been requested for the job. \ - * **Completed**: Job completed successfully. This reflects that both the job itself and output collection states completed successfully \ - * **Failed**: Job failed. \ - * **Canceled**: Following cancellation request, the job is now successfully canceled. \ - * **NotResponding**: When heartbeat is enabled, if the run isn't updating any information to RunHistory then the run goes to NotResponding state. - * NotResponding is the only state that is exempt from strict transition orders. A run can go from NotResponding to any of the previous states. \ - * **Paused**: The job is paused by users. Some adjustment to labeling jobs can be made only in paused state. \ - * **Unknown**: Default job status if not mapped to all other statuses + * **Creating** \ + * **Updating** \ + * **Deleting** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** */ -export type JobStatus = string; +export type ScheduleProvisioningStatus = string; -/** Known values of {@link NodesValueType} that the service accepts. */ -export enum KnownNodesValueType { - /** All */ - All = "All", +/** Known values of {@link ServerlessInferenceEndpointAuthMode} that the service accepts. */ +export enum KnownServerlessInferenceEndpointAuthMode { + /** Key */ + Key = "Key", } /** - * Defines values for NodesValueType. \ - * {@link KnownNodesValueType} can be used interchangeably with NodesValueType, + * Defines values for ServerlessInferenceEndpointAuthMode. \ + * {@link KnownServerlessInferenceEndpointAuthMode} can be used interchangeably with ServerlessInferenceEndpointAuthMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **All** + * **Key** */ -export type NodesValueType = string; +export type ServerlessInferenceEndpointAuthMode = string; -/** Known values of {@link IdentityConfigurationType} that the service accepts. */ -export enum KnownIdentityConfigurationType { - /** Managed */ - Managed = "Managed", - /** AMLToken */ - AMLToken = "AMLToken", - /** UserIdentity */ - UserIdentity = "UserIdentity", +/** Known values of {@link ContentSafetyStatus} that the service accepts. */ +export enum KnownContentSafetyStatus { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", } /** - * Defines values for IdentityConfigurationType. \ - * {@link KnownIdentityConfigurationType} can be used interchangeably with IdentityConfigurationType, + * Defines values for ContentSafetyStatus. \ + * {@link KnownContentSafetyStatus} can be used interchangeably with ContentSafetyStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Managed** \ - * **AMLToken** \ - * **UserIdentity** + * **Enabled** \ + * **Disabled** */ -export type IdentityConfigurationType = string; +export type ContentSafetyStatus = string; -/** Known values of {@link MarketplaceSubscriptionStatus} that the service accepts. */ -export enum KnownMarketplaceSubscriptionStatus { - /** - * The customer can now use the Marketplace Subscription's - * model and will be billed. - */ - Subscribed = "Subscribed", - /** - * The customer could not be billed for the Marketplace Subscription. - * The customer will not be able to access the model. - */ +/** Known values of {@link ServerlessEndpointState} that the service accepts. */ +export enum KnownServerlessEndpointState { + /** Unknown */ + Unknown = "Unknown", + /** Creating */ + Creating = "Creating", + /** Deleting */ + Deleting = "Deleting", + /** Suspending */ + Suspending = "Suspending", + /** Reinstating */ + Reinstating = "Reinstating", + /** Online */ + Online = "Online", + /** Suspended */ Suspended = "Suspended", - /** - * Marketplace Subscriptions reach this state in response to an explicit customer or CSP action. - * A Marketplace Subscription can also be canceled implicitly, as a result of nonpayment of dues, - * after being in the Suspended state for some time. - */ - Unsubscribed = "Unsubscribed", + /** CreationFailed */ + CreationFailed = "CreationFailed", + /** DeletionFailed */ + DeletionFailed = "DeletionFailed", } /** - * Defines values for MarketplaceSubscriptionStatus. \ - * {@link KnownMarketplaceSubscriptionStatus} can be used interchangeably with MarketplaceSubscriptionStatus, + * Defines values for ServerlessEndpointState. \ + * {@link KnownServerlessEndpointState} can be used interchangeably with ServerlessEndpointState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Subscribed**: The customer can now use the Marketplace Subscription's - * model and will be billed. \ - * **Suspended**: The customer could not be billed for the Marketplace Subscription. - * The customer will not be able to access the model. \ - * **Unsubscribed**: Marketplace Subscriptions reach this state in response to an explicit customer or CSP action. - * A Marketplace Subscription can also be canceled implicitly, as a result of nonpayment of dues, - * after being in the Suspended state for some time. + * **Unknown** \ + * **Creating** \ + * **Deleting** \ + * **Suspending** \ + * **Reinstating** \ + * **Online** \ + * **Suspended** \ + * **CreationFailed** \ + * **DeletionFailed** */ -export type MarketplaceSubscriptionStatus = string; +export type ServerlessEndpointState = string; -/** Known values of {@link MarketplaceSubscriptionProvisioningState} that the service accepts. */ -export enum KnownMarketplaceSubscriptionProvisioningState { - /** MarketplaceSubscription is being created. */ - Creating = "Creating", - /** MarketplaceSubscription is being deleted. */ - Deleting = "Deleting", - /** MarketplaceSubscription is successfully provisioned. */ - Succeeded = "Succeeded", - /** MarketplaceSubscription provisioning failed. */ - Failed = "Failed", - /** MarketplaceSubscription is being updated. */ - Updating = "Updating", - /** Canceled */ - Canceled = "Canceled", +/** 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 MarketplaceSubscriptionProvisioningState. \ - * {@link KnownMarketplaceSubscriptionProvisioningState} can be used interchangeably with MarketplaceSubscriptionProvisioningState, + * 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 - * **Creating**: MarketplaceSubscription is being created. \ - * **Deleting**: MarketplaceSubscription is being deleted. \ - * **Succeeded**: MarketplaceSubscription is successfully provisioned. \ - * **Failed**: MarketplaceSubscription provisioning failed. \ - * **Updating**: MarketplaceSubscription is being updated. \ - * **Canceled** + * **Approved** \ + * **Pending** \ + * **Rejected** \ + * **Disconnected** */ -export type MarketplaceSubscriptionProvisioningState = string; +export type EndpointServiceConnectionStatus = string; -/** Known values of {@link EndpointComputeType} that the service accepts. */ -export enum KnownEndpointComputeType { - /** Managed */ - Managed = "Managed", - /** Kubernetes */ - Kubernetes = "Kubernetes", - /** AzureMLCompute */ - AzureMLCompute = "AzureMLCompute", +/** Known values of {@link Origin} that the service accepts. */ +export enum KnownOrigin { + /** User */ + User = "user", + /** System */ + System = "system", + /** UserSystem */ + UserSystem = "user,system", } /** - * Defines values for EndpointComputeType. \ - * {@link KnownEndpointComputeType} can be used interchangeably with EndpointComputeType, + * 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 - * **Managed** \ - * **Kubernetes** \ - * **AzureMLCompute** + * **user** \ + * **system** \ + * **user,system** */ -export type EndpointComputeType = string; +export type Origin = string; -/** Known values of {@link OrderString} that the service accepts. */ -export enum KnownOrderString { - /** CreatedAtDesc */ - CreatedAtDesc = "CreatedAtDesc", - /** CreatedAtAsc */ - CreatedAtAsc = "CreatedAtAsc", - /** UpdatedAtDesc */ - UpdatedAtDesc = "UpdatedAtDesc", - /** UpdatedAtAsc */ - UpdatedAtAsc = "UpdatedAtAsc", +/** Known values of {@link ActionType} that the service accepts. */ +export enum KnownActionType { + /** Internal */ + Internal = "Internal", } /** - * Defines values for OrderString. \ - * {@link KnownOrderString} can be used interchangeably with OrderString, + * 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 - * **CreatedAtDesc** \ - * **CreatedAtAsc** \ - * **UpdatedAtDesc** \ - * **UpdatedAtAsc** + * **Internal** */ -export type OrderString = string; +export type ActionType = string; -/** Known values of {@link PublicNetworkAccessType} that the service accepts. */ -export enum KnownPublicNetworkAccessType { +/** Known values of {@link EncryptionStatus} that the service accepts. */ +export enum KnownEncryptionStatus { /** Enabled */ Enabled = "Enabled", /** Disabled */ @@ -8700,320 +8402,647 @@ export enum KnownPublicNetworkAccessType { } /** - * Defines values for PublicNetworkAccessType. \ - * {@link KnownPublicNetworkAccessType} can be used interchangeably with PublicNetworkAccessType, + * Defines values for EncryptionStatus. \ + * {@link KnownEncryptionStatus} can be used interchangeably with EncryptionStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Enabled** \ * **Disabled** */ -export type PublicNetworkAccessType = string; +export type EncryptionStatus = string; -/** Known values of {@link ScaleType} that the service accepts. */ -export enum KnownScaleType { - /** Default */ - Default = "Default", - /** TargetUtilization */ - TargetUtilization = "TargetUtilization", +/** Known values of {@link PublicNetworkAccess} that the service accepts. */ +export enum KnownPublicNetworkAccess { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", } /** - * Defines values for ScaleType. \ - * {@link KnownScaleType} can be used interchangeably with ScaleType, + * Defines values for PublicNetworkAccess. \ + * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** \ - * **TargetUtilization** + * **Enabled** \ + * **Disabled** */ -export type ScaleType = string; +export type PublicNetworkAccess = string; -/** Known values of {@link EgressPublicNetworkAccessType} that the service accepts. */ -export enum KnownEgressPublicNetworkAccessType { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled", +/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ +export enum KnownPrivateEndpointServiceConnectionStatus { + /** Pending */ + Pending = "Pending", + /** Approved */ + Approved = "Approved", + /** Rejected */ + Rejected = "Rejected", + /** Disconnected */ + Disconnected = "Disconnected", + /** Timeout */ + Timeout = "Timeout", } /** - * Defines values for EgressPublicNetworkAccessType. \ - * {@link KnownEgressPublicNetworkAccessType} can be used interchangeably with EgressPublicNetworkAccessType, + * Defines values for PrivateEndpointServiceConnectionStatus. \ + * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **Pending** \ + * **Approved** \ + * **Rejected** \ + * **Disconnected** \ + * **Timeout** */ -export type EgressPublicNetworkAccessType = string; +export type PrivateEndpointServiceConnectionStatus = string; -/** Known values of {@link DataCollectionMode} that the service accepts. */ -export enum KnownDataCollectionMode { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled", +/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ +export enum KnownPrivateEndpointConnectionProvisioningState { + /** Succeeded */ + Succeeded = "Succeeded", + /** Creating */ + Creating = "Creating", + /** Deleting */ + Deleting = "Deleting", + /** Failed */ + Failed = "Failed", } /** - * Defines values for DataCollectionMode. \ - * {@link KnownDataCollectionMode} can be used interchangeably with DataCollectionMode, + * Defines values for PrivateEndpointConnectionProvisioningState. \ + * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **Succeeded** \ + * **Creating** \ + * **Deleting** \ + * **Failed** */ -export type DataCollectionMode = string; +export type PrivateEndpointConnectionProvisioningState = string; -/** Known values of {@link RollingRateType} that the service accepts. */ -export enum KnownRollingRateType { - /** Year */ - Year = "Year", - /** Month */ - Month = "Month", - /** Day */ - Day = "Day", - /** Hour */ - Hour = "Hour", - /** Minute */ - Minute = "Minute", +/** Known values of {@link IsolationMode} that the service accepts. */ +export enum KnownIsolationMode { + /** Disabled */ + Disabled = "Disabled", + /** AllowInternetOutbound */ + AllowInternetOutbound = "AllowInternetOutbound", + /** AllowOnlyApprovedOutbound */ + AllowOnlyApprovedOutbound = "AllowOnlyApprovedOutbound", } /** - * Defines values for RollingRateType. \ - * {@link KnownRollingRateType} can be used interchangeably with RollingRateType, + * 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 - * **Year** \ - * **Month** \ - * **Day** \ - * **Hour** \ - * **Minute** + * **Disabled** \ + * **AllowInternetOutbound** \ + * **AllowOnlyApprovedOutbound** */ -export type RollingRateType = string; +export type IsolationMode = string; -/** Known values of {@link ContainerType} that the service accepts. */ -export enum KnownContainerType { - /** StorageInitializer */ - StorageInitializer = "StorageInitializer", - /** InferenceServer */ - InferenceServer = "InferenceServer", +/** Known values of {@link RuleCategory} that the service accepts. */ +export enum KnownRuleCategory { + /** Required */ + Required = "Required", + /** Recommended */ + Recommended = "Recommended", + /** UserDefined */ + UserDefined = "UserDefined", + /** Dependency */ + Dependency = "Dependency", } /** - * Defines values for ContainerType. \ - * {@link KnownContainerType} can be used interchangeably with ContainerType, + * 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 - * **StorageInitializer** \ - * **InferenceServer** + * **Required** \ + * **Recommended** \ + * **UserDefined** \ + * **Dependency** */ -export type ContainerType = string; +export type RuleCategory = string; -/** Known values of {@link SkuScaleType} that the service accepts. */ -export enum KnownSkuScaleType { - /** Automatically scales node count. */ - Automatic = "Automatic", - /** Node count scaled upon user request. */ - Manual = "Manual", - /** Fixed set of nodes. */ - None = "None", +/** Known values of {@link RuleStatus} that the service accepts. */ +export enum KnownRuleStatus { + /** Inactive */ + Inactive = "Inactive", + /** Active */ + Active = "Active", } /** - * Defines values for SkuScaleType. \ - * {@link KnownSkuScaleType} can be used interchangeably with SkuScaleType, + * 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 - * **Automatic**: Automatically scales node count. \ - * **Manual**: Node count scaled upon user request. \ - * **None**: Fixed set of nodes. + * **Inactive** \ + * **Active** */ -export type SkuScaleType = string; +export type RuleStatus = string; -/** Known values of {@link KeyType} that the service accepts. */ -export enum KnownKeyType { - /** Primary */ - Primary = "Primary", - /** Secondary */ - Secondary = "Secondary", +/** Known values of {@link RuleType} that the service accepts. */ +export enum KnownRuleType { + /** Fqdn */ + Fqdn = "FQDN", + /** PrivateEndpoint */ + PrivateEndpoint = "PrivateEndpoint", + /** ServiceTag */ + ServiceTag = "ServiceTag", } /** - * Defines values for KeyType. \ - * {@link KnownKeyType} can be used interchangeably with KeyType, + * 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 - * **Primary** \ - * **Secondary** + * **FQDN** \ + * **PrivateEndpoint** \ + * **ServiceTag** */ -export type KeyType = string; +export type RuleType = string; -/** Known values of {@link ScheduleListViewType} that the service accepts. */ -export enum KnownScheduleListViewType { - /** EnabledOnly */ - EnabledOnly = "EnabledOnly", - /** DisabledOnly */ - DisabledOnly = "DisabledOnly", - /** All */ - All = "All", +/** Known values of {@link ManagedNetworkStatus} that the service accepts. */ +export enum KnownManagedNetworkStatus { + /** Inactive */ + Inactive = "Inactive", + /** Active */ + Active = "Active", } /** - * Defines values for ScheduleListViewType. \ - * {@link KnownScheduleListViewType} can be used interchangeably with ScheduleListViewType, + * 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 - * **EnabledOnly** \ - * **DisabledOnly** \ - * **All** + * **Inactive** \ + * **Active** */ -export type ScheduleListViewType = string; +export type ManagedNetworkStatus = string; -/** Known values of {@link ScheduleActionType} that the service accepts. */ -export enum KnownScheduleActionType { - /** CreateJob */ - CreateJob = "CreateJob", - /** InvokeBatchEndpoint */ - InvokeBatchEndpoint = "InvokeBatchEndpoint", - /** CreateMonitor */ - CreateMonitor = "CreateMonitor", +/** Known values of {@link FirewallSku} that the service accepts. */ +export enum KnownFirewallSku { + /** Standard */ + Standard = "Standard", + /** Basic */ + Basic = "Basic", } /** - * Defines values for ScheduleActionType. \ - * {@link KnownScheduleActionType} can be used interchangeably with ScheduleActionType, + * Defines values for FirewallSku. \ + * {@link KnownFirewallSku} can be used interchangeably with FirewallSku, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **CreateJob** \ - * **InvokeBatchEndpoint** \ - * **CreateMonitor** + * **Standard** \ + * **Basic** */ -export type ScheduleActionType = string; +export type FirewallSku = string; -/** Known values of {@link ScheduleProvisioningStatus} that the service accepts. */ -export enum KnownScheduleProvisioningStatus { - /** Creating */ - Creating = "Creating", - /** Updating */ - Updating = "Updating", - /** Deleting */ - Deleting = "Deleting", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled", +/** Known values of {@link DiagnoseResultLevel} that the service accepts. */ +export enum KnownDiagnoseResultLevel { + /** Warning */ + Warning = "Warning", + /** Error */ + Error = "Error", + /** Information */ + Information = "Information", } /** - * Defines values for ScheduleProvisioningStatus. \ - * {@link KnownScheduleProvisioningStatus} can be used interchangeably with ScheduleProvisioningStatus, + * Defines values for DiagnoseResultLevel. \ + * {@link KnownDiagnoseResultLevel} can be used interchangeably with DiagnoseResultLevel, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Creating** \ - * **Updating** \ - * **Deleting** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** + * **Warning** \ + * **Error** \ + * **Information** */ -export type ScheduleProvisioningStatus = string; +export type DiagnoseResultLevel = string; -/** Known values of {@link ServerlessInferenceEndpointAuthMode} that the service accepts. */ -export enum KnownServerlessInferenceEndpointAuthMode { - /** Key */ - Key = "Key", +/** Known values of {@link ConnectionAuthType} that the service accepts. */ +export enum KnownConnectionAuthType { + /** PAT */ + PAT = "PAT", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** UsernamePassword */ + UsernamePassword = "UsernamePassword", + /** None */ + None = "None", + /** SAS */ + SAS = "SAS", + /** AccountKey */ + AccountKey = "AccountKey", + /** ServicePrincipal */ + ServicePrincipal = "ServicePrincipal", + /** AccessKey */ + AccessKey = "AccessKey", + /** ApiKey */ + ApiKey = "ApiKey", + /** CustomKeys */ + CustomKeys = "CustomKeys", + /** OAuth2 */ + OAuth2 = "OAuth2", + /** AAD */ + AAD = "AAD", } /** - * Defines values for ServerlessInferenceEndpointAuthMode. \ - * {@link KnownServerlessInferenceEndpointAuthMode} can be used interchangeably with ServerlessInferenceEndpointAuthMode, + * Defines values for ConnectionAuthType. \ + * {@link KnownConnectionAuthType} can be used interchangeably with ConnectionAuthType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Key** + * **PAT** \ + * **ManagedIdentity** \ + * **UsernamePassword** \ + * **None** \ + * **SAS** \ + * **AccountKey** \ + * **ServicePrincipal** \ + * **AccessKey** \ + * **ApiKey** \ + * **CustomKeys** \ + * **OAuth2** \ + * **AAD** */ -export type ServerlessInferenceEndpointAuthMode = string; +export type ConnectionAuthType = string; -/** Known values of {@link ServerlessEndpointState} that the service accepts. */ -export enum KnownServerlessEndpointState { - /** Unknown */ - Unknown = "Unknown", - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", - /** Suspending */ - Suspending = "Suspending", - /** Reinstating */ - Reinstating = "Reinstating", - /** Online */ - Online = "Online", - /** Suspended */ - Suspended = "Suspended", - /** CreationFailed */ - CreationFailed = "CreationFailed", - /** DeletionFailed */ - DeletionFailed = "DeletionFailed", +/** Known values of {@link ConnectionCategory} that the service accepts. */ +export enum KnownConnectionCategory { + /** PythonFeed */ + PythonFeed = "PythonFeed", + /** ContainerRegistry */ + ContainerRegistry = "ContainerRegistry", + /** Git */ + Git = "Git", + /** S3 */ + S3 = "S3", + /** Snowflake */ + Snowflake = "Snowflake", + /** AzureSqlDb */ + AzureSqlDb = "AzureSqlDb", + /** AzureSynapseAnalytics */ + AzureSynapseAnalytics = "AzureSynapseAnalytics", + /** AzureMySqlDb */ + AzureMySqlDb = "AzureMySqlDb", + /** AzurePostgresDb */ + AzurePostgresDb = "AzurePostgresDb", + /** AdlsGen2 */ + AdlsGen2 = "ADLSGen2", + /** Redis */ + Redis = "Redis", + /** ApiKey */ + ApiKey = "ApiKey", + /** AzureOpenAI */ + AzureOpenAI = "AzureOpenAI", + /** AIServices */ + AIServices = "AIServices", + /** CognitiveSearch */ + CognitiveSearch = "CognitiveSearch", + /** CognitiveService */ + CognitiveService = "CognitiveService", + /** CustomKeys */ + CustomKeys = "CustomKeys", + /** AzureBlob */ + AzureBlob = "AzureBlob", + /** AzureOneLake */ + AzureOneLake = "AzureOneLake", + /** CosmosDb */ + CosmosDb = "CosmosDb", + /** CosmosDbMongoDbApi */ + CosmosDbMongoDbApi = "CosmosDbMongoDbApi", + /** AzureDataExplorer */ + AzureDataExplorer = "AzureDataExplorer", + /** AzureMariaDb */ + AzureMariaDb = "AzureMariaDb", + /** AzureDatabricksDeltaLake */ + AzureDatabricksDeltaLake = "AzureDatabricksDeltaLake", + /** AzureSqlMi */ + AzureSqlMi = "AzureSqlMi", + /** AzureTableStorage */ + AzureTableStorage = "AzureTableStorage", + /** AmazonRdsForOracle */ + AmazonRdsForOracle = "AmazonRdsForOracle", + /** AmazonRdsForSqlServer */ + AmazonRdsForSqlServer = "AmazonRdsForSqlServer", + /** AmazonRedshift */ + AmazonRedshift = "AmazonRedshift", + /** Db2 */ + Db2 = "Db2", + /** Drill */ + Drill = "Drill", + /** GoogleBigQuery */ + GoogleBigQuery = "GoogleBigQuery", + /** Greenplum */ + Greenplum = "Greenplum", + /** Hbase */ + Hbase = "Hbase", + /** Hive */ + Hive = "Hive", + /** Impala */ + Impala = "Impala", + /** Informix */ + Informix = "Informix", + /** MariaDb */ + MariaDb = "MariaDb", + /** MicrosoftAccess */ + MicrosoftAccess = "MicrosoftAccess", + /** MySql */ + MySql = "MySql", + /** Netezza */ + Netezza = "Netezza", + /** Oracle */ + Oracle = "Oracle", + /** Phoenix */ + Phoenix = "Phoenix", + /** PostgreSql */ + PostgreSql = "PostgreSql", + /** Presto */ + Presto = "Presto", + /** SapOpenHub */ + SapOpenHub = "SapOpenHub", + /** SapBw */ + SapBw = "SapBw", + /** SapHana */ + SapHana = "SapHana", + /** SapTable */ + SapTable = "SapTable", + /** Spark */ + Spark = "Spark", + /** SqlServer */ + SqlServer = "SqlServer", + /** Sybase */ + Sybase = "Sybase", + /** Teradata */ + Teradata = "Teradata", + /** Vertica */ + Vertica = "Vertica", + /** Pinecone */ + Pinecone = "Pinecone", + /** Cassandra */ + Cassandra = "Cassandra", + /** Couchbase */ + Couchbase = "Couchbase", + /** MongoDbV2 */ + MongoDbV2 = "MongoDbV2", + /** MongoDbAtlas */ + MongoDbAtlas = "MongoDbAtlas", + /** AmazonS3Compatible */ + AmazonS3Compatible = "AmazonS3Compatible", + /** FileServer */ + FileServer = "FileServer", + /** FtpServer */ + FtpServer = "FtpServer", + /** GoogleCloudStorage */ + GoogleCloudStorage = "GoogleCloudStorage", + /** Hdfs */ + Hdfs = "Hdfs", + /** OracleCloudStorage */ + OracleCloudStorage = "OracleCloudStorage", + /** Sftp */ + Sftp = "Sftp", + /** GenericHttp */ + GenericHttp = "GenericHttp", + /** ODataRest */ + ODataRest = "ODataRest", + /** Odbc */ + Odbc = "Odbc", + /** GenericRest */ + GenericRest = "GenericRest", + /** AmazonMws */ + AmazonMws = "AmazonMws", + /** Concur */ + Concur = "Concur", + /** Dynamics */ + Dynamics = "Dynamics", + /** DynamicsAx */ + DynamicsAx = "DynamicsAx", + /** DynamicsCrm */ + DynamicsCrm = "DynamicsCrm", + /** GoogleAdWords */ + GoogleAdWords = "GoogleAdWords", + /** Hubspot */ + Hubspot = "Hubspot", + /** Jira */ + Jira = "Jira", + /** Magento */ + Magento = "Magento", + /** Marketo */ + Marketo = "Marketo", + /** Office365 */ + Office365 = "Office365", + /** Eloqua */ + Eloqua = "Eloqua", + /** Responsys */ + Responsys = "Responsys", + /** OracleServiceCloud */ + OracleServiceCloud = "OracleServiceCloud", + /** PayPal */ + PayPal = "PayPal", + /** QuickBooks */ + QuickBooks = "QuickBooks", + /** Salesforce */ + Salesforce = "Salesforce", + /** SalesforceServiceCloud */ + SalesforceServiceCloud = "SalesforceServiceCloud", + /** SalesforceMarketingCloud */ + SalesforceMarketingCloud = "SalesforceMarketingCloud", + /** SapCloudForCustomer */ + SapCloudForCustomer = "SapCloudForCustomer", + /** SapEcc */ + SapEcc = "SapEcc", + /** ServiceNow */ + ServiceNow = "ServiceNow", + /** SharePointOnlineList */ + SharePointOnlineList = "SharePointOnlineList", + /** Shopify */ + Shopify = "Shopify", + /** Square */ + Square = "Square", + /** WebTable */ + WebTable = "WebTable", + /** Xero */ + Xero = "Xero", + /** Zoho */ + Zoho = "Zoho", + /** GenericContainerRegistry */ + GenericContainerRegistry = "GenericContainerRegistry", + /** Elasticsearch */ + Elasticsearch = "Elasticsearch", + /** OpenAI */ + OpenAI = "OpenAI", + /** Serp */ + Serp = "Serp", + /** BingLLMSearch */ + BingLLMSearch = "BingLLMSearch", + /** Serverless */ + Serverless = "Serverless", + /** ManagedOnlineEndpoint */ + ManagedOnlineEndpoint = "ManagedOnlineEndpoint", } /** - * Defines values for ServerlessEndpointState. \ - * {@link KnownServerlessEndpointState} can be used interchangeably with ServerlessEndpointState, + * Defines values for ConnectionCategory. \ + * {@link KnownConnectionCategory} can be used interchangeably with ConnectionCategory, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Unknown** \ - * **Creating** \ - * **Deleting** \ - * **Suspending** \ - * **Reinstating** \ - * **Online** \ - * **Suspended** \ - * **CreationFailed** \ - * **DeletionFailed** + * **PythonFeed** \ + * **ContainerRegistry** \ + * **Git** \ + * **S3** \ + * **Snowflake** \ + * **AzureSqlDb** \ + * **AzureSynapseAnalytics** \ + * **AzureMySqlDb** \ + * **AzurePostgresDb** \ + * **ADLSGen2** \ + * **Redis** \ + * **ApiKey** \ + * **AzureOpenAI** \ + * **AIServices** \ + * **CognitiveSearch** \ + * **CognitiveService** \ + * **CustomKeys** \ + * **AzureBlob** \ + * **AzureOneLake** \ + * **CosmosDb** \ + * **CosmosDbMongoDbApi** \ + * **AzureDataExplorer** \ + * **AzureMariaDb** \ + * **AzureDatabricksDeltaLake** \ + * **AzureSqlMi** \ + * **AzureTableStorage** \ + * **AmazonRdsForOracle** \ + * **AmazonRdsForSqlServer** \ + * **AmazonRedshift** \ + * **Db2** \ + * **Drill** \ + * **GoogleBigQuery** \ + * **Greenplum** \ + * **Hbase** \ + * **Hive** \ + * **Impala** \ + * **Informix** \ + * **MariaDb** \ + * **MicrosoftAccess** \ + * **MySql** \ + * **Netezza** \ + * **Oracle** \ + * **Phoenix** \ + * **PostgreSql** \ + * **Presto** \ + * **SapOpenHub** \ + * **SapBw** \ + * **SapHana** \ + * **SapTable** \ + * **Spark** \ + * **SqlServer** \ + * **Sybase** \ + * **Teradata** \ + * **Vertica** \ + * **Pinecone** \ + * **Cassandra** \ + * **Couchbase** \ + * **MongoDbV2** \ + * **MongoDbAtlas** \ + * **AmazonS3Compatible** \ + * **FileServer** \ + * **FtpServer** \ + * **GoogleCloudStorage** \ + * **Hdfs** \ + * **OracleCloudStorage** \ + * **Sftp** \ + * **GenericHttp** \ + * **ODataRest** \ + * **Odbc** \ + * **GenericRest** \ + * **AmazonMws** \ + * **Concur** \ + * **Dynamics** \ + * **DynamicsAx** \ + * **DynamicsCrm** \ + * **GoogleAdWords** \ + * **Hubspot** \ + * **Jira** \ + * **Magento** \ + * **Marketo** \ + * **Office365** \ + * **Eloqua** \ + * **Responsys** \ + * **OracleServiceCloud** \ + * **PayPal** \ + * **QuickBooks** \ + * **Salesforce** \ + * **SalesforceServiceCloud** \ + * **SalesforceMarketingCloud** \ + * **SapCloudForCustomer** \ + * **SapEcc** \ + * **ServiceNow** \ + * **SharePointOnlineList** \ + * **Shopify** \ + * **Square** \ + * **WebTable** \ + * **Xero** \ + * **Zoho** \ + * **GenericContainerRegistry** \ + * **Elasticsearch** \ + * **OpenAI** \ + * **Serp** \ + * **BingLLMSearch** \ + * **Serverless** \ + * **ManagedOnlineEndpoint** */ -export type ServerlessEndpointState = string; +export type ConnectionCategory = string; -/** Known values of {@link ContentSafetyStatus} that the service accepts. */ -export enum KnownContentSafetyStatus { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled", +/** Known values of {@link ConnectionGroup} that the service accepts. */ +export enum KnownConnectionGroup { + /** Azure */ + Azure = "Azure", + /** AzureAI */ + AzureAI = "AzureAI", + /** Database */ + Database = "Database", + /** NoSQL */ + NoSQL = "NoSQL", + /** File */ + File = "File", + /** GenericProtocol */ + GenericProtocol = "GenericProtocol", + /** ServicesAndApps */ + ServicesAndApps = "ServicesAndApps", } /** - * Defines values for ContentSafetyStatus. \ - * {@link KnownContentSafetyStatus} can be used interchangeably with ContentSafetyStatus, + * Defines values for ConnectionGroup. \ + * {@link KnownConnectionGroup} can be used interchangeably with ConnectionGroup, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **Azure** \ + * **AzureAI** \ + * **Database** \ + * **NoSQL** \ + * **File** \ + * **GenericProtocol** \ + * **ServicesAndApps** */ -export type ContentSafetyStatus = string; +export type ConnectionGroup = 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", +/** Known values of {@link ValueFormat} that the service accepts. */ +export enum KnownValueFormat { + /** Json */ + Json = "JSON", } /** - * Defines values for EndpointServiceConnectionStatus. \ - * {@link KnownEndpointServiceConnectionStatus} can be used interchangeably with EndpointServiceConnectionStatus, + * Defines values for ValueFormat. \ + * {@link KnownValueFormat} can be used interchangeably with ValueFormat, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Approved** \ - * **Pending** \ - * **Rejected** \ - * **Disconnected** + * **JSON** */ -export type EndpointServiceConnectionStatus = string; +export type ValueFormat = string; /** Known values of {@link ClusterPurpose} that the service accepts. */ export enum KnownClusterPurpose { @@ -9726,24 +9755,6 @@ 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. */ @@ -9832,25 +9843,112 @@ export enum KnownOutputDeliveryMode { * **Upload** \ * **Direct** */ -export type OutputDeliveryMode = string; +export type OutputDeliveryMode = string; + +/** Known values of {@link ForecastHorizonMode} that the service accepts. */ +export enum KnownForecastHorizonMode { + /** Forecast horizon to be determined automatically. */ + Auto = "Auto", + /** Use the custom forecast horizon. */ + Custom = "Custom", +} + +/** + * Defines values for ForecastHorizonMode. \ + * {@link KnownForecastHorizonMode} can be used interchangeably with ForecastHorizonMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Auto**: Forecast horizon to be determined automatically. \ + * **Custom**: Use the custom forecast horizon. + */ +export type ForecastHorizonMode = string; + +/** Known values of {@link JobOutputType} that the service accepts. */ +export enum KnownJobOutputType { + /** UriFile */ + UriFile = "uri_file", + /** UriFolder */ + UriFolder = "uri_folder", + /** Mltable */ + Mltable = "mltable", + /** CustomModel */ + CustomModel = "custom_model", + /** MlflowModel */ + MlflowModel = "mlflow_model", + /** TritonModel */ + TritonModel = "triton_model", +} + +/** + * Defines values for JobOutputType. \ + * {@link KnownJobOutputType} can be used interchangeably with JobOutputType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **uri_file** \ + * **uri_folder** \ + * **mltable** \ + * **custom_model** \ + * **mlflow_model** \ + * **triton_model** + */ +export type JobOutputType = string; + +/** Known values of {@link JobTier} that the service accepts. */ +export enum KnownJobTier { + /** Null */ + Null = "Null", + /** Spot */ + Spot = "Spot", + /** Basic */ + Basic = "Basic", + /** Standard */ + Standard = "Standard", + /** Premium */ + Premium = "Premium", +} + +/** + * Defines values for JobTier. \ + * {@link KnownJobTier} can be used interchangeably with JobTier, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Null** \ + * **Spot** \ + * **Basic** \ + * **Standard** \ + * **Premium** + */ +export type JobTier = string; -/** Known values of {@link ForecastHorizonMode} that the service accepts. */ -export enum KnownForecastHorizonMode { - /** Forecast horizon to be determined automatically. */ - Auto = "Auto", - /** Use the custom forecast horizon. */ - Custom = "Custom", +/** Known values of {@link LogVerbosity} that the service accepts. */ +export enum KnownLogVerbosity { + /** No logs emitted. */ + NotSet = "NotSet", + /** Debug and above log statements logged. */ + Debug = "Debug", + /** Info and above log statements logged. */ + Info = "Info", + /** Warning and above log statements logged. */ + Warning = "Warning", + /** Error and above log statements logged. */ + Error = "Error", + /** Only critical statements logged. */ + Critical = "Critical", } /** - * Defines values for ForecastHorizonMode. \ - * {@link KnownForecastHorizonMode} can be used interchangeably with ForecastHorizonMode, + * Defines values for LogVerbosity. \ + * {@link KnownLogVerbosity} can be used interchangeably with LogVerbosity, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Auto**: Forecast horizon to be determined automatically. \ - * **Custom**: Use the custom forecast horizon. + * **NotSet**: No logs emitted. \ + * **Debug**: Debug and above log statements logged. \ + * **Info**: Info and above log statements logged. \ + * **Warning**: Warning and above log statements logged. \ + * **Error**: Error and above log statements logged. \ + * **Critical**: Only critical statements logged. */ -export type ForecastHorizonMode = string; +export type LogVerbosity = string; /** Known values of {@link TaskType} that the service accepts. */ export enum KnownTaskType { @@ -9926,36 +10024,6 @@ export enum KnownTaskType { */ export type TaskType = string; -/** Known values of {@link LogVerbosity} that the service accepts. */ -export enum KnownLogVerbosity { - /** No logs emitted. */ - NotSet = "NotSet", - /** Debug and above log statements logged. */ - Debug = "Debug", - /** Info and above log statements logged. */ - Info = "Info", - /** Warning and above log statements logged. */ - Warning = "Warning", - /** Error and above log statements logged. */ - Error = "Error", - /** Only critical statements logged. */ - Critical = "Critical", -} - -/** - * Defines values for LogVerbosity. \ - * {@link KnownLogVerbosity} can be used interchangeably with LogVerbosity, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotSet**: No logs emitted. \ - * **Debug**: Debug and above log statements logged. \ - * **Info**: Info and above log statements logged. \ - * **Warning**: Warning and above log statements logged. \ - * **Error**: Error and above log statements logged. \ - * **Critical**: Only critical statements logged. - */ -export type LogVerbosity = string; - /** Known values of {@link JobInputType} that the service accepts. */ export enum KnownJobInputType { /** Literal */ @@ -9989,63 +10057,6 @@ export enum KnownJobInputType { */ export type JobInputType = string; -/** Known values of {@link JobOutputType} that the service accepts. */ -export enum KnownJobOutputType { - /** UriFile */ - UriFile = "uri_file", - /** UriFolder */ - UriFolder = "uri_folder", - /** Mltable */ - Mltable = "mltable", - /** CustomModel */ - CustomModel = "custom_model", - /** MlflowModel */ - MlflowModel = "mlflow_model", - /** TritonModel */ - TritonModel = "triton_model", -} - -/** - * Defines values for JobOutputType. \ - * {@link KnownJobOutputType} can be used interchangeably with JobOutputType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **uri_file** \ - * **uri_folder** \ - * **mltable** \ - * **custom_model** \ - * **mlflow_model** \ - * **triton_model** - */ -export type JobOutputType = string; - -/** Known values of {@link JobTier} that the service accepts. */ -export enum KnownJobTier { - /** Null */ - Null = "Null", - /** Spot */ - Spot = "Spot", - /** Basic */ - Basic = "Basic", - /** Standard */ - Standard = "Standard", - /** Premium */ - Premium = "Premium", -} - -/** - * Defines values for JobTier. \ - * {@link KnownJobTier} can be used interchangeably with JobTier, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Null** \ - * **Spot** \ - * **Basic** \ - * **Standard** \ - * **Premium** - */ -export type JobTier = string; - /** Known values of {@link NCrossValidationsMode} that the service accepts. */ export enum KnownNCrossValidationsMode { /** Determine N-Cross validations value automatically. Supported only for 'Forecasting' AutoML task. */ @@ -10347,7 +10358,7 @@ export enum KnownClassificationModels { DecisionTree = "DecisionTree", /** * Random forest is a supervised learning algorithm. - * The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method. + * The "forest" it builds, is an ensemble of decision trees, usually trained with the "bagging" method. * The general idea of the bagging method is that a combination of learning models increases the overall result. */ RandomForest = "RandomForest", @@ -10385,7 +10396,7 @@ export enum KnownClassificationModels { * **DecisionTree**: Decision Trees are a non-parametric supervised learning method used for both classification and regression tasks. * The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. \ * **RandomForest**: Random forest is a supervised learning algorithm. - * The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method. + * The "forest" it builds, is an ensemble of decision trees, usually trained with the "bagging" method. * The general idea of the bagging method is that a combination of learning models increases the overall result. \ * **ExtremeRandomTrees**: Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. \ * **LightGBM**: LightGBM is a gradient boosting framework that uses tree based learning algorithms. \ @@ -10430,27 +10441,6 @@ export enum KnownStackMetaLearnerType { */ export type StackMetaLearnerType = string; -/** Known values of {@link FeaturizationMode} that the service accepts. */ -export enum KnownFeaturizationMode { - /** Auto mode, system performs featurization without any custom featurization inputs. */ - Auto = "Auto", - /** Custom featurization. */ - Custom = "Custom", - /** Featurization off. 'Forecasting' task cannot use this value. */ - Off = "Off", -} - -/** - * Defines values for FeaturizationMode. \ - * {@link KnownFeaturizationMode} can be used interchangeably with FeaturizationMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Auto**: Auto mode, system performs featurization without any custom featurization inputs. \ - * **Custom**: Custom featurization. \ - * **Off**: Featurization off. 'Forecasting' task cannot use this value. - */ -export type FeaturizationMode = string; - /** Known values of {@link BlockedTransformers} that the service accepts. */ export enum KnownBlockedTransformers { /** Target encoding for text data. */ @@ -10493,6 +10483,27 @@ export enum KnownBlockedTransformers { */ export type BlockedTransformers = string; +/** Known values of {@link FeaturizationMode} that the service accepts. */ +export enum KnownFeaturizationMode { + /** Auto mode, system performs featurization without any custom featurization inputs. */ + Auto = "Auto", + /** Custom featurization. */ + Custom = "Custom", + /** Featurization off. 'Forecasting' task cannot use this value. */ + Off = "Off", +} + +/** + * Defines values for FeaturizationMode. \ + * {@link KnownFeaturizationMode} can be used interchangeably with FeaturizationMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Auto**: Auto mode, system performs featurization without any custom featurization inputs. \ + * **Custom**: Custom featurization. \ + * **Off**: Featurization off. 'Forecasting' task cannot use this value. + */ +export type FeaturizationMode = string; + /** Known values of {@link DistributionType} that the service accepts. */ export enum KnownDistributionType { /** PyTorch */ @@ -10532,6 +10543,21 @@ 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 */ @@ -10550,6 +10576,21 @@ export enum KnownModelTaskType { */ 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. */ @@ -10577,36 +10618,6 @@ export enum KnownMonitoringSignalType { */ export type MonitoringSignalType = 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 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 MonitoringInputDataType} that the service accepts. */ export enum KnownMonitoringInputDataType { /** An input data with a fixed window size. */ @@ -10642,48 +10653,24 @@ export enum KnownFeatureImportanceMode { * 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 ForecastingPrimaryMetrics} that the service accepts. */ -export enum KnownForecastingPrimaryMetrics { - /** The Spearman's rank coefficient of correlation is a non-parametric measure of rank correlation. */ - SpearmanCorrelation = "SpearmanCorrelation", - /** The Normalized Root Mean Squared Error (NRMSE) the RMSE facilitates the comparison between models with different scales. */ - NormalizedRootMeanSquaredError = "NormalizedRootMeanSquaredError", - /** The R2 score is one of the performance evaluation measures for forecasting-based machine learning models. */ - R2Score = "R2Score", - /** The Normalized Mean Absolute Error (NMAE) is a validation metric to compare the Mean Absolute Error (MAE) of (time) series with different scales. */ - NormalizedMeanAbsoluteError = "NormalizedMeanAbsoluteError", + * **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 ForecastingPrimaryMetrics. \ - * {@link KnownForecastingPrimaryMetrics} can be used interchangeably with ForecastingPrimaryMetrics, + * 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 - * **SpearmanCorrelation**: The Spearman's rank coefficient of correlation is a non-parametric measure of rank correlation. \ - * **NormalizedRootMeanSquaredError**: The Normalized Root Mean Squared Error (NRMSE) the RMSE facilitates the comparison between models with different scales. \ - * **R2Score**: The R2 score is one of the performance evaluation measures for forecasting-based machine learning models. \ - * **NormalizedMeanAbsoluteError**: The Normalized Mean Absolute Error (NMAE) is a validation metric to compare the Mean Absolute Error (MAE) of (time) series with different scales. + * **NormalizedDiscountedCumulativeGain**: The Normalized Discounted Cumulative Gain metric. */ -export type ForecastingPrimaryMetrics = string; +export type FeatureAttributionMetric = string; /** Known values of {@link FeatureLags} that the service accepts. */ export enum KnownFeatureLags { @@ -10727,6 +10714,33 @@ export enum KnownShortSeriesHandlingConfiguration { */ export type ShortSeriesHandlingConfiguration = string; +/** Known values of {@link TargetAggregationFunction} that the service accepts. */ +export enum KnownTargetAggregationFunction { + /** Represent no value set. */ + None = "None", + /** Sum */ + Sum = "Sum", + /** Max */ + Max = "Max", + /** Min */ + Min = "Min", + /** Mean */ + Mean = "Mean", +} + +/** + * Defines values for TargetAggregationFunction. \ + * {@link KnownTargetAggregationFunction} can be used interchangeably with TargetAggregationFunction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: Represent no value set. \ + * **Sum** \ + * **Max** \ + * **Min** \ + * **Mean** + */ +export type TargetAggregationFunction = string; + /** Known values of {@link UseStl} that the service accepts. */ export enum KnownUseStl { /** No stl decomposition. */ @@ -10748,32 +10762,29 @@ export enum KnownUseStl { */ export type UseStl = string; -/** Known values of {@link TargetAggregationFunction} that the service accepts. */ -export enum KnownTargetAggregationFunction { - /** Represent no value set. */ - None = "None", - /** Sum */ - Sum = "Sum", - /** Max */ - Max = "Max", - /** Min */ - Min = "Min", - /** Mean */ - Mean = "Mean", +/** Known values of {@link ForecastingPrimaryMetrics} that the service accepts. */ +export enum KnownForecastingPrimaryMetrics { + /** The Spearman's rank coefficient of correlation is a non-parametric measure of rank correlation. */ + SpearmanCorrelation = "SpearmanCorrelation", + /** The Normalized Root Mean Squared Error (NRMSE) the RMSE facilitates the comparison between models with different scales. */ + NormalizedRootMeanSquaredError = "NormalizedRootMeanSquaredError", + /** The R2 score is one of the performance evaluation measures for forecasting-based machine learning models. */ + R2Score = "R2Score", + /** The Normalized Mean Absolute Error (NMAE) is a validation metric to compare the Mean Absolute Error (MAE) of (time) series with different scales. */ + NormalizedMeanAbsoluteError = "NormalizedMeanAbsoluteError", } /** - * Defines values for TargetAggregationFunction. \ - * {@link KnownTargetAggregationFunction} can be used interchangeably with TargetAggregationFunction, + * Defines values for ForecastingPrimaryMetrics. \ + * {@link KnownForecastingPrimaryMetrics} can be used interchangeably with ForecastingPrimaryMetrics, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None**: Represent no value set. \ - * **Sum** \ - * **Max** \ - * **Min** \ - * **Mean** + * **SpearmanCorrelation**: The Spearman's rank coefficient of correlation is a non-parametric measure of rank correlation. \ + * **NormalizedRootMeanSquaredError**: The Normalized Root Mean Squared Error (NRMSE) the RMSE facilitates the comparison between models with different scales. \ + * **R2Score**: The R2 score is one of the performance evaluation measures for forecasting-based machine learning models. \ + * **NormalizedMeanAbsoluteError**: The Normalized Mean Absolute Error (NMAE) is a validation metric to compare the Mean Absolute Error (MAE) of (time) series with different scales. */ -export type TargetAggregationFunction = string; +export type ForecastingPrimaryMetrics = string; /** Known values of {@link ForecastingModels} that the service accepts. */ export enum KnownForecastingModels { @@ -10828,7 +10839,7 @@ export enum KnownForecastingModels { SGD = "SGD", /** * Random forest is a supervised learning algorithm. - * The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method. + * The "forest" it builds, is an ensemble of decision trees, usually trained with the "bagging" method. * The general idea of the bagging method is that a combination of learning models increases the overall result. */ RandomForest = "RandomForest", @@ -10868,7 +10879,7 @@ export enum KnownForecastingModels { * to find the model parameters that correspond to the best fit between predicted and actual outputs. * It's an inexact but powerful technique. \ * **RandomForest**: Random forest is a supervised learning algorithm. - * The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method. + * The "forest" it builds, is an ensemble of decision trees, usually trained with the "bagging" method. * The general idea of the bagging method is that a combination of learning models increases the overall result. \ * **ExtremeRandomTrees**: Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. \ * **LightGBM**: LightGBM is a gradient boosting framework that uses tree based learning algorithms. \ @@ -11077,7 +11088,7 @@ export enum KnownNumericalDataDriftMetric { PopulationStabilityIndex = "PopulationStabilityIndex", /** The Normalized Wasserstein Distance metric. */ NormalizedWassersteinDistance = "NormalizedWassersteinDistance", - /** The Two Sample Kolmogorov-Smirnov Test (two-sample K–S) metric. */ + /** The Two Sample Kolmogorov-Smirnov Test (two-sample K–S) metric. */ TwoSampleKolmogorovSmirnovTest = "TwoSampleKolmogorovSmirnovTest", } @@ -11089,7 +11100,7 @@ export enum KnownNumericalDataDriftMetric { * **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. + * **TwoSampleKolmogorovSmirnovTest**: The Two Sample Kolmogorov-Smirnov Test (two-sample K–S) metric. */ export type NumericalDataDriftMetric = string; @@ -11122,7 +11133,7 @@ export enum KnownNumericalPredictionDriftMetric { PopulationStabilityIndex = "PopulationStabilityIndex", /** The Normalized Wasserstein Distance metric. */ NormalizedWassersteinDistance = "NormalizedWassersteinDistance", - /** The Two Sample Kolmogorov-Smirnov Test (two-sample K–S) metric. */ + /** The Two Sample Kolmogorov-Smirnov Test (two-sample K–S) metric. */ TwoSampleKolmogorovSmirnovTest = "TwoSampleKolmogorovSmirnovTest", } @@ -11134,7 +11145,7 @@ export enum KnownNumericalPredictionDriftMetric { * **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. + * **TwoSampleKolmogorovSmirnovTest**: The Two Sample Kolmogorov-Smirnov Test (two-sample K–S) metric. */ export type NumericalPredictionDriftMetric = string; @@ -11219,222 +11230,84 @@ export enum KnownRegressionModels { /** * SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications * to find the model parameters that correspond to the best fit between predicted and actual outputs. - * It's an inexact but powerful technique. - */ - SGD = "SGD", - /** - * Random forest is a supervised learning algorithm. - * The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method. - * The general idea of the bagging method is that a combination of learning models increases the overall result. - */ - RandomForest = "RandomForest", - /** Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. */ - ExtremeRandomTrees = "ExtremeRandomTrees", - /** LightGBM is a gradient boosting framework that uses tree based learning algorithms. */ - LightGBM = "LightGBM", - /** XGBoostRegressor: Extreme Gradient Boosting Regressor is a supervised machine learning model using ensemble of base learners. */ - XGBoostRegressor = "XGBoostRegressor", -} - -/** - * Defines values for RegressionModels. \ - * {@link KnownRegressionModels} can be used interchangeably with RegressionModels, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ElasticNet**: Elastic net is a popular type of regularized linear regression that combines two popular penalties, specifically the L1 and L2 penalty functions. \ - * **GradientBoosting**: The technique of transiting week learners into a strong learner is called Boosting. The gradient boosting algorithm process works on this theory of execution. \ - * **DecisionTree**: Decision Trees are a non-parametric supervised learning method used for both classification and regression tasks. - * The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. \ - * **KNN**: K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints - * which further means that the new data point will be assigned a value based on how closely it matches the points in the training set. \ - * **LassoLars**: Lasso model fit with Least Angle Regression a.k.a. Lars. It is a Linear Model trained with an L1 prior as regularizer. \ - * **SGD**: SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications - * to find the model parameters that correspond to the best fit between predicted and actual outputs. - * It's an inexact but powerful technique. \ - * **RandomForest**: Random forest is a supervised learning algorithm. - * The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method. - * The general idea of the bagging method is that a combination of learning models increases the overall result. \ - * **ExtremeRandomTrees**: Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. \ - * **LightGBM**: LightGBM is a gradient boosting framework that uses tree based learning algorithms. \ - * **XGBoostRegressor**: XGBoostRegressor: Extreme Gradient Boosting Regressor is a supervised machine learning model using ensemble of base learners. - */ -export type RegressionModels = string; - -/** Known values of {@link SparkJobEntryType} that the service accepts. */ -export enum KnownSparkJobEntryType { - /** SparkJobPythonEntry */ - SparkJobPythonEntry = "SparkJobPythonEntry", - /** SparkJobScalaEntry */ - SparkJobScalaEntry = "SparkJobScalaEntry", -} - -/** - * Defines values for SparkJobEntryType. \ - * {@link KnownSparkJobEntryType} can be used interchangeably with SparkJobEntryType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **SparkJobPythonEntry** \ - * **SparkJobScalaEntry** - */ -export type SparkJobEntryType = string; -/** Defines values for SkuTier. */ -export type SkuTier = "Free" | "Basic" | "Standard" | "Premium"; - -/** Optional parameters. */ -export interface OperationsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; - -/** Optional parameters. */ -export interface WorkspacesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type WorkspacesGetResponse = Workspace; - -/** Optional parameters. */ -export interface WorkspacesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type WorkspacesCreateOrUpdateResponse = Workspace; - -/** 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. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface WorkspacesUpdateOptionalParams - 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 WorkspacesUpdateResponse = Workspace; - -/** Optional parameters. */ -export interface WorkspacesListByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; -} - -/** Contains response data for the listByResourceGroup operation. */ -export type WorkspacesListByResourceGroupResponse = WorkspaceListResult; - -/** Optional parameters. */ -export interface WorkspacesDiagnoseOptionalParams - extends coreClient.OperationOptions { - /** The parameter of diagnosing workspace health */ - parameters?: DiagnoseWorkspaceParameters; - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the diagnose operation. */ -export type WorkspacesDiagnoseResponse = DiagnoseResponseResult; - -/** Optional parameters. */ -export interface WorkspacesListKeysOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listKeys operation. */ -export type WorkspacesListKeysResponse = ListWorkspaceKeysResult; - -/** Optional parameters. */ -export interface WorkspacesResyncKeysOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface WorkspacesListBySubscriptionOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; -} - -/** Contains response data for the listBySubscription operation. */ -export type WorkspacesListBySubscriptionResponse = WorkspaceListResult; - -/** Optional parameters. */ -export interface WorkspacesListNotebookAccessTokenOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNotebookAccessToken operation. */ -export type WorkspacesListNotebookAccessTokenResponse = - NotebookAccessTokenResult; - -/** Optional parameters. */ -export interface WorkspacesPrepareNotebookOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + * It's an inexact but powerful technique. + */ + SGD = "SGD", + /** + * Random forest is a supervised learning algorithm. + * The "forest" it builds, is an ensemble of decision trees, usually trained with the "bagging" method. + * The general idea of the bagging method is that a combination of learning models increases the overall result. + */ + RandomForest = "RandomForest", + /** Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. */ + ExtremeRandomTrees = "ExtremeRandomTrees", + /** LightGBM is a gradient boosting framework that uses tree based learning algorithms. */ + LightGBM = "LightGBM", + /** XGBoostRegressor: Extreme Gradient Boosting Regressor is a supervised machine learning model using ensemble of base learners. */ + XGBoostRegressor = "XGBoostRegressor", } -/** Contains response data for the prepareNotebook operation. */ -export type WorkspacesPrepareNotebookResponse = NotebookResourceInfo; - -/** Optional parameters. */ -export interface WorkspacesListStorageAccountKeysOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listStorageAccountKeys operation. */ -export type WorkspacesListStorageAccountKeysResponse = - ListStorageAccountKeysResult; - -/** Optional parameters. */ -export interface WorkspacesListNotebookKeysOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNotebookKeys operation. */ -export type WorkspacesListNotebookKeysResponse = ListNotebookKeysResult; - -/** Optional parameters. */ -export interface WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listOutboundNetworkDependenciesEndpoints operation. */ -export type WorkspacesListOutboundNetworkDependenciesEndpointsResponse = - ExternalFqdnResponse; +/** + * Defines values for RegressionModels. \ + * {@link KnownRegressionModels} can be used interchangeably with RegressionModels, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ElasticNet**: Elastic net is a popular type of regularized linear regression that combines two popular penalties, specifically the L1 and L2 penalty functions. \ + * **GradientBoosting**: The technique of transiting week learners into a strong learner is called Boosting. The gradient boosting algorithm process works on this theory of execution. \ + * **DecisionTree**: Decision Trees are a non-parametric supervised learning method used for both classification and regression tasks. + * The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. \ + * **KNN**: K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints + * which further means that the new data point will be assigned a value based on how closely it matches the points in the training set. \ + * **LassoLars**: Lasso model fit with Least Angle Regression a.k.a. Lars. It is a Linear Model trained with an L1 prior as regularizer. \ + * **SGD**: SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications + * to find the model parameters that correspond to the best fit between predicted and actual outputs. + * It's an inexact but powerful technique. \ + * **RandomForest**: Random forest is a supervised learning algorithm. + * The "forest" it builds, is an ensemble of decision trees, usually trained with the "bagging" method. + * The general idea of the bagging method is that a combination of learning models increases the overall result. \ + * **ExtremeRandomTrees**: Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. \ + * **LightGBM**: LightGBM is a gradient boosting framework that uses tree based learning algorithms. \ + * **XGBoostRegressor**: XGBoostRegressor: Extreme Gradient Boosting Regressor is a supervised machine learning model using ensemble of base learners. + */ +export type RegressionModels = string; -/** Optional parameters. */ -export interface WorkspacesListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} +/** Known values of {@link SparkJobEntryType} that the service accepts. */ +export enum KnownSparkJobEntryType { + /** SparkJobPythonEntry */ + SparkJobPythonEntry = "SparkJobPythonEntry", + /** SparkJobScalaEntry */ + SparkJobScalaEntry = "SparkJobScalaEntry", +} -/** Contains response data for the listByResourceGroupNext operation. */ -export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult; +/** + * Defines values for SparkJobEntryType. \ + * {@link KnownSparkJobEntryType} can be used interchangeably with SparkJobEntryType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SparkJobPythonEntry** \ + * **SparkJobScalaEntry** + */ +export type SparkJobEntryType = string; -/** Optional parameters. */ -export interface WorkspacesListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} +/** Known values of {@link RuleAction} that the service accepts. */ +export enum KnownRuleAction { + /** Allow */ + Allow = "Allow", + /** Deny */ + Deny = "Deny", +} -/** Contains response data for the listBySubscriptionNext operation. */ -export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult; +/** + * Defines values for RuleAction. \ + * {@link KnownRuleAction} can be used interchangeably with RuleAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Allow** \ + * **Deny** + */ +export type RuleAction = string; +/** Defines values for SkuTier. */ +export type SkuTier = "Free" | "Basic" | "Standard" | "Premium"; /** Optional parameters. */ export interface UsagesListOptionalParams extends coreClient.OperationOptions {} @@ -11552,172 +11425,31 @@ 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 WorkspaceConnectionsListSecretsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listSecrets operation. */ -export type WorkspaceConnectionsListSecretsResponse = - WorkspaceConnectionPropertiesV2BasicResource; - -/** Optional parameters. */ -export interface WorkspaceConnectionsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type WorkspaceConnectionsListNextResponse = - WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult; - -/** Optional parameters. */ -export interface ManagedNetworkSettingsRuleListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type 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; + resumeFrom?: string; +} /** Optional parameters. */ -export interface ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams +export interface ComputeRestartOptionalParams 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 ComputeListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ComputeListNextResponse = PaginatedComputeResourcesList; + +/** Optional parameters. */ +export interface ComputeListNodesNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNodesNext operation. */ +export type ComputeListNodesNextResponse = AmlComputeNodesInformation; /** Optional parameters. */ export interface RegistryCodeContainersListOptionalParams @@ -13542,14 +13274,244 @@ export interface SchedulesDeleteOptionalParams } /** Optional parameters. */ -export interface SchedulesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type SchedulesGetResponse = Schedule; - -/** Optional parameters. */ -export interface SchedulesCreateOrUpdateOptionalParams +export interface SchedulesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SchedulesGetResponse = Schedule; + +/** Optional parameters. */ +export interface SchedulesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type 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 ServerlessEndpointsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the list operation. */ +export type ServerlessEndpointsListResponse = + ServerlessEndpointTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface ServerlessEndpointsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the delete operation. */ +export type ServerlessEndpointsDeleteResponse = + ServerlessEndpointsDeleteHeaders; + +/** Optional parameters. */ +export interface ServerlessEndpointsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ServerlessEndpointsGetResponse = ServerlessEndpoint; + +/** Optional parameters. */ +export interface ServerlessEndpointsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type ServerlessEndpointsUpdateResponse = ServerlessEndpoint; + +/** Optional parameters. */ +export interface ServerlessEndpointsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ServerlessEndpointsCreateOrUpdateResponse = ServerlessEndpoint; + +/** Optional parameters. */ +export interface ServerlessEndpointsListKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listKeys operation. */ +export type ServerlessEndpointsListKeysResponse = EndpointAuthKeys; + +/** Optional parameters. */ +export interface ServerlessEndpointsRegenerateKeysOptionalParams + 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 regenerateKeys operation. */ +export type ServerlessEndpointsRegenerateKeysResponse = EndpointAuthKeys; + +/** Optional parameters. */ +export interface ServerlessEndpointsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ServerlessEndpointsListNextResponse = + ServerlessEndpointTrackedResourceArmPaginatedResult; + +/** 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 { + /** 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 RegistriesListNextResponse = + RegistryTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface WorkspaceFeaturesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult; + +/** Optional parameters. */ +export interface WorkspaceFeaturesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult; + +/** Optional parameters. */ +export interface OperationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; + +/** Optional parameters. */ +export interface WorkspacesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type WorkspacesGetResponse = Workspace; + +/** Optional parameters. */ +export interface WorkspacesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type WorkspacesCreateOrUpdateResponse = Workspace; + +/** 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. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface WorkspacesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13557,49 +13519,42 @@ export interface SchedulesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type SchedulesCreateOrUpdateResponse = Schedule; - -/** Optional parameters. */ -export interface SchedulesListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type SchedulesListNextResponse = ScheduleResourceArmPaginatedResult; +/** Contains response data for the update operation. */ +export type WorkspacesUpdateResponse = Workspace; /** Optional parameters. */ -export interface ServerlessEndpointsListOptionalParams +export interface WorkspacesListByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; } -/** Contains response data for the list operation. */ -export type ServerlessEndpointsListResponse = - ServerlessEndpointTrackedResourceArmPaginatedResult; +/** Contains response data for the listByResourceGroup operation. */ +export type WorkspacesListByResourceGroupResponse = WorkspaceListResult; /** Optional parameters. */ -export interface ServerlessEndpointsDeleteOptionalParams +export interface WorkspacesDiagnoseOptionalParams extends coreClient.OperationOptions { + /** The parameter of diagnosing workspace health */ + parameters?: DiagnoseWorkspaceParameters; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } -/** Contains response data for the delete operation. */ -export type ServerlessEndpointsDeleteResponse = - ServerlessEndpointsDeleteHeaders; +/** Contains response data for the diagnose operation. */ +export type WorkspacesDiagnoseResponse = DiagnoseResponseResult; /** Optional parameters. */ -export interface ServerlessEndpointsGetOptionalParams +export interface WorkspacesListKeysOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerlessEndpointsGetResponse = ServerlessEndpoint; +/** Contains response data for the listKeys operation. */ +export type WorkspacesListKeysResponse = ListWorkspaceKeysResult; /** Optional parameters. */ -export interface ServerlessEndpointsUpdateOptionalParams +export interface WorkspacesResyncKeysOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13607,30 +13562,26 @@ export interface ServerlessEndpointsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type ServerlessEndpointsUpdateResponse = ServerlessEndpoint; - /** Optional parameters. */ -export interface ServerlessEndpointsCreateOrUpdateOptionalParams +export interface WorkspacesListBySubscriptionOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Continuation token for pagination. */ + skip?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerlessEndpointsCreateOrUpdateResponse = ServerlessEndpoint; +/** Contains response data for the listBySubscription operation. */ +export type WorkspacesListBySubscriptionResponse = WorkspaceListResult; /** Optional parameters. */ -export interface ServerlessEndpointsListKeysOptionalParams +export interface WorkspacesListNotebookAccessTokenOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listKeys operation. */ -export type ServerlessEndpointsListKeysResponse = EndpointAuthKeys; +/** Contains response data for the listNotebookAccessToken operation. */ +export type WorkspacesListNotebookAccessTokenResponse = + NotebookAccessTokenResult; /** Optional parameters. */ -export interface ServerlessEndpointsRegenerateKeysOptionalParams +export interface WorkspacesPrepareNotebookOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13638,108 +13589,199 @@ export interface ServerlessEndpointsRegenerateKeysOptionalParams resumeFrom?: string; } -/** Contains response data for the regenerateKeys operation. */ -export type ServerlessEndpointsRegenerateKeysResponse = EndpointAuthKeys; +/** Contains response data for the prepareNotebook operation. */ +export type WorkspacesPrepareNotebookResponse = NotebookResourceInfo; /** Optional parameters. */ -export interface ServerlessEndpointsListNextOptionalParams +export interface WorkspacesListStorageAccountKeysOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ServerlessEndpointsListNextResponse = - ServerlessEndpointTrackedResourceArmPaginatedResult; +/** Contains response data for the listStorageAccountKeys operation. */ +export type WorkspacesListStorageAccountKeysResponse = + ListStorageAccountKeysResult; /** Optional parameters. */ -export interface RegistriesListBySubscriptionOptionalParams +export interface WorkspacesListNotebookKeysOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type RegistriesListBySubscriptionResponse = - RegistryTrackedResourceArmPaginatedResult; +/** Contains response data for the listNotebookKeys operation. */ +export type WorkspacesListNotebookKeysResponse = ListNotebookKeysResult; /** Optional parameters. */ -export interface RegistriesListOptionalParams +export interface WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type RegistriesListResponse = RegistryTrackedResourceArmPaginatedResult; +/** Contains response data for the listOutboundNetworkDependenciesEndpoints operation. */ +export type WorkspacesListOutboundNetworkDependenciesEndpointsResponse = + ExternalFqdnResponse; /** Optional parameters. */ -export interface RegistriesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface WorkspacesListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult; /** Optional parameters. */ -export interface RegistriesGetOptionalParams +export interface WorkspacesListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult; + +/** 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 RegistriesGetResponse = Registry; +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; /** Optional parameters. */ -export interface RegistriesUpdateOptionalParams +export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type RegistriesUpdateResponse = Registry; +/** Contains response data for the createOrUpdate operation. */ +export type PrivateEndpointConnectionsCreateOrUpdateResponse = + PrivateEndpointConnection; /** Optional parameters. */ -export interface RegistriesCreateOrUpdateOptionalParams +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 WorkspaceConnectionsUpdateOptionalParams 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; + /** Parameters for workspace connection update. */ + body?: WorkspaceConnectionUpdateParameter; } -/** Contains response data for the createOrUpdate operation. */ -export type RegistriesCreateOrUpdateResponse = Registry; +/** Contains response data for the update operation. */ +export type WorkspaceConnectionsUpdateResponse = + WorkspaceConnectionPropertiesV2BasicResource; /** Optional parameters. */ -export interface RegistriesRemoveRegionsOptionalParams +export interface WorkspaceConnectionsListOptionalParams 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; + /** Target of the workspace connection. */ + target?: string; + /** Category of the workspace connection. */ + category?: string; + /** query parameter that indicates if get connection call should return both connections and datastores */ + includeAll?: boolean; } -/** Contains response data for the removeRegions operation. */ -export type RegistriesRemoveRegionsResponse = Registry; +/** Contains response data for the list operation. */ +export type WorkspaceConnectionsListResponse = + WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult; /** Optional parameters. */ -export interface RegistriesListBySubscriptionNextOptionalParams +export interface WorkspaceConnectionsListSecretsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type RegistriesListBySubscriptionNextResponse = - RegistryTrackedResourceArmPaginatedResult; +/** Contains response data for the listSecrets operation. */ +export type WorkspaceConnectionsListSecretsResponse = + WorkspaceConnectionPropertiesV2BasicResource; /** Optional parameters. */ -export interface RegistriesListNextOptionalParams +export interface WorkspaceConnectionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type RegistriesListNextResponse = - RegistryTrackedResourceArmPaginatedResult; +export type WorkspaceConnectionsListNextResponse = + WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult; /** Optional parameters. */ -export interface WorkspaceFeaturesListOptionalParams +export interface ManagedNetworkSettingsRuleListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult; +export type ManagedNetworkSettingsRuleListResponse = OutboundRuleListResult; /** Optional parameters. */ -export interface WorkspaceFeaturesListNextOptionalParams +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 WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult; +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 AzureMachineLearningServicesManagementClientOptionalParams diff --git a/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts b/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts index f7208e80909a..18deec9e560c 100644 --- a/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts @@ -8,10 +8,10 @@ import * as coreClient from "@azure/core-client"; -export const OperationListResult: coreClient.CompositeMapper = { +export const ListUsagesResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationListResult", + className: "ListUsagesResult", modelProperties: { value: { serializedName: "value", @@ -21,7 +21,7 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation", + className: "Usage", }, }, }, @@ -37,78 +37,78 @@ export const OperationListResult: coreClient.CompositeMapper = { }, }; -export const Operation: coreClient.CompositeMapper = { +export const Usage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Operation", + className: "Usage", modelProperties: { - name: { - serializedName: "name", + id: { + serializedName: "id", readOnly: true, type: { name: "String", }, }, - isDataAction: { - serializedName: "isDataAction", + amlWorkspaceLocation: { + serializedName: "amlWorkspaceLocation", readOnly: true, type: { - name: "Boolean", + name: "String", }, }, - display: { - serializedName: "display", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Composite", - className: "OperationDisplay", + name: "String", }, }, - origin: { - serializedName: "origin", + unit: { + serializedName: "unit", readOnly: true, type: { name: "String", }, }, - actionType: { - serializedName: "actionType", + currentValue: { + serializedName: "currentValue", readOnly: true, type: { - name: "String", + name: "Number", }, }, - }, - }, -}; - -export const OperationDisplay: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { - serializedName: "provider", + limit: { + serializedName: "limit", readOnly: true, type: { - name: "String", + name: "Number", }, }, - resource: { - serializedName: "resource", - readOnly: true, + name: { + serializedName: "name", type: { - name: "String", + name: "Composite", + className: "UsageName", }, }, - operation: { - serializedName: "operation", + }, + }, +}; + +export const UsageName: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UsageName", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "String", }, }, - description: { - serializedName: "description", + localizedValue: { + serializedName: "localizedValue", readOnly: true, type: { name: "String", @@ -214,155 +214,110 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { }, }; -export const EncryptionProperty: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EncryptionProperty", - modelProperties: { - status: { - serializedName: "status", - required: true, - type: { - name: "String", - }, - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "IdentityForCmk", - }, - }, - keyVaultProperties: { - serializedName: "keyVaultProperties", - type: { - name: "Composite", - className: "EncryptionKeyVaultProperties", - }, - }, - }, - }, -}; - -export const IdentityForCmk: coreClient.CompositeMapper = { +export const VirtualMachineSizeListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IdentityForCmk", + className: "VirtualMachineSizeListResult", modelProperties: { - userAssignedIdentity: { - serializedName: "userAssignedIdentity", + value: { + serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineSize", + }, + }, }, }, }, }, }; -export const EncryptionKeyVaultProperties: coreClient.CompositeMapper = { +export const VirtualMachineSize: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionKeyVaultProperties", + className: "VirtualMachineSize", modelProperties: { - keyVaultArmId: { - serializedName: "keyVaultArmId", - required: true, + name: { + serializedName: "name", + readOnly: true, type: { name: "String", }, }, - keyIdentifier: { - serializedName: "keyIdentifier", - required: true, + family: { + serializedName: "family", + readOnly: true, type: { name: "String", }, }, - identityClientId: { - serializedName: "identityClientId", + vCPUs: { + serializedName: "vCPUs", + readOnly: true, type: { - name: "String", + name: "Number", }, }, - }, - }, -}; - -export const PrivateEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpoint", - modelProperties: { - id: { - serializedName: "id", + gpus: { + serializedName: "gpus", readOnly: true, type: { - name: "String", + name: "Number", }, }, - }, - }, -}; - -export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState", - modelProperties: { - status: { - serializedName: "status", + osVhdSizeMB: { + serializedName: "osVhdSizeMB", + readOnly: true, type: { - name: "String", + name: "Number", }, }, - description: { - serializedName: "description", + maxResourceVolumeMB: { + serializedName: "maxResourceVolumeMB", + readOnly: true, type: { - name: "String", + name: "Number", }, }, - actionsRequired: { - serializedName: "actionsRequired", + memoryGB: { + serializedName: "memoryGB", + readOnly: true, type: { - name: "String", + name: "Number", }, }, - }, - }, -}; - -export const ManagedServiceIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedServiceIdentity", - modelProperties: { - principalId: { - serializedName: "principalId", + lowPriorityCapable: { + serializedName: "lowPriorityCapable", readOnly: true, type: { - name: "Uuid", + name: "Boolean", }, }, - tenantId: { - serializedName: "tenantId", + premiumIO: { + serializedName: "premiumIO", readOnly: true, type: { - name: "Uuid", + name: "Boolean", }, }, - type: { - serializedName: "type", - required: true, + estimatedVMPrices: { + serializedName: "estimatedVMPrices", type: { - name: "String", + name: "Composite", + className: "EstimatedVMPrices", }, }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + supportedComputeTypes: { + serializedName: "supportedComputeTypes", type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "UserAssignedIdentity" }, + name: "Sequence", + element: { + type: { + name: "String", + }, }, }, }, @@ -370,204 +325,275 @@ export const ManagedServiceIdentity: coreClient.CompositeMapper = { }, }; -export const UserAssignedIdentity: coreClient.CompositeMapper = { +export const EstimatedVMPrices: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserAssignedIdentity", + className: "EstimatedVMPrices", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + billingCurrency: { + serializedName: "billingCurrency", + required: true, type: { - name: "Uuid", + name: "String", }, }, - clientId: { - serializedName: "clientId", - readOnly: true, + unitOfMeasure: { + serializedName: "unitOfMeasure", + required: true, type: { - name: "Uuid", + name: "String", }, }, - }, - }, -}; + values: { + serializedName: "values", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EstimatedVMPrice", + }, + }, + }, + }, + }, + }, +}; -export const Sku: coreClient.CompositeMapper = { +export const EstimatedVMPrice: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Sku", + className: "EstimatedVMPrice", modelProperties: { - name: { - serializedName: "name", + retailPrice: { + serializedName: "retailPrice", required: true, type: { - name: "String", + name: "Number", }, }, - tier: { - serializedName: "tier", + osType: { + serializedName: "osType", + required: true, type: { - name: "Enum", - allowedValues: ["Free", "Basic", "Standard", "Premium"], + name: "String", }, }, - size: { - serializedName: "size", + vmTier: { + serializedName: "vmTier", + required: true, type: { name: "String", }, }, - family: { - serializedName: "family", + }, + }, +}; + +export const QuotaUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QuotaUpdateParameters", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QuotaBaseProperties", + }, + }, }, }, - capacity: { - serializedName: "capacity", + location: { + serializedName: "location", type: { - name: "Number", + name: "String", }, }, }, }, }; -export const Resource: coreClient.CompositeMapper = { +export const QuotaBaseProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Resource", + className: "QuotaBaseProperties", modelProperties: { id: { serializedName: "id", - readOnly: true, type: { name: "String", }, }, - name: { - serializedName: "name", - readOnly: true, + type: { + serializedName: "type", type: { name: "String", }, }, - type: { - serializedName: "type", - readOnly: true, + limit: { + serializedName: "limit", type: { - name: "String", + name: "Number", }, }, - systemData: { - serializedName: "systemData", + unit: { + serializedName: "unit", type: { - name: "Composite", - className: "SystemData", + name: "String", }, }, }, }, }; -export const SystemData: coreClient.CompositeMapper = { +export const UpdateWorkspaceQuotasResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemData", + className: "UpdateWorkspaceQuotasResult", modelProperties: { - createdBy: { - serializedName: "createdBy", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpdateWorkspaceQuotas", + }, + }, }, }, - createdByType: { - serializedName: "createdByType", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String", }, }, - createdAt: { - serializedName: "createdAt", + }, + }, +}; + +export const UpdateWorkspaceQuotas: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateWorkspaceQuotas", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, type: { - name: "DateTime", + name: "String", }, }, - lastModifiedBy: { - serializedName: "lastModifiedBy", + type: { + serializedName: "type", + readOnly: true, type: { name: "String", }, }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + limit: { + serializedName: "limit", + type: { + name: "Number", + }, + }, + unit: { + serializedName: "unit", + readOnly: true, type: { name: "String", }, }, - lastModifiedAt: { - serializedName: "lastModifiedAt", + status: { + serializedName: "status", type: { - name: "DateTime", + name: "String", }, }, }, }, }; -export const ServerlessComputeSettings: coreClient.CompositeMapper = { +export const ListWorkspaceQuotas: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerlessComputeSettings", + className: "ListWorkspaceQuotas", modelProperties: { - serverlessComputeCustomSubnet: { - serializedName: "serverlessComputeCustomSubnet", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceQuota", + }, + }, }, }, - serverlessComputeNoPublicIP: { - serializedName: "serverlessComputeNoPublicIP", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Boolean", + name: "String", }, }, }, }, }; -export const SharedPrivateLinkResource: coreClient.CompositeMapper = { +export const ResourceQuota: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedPrivateLinkResource", + className: "ResourceQuota", modelProperties: { - name: { - serializedName: "name", + id: { + serializedName: "id", + readOnly: true, type: { name: "String", }, }, - privateLinkResourceId: { - serializedName: "properties.privateLinkResourceId", + amlWorkspaceLocation: { + serializedName: "amlWorkspaceLocation", + readOnly: true, type: { name: "String", }, }, - groupId: { - serializedName: "properties.groupId", + type: { + serializedName: "type", + readOnly: true, type: { name: "String", }, }, - requestMessage: { - serializedName: "properties.requestMessage", + name: { + serializedName: "name", type: { - name: "String", + name: "Composite", + className: "ResourceName", }, }, - status: { - serializedName: "properties.status", + limit: { + serializedName: "limit", + readOnly: true, + type: { + name: "Number", + }, + }, + unit: { + serializedName: "unit", + readOnly: true, type: { name: "String", }, @@ -576,420 +602,428 @@ export const SharedPrivateLinkResource: coreClient.CompositeMapper = { }, }; -export const NotebookResourceInfo: coreClient.CompositeMapper = { +export const ResourceName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotebookResourceInfo", + className: "ResourceName", modelProperties: { - fqdn: { - serializedName: "fqdn", + value: { + serializedName: "value", + readOnly: true, type: { name: "String", }, }, - resourceId: { - serializedName: "resourceId", + localizedValue: { + serializedName: "localizedValue", + readOnly: true, type: { name: "String", }, }, - notebookPreparationError: { - serializedName: "notebookPreparationError", - type: { - name: "Composite", - className: "NotebookPreparationError", - }, - }, }, }, }; -export const NotebookPreparationError: coreClient.CompositeMapper = { +export const PaginatedComputeResourcesList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotebookPreparationError", + className: "PaginatedComputeResourcesList", modelProperties: { - errorMessage: { - serializedName: "errorMessage", + value: { + serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeResource", + }, + }, }, }, - statusCode: { - serializedName: "statusCode", + nextLink: { + serializedName: "nextLink", type: { - name: "Number", + name: "String", }, }, }, }, }; -export const ServiceManagedResourcesSettings: coreClient.CompositeMapper = { +export const ManagedServiceIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceManagedResourcesSettings", + className: "ManagedServiceIdentity", modelProperties: { - cosmosDb: { - serializedName: "cosmosDb", + principalId: { + serializedName: "principalId", + readOnly: true, type: { - name: "Composite", - className: "CosmosDbSettings", + name: "Uuid", + }, + }, + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "Uuid", + }, + }, + type: { + serializedName: "type", + required: true, + type: { + name: "String", + }, + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "UserAssignedIdentity" }, + }, }, }, }, }, }; -export const CosmosDbSettings: coreClient.CompositeMapper = { +export const UserAssignedIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CosmosDbSettings", + className: "UserAssignedIdentity", modelProperties: { - collectionsThroughput: { - serializedName: "collectionsThroughput", + principalId: { + serializedName: "principalId", + readOnly: true, type: { - name: "Number", + name: "Uuid", + }, + }, + clientId: { + serializedName: "clientId", + readOnly: true, + type: { + name: "Uuid", }, }, }, }, }; -export const ManagedNetworkSettings: coreClient.CompositeMapper = { +export const Sku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedNetworkSettings", + className: "Sku", modelProperties: { - isolationMode: { - serializedName: "isolationMode", + name: { + serializedName: "name", + required: true, type: { name: "String", }, }, - networkId: { - serializedName: "networkId", - readOnly: true, + tier: { + serializedName: "tier", + type: { + name: "Enum", + allowedValues: ["Free", "Basic", "Standard", "Premium"], + }, + }, + size: { + serializedName: "size", type: { name: "String", }, }, - outboundRules: { - serializedName: "outboundRules", - nullable: true, + family: { + serializedName: "family", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "OutboundRule" } }, + name: "String", }, }, - status: { - serializedName: "status", + capacity: { + serializedName: "capacity", type: { - name: "Composite", - className: "ManagedNetworkProvisionStatus", + name: "Number", }, }, }, }, }; -export const OutboundRule: coreClient.CompositeMapper = { +export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutboundRule", - uberParent: "OutboundRule", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type", - }, + className: "Resource", modelProperties: { - category: { - serializedName: "category", + id: { + serializedName: "id", + readOnly: true, type: { name: "String", }, }, - status: { - serializedName: "status", + name: { + serializedName: "name", + readOnly: true, type: { name: "String", }, }, type: { serializedName: "type", - required: true, + readOnly: true, type: { name: "String", }, }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, }, }, }; -export const ManagedNetworkProvisionStatus: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedNetworkProvisionStatus", + className: "SystemData", modelProperties: { - sparkReady: { - serializedName: "sparkReady", + createdBy: { + serializedName: "createdBy", type: { - name: "Boolean", + name: "String", }, }, - status: { - serializedName: "status", + createdByType: { + serializedName: "createdByType", type: { name: "String", }, }, - }, - }, -}; - -export const FeatureStoreSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FeatureStoreSettings", - modelProperties: { - computeRuntime: { - serializedName: "computeRuntime", + createdAt: { + serializedName: "createdAt", type: { - name: "Composite", - className: "ComputeRuntimeDto", + name: "DateTime", }, }, - offlineStoreConnectionName: { - serializedName: "offlineStoreConnectionName", + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String", }, }, - onlineStoreConnectionName: { - serializedName: "onlineStoreConnectionName", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String", }, }, - }, - }, -}; - -export const ComputeRuntimeDto: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeRuntimeDto", - modelProperties: { - sparkRuntimeVersion: { - serializedName: "sparkRuntimeVersion", + lastModifiedAt: { + serializedName: "lastModifiedAt", type: { - name: "String", + name: "DateTime", }, }, }, }, }; -export const WorkspaceHubConfig: coreClient.CompositeMapper = { +export const ComputeResourceSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceHubConfig", + className: "ComputeResourceSchema", modelProperties: { - additionalWorkspaceStorageAccounts: { - serializedName: "additionalWorkspaceStorageAccounts", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - defaultWorkspaceResourceGroup: { - serializedName: "defaultWorkspaceResourceGroup", + properties: { + serializedName: "properties", type: { - name: "String", + name: "Composite", + className: "Compute", }, }, }, }, }; -export const WorkspaceUpdateParameters: coreClient.CompositeMapper = { +export const Compute: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceUpdateParameters", + className: "Compute", + uberParent: "Compute", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType", + }, modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - sku: { - serializedName: "sku", + computeType: { + serializedName: "computeType", + required: true, type: { - name: "Composite", - className: "Sku", + name: "String", }, }, - identity: { - serializedName: "identity", + computeLocation: { + serializedName: "computeLocation", type: { - name: "Composite", - className: "ManagedServiceIdentity", + name: "String", }, }, - description: { - serializedName: "properties.description", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String", }, }, - friendlyName: { - serializedName: "properties.friendlyName", + description: { + serializedName: "description", + nullable: true, type: { name: "String", }, }, - imageBuildCompute: { - serializedName: "properties.imageBuildCompute", + createdOn: { + serializedName: "createdOn", + readOnly: true, type: { - name: "String", + name: "DateTime", }, }, - serviceManagedResourcesSettings: { - serializedName: "properties.serviceManagedResourcesSettings", + modifiedOn: { + serializedName: "modifiedOn", + readOnly: true, type: { - name: "Composite", - className: "ServiceManagedResourcesSettings", + name: "DateTime", }, }, - primaryUserAssignedIdentity: { - serializedName: "properties.primaryUserAssignedIdentity", + resourceId: { + serializedName: "resourceId", + nullable: true, type: { name: "String", }, }, - serverlessComputeSettings: { - serializedName: "properties.serverlessComputeSettings", - type: { - name: "Composite", - className: "ServerlessComputeSettings", - }, - }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - type: { - name: "String", - }, - }, - applicationInsights: { - serializedName: "properties.applicationInsights", - type: { - name: "String", - }, - }, - containerRegistry: { - serializedName: "properties.containerRegistry", - type: { - name: "String", - }, - }, - featureStoreSettings: { - serializedName: "properties.featureStoreSettings", - type: { - name: "Composite", - className: "FeatureStoreSettings", - }, - }, - managedNetwork: { - serializedName: "properties.managedNetwork", + provisioningErrors: { + serializedName: "provisioningErrors", + readOnly: true, + nullable: true, type: { - name: "Composite", - className: "ManagedNetworkSettings", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponse", + }, + }, }, }, - enableDataIsolation: { - serializedName: "properties.enableDataIsolation", + isAttachedCompute: { + serializedName: "isAttachedCompute", + readOnly: true, type: { name: "Boolean", }, }, - v1LegacyMode: { - serializedName: "properties.v1LegacyMode", + disableLocalAuth: { + serializedName: "disableLocalAuth", type: { name: "Boolean", }, }, - encryption: { - serializedName: "properties.encryption", + }, + }, +}; + +export const ClusterUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterUpdateParameters", + modelProperties: { + properties: { + serializedName: "properties.properties", type: { name: "Composite", - className: "EncryptionUpdateProperties", + className: "ScaleSettingsInformation", }, }, }, }, }; -export const EncryptionUpdateProperties: coreClient.CompositeMapper = { +export const ScaleSettingsInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionUpdateProperties", + className: "ScaleSettingsInformation", modelProperties: { - keyVaultProperties: { - serializedName: "keyVaultProperties", + scaleSettings: { + serializedName: "scaleSettings", type: { name: "Composite", - className: "EncryptionKeyVaultUpdateProperties", + className: "ScaleSettings", }, }, }, }, }; -export const EncryptionKeyVaultUpdateProperties: coreClient.CompositeMapper = { +export const ScaleSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionKeyVaultUpdateProperties", + className: "ScaleSettings", modelProperties: { - keyIdentifier: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]"), - MinLength: 1, - }, - serializedName: "keyIdentifier", + maxNodeCount: { + serializedName: "maxNodeCount", required: true, type: { - name: "String", + name: "Number", + }, + }, + minNodeCount: { + defaultValue: 0, + serializedName: "minNodeCount", + type: { + name: "Number", + }, + }, + nodeIdleTimeBeforeScaleDown: { + serializedName: "nodeIdleTimeBeforeScaleDown", + type: { + name: "TimeSpan", }, }, }, }, }; -export const WorkspaceListResult: coreClient.CompositeMapper = { +export const AmlComputeNodesInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceListResult", + className: "AmlComputeNodesInformation", modelProperties: { - value: { - serializedName: "value", + nodes: { + serializedName: "nodes", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Workspace", + className: "AmlComputeNodeInformation", }, }, }, }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -998,267 +1032,183 @@ export const WorkspaceListResult: coreClient.CompositeMapper = { }, }; -export const DiagnoseWorkspaceParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiagnoseWorkspaceParameters", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Composite", - className: "DiagnoseRequestProperties", - }, - }, - }, - }, -}; - -export const DiagnoseRequestProperties: coreClient.CompositeMapper = { +export const AmlComputeNodeInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiagnoseRequestProperties", + className: "AmlComputeNodeInformation", modelProperties: { - udr: { - serializedName: "udr", - type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } }, - }, - }, - }, - nsg: { - serializedName: "nsg", - type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } }, - }, - }, - }, - resourceLock: { - serializedName: "resourceLock", - type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } }, - }, - }, - }, - dnsResolution: { - serializedName: "dnsResolution", + nodeId: { + serializedName: "nodeId", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } }, - }, + name: "String", }, }, - storageAccount: { - serializedName: "storageAccount", + privateIpAddress: { + serializedName: "privateIpAddress", + readOnly: true, + nullable: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } }, - }, + name: "String", }, }, - keyVault: { - serializedName: "keyVault", + publicIpAddress: { + serializedName: "publicIpAddress", + readOnly: true, + nullable: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } }, - }, + name: "String", }, }, - containerRegistry: { - serializedName: "containerRegistry", + port: { + serializedName: "port", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } }, - }, + name: "Number", }, }, - applicationInsights: { - serializedName: "applicationInsights", + nodeState: { + serializedName: "nodeState", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } }, - }, + name: "String", }, }, - others: { - serializedName: "others", + runId: { + serializedName: "runId", + readOnly: true, + nullable: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } }, - }, + name: "String", }, }, }, }, }; -export const DiagnoseResponseResult: coreClient.CompositeMapper = { +export const ComputeSecrets: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiagnoseResponseResult", + className: "ComputeSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType", + }, modelProperties: { - value: { - serializedName: "value", + computeType: { + serializedName: "computeType", + required: true, type: { - name: "Composite", - className: "DiagnoseResponseResultValue", + name: "String", }, }, }, }, }; -export const DiagnoseResponseResultValue: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiagnoseResponseResultValue", - modelProperties: { - userDefinedRouteResults: { - serializedName: "userDefinedRouteResults", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult", - }, - }, - }, - }, - networkSecurityRuleResults: { - serializedName: "networkSecurityRuleResults", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult", - }, - }, - }, - }, - resourceLockResults: { - serializedName: "resourceLockResults", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult", - }, +export const CodeContainerResourceArmPaginatedResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CodeContainerResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", }, }, - }, - dnsResolutionResults: { - serializedName: "dnsResolutionResults", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult", + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CodeContainer", + }, }, }, }, }, - storageAccountResults: { - serializedName: "storageAccountResults", + }, + }; + +export const ResourceBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceBase", + modelProperties: { + description: { + serializedName: "description", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult", - }, - }, + name: "String", }, }, - keyVaultResults: { - serializedName: "keyVaultResults", + properties: { + serializedName: "properties", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult", - }, - }, + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - containerRegistryResults: { - serializedName: "containerRegistryResults", + tags: { + serializedName: "tags", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult", - }, - }, + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - applicationInsightsResults: { - serializedName: "applicationInsightsResults", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult", - }, + }, + }, +}; + +export const CodeVersionResourceArmPaginatedResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CodeVersionResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", }, }, - }, - otherResults: { - serializedName: "otherResults", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult", + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CodeVersion", + }, }, }, }, }, }, - }, -}; + }; -export const DiagnoseResult: coreClient.CompositeMapper = { +export const PendingUploadRequestDto: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiagnoseResult", + className: "PendingUploadRequestDto", modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String", - }, - }, - level: { - serializedName: "level", - readOnly: true, + pendingUploadId: { + serializedName: "pendingUploadId", + nullable: true, type: { name: "String", }, }, - message: { - serializedName: "message", - readOnly: true, + pendingUploadType: { + serializedName: "pendingUploadType", type: { name: "String", }, @@ -1267,100 +1217,78 @@ export const DiagnoseResult: coreClient.CompositeMapper = { }, }; -export const ListWorkspaceKeysResult: coreClient.CompositeMapper = { +export const PendingUploadResponseDto: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListWorkspaceKeysResult", + className: "PendingUploadResponseDto", modelProperties: { - userStorageKey: { - serializedName: "userStorageKey", - readOnly: true, + blobReferenceForConsumption: { + serializedName: "blobReferenceForConsumption", type: { - name: "String", + name: "Composite", + className: "BlobReferenceForConsumptionDto", }, }, - userStorageResourceId: { - serializedName: "userStorageResourceId", - readOnly: true, + pendingUploadId: { + serializedName: "pendingUploadId", + nullable: true, type: { name: "String", }, }, - appInsightsInstrumentationKey: { - serializedName: "appInsightsInstrumentationKey", - readOnly: true, + pendingUploadType: { + serializedName: "pendingUploadType", type: { name: "String", }, }, - containerRegistryCredentials: { - serializedName: "containerRegistryCredentials", - type: { - name: "Composite", - className: "RegistryListCredentialsResult", - }, - }, - notebookAccessKeys: { - serializedName: "notebookAccessKeys", - type: { - name: "Composite", - className: "ListNotebookKeysResult", - }, - }, }, }, }; -export const RegistryListCredentialsResult: coreClient.CompositeMapper = { +export const BlobReferenceForConsumptionDto: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegistryListCredentialsResult", + className: "BlobReferenceForConsumptionDto", modelProperties: { - location: { - serializedName: "location", - readOnly: true, + blobUri: { + serializedName: "blobUri", + nullable: true, type: { name: "String", }, }, - username: { - serializedName: "username", - readOnly: true, + credential: { + serializedName: "credential", type: { - name: "String", + name: "Composite", + className: "PendingUploadCredentialDto", }, }, - passwords: { - serializedName: "passwords", + storageAccountArmId: { + serializedName: "storageAccountArmId", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Password", - }, - }, + name: "String", }, }, }, }, }; -export const Password: coreClient.CompositeMapper = { +export const PendingUploadCredentialDto: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Password", + className: "PendingUploadCredentialDto", + uberParent: "PendingUploadCredentialDto", + polymorphicDiscriminator: { + serializedName: "credentialType", + clientName: "credentialType", + }, modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", - }, - }, - value: { - serializedName: "value", - readOnly: true, + credentialType: { + serializedName: "credentialType", + required: true, type: { name: "String", }, @@ -1369,131 +1297,179 @@ export const Password: coreClient.CompositeMapper = { }, }; -export const ListNotebookKeysResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ListNotebookKeysResult", - modelProperties: { - primaryAccessKey: { - serializedName: "primaryAccessKey", - readOnly: true, - type: { - name: "String", +export const ComponentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ComponentContainerResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComponentContainer", + }, + }, + }, }, }, - secondaryAccessKey: { - serializedName: "secondaryAccessKey", - readOnly: true, - type: { - name: "String", + }, + }; + +export const ComponentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ComponentVersionResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComponentVersion", + }, + }, + }, }, }, }, - }, -}; + }; -export const ListUsagesResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ListUsagesResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Usage", +export const DataContainerResourceArmPaginatedResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DataContainerResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataContainer", + }, }, }, }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", + }, + }; + +export const DataVersionBaseResourceArmPaginatedResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DataVersionBaseResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataVersionBase", + }, + }, + }, }, }, }, - }, -}; + }; -export const Usage: coreClient.CompositeMapper = { +export const GetBlobReferenceSASRequestDto: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Usage", + className: "GetBlobReferenceSASRequestDto", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String", - }, - }, - amlWorkspaceLocation: { - serializedName: "amlWorkspaceLocation", - readOnly: true, - type: { - name: "String", - }, - }, - type: { - serializedName: "type", - readOnly: true, + assetId: { + serializedName: "assetId", + nullable: true, type: { name: "String", }, }, - unit: { - serializedName: "unit", - readOnly: true, + blobUri: { + serializedName: "blobUri", + nullable: true, type: { name: "String", }, }, - currentValue: { - serializedName: "currentValue", - readOnly: true, - type: { - name: "Number", - }, - }, - limit: { - serializedName: "limit", - readOnly: true, - type: { - name: "Number", - }, - }, - name: { - serializedName: "name", + }, + }, +}; + +export const GetBlobReferenceSASResponseDto: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GetBlobReferenceSASResponseDto", + modelProperties: { + blobReferenceForConsumption: { + serializedName: "blobReferenceForConsumption", type: { name: "Composite", - className: "UsageName", + className: "GetBlobReferenceForConsumptionDto", }, }, }, }, }; -export const UsageName: coreClient.CompositeMapper = { +export const GetBlobReferenceForConsumptionDto: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsageName", + className: "GetBlobReferenceForConsumptionDto", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + blobUri: { + serializedName: "blobUri", + nullable: true, type: { name: "String", }, }, - localizedValue: { - serializedName: "localizedValue", - readOnly: true, + credential: { + serializedName: "credential", + type: { + name: "Composite", + className: "DataReferenceCredential", + }, + }, + storageAccountArmId: { + serializedName: "storageAccountArmId", + nullable: true, type: { name: "String", }, @@ -1502,175 +1478,102 @@ export const UsageName: coreClient.CompositeMapper = { }, }; -export const VirtualMachineSizeListResult: coreClient.CompositeMapper = { +export const DataReferenceCredential: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSizeListResult", + className: "DataReferenceCredential", + uberParent: "DataReferenceCredential", + polymorphicDiscriminator: { + serializedName: "credentialType", + clientName: "credentialType", + }, modelProperties: { - value: { - serializedName: "value", + credentialType: { + serializedName: "credentialType", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineSize", - }, - }, + name: "String", }, }, }, }, }; -export const VirtualMachineSize: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineSize", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", - }, - }, - family: { - serializedName: "family", - readOnly: true, - type: { - name: "String", - }, - }, - vCPUs: { - serializedName: "vCPUs", - readOnly: true, - type: { - name: "Number", - }, - }, - gpus: { - serializedName: "gpus", - readOnly: true, - type: { - name: "Number", - }, - }, - osVhdSizeMB: { - serializedName: "osVhdSizeMB", - readOnly: true, - type: { - name: "Number", - }, - }, - maxResourceVolumeMB: { - serializedName: "maxResourceVolumeMB", - readOnly: true, - type: { - name: "Number", - }, - }, - memoryGB: { - serializedName: "memoryGB", - readOnly: true, - type: { - name: "Number", - }, - }, - lowPriorityCapable: { - serializedName: "lowPriorityCapable", - readOnly: true, - type: { - name: "Boolean", - }, - }, - premiumIO: { - serializedName: "premiumIO", - readOnly: true, - type: { - name: "Boolean", - }, - }, - estimatedVMPrices: { - serializedName: "estimatedVMPrices", - type: { - name: "Composite", - className: "EstimatedVMPrices", +export const EnvironmentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "EnvironmentContainerResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, }, - }, - supportedComputeTypes: { - serializedName: "supportedComputeTypes", - type: { - name: "Sequence", - element: { - type: { - name: "String", + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentContainer", + }, }, }, }, }, }, - }, -}; + }; -export const EstimatedVMPrices: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EstimatedVMPrices", - modelProperties: { - billingCurrency: { - serializedName: "billingCurrency", - required: true, - type: { - name: "String", - }, - }, - unitOfMeasure: { - serializedName: "unitOfMeasure", - required: true, - type: { - name: "String", +export const EnvironmentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "EnvironmentVersionResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, }, - }, - values: { - serializedName: "values", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EstimatedVMPrice", + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentVersion", + }, }, }, }, }, }, - }, -}; + }; -export const EstimatedVMPrice: coreClient.CompositeMapper = { +export const BuildContext: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EstimatedVMPrice", + className: "BuildContext", modelProperties: { - retailPrice: { - serializedName: "retailPrice", - required: true, - type: { - name: "Number", + contextUri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1, }, - }, - osType: { - serializedName: "osType", + serializedName: "contextUri", required: true, type: { name: "String", }, }, - vmTier: { - serializedName: "vmTier", - required: true, + dockerfilePath: { + defaultValue: "Dockerfile", + serializedName: "dockerfilePath", type: { name: "String", }, @@ -1679,158 +1582,172 @@ export const EstimatedVMPrice: coreClient.CompositeMapper = { }, }; -export const QuotaUpdateParameters: coreClient.CompositeMapper = { +export const InferenceContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QuotaUpdateParameters", + className: "InferenceContainerProperties", modelProperties: { - value: { - serializedName: "value", + livenessRoute: { + serializedName: "livenessRoute", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "QuotaBaseProperties", - }, - }, + name: "Composite", + className: "Route", }, }, - location: { - serializedName: "location", + readinessRoute: { + serializedName: "readinessRoute", type: { - name: "String", + name: "Composite", + className: "Route", + }, + }, + scoringRoute: { + serializedName: "scoringRoute", + type: { + name: "Composite", + className: "Route", }, }, }, }, }; -export const QuotaBaseProperties: coreClient.CompositeMapper = { +export const Route: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QuotaBaseProperties", + className: "Route", modelProperties: { - id: { - serializedName: "id", - type: { - name: "String", + path: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1, }, - }, - type: { - serializedName: "type", + serializedName: "path", + required: true, type: { name: "String", }, }, - limit: { - serializedName: "limit", + port: { + serializedName: "port", + required: true, type: { name: "Number", }, }, - unit: { - serializedName: "unit", - type: { - name: "String", - }, - }, }, }, }; -export const UpdateWorkspaceQuotasResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpdateWorkspaceQuotasResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UpdateWorkspaceQuotas", - }, +export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ModelContainerResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", }, }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const UpdateWorkspaceQuotas: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpdateWorkspaceQuotas", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String", - }, - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String", + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ModelContainer", + }, + }, + }, }, }, - limit: { - serializedName: "limit", - type: { - name: "Number", + }, + }; + +export const ModelVersionResourceArmPaginatedResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ModelVersionResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, }, - }, - unit: { - serializedName: "unit", - readOnly: true, - type: { - name: "String", + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ModelVersion", + }, + }, + }, }, }, - status: { - serializedName: "status", + }, + }; + +export const FlavorData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FlavorData", + modelProperties: { + data: { + serializedName: "data", + nullable: true, type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, }, }, }; -export const ListWorkspaceQuotas: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ListWorkspaceQuotas", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceQuota", +export const BatchEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BatchEndpointTrackedResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BatchEndpoint", + }, }, }, }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + }, + }; + +export const BatchEndpointDefaults: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchEndpointDefaults", + modelProperties: { + deploymentName: { + serializedName: "deploymentName", + nullable: true, type: { name: "String", }, @@ -1839,49 +1756,52 @@ export const ListWorkspaceQuotas: coreClient.CompositeMapper = { }, }; -export const ResourceQuota: coreClient.CompositeMapper = { +export const EndpointPropertiesBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceQuota", + className: "EndpointPropertiesBase", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + authMode: { + serializedName: "authMode", + required: true, type: { name: "String", }, }, - amlWorkspaceLocation: { - serializedName: "amlWorkspaceLocation", - readOnly: true, + description: { + serializedName: "description", + nullable: true, type: { name: "String", }, }, - type: { - serializedName: "type", - readOnly: true, + keys: { + serializedName: "keys", type: { - name: "String", + name: "Composite", + className: "EndpointAuthKeys", }, }, - name: { - serializedName: "name", + properties: { + serializedName: "properties", + nullable: true, type: { - name: "Composite", - className: "ResourceName", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - limit: { - serializedName: "limit", + scoringUri: { + serializedName: "scoringUri", readOnly: true, + nullable: true, type: { - name: "Number", + name: "String", }, }, - unit: { - serializedName: "unit", + swaggerUri: { + serializedName: "swaggerUri", readOnly: true, + nullable: true, type: { name: "String", }, @@ -1890,21 +1810,21 @@ export const ResourceQuota: coreClient.CompositeMapper = { }, }; -export const ResourceName: coreClient.CompositeMapper = { +export const EndpointAuthKeys: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceName", + className: "EndpointAuthKeys", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + primaryKey: { + serializedName: "primaryKey", + nullable: true, type: { name: "String", }, }, - localizedValue: { - serializedName: "localizedValue", - readOnly: true, + secondaryKey: { + serializedName: "secondaryKey", + nullable: true, type: { name: "String", }, @@ -1913,360 +1833,278 @@ export const ResourceName: coreClient.CompositeMapper = { }, }; -export const PaginatedComputeResourcesList: coreClient.CompositeMapper = { +export const PartialManagedServiceIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PaginatedComputeResourcesList", + className: "PartialManagedServiceIdentity", modelProperties: { - value: { - serializedName: "value", + type: { + serializedName: "type", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeResource", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "String", + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, }, }, }, }, }; -export const ComputeResourceSchema: coreClient.CompositeMapper = { +export const PartialMinimalTrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeResourceSchema", + className: "PartialMinimalTrackedResource", modelProperties: { - properties: { - serializedName: "properties", + tags: { + serializedName: "tags", type: { - name: "Composite", - className: "Compute", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, }, }, }; -export const Compute: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Compute", - uberParent: "Compute", - polymorphicDiscriminator: { - serializedName: "computeType", - clientName: "computeType", - }, - modelProperties: { - computeType: { - serializedName: "computeType", - required: true, - type: { - name: "String", +export const BatchDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BatchDeploymentTrackedResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, }, - }, - computeLocation: { - serializedName: "computeLocation", - type: { - name: "String", - }, - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - description: { - serializedName: "description", - nullable: true, - type: { - name: "String", - }, - }, - createdOn: { - serializedName: "createdOn", - readOnly: true, - type: { - name: "DateTime", - }, - }, - modifiedOn: { - serializedName: "modifiedOn", - readOnly: true, - type: { - name: "DateTime", - }, - }, - resourceId: { - serializedName: "resourceId", - nullable: true, - type: { - name: "String", - }, - }, - provisioningErrors: { - serializedName: "provisioningErrors", - readOnly: true, - nullable: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorResponse", + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BatchDeployment", + }, }, }, }, }, - isAttachedCompute: { - serializedName: "isAttachedCompute", - readOnly: true, - type: { - name: "Boolean", - }, - }, - disableLocalAuth: { - serializedName: "disableLocalAuth", - type: { - name: "Boolean", - }, - }, }, - }, -}; + }; -export const ClusterUpdateParameters: coreClient.CompositeMapper = { +export const BatchDeploymentConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterUpdateParameters", + className: "BatchDeploymentConfiguration", + uberParent: "BatchDeploymentConfiguration", + polymorphicDiscriminator: { + serializedName: "deploymentConfigurationType", + clientName: "deploymentConfigurationType", + }, modelProperties: { - properties: { - serializedName: "properties.properties", + deploymentConfigurationType: { + serializedName: "deploymentConfigurationType", + required: true, type: { - name: "Composite", - className: "ScaleSettingsInformation", + name: "String", }, }, }, }, }; -export const ScaleSettingsInformation: coreClient.CompositeMapper = { +export const AssetReferenceBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScaleSettingsInformation", + className: "AssetReferenceBase", + uberParent: "AssetReferenceBase", + polymorphicDiscriminator: { + serializedName: "referenceType", + clientName: "referenceType", + }, modelProperties: { - scaleSettings: { - serializedName: "scaleSettings", + referenceType: { + serializedName: "referenceType", + required: true, type: { - name: "Composite", - className: "ScaleSettings", + name: "String", }, }, }, }, }; -export const ScaleSettings: coreClient.CompositeMapper = { +export const ResourceConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScaleSettings", + className: "ResourceConfiguration", modelProperties: { - maxNodeCount: { - serializedName: "maxNodeCount", - required: true, + instanceCount: { + defaultValue: 1, + serializedName: "instanceCount", type: { name: "Number", }, }, - minNodeCount: { - defaultValue: 0, - serializedName: "minNodeCount", + instanceType: { + serializedName: "instanceType", + nullable: true, type: { - name: "Number", + name: "String", }, }, - nodeIdleTimeBeforeScaleDown: { - serializedName: "nodeIdleTimeBeforeScaleDown", + properties: { + serializedName: "properties", + nullable: true, type: { - name: "TimeSpan", + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, }, }, }, }, }; -export const AmlComputeNodesInformation: coreClient.CompositeMapper = { +export const BatchRetrySettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeNodesInformation", + className: "BatchRetrySettings", modelProperties: { - nodes: { - serializedName: "nodes", - readOnly: true, + maxRetries: { + defaultValue: 3, + serializedName: "maxRetries", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AmlComputeNodeInformation", - }, - }, + name: "Number", }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + timeout: { + defaultValue: "PT30S", + serializedName: "timeout", type: { - name: "String", + name: "TimeSpan", }, }, }, }, }; -export const AmlComputeNodeInformation: coreClient.CompositeMapper = { +export const EndpointDeploymentPropertiesBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeNodeInformation", + className: "EndpointDeploymentPropertiesBase", modelProperties: { - nodeId: { - serializedName: "nodeId", - readOnly: true, + codeConfiguration: { + serializedName: "codeConfiguration", type: { - name: "String", + name: "Composite", + className: "CodeConfiguration", }, }, - privateIpAddress: { - serializedName: "privateIpAddress", - readOnly: true, + description: { + serializedName: "description", nullable: true, type: { name: "String", }, }, - publicIpAddress: { - serializedName: "publicIpAddress", - readOnly: true, + environmentId: { + serializedName: "environmentId", nullable: true, type: { name: "String", }, }, - port: { - serializedName: "port", - readOnly: true, - type: { - name: "Number", - }, - }, - nodeState: { - serializedName: "nodeState", - readOnly: true, + environmentVariables: { + serializedName: "environmentVariables", + nullable: true, type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - runId: { - serializedName: "runId", - readOnly: true, + properties: { + serializedName: "properties", nullable: true, type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, }, }, }; -export const NotebookAccessTokenResult: coreClient.CompositeMapper = { +export const CodeConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotebookAccessTokenResult", + className: "CodeConfiguration", modelProperties: { - notebookResourceId: { - serializedName: "notebookResourceId", - readOnly: true, - type: { - name: "String", - }, - }, - hostName: { - serializedName: "hostName", - readOnly: true, - type: { - name: "String", - }, - }, - publicDns: { - serializedName: "publicDns", - readOnly: true, + codeId: { + serializedName: "codeId", + nullable: true, type: { name: "String", }, }, - accessToken: { - serializedName: "accessToken", - readOnly: true, - type: { - name: "String", + scoringScript: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1, }, - }, - tokenType: { - serializedName: "tokenType", - readOnly: true, + serializedName: "scoringScript", + required: true, type: { name: "String", }, }, - expiresIn: { - serializedName: "expiresIn", - readOnly: true, - type: { - name: "Number", - }, - }, - refreshToken: { - serializedName: "refreshToken", - readOnly: true, - type: { - name: "String", + }, + }, +}; + +export const PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: + "PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "PartialBatchDeployment", + }, }, - }, - scope: { - serializedName: "scope", - readOnly: true, - type: { - name: "String", + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, }, }, - }, -}; + }; -export const ComputeSecrets: coreClient.CompositeMapper = { +export const PartialBatchDeployment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeSecrets", - uberParent: "ComputeSecrets", - polymorphicDiscriminator: { - serializedName: "computeType", - clientName: "computeType", - }, + className: "PartialBatchDeployment", modelProperties: { - computeType: { - serializedName: "computeType", - required: true, + description: { + serializedName: "description", + nullable: true, type: { name: "String", }, @@ -2275,32 +2113,47 @@ export const ComputeSecrets: coreClient.CompositeMapper = { }, }; -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { +export const DestinationAsset: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "DestinationAsset", modelProperties: { - value: { - serializedName: "value", + destinationName: { + serializedName: "destinationName", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection", - }, - }, + name: "String", + }, + }, + destinationVersion: { + serializedName: "destinationVersion", + nullable: true, + type: { + name: "String", + }, + }, + registryName: { + serializedName: "registryName", + nullable: true, + type: { + name: "String", }, }, }, }, }; -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { +export const DatastoreResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResourceListResult", + className: "DatastoreResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, value: { serializedName: "value", type: { @@ -2308,7 +2161,7 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource", + className: "Datastore", }, }, }, @@ -2317,14 +2170,19 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { }, }; -export const ListStorageAccountKeysResult: coreClient.CompositeMapper = { +export const DatastoreCredentials: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListStorageAccountKeysResult", + className: "DatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: { + serializedName: "credentialsType", + clientName: "credentialsType", + }, modelProperties: { - userStorageKey: { - serializedName: "userStorageKey", - readOnly: true, + credentialsType: { + serializedName: "credentialsType", + required: true, type: { name: "String", }, @@ -2333,102 +2191,39 @@ export const ListStorageAccountKeysResult: coreClient.CompositeMapper = { }, }; -export const WorkspaceConnectionPropertiesV2: coreClient.CompositeMapper = { +export const DatastoreSecrets: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionPropertiesV2", - uberParent: "WorkspaceConnectionPropertiesV2", + className: "DatastoreSecrets", + uberParent: "DatastoreSecrets", polymorphicDiscriminator: { - serializedName: "authType", - clientName: "authType", + serializedName: "secretsType", + clientName: "secretsType", }, modelProperties: { - authType: { - serializedName: "authType", + secretsType: { + serializedName: "secretsType", required: true, type: { name: "String", }, }, - category: { - serializedName: "category", - type: { - name: "String", - }, - }, - createdByWorkspaceArmId: { - serializedName: "createdByWorkspaceArmId", - readOnly: true, - type: { - name: "String", - }, - }, - expiryTime: { - serializedName: "expiryTime", - type: { - name: "DateTime", - }, - }, - group: { - serializedName: "group", - readOnly: true, - type: { - name: "String", - }, - }, - isSharedToAll: { - serializedName: "isSharedToAll", - type: { - name: "Boolean", - }, - }, - target: { - serializedName: "target", - type: { - name: "String", - }, - }, - metadata: { - serializedName: "metadata", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - sharedUserList: { - serializedName: "sharedUserList", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - value: { - serializedName: "value", - type: { - name: "String", - }, - }, - valueFormat: { - serializedName: "valueFormat", - type: { - name: "String", - }, - }, }, }, }; -export const WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult: coreClient.CompositeMapper = +export const FeaturesetContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult", + className: "FeaturesetContainerResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, value: { serializedName: "value", type: { @@ -2436,27 +2231,26 @@ export const WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult: cor element: { type: { name: "Composite", - className: "WorkspaceConnectionPropertiesV2BasicResource", + className: "FeaturesetContainer", }, }, }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, }, }, }; -export const ExternalFqdnResponse: coreClient.CompositeMapper = { +export const FeatureResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExternalFqdnResponse", + className: "FeatureResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, value: { serializedName: "value", type: { @@ -2464,7 +2258,7 @@ export const ExternalFqdnResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "FqdnEndpoints", + className: "Feature", }, }, }, @@ -2473,235 +2267,270 @@ export const ExternalFqdnResponse: coreClient.CompositeMapper = { }, }; -export const FqdnEndpoints: coreClient.CompositeMapper = { +export const FeaturesetVersionResourceArmPaginatedResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "FeaturesetVersionResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FeaturesetVersion", + }, + }, + }, + }, + }, + }, + }; + +export const MaterializationSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FqdnEndpoints", + className: "MaterializationSettings", modelProperties: { - properties: { - serializedName: "properties", + notification: { + serializedName: "notification", type: { name: "Composite", - className: "FqdnEndpointsProperties", + className: "NotificationSetting", + }, + }, + resource: { + serializedName: "resource", + type: { + name: "Composite", + className: "MaterializationComputeResource", + }, + }, + schedule: { + serializedName: "schedule", + type: { + name: "Composite", + className: "RecurrenceTrigger", + }, + }, + sparkConfiguration: { + serializedName: "sparkConfiguration", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + storeType: { + serializedName: "storeType", + type: { + name: "String", }, }, }, }, }; -export const FqdnEndpointsProperties: coreClient.CompositeMapper = { +export const NotificationSetting: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FqdnEndpointsProperties", + className: "NotificationSetting", modelProperties: { - category: { - serializedName: "category", + emailOn: { + serializedName: "emailOn", + nullable: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - endpoints: { - serializedName: "endpoints", + emails: { + serializedName: "emails", + nullable: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "FqdnEndpoint", + name: "String", }, }, }, }, + webhooks: { + serializedName: "webhooks", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "Webhook" } }, + }, + }, }, }, }; -export const FqdnEndpoint: coreClient.CompositeMapper = { +export const Webhook: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FqdnEndpoint", + className: "Webhook", + uberParent: "Webhook", + polymorphicDiscriminator: { + serializedName: "webhookType", + clientName: "webhookType", + }, modelProperties: { - domainName: { - serializedName: "domainName", + eventType: { + serializedName: "eventType", + nullable: true, type: { name: "String", }, }, - endpointDetails: { - serializedName: "endpointDetails", + webhookType: { + serializedName: "webhookType", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FqdnEndpointDetail", - }, - }, + name: "String", }, }, }, }, }; -export const FqdnEndpointDetail: coreClient.CompositeMapper = { +export const MaterializationComputeResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FqdnEndpointDetail", + className: "MaterializationComputeResource", modelProperties: { - port: { - serializedName: "port", + instanceType: { + serializedName: "instanceType", + nullable: true, type: { - name: "Number", + name: "String", }, }, }, }, }; -export const OutboundRuleListResult: coreClient.CompositeMapper = { +export const RecurrenceSchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutboundRuleListResult", + className: "RecurrenceSchedule", modelProperties: { - nextLink: { - serializedName: "nextLink", + hours: { + serializedName: "hours", + required: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Number", + }, + }, }, }, - value: { - serializedName: "value", + minutes: { + serializedName: "minutes", + required: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "OutboundRuleBasicResource", + name: "Number", }, }, }, }, - }, - }, -}; - -export const ManagedNetworkProvisionOptions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedNetworkProvisionOptions", - modelProperties: { - includeSpark: { - serializedName: "includeSpark", + monthDays: { + serializedName: "monthDays", + nullable: true, type: { - name: "Boolean", - }, - }, - }, - }, -}; - -export const CodeContainerResourceArmPaginatedResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CodeContainerResourceArmPaginatedResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CodeContainer", - }, + name: "Sequence", + element: { + type: { + name: "Number", }, }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", + }, + weekDays: { + serializedName: "weekDays", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, }, }, }, }, - }; + }, +}; -export const ResourceBase: coreClient.CompositeMapper = { +export const TriggerBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceBase", + className: "TriggerBase", + uberParent: "TriggerBase", + polymorphicDiscriminator: { + serializedName: "triggerType", + clientName: "triggerType", + }, modelProperties: { - description: { - serializedName: "description", + endTime: { + serializedName: "endTime", nullable: true, type: { name: "String", }, }, - tags: { - serializedName: "tags", + startTime: { + serializedName: "startTime", nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, - properties: { - serializedName: "properties", - nullable: true, + timeZone: { + defaultValue: "UTC", + serializedName: "timeZone", type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, - }, - }, -}; - -export const CodeVersionResourceArmPaginatedResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CodeVersionResourceArmPaginatedResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CodeVersion", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, + triggerType: { + serializedName: "triggerType", + required: true, + type: { + name: "String", }, }, }, - }; + }, +}; -export const PendingUploadRequestDto: coreClient.CompositeMapper = { +export const FeaturesetSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PendingUploadRequestDto", + className: "FeaturesetSpecification", modelProperties: { - pendingUploadId: { - serializedName: "pendingUploadId", - nullable: true, - type: { - name: "String", - }, - }, - pendingUploadType: { - serializedName: "pendingUploadType", + path: { + serializedName: "path", + nullable: true, type: { name: "String", }, @@ -2710,120 +2539,135 @@ export const PendingUploadRequestDto: coreClient.CompositeMapper = { }, }; -export const PendingUploadResponseDto: coreClient.CompositeMapper = { +export const FeaturesetVersionBackfillRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PendingUploadResponseDto", + className: "FeaturesetVersionBackfillRequest", modelProperties: { - blobReferenceForConsumption: { - serializedName: "blobReferenceForConsumption", + dataAvailabilityStatus: { + serializedName: "dataAvailabilityStatus", type: { - name: "Composite", - className: "BlobReferenceForConsumptionDto", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - pendingUploadId: { - serializedName: "pendingUploadId", - nullable: true, + description: { + serializedName: "description", type: { name: "String", }, }, - pendingUploadType: { - serializedName: "pendingUploadType", + displayName: { + serializedName: "displayName", + type: { + name: "String", + }, + }, + featureWindow: { + serializedName: "featureWindow", + type: { + name: "Composite", + className: "FeatureWindow", + }, + }, + jobId: { + serializedName: "jobId", type: { name: "String", }, }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + resource: { + serializedName: "resource", + type: { + name: "Composite", + className: "MaterializationComputeResource", + }, + }, + sparkConfiguration: { + serializedName: "sparkConfiguration", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, }, }, }; -export const BlobReferenceForConsumptionDto: coreClient.CompositeMapper = { +export const FeatureWindow: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BlobReferenceForConsumptionDto", + className: "FeatureWindow", modelProperties: { - blobUri: { - serializedName: "blobUri", + featureWindowEnd: { + serializedName: "featureWindowEnd", nullable: true, type: { - name: "String", + name: "DateTime", }, }, - storageAccountArmId: { - serializedName: "storageAccountArmId", + featureWindowStart: { + serializedName: "featureWindowStart", nullable: true, type: { - name: "String", - }, - }, - credential: { - serializedName: "credential", - type: { - name: "Composite", - className: "PendingUploadCredentialDto", + name: "DateTime", }, }, }, }, }; -export const PendingUploadCredentialDto: coreClient.CompositeMapper = { +export const FeaturesetVersionBackfillResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PendingUploadCredentialDto", - uberParent: "PendingUploadCredentialDto", - polymorphicDiscriminator: { - serializedName: "credentialType", - clientName: "credentialType", - }, + className: "FeaturesetVersionBackfillResponse", modelProperties: { - credentialType: { - serializedName: "credentialType", - required: true, + jobIds: { + serializedName: "jobIds", + nullable: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const ComponentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = +export const FeaturestoreEntityContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentContainerResourceArmPaginatedResult", + className: "FeaturestoreEntityContainerResourceArmPaginatedResult", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComponentContainer", - }, - }, - }, - }, nextLink: { serializedName: "nextLink", type: { name: "String", }, }, - }, - }, - }; - -export const ComponentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ComponentVersionResourceArmPaginatedResult", - modelProperties: { value: { serializedName: "value", type: { @@ -2831,55 +2675,27 @@ export const ComponentVersionResourceArmPaginatedResult: coreClient.CompositeMap element: { type: { name: "Composite", - className: "ComponentVersion", + className: "FeaturestoreEntityContainer", }, }, }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, }, }, }; -export const DataContainerResourceArmPaginatedResult: coreClient.CompositeMapper = +export const FeaturestoreEntityVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataContainerResourceArmPaginatedResult", + className: "FeaturestoreEntityVersionResourceArmPaginatedResult", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataContainer", - }, - }, - }, - }, nextLink: { serializedName: "nextLink", type: { name: "String", }, }, - }, - }, - }; - -export const DataVersionBaseResourceArmPaginatedResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DataVersionBaseResourceArmPaginatedResult", - modelProperties: { value: { serializedName: "value", type: { @@ -2887,36 +2703,29 @@ export const DataVersionBaseResourceArmPaginatedResult: coreClient.CompositeMapp element: { type: { name: "Composite", - className: "DataVersionBase", + className: "FeaturestoreEntityVersion", }, }, }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, }, }, }; -export const GetBlobReferenceSASRequestDto: coreClient.CompositeMapper = { +export const IndexColumn: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GetBlobReferenceSASRequestDto", + className: "IndexColumn", modelProperties: { - assetId: { - serializedName: "assetId", + columnName: { + serializedName: "columnName", nullable: true, type: { name: "String", }, }, - blobUri: { - serializedName: "blobUri", - nullable: true, + dataType: { + serializedName: "dataType", type: { name: "String", }, @@ -2925,64 +2734,127 @@ export const GetBlobReferenceSASRequestDto: coreClient.CompositeMapper = { }, }; -export const GetBlobReferenceSASResponseDto: coreClient.CompositeMapper = { +export const JobBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GetBlobReferenceSASResponseDto", + className: "JobBaseResourceArmPaginatedResult", modelProperties: { - blobReferenceForConsumption: { - serializedName: "blobReferenceForConsumption", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "GetBlobReferenceForConsumptionDto", + name: "String", + }, + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JobBase", + }, + }, }, }, }, }, }; -export const GetBlobReferenceForConsumptionDto: coreClient.CompositeMapper = { +export const IdentityConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GetBlobReferenceForConsumptionDto", + className: "IdentityConfiguration", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: { + serializedName: "identityType", + clientName: "identityType", + }, modelProperties: { - blobUri: { - serializedName: "blobUri", - nullable: true, - type: { - name: "String", - }, - }, - storageAccountArmId: { - serializedName: "storageAccountArmId", - nullable: true, + identityType: { + serializedName: "identityType", + required: true, type: { name: "String", }, }, - credential: { - serializedName: "credential", - type: { - name: "Composite", - className: "DataReferenceCredential", - }, - }, }, }, }; -export const DataReferenceCredential: coreClient.CompositeMapper = { +export const JobService: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataReferenceCredential", - uberParent: "DataReferenceCredential", + className: "JobService", + modelProperties: { + endpoint: { + serializedName: "endpoint", + nullable: true, + type: { + name: "String", + }, + }, + errorMessage: { + serializedName: "errorMessage", + readOnly: true, + nullable: true, + type: { + name: "String", + }, + }, + jobServiceType: { + serializedName: "jobServiceType", + nullable: true, + type: { + name: "String", + }, + }, + nodes: { + serializedName: "nodes", + type: { + 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 Nodes: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Nodes", + uberParent: "Nodes", polymorphicDiscriminator: { - serializedName: "credentialType", - clientName: "credentialType", + serializedName: "nodesValueType", + clientName: "nodesValueType", }, modelProperties: { - credentialType: { - serializedName: "credentialType", + nodesValueType: { + serializedName: "nodesValueType", required: true, type: { name: "String", @@ -2992,40 +2864,18 @@ export const DataReferenceCredential: coreClient.CompositeMapper = { }, }; -export const EnvironmentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = +export const MarketplaceSubscriptionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentContainerResourceArmPaginatedResult", + className: "MarketplaceSubscriptionResourceArmPaginatedResult", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EnvironmentContainer", - }, - }, - }, - }, nextLink: { serializedName: "nextLink", type: { name: "String", }, }, - }, - }, - }; - -export const EnvironmentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "EnvironmentVersionResourceArmPaginatedResult", - modelProperties: { value: { serializedName: "value", type: { @@ -3033,40 +2883,48 @@ export const EnvironmentVersionResourceArmPaginatedResult: coreClient.CompositeM element: { type: { name: "Composite", - className: "EnvironmentVersion", + className: "MarketplaceSubscription", }, }, }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, }, }, }; -export const BuildContext: coreClient.CompositeMapper = { +export const MarketplaceSubscriptionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildContext", + className: "MarketplaceSubscriptionProperties", modelProperties: { - contextUri: { + marketplacePlan: { + serializedName: "marketplacePlan", + type: { + name: "Composite", + className: "MarketplacePlan", + }, + }, + marketplaceSubscriptionStatus: { + serializedName: "marketplaceSubscriptionStatus", + readOnly: true, + type: { + name: "String", + }, + }, + modelId: { constraints: { Pattern: new RegExp("[a-zA-Z0-9_]"), MinLength: 1, }, - serializedName: "contextUri", + serializedName: "modelId", required: true, type: { name: "String", }, }, - dockerfilePath: { - defaultValue: "Dockerfile", - serializedName: "dockerfilePath", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String", }, @@ -3075,69 +2933,51 @@ export const BuildContext: coreClient.CompositeMapper = { }, }; -export const InferenceContainerProperties: coreClient.CompositeMapper = { +export const MarketplacePlan: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InferenceContainerProperties", + className: "MarketplacePlan", modelProperties: { - livenessRoute: { - serializedName: "livenessRoute", - type: { - name: "Composite", - className: "Route", - }, - }, - readinessRoute: { - serializedName: "readinessRoute", - type: { - name: "Composite", - className: "Route", - }, - }, - scoringRoute: { - serializedName: "scoringRoute", + offerId: { + serializedName: "offerId", + readOnly: true, + nullable: true, type: { - name: "Composite", - className: "Route", + name: "String", }, }, - }, - }, -}; - -export const Route: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Route", - modelProperties: { - path: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]"), - MinLength: 1, - }, - serializedName: "path", - required: true, + planId: { + serializedName: "planId", + readOnly: true, + nullable: true, type: { name: "String", }, }, - port: { - serializedName: "port", - required: true, + publisherId: { + serializedName: "publisherId", + readOnly: true, + nullable: true, type: { - name: "Number", + name: "String", }, }, }, }, }; -export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMapper = +export const OnlineEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelContainerResourceArmPaginatedResult", + className: "OnlineEndpointTrackedResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, value: { serializedName: "value", type: { @@ -3145,27 +2985,27 @@ export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMappe element: { type: { name: "Composite", - className: "ModelContainer", + className: "OnlineEndpoint", }, }, }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, }, }, }; -export const ModelVersionResourceArmPaginatedResult: coreClient.CompositeMapper = +export const OnlineDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelVersionResourceArmPaginatedResult", + className: "OnlineDeploymentTrackedResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, value: { serializedName: "value", type: { @@ -3173,263 +3013,168 @@ export const ModelVersionResourceArmPaginatedResult: coreClient.CompositeMapper element: { type: { name: "Composite", - className: "ModelVersion", + className: "OnlineDeployment", }, }, }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, }, }, }; -export const FlavorData: coreClient.CompositeMapper = { +export const DataCollector: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FlavorData", + className: "DataCollector", modelProperties: { - data: { - serializedName: "data", - nullable: true, + collections: { + serializedName: "collections", + required: true, type: { name: "Dictionary", - value: { type: { name: "String" } }, + value: { type: { name: "Composite", className: "Collection" } }, + }, + }, + requestLogging: { + serializedName: "requestLogging", + type: { + name: "Composite", + className: "RequestLogging", + }, + }, + rollingRate: { + serializedName: "rollingRate", + type: { + name: "String", }, }, }, }, }; -export const BatchEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "BatchEndpointTrackedResourceArmPaginatedResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BatchEndpoint", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const BatchEndpointDefaults: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BatchEndpointDefaults", - modelProperties: { - deploymentName: { - serializedName: "deploymentName", - nullable: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const EndpointPropertiesBase: coreClient.CompositeMapper = { +export const Collection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointPropertiesBase", + className: "Collection", modelProperties: { - description: { - serializedName: "description", + clientId: { + serializedName: "clientId", nullable: true, type: { name: "String", }, }, - properties: { - serializedName: "properties", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - scoringUri: { - serializedName: "scoringUri", - readOnly: true, - nullable: true, + dataCollectionMode: { + serializedName: "dataCollectionMode", type: { name: "String", }, }, - swaggerUri: { - serializedName: "swaggerUri", - readOnly: true, + dataId: { + serializedName: "dataId", nullable: true, type: { name: "String", }, }, - authMode: { - serializedName: "authMode", - required: true, - type: { - name: "String", - }, - }, - keys: { - serializedName: "keys", + samplingRate: { + defaultValue: 1, + serializedName: "samplingRate", type: { - name: "Composite", - className: "EndpointAuthKeys", + name: "Number", }, }, }, }, }; -export const EndpointAuthKeys: coreClient.CompositeMapper = { +export const RequestLogging: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointAuthKeys", + className: "RequestLogging", modelProperties: { - primaryKey: { - serializedName: "primaryKey", - nullable: true, - type: { - name: "String", - }, - }, - secondaryKey: { - serializedName: "secondaryKey", + captureHeaders: { + serializedName: "captureHeaders", nullable: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const PartialManagedServiceIdentity: coreClient.CompositeMapper = { +export const ProbeSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartialManagedServiceIdentity", + className: "ProbeSettings", modelProperties: { - type: { - serializedName: "type", + failureThreshold: { + defaultValue: 30, + serializedName: "failureThreshold", type: { - name: "String", + name: "Number", }, }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + initialDelay: { + serializedName: "initialDelay", + nullable: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } }, - }, + name: "TimeSpan", }, }, - }, - }, -}; - -export const PartialMinimalTrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PartialMinimalTrackedResource", - modelProperties: { - tags: { - serializedName: "tags", + period: { + defaultValue: "PT10S", + serializedName: "period", type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "TimeSpan", }, }, - }, - }, -}; - -export const BatchDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "BatchDeploymentTrackedResourceArmPaginatedResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BatchDeployment", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, + successThreshold: { + defaultValue: 1, + serializedName: "successThreshold", + type: { + name: "Number", }, }, - }, - }; - -export const BatchDeploymentConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BatchDeploymentConfiguration", - uberParent: "BatchDeploymentConfiguration", - polymorphicDiscriminator: { - serializedName: "deploymentConfigurationType", - clientName: "deploymentConfigurationType", - }, - modelProperties: { - deploymentConfigurationType: { - serializedName: "deploymentConfigurationType", - required: true, + timeout: { + defaultValue: "PT2S", + serializedName: "timeout", type: { - name: "String", + name: "TimeSpan", }, }, }, }, }; -export const BatchRetrySettings: coreClient.CompositeMapper = { +export const OnlineRequestSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchRetrySettings", + className: "OnlineRequestSettings", modelProperties: { - maxRetries: { - defaultValue: 3, - serializedName: "maxRetries", + maxConcurrentRequestsPerInstance: { + defaultValue: 1, + serializedName: "maxConcurrentRequestsPerInstance", type: { name: "Number", }, }, - timeout: { - defaultValue: "PT30S", - serializedName: "timeout", + maxQueueWait: { + defaultValue: "PT0.5S", + serializedName: "maxQueueWait", + type: { + name: "TimeSpan", + }, + }, + requestTimeout: { + defaultValue: "PT5S", + serializedName: "requestTimeout", type: { name: "TimeSpan", }, @@ -3438,18 +3183,18 @@ export const BatchRetrySettings: coreClient.CompositeMapper = { }, }; -export const AssetReferenceBase: coreClient.CompositeMapper = { +export const OnlineScaleSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssetReferenceBase", - uberParent: "AssetReferenceBase", + className: "OnlineScaleSettings", + uberParent: "OnlineScaleSettings", polymorphicDiscriminator: { - serializedName: "referenceType", - clientName: "referenceType", + serializedName: "scaleType", + clientName: "scaleType", }, modelProperties: { - referenceType: { - serializedName: "referenceType", + scaleType: { + serializedName: "scaleType", required: true, type: { name: "String", @@ -3459,104 +3204,170 @@ export const AssetReferenceBase: coreClient.CompositeMapper = { }, }; -export const ResourceConfiguration: coreClient.CompositeMapper = { +export const PartialSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceConfiguration", + className: "PartialSku", modelProperties: { - instanceCount: { - defaultValue: 1, - serializedName: "instanceCount", + capacity: { + serializedName: "capacity", type: { name: "Number", }, }, - instanceType: { - serializedName: "instanceType", - nullable: true, + family: { + serializedName: "family", type: { name: "String", }, }, - properties: { - serializedName: "properties", - nullable: true, + name: { + serializedName: "name", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } }, - }, + name: "String", }, }, - }, + size: { + serializedName: "size", + type: { + name: "String", + }, + }, + tier: { + serializedName: "tier", + type: { + name: "Enum", + allowedValues: ["Free", "Basic", "Standard", "Premium"], + }, + }, + }, }, }; -export const EndpointDeploymentPropertiesBase: coreClient.CompositeMapper = { +export const DeploymentLogsRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointDeploymentPropertiesBase", + className: "DeploymentLogsRequest", modelProperties: { - description: { - serializedName: "description", - nullable: true, + containerType: { + serializedName: "containerType", type: { name: "String", }, }, - properties: { - serializedName: "properties", + tail: { + serializedName: "tail", nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "Number", }, }, - codeConfiguration: { - serializedName: "codeConfiguration", + }, + }, +}; + +export const DeploymentLogs: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeploymentLogs", + modelProperties: { + content: { + serializedName: "content", + nullable: true, type: { - name: "Composite", - className: "CodeConfiguration", + name: "String", }, }, - environmentId: { - serializedName: "environmentId", - nullable: true, + }, + }, +}; + +export const SkuResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SkuResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", type: { name: "String", }, }, - environmentVariables: { - serializedName: "environmentVariables", - nullable: true, + value: { + serializedName: "value", type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SkuResource", + }, + }, }, }, }, }, }; -export const CodeConfiguration: coreClient.CompositeMapper = { +export const SkuResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeConfiguration", + className: "SkuResource", modelProperties: { - codeId: { - serializedName: "codeId", + capacity: { + serializedName: "capacity", + type: { + name: "Composite", + className: "SkuCapacity", + }, + }, + resourceType: { + serializedName: "resourceType", + readOnly: true, nullable: true, type: { name: "String", }, }, - scoringScript: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]"), - MinLength: 1, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "SkuSetting", }, - serializedName: "scoringScript", - required: true, + }, + }, + }, +}; + +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", }, @@ -3565,38 +3376,47 @@ export const CodeConfiguration: coreClient.CompositeMapper = { }, }; -export const PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties", - modelProperties: { - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "PartialBatchDeployment", - }, +export const SkuSetting: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SkuSetting", + modelProperties: { + name: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1, }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + tier: { + serializedName: "tier", + type: { + name: "Enum", + allowedValues: ["Free", "Basic", "Standard", "Premium"], }, }, }, - }; + }, +}; -export const PartialBatchDeployment: coreClient.CompositeMapper = { +export const RegenerateEndpointKeysRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartialBatchDeployment", + className: "RegenerateEndpointKeysRequest", modelProperties: { - description: { - serializedName: "description", + keyType: { + serializedName: "keyType", + required: true, + type: { + name: "String", + }, + }, + keyValue: { + serializedName: "keyValue", nullable: true, type: { name: "String", @@ -3606,27 +3426,34 @@ export const PartialBatchDeployment: coreClient.CompositeMapper = { }, }; -export const DestinationAsset: coreClient.CompositeMapper = { +export const EndpointAuthToken: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DestinationAsset", + className: "EndpointAuthToken", modelProperties: { - registryName: { - serializedName: "registryName", + accessToken: { + serializedName: "accessToken", nullable: true, type: { name: "String", }, }, - destinationName: { - serializedName: "destinationName", - nullable: true, + expiryTimeUtc: { + defaultValue: 0, + serializedName: "expiryTimeUtc", type: { - name: "String", + name: "Number", }, }, - destinationVersion: { - serializedName: "destinationVersion", + refreshAfterTimeUtc: { + defaultValue: 0, + serializedName: "refreshAfterTimeUtc", + type: { + name: "Number", + }, + }, + tokenType: { + serializedName: "tokenType", nullable: true, type: { name: "String", @@ -3636,11 +3463,17 @@ export const DestinationAsset: coreClient.CompositeMapper = { }, }; -export const DatastoreResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const ScheduleResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatastoreResourceArmPaginatedResult", + className: "ScheduleResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, value: { serializedName: "value", type: { @@ -3648,33 +3481,27 @@ export const DatastoreResourceArmPaginatedResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Datastore", + className: "Schedule", }, }, }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, }, }, }; -export const DatastoreCredentials: coreClient.CompositeMapper = { +export const ScheduleActionBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatastoreCredentials", - uberParent: "DatastoreCredentials", + className: "ScheduleActionBase", + uberParent: "ScheduleActionBase", polymorphicDiscriminator: { - serializedName: "credentialsType", - clientName: "credentialsType", + serializedName: "actionType", + clientName: "actionType", }, modelProperties: { - credentialsType: { - serializedName: "credentialsType", + actionType: { + serializedName: "actionType", required: true, type: { name: "String", @@ -3684,33 +3511,18 @@ export const DatastoreCredentials: coreClient.CompositeMapper = { }, }; -export const DatastoreSecrets: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatastoreSecrets", - uberParent: "DatastoreSecrets", - polymorphicDiscriminator: { - serializedName: "secretsType", - clientName: "secretsType", - }, - modelProperties: { - secretsType: { - serializedName: "secretsType", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const FeaturesetContainerResourceArmPaginatedResult: coreClient.CompositeMapper = +export const ServerlessEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FeaturesetContainerResourceArmPaginatedResult", + className: "ServerlessEndpointTrackedResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, value: { serializedName: "value", type: { @@ -3718,40 +3530,66 @@ export const FeaturesetContainerResourceArmPaginatedResult: coreClient.Composite element: { type: { name: "Composite", - className: "FeaturesetContainer", + className: "ServerlessEndpoint", }, }, }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, }, }, }; -export const FeatureResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const ServerlessEndpointProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FeatureResourceArmPaginatedResult", + className: "ServerlessEndpointProperties", modelProperties: { - value: { - serializedName: "value", + authMode: { + serializedName: "authMode", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Feature", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", + contentSafety: { + serializedName: "contentSafety", + type: { + name: "Composite", + className: "ContentSafety", + }, + }, + endpointState: { + serializedName: "endpointState", + readOnly: true, + type: { + name: "String", + }, + }, + inferenceEndpoint: { + serializedName: "inferenceEndpoint", + type: { + name: "Composite", + className: "ServerlessInferenceEndpoint", + }, + }, + marketplaceSubscriptionId: { + serializedName: "marketplaceSubscriptionId", + readOnly: true, + nullable: true, + type: { + name: "String", + }, + }, + modelSettings: { + serializedName: "modelSettings", + type: { + name: "Composite", + className: "ModelSettings", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String", }, @@ -3760,12 +3598,75 @@ export const FeatureResourceArmPaginatedResult: coreClient.CompositeMapper = { }, }; -export const FeaturesetVersionResourceArmPaginatedResult: coreClient.CompositeMapper = +export const ContentSafety: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContentSafety", + modelProperties: { + contentSafetyStatus: { + serializedName: "contentSafetyStatus", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ServerlessInferenceEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerlessInferenceEndpoint", + modelProperties: { + headers: { + serializedName: "headers", + readOnly: true, + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + uri: { + serializedName: "uri", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ModelSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelSettings", + modelProperties: { + modelId: { + serializedName: "modelId", + nullable: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const RegistryTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FeaturesetVersionResourceArmPaginatedResult", + className: "RegistryTrackedResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, value: { serializedName: "value", type: { @@ -3773,28 +3674,22 @@ export const FeaturesetVersionResourceArmPaginatedResult: coreClient.CompositeMa element: { type: { name: "Composite", - className: "FeaturesetVersion", + className: "Registry", }, }, }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, }, }, }; -export const FeaturesetSpecification: coreClient.CompositeMapper = { +export const ArmResourceId: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FeaturesetSpecification", + className: "ArmResourceId", modelProperties: { - path: { - serializedName: "path", + resourceId: { + serializedName: "resourceId", nullable: true, type: { name: "String", @@ -3804,99 +3699,142 @@ export const FeaturesetSpecification: coreClient.CompositeMapper = { }, }; -export const MaterializationSettings: coreClient.CompositeMapper = { +export const RegistryPrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaterializationSettings", + className: "RegistryPrivateEndpointConnection", modelProperties: { - storeType: { - serializedName: "storeType", + id: { + serializedName: "id", + nullable: true, type: { name: "String", }, }, - schedule: { - serializedName: "schedule", + location: { + serializedName: "location", + nullable: true, type: { - name: "Composite", - className: "RecurrenceTrigger", + name: "String", }, }, - notification: { - serializedName: "notification", + groupIds: { + serializedName: "properties.groupIds", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "NotificationSetting", + className: "PrivateEndpointResource", }, }, - resource: { - serializedName: "resource", + registryPrivateLinkServiceConnectionState: { + serializedName: "properties.registryPrivateLinkServiceConnectionState", type: { name: "Composite", - className: "MaterializationComputeResource", + className: "RegistryPrivateLinkServiceConnectionState", }, }, - sparkConfiguration: { - serializedName: "sparkConfiguration", + provisioningState: { + serializedName: "properties.provisioningState", nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, }, }, }; -export const RecurrenceSchedule: coreClient.CompositeMapper = { +export const PrivateEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecurrenceSchedule", + className: "PrivateEndpoint", modelProperties: { - hours: { - serializedName: "hours", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Number", - }, - }, - }, - }, - minutes: { - serializedName: "minutes", - required: true, + id: { + serializedName: "id", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Number", - }, - }, + name: "String", }, }, - weekDays: { - serializedName: "weekDays", - nullable: true, - type: { + }, + }, +}; + +export const RegistryPrivateLinkServiceConnectionState: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RegistryPrivateLinkServiceConnectionState", + modelProperties: { + actionsRequired: { + serializedName: "actionsRequired", + nullable: true, + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + nullable: true, + type: { + name: "String", + }, + }, + status: { + serializedName: "status", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const RegistryRegionArmDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryRegionArmDetails", + modelProperties: { + acrDetails: { + serializedName: "acrDetails", + nullable: true, + type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "AcrDetails", }, }, }, }, - monthDays: { - serializedName: "monthDays", + location: { + serializedName: "location", + nullable: true, + type: { + name: "String", + }, + }, + storageAccountDetails: { + serializedName: "storageAccountDetails", nullable: true, type: { name: "Sequence", element: { type: { - name: "Number", + name: "Composite", + className: "StorageAccountDetails", }, }, }, @@ -3905,108 +3843,101 @@ export const RecurrenceSchedule: coreClient.CompositeMapper = { }, }; -export const TriggerBase: coreClient.CompositeMapper = { +export const AcrDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TriggerBase", - uberParent: "TriggerBase", - polymorphicDiscriminator: { - serializedName: "triggerType", - clientName: "triggerType", - }, + className: "AcrDetails", modelProperties: { - triggerType: { - serializedName: "triggerType", - required: true, + systemCreatedAcrAccount: { + serializedName: "systemCreatedAcrAccount", type: { - name: "String", + name: "Composite", + className: "SystemCreatedAcrAccount", }, }, - endTime: { - serializedName: "endTime", + }, + }, +}; + +export const SystemCreatedAcrAccount: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SystemCreatedAcrAccount", + modelProperties: { + acrAccountName: { + serializedName: "acrAccountName", nullable: true, type: { name: "String", }, }, - startTime: { - serializedName: "startTime", + acrAccountSku: { + serializedName: "acrAccountSku", nullable: true, type: { name: "String", }, }, - timeZone: { - defaultValue: "UTC", - serializedName: "timeZone", + armResourceId: { + serializedName: "armResourceId", type: { - name: "String", + name: "Composite", + className: "ArmResourceId", }, }, }, }, }; -export const NotificationSetting: coreClient.CompositeMapper = { +export const StorageAccountDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotificationSetting", + className: "StorageAccountDetails", modelProperties: { - emails: { - serializedName: "emails", - nullable: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - emailOn: { - serializedName: "emailOn", - nullable: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - webhooks: { - serializedName: "webhooks", - nullable: true, + systemCreatedStorageAccount: { + serializedName: "systemCreatedStorageAccount", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "Webhook" } }, + name: "Composite", + className: "SystemCreatedStorageAccount", }, }, }, }, }; -export const Webhook: coreClient.CompositeMapper = { +export const SystemCreatedStorageAccount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Webhook", - uberParent: "Webhook", - polymorphicDiscriminator: { - serializedName: "webhookType", - clientName: "webhookType", - }, + className: "SystemCreatedStorageAccount", modelProperties: { - webhookType: { - serializedName: "webhookType", - required: true, + allowBlobPublicAccess: { + serializedName: "allowBlobPublicAccess", + type: { + name: "Boolean", + }, + }, + armResourceId: { + serializedName: "armResourceId", + type: { + name: "Composite", + className: "ArmResourceId", + }, + }, + storageAccountHnsEnabled: { + serializedName: "storageAccountHnsEnabled", + type: { + name: "Boolean", + }, + }, + storageAccountName: { + serializedName: "storageAccountName", + nullable: true, type: { name: "String", }, }, - eventType: { - serializedName: "eventType", + storageAccountType: { + serializedName: "storageAccountType", nullable: true, type: { name: "String", @@ -4016,14 +3947,58 @@ export const Webhook: coreClient.CompositeMapper = { }, }; -export const MaterializationComputeResource: coreClient.CompositeMapper = { +export const PartialRegistryPartialTrackedResource: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PartialRegistryPartialTrackedResource", + modelProperties: { + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "RegistryPartialManagedServiceIdentity", + }, + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "PartialSku", + }, + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, + }; + +export const ListAmlUserFeatureResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaterializationComputeResource", + className: "ListAmlUserFeatureResult", modelProperties: { - instanceType: { - serializedName: "instanceType", - nullable: true, + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AmlUserFeature", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -4032,11 +4007,17 @@ export const MaterializationComputeResource: coreClient.CompositeMapper = { }, }; -export const FeaturesetVersionBackfillRequest: coreClient.CompositeMapper = { +export const AmlUserFeature: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FeaturesetVersionBackfillRequest", + className: "AmlUserFeature", modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, displayName: { serializedName: "displayName", type: { @@ -4049,176 +4030,157 @@ export const FeaturesetVersionBackfillRequest: coreClient.CompositeMapper = { name: "String", }, }, - featureWindow: { - serializedName: "featureWindow", - type: { - name: "Composite", - className: "FeatureWindow", - }, - }, - dataAvailabilityStatus: { - serializedName: "dataAvailabilityStatus", + }, + }, +}; + +export const OperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "Operation", }, }, }, }, - jobId: { - serializedName: "jobId", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String", }, }, - tags: { - serializedName: "tags", + }, + }, +}; + +export const Operation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, - resource: { - serializedName: "resource", + isDataAction: { + serializedName: "isDataAction", + readOnly: true, + type: { + name: "Boolean", + }, + }, + display: { + serializedName: "display", type: { name: "Composite", - className: "MaterializationComputeResource", + className: "OperationDisplay", }, }, - sparkConfiguration: { - serializedName: "sparkConfiguration", + origin: { + serializedName: "origin", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, - properties: { - serializedName: "properties", + actionType: { + serializedName: "actionType", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, }, }, }; -export const FeatureWindow: coreClient.CompositeMapper = { +export const OperationDisplay: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FeatureWindow", + className: "OperationDisplay", modelProperties: { - featureWindowStart: { - serializedName: "featureWindowStart", - nullable: true, + provider: { + serializedName: "provider", + readOnly: true, type: { - name: "DateTime", + name: "String", }, }, - featureWindowEnd: { - serializedName: "featureWindowEnd", - nullable: true, + resource: { + serializedName: "resource", + readOnly: true, type: { - name: "DateTime", + name: "String", + }, + }, + operation: { + serializedName: "operation", + readOnly: true, + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String", }, }, }, }, }; -export const FeaturesetVersionBackfillResponse: coreClient.CompositeMapper = { +export const EncryptionProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FeaturesetVersionBackfillResponse", + className: "EncryptionProperty", modelProperties: { - jobIds: { - serializedName: "jobIds", - nullable: true, + status: { + serializedName: "status", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - }, - }, -}; - -export const FeaturestoreEntityContainerResourceArmPaginatedResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "FeaturestoreEntityContainerResourceArmPaginatedResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FeaturestoreEntityContainer", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityForCmk", }, }, - }, - }; - -export const FeaturestoreEntityVersionResourceArmPaginatedResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "FeaturestoreEntityVersionResourceArmPaginatedResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FeaturestoreEntityVersion", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, + keyVaultProperties: { + serializedName: "keyVaultProperties", + type: { + name: "Composite", + className: "EncryptionKeyVaultProperties", }, }, }, - }; + }, +}; -export const IndexColumn: coreClient.CompositeMapper = { +export const IdentityForCmk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IndexColumn", + className: "IdentityForCmk", modelProperties: { - dataType: { - serializedName: "dataType", - type: { - name: "String", - }, - }, - columnName: { - serializedName: "columnName", - nullable: true, + userAssignedIdentity: { + serializedName: "userAssignedIdentity", type: { name: "String", }, @@ -4227,25 +4189,27 @@ export const IndexColumn: coreClient.CompositeMapper = { }, }; -export const JobBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const EncryptionKeyVaultProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobBaseResourceArmPaginatedResult", + className: "EncryptionKeyVaultProperties", modelProperties: { - value: { - serializedName: "value", + keyVaultArmId: { + serializedName: "keyVaultArmId", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobBase", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", + keyIdentifier: { + serializedName: "keyIdentifier", + required: true, + type: { + name: "String", + }, + }, + identityClientId: { + serializedName: "identityClientId", type: { name: "String", }, @@ -4254,170 +4218,208 @@ export const JobBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { }, }; -export const JobService: coreClient.CompositeMapper = { +export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobService", + className: "PrivateLinkServiceConnectionState", modelProperties: { - jobServiceType: { - serializedName: "jobServiceType", - nullable: true, + status: { + serializedName: "status", type: { name: "String", }, }, - port: { - serializedName: "port", - nullable: true, + description: { + serializedName: "description", type: { - name: "Number", + name: "String", }, }, - endpoint: { - serializedName: "endpoint", - nullable: true, + actionsRequired: { + serializedName: "actionsRequired", type: { name: "String", }, }, - status: { - serializedName: "status", - readOnly: true, - nullable: true, + }, + }, +}; + +export const ServerlessComputeSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerlessComputeSettings", + modelProperties: { + serverlessComputeCustomSubnet: { + serializedName: "serverlessComputeCustomSubnet", type: { name: "String", }, }, - errorMessage: { - serializedName: "errorMessage", - readOnly: true, - nullable: true, + serverlessComputeNoPublicIP: { + serializedName: "serverlessComputeNoPublicIP", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const SharedPrivateLinkResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SharedPrivateLinkResource", + modelProperties: { + name: { + serializedName: "name", type: { name: "String", }, }, - properties: { - serializedName: "properties", - nullable: true, + privateLinkResourceId: { + serializedName: "properties.privateLinkResourceId", type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, - nodes: { - serializedName: "nodes", + groupId: { + serializedName: "properties.groupId", type: { - name: "Composite", - className: "Nodes", + name: "String", + }, + }, + requestMessage: { + serializedName: "properties.requestMessage", + type: { + name: "String", + }, + }, + status: { + serializedName: "properties.status", + type: { + name: "String", }, }, }, }, }; -export const Nodes: coreClient.CompositeMapper = { +export const NotebookResourceInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Nodes", - uberParent: "Nodes", - polymorphicDiscriminator: { - serializedName: "nodesValueType", - clientName: "nodesValueType", - }, + className: "NotebookResourceInfo", modelProperties: { - nodesValueType: { - serializedName: "nodesValueType", - required: true, + fqdn: { + serializedName: "fqdn", + type: { + name: "String", + }, + }, + resourceId: { + serializedName: "resourceId", type: { name: "String", }, }, + notebookPreparationError: { + serializedName: "notebookPreparationError", + type: { + name: "Composite", + className: "NotebookPreparationError", + }, + }, }, }, }; -export const IdentityConfiguration: coreClient.CompositeMapper = { +export const NotebookPreparationError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IdentityConfiguration", - uberParent: "IdentityConfiguration", - polymorphicDiscriminator: { - serializedName: "identityType", - clientName: "identityType", - }, + className: "NotebookPreparationError", modelProperties: { - identityType: { - serializedName: "identityType", - required: true, + errorMessage: { + serializedName: "errorMessage", type: { name: "String", }, }, + statusCode: { + serializedName: "statusCode", + type: { + name: "Number", + }, + }, }, }, }; -export const MarketplaceSubscriptionResourceArmPaginatedResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "MarketplaceSubscriptionResourceArmPaginatedResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MarketplaceSubscription", - }, - }, - }, +export const ServiceManagedResourcesSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceManagedResourcesSettings", + modelProperties: { + cosmosDb: { + serializedName: "cosmosDb", + type: { + name: "Composite", + className: "CosmosDbSettings", }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, + }, + }, + }, +}; + +export const CosmosDbSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CosmosDbSettings", + modelProperties: { + collectionsThroughput: { + serializedName: "collectionsThroughput", + type: { + name: "Number", }, }, }, - }; + }, +}; -export const MarketplaceSubscriptionProperties: coreClient.CompositeMapper = { +export const ManagedNetworkSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MarketplaceSubscriptionProperties", + className: "ManagedNetworkSettings", modelProperties: { - modelId: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]"), - MinLength: 1, + isolationMode: { + serializedName: "isolationMode", + type: { + name: "String", }, - serializedName: "modelId", - required: true, + }, + networkId: { + serializedName: "networkId", + readOnly: true, type: { name: "String", }, }, - marketplacePlan: { - serializedName: "marketplacePlan", + outboundRules: { + serializedName: "outboundRules", + nullable: true, type: { - name: "Composite", - className: "MarketplacePlan", + name: "Dictionary", + value: { type: { name: "Composite", className: "OutboundRule" } }, }, }, - marketplaceSubscriptionStatus: { - serializedName: "marketplaceSubscriptionStatus", - readOnly: true, + status: { + serializedName: "status", type: { - name: "String", + name: "Composite", + className: "ManagedNetworkProvisionStatus", }, }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + firewallSku: { + serializedName: "firewallSku", type: { name: "String", }, @@ -4426,31 +4428,31 @@ export const MarketplaceSubscriptionProperties: coreClient.CompositeMapper = { }, }; -export const MarketplacePlan: coreClient.CompositeMapper = { +export const OutboundRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MarketplacePlan", + className: "OutboundRule", + uberParent: "OutboundRule", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type", + }, modelProperties: { - publisherId: { - serializedName: "publisherId", - readOnly: true, - nullable: true, + category: { + serializedName: "category", type: { name: "String", }, }, - offerId: { - serializedName: "offerId", - readOnly: true, - nullable: true, + status: { + serializedName: "status", type: { name: "String", }, }, - planId: { - serializedName: "planId", - readOnly: true, - nullable: true, + type: { + serializedName: "type", + required: true, type: { name: "String", }, @@ -4459,75 +4461,62 @@ export const MarketplacePlan: coreClient.CompositeMapper = { }, }; -export const OnlineEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "OnlineEndpointTrackedResourceArmPaginatedResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OnlineEndpoint", - }, - }, - }, +export const ManagedNetworkProvisionStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedNetworkProvisionStatus", + modelProperties: { + sparkReady: { + serializedName: "sparkReady", + type: { + name: "Boolean", }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, + }, + status: { + serializedName: "status", + type: { + name: "String", }, }, }, - }; + }, +}; -export const OnlineDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "OnlineDeploymentTrackedResourceArmPaginatedResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OnlineDeployment", - }, - }, - }, +export const FeatureStoreSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeatureStoreSettings", + modelProperties: { + computeRuntime: { + serializedName: "computeRuntime", + type: { + name: "Composite", + className: "ComputeRuntimeDto", }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, + }, + offlineStoreConnectionName: { + serializedName: "offlineStoreConnectionName", + type: { + name: "String", + }, + }, + onlineStoreConnectionName: { + serializedName: "onlineStoreConnectionName", + type: { + name: "String", }, }, }, - }; + }, +}; -export const OnlineScaleSettings: coreClient.CompositeMapper = { +export const ComputeRuntimeDto: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineScaleSettings", - uberParent: "OnlineScaleSettings", - polymorphicDiscriminator: { - serializedName: "scaleType", - clientName: "scaleType", - }, + className: "ComputeRuntimeDto", modelProperties: { - scaleType: { - serializedName: "scaleType", - required: true, + sparkRuntimeVersion: { + serializedName: "sparkRuntimeVersion", type: { name: "String", }, @@ -4536,237 +4525,179 @@ export const OnlineScaleSettings: coreClient.CompositeMapper = { }, }; -export const OnlineRequestSettings: coreClient.CompositeMapper = { +export const WorkspaceHubConfig: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineRequestSettings", + className: "WorkspaceHubConfig", modelProperties: { - maxQueueWait: { - defaultValue: "PT0.5S", - serializedName: "maxQueueWait", - type: { - name: "TimeSpan", - }, - }, - requestTimeout: { - defaultValue: "PT5S", - serializedName: "requestTimeout", + additionalWorkspaceStorageAccounts: { + serializedName: "additionalWorkspaceStorageAccounts", type: { - name: "TimeSpan", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - maxConcurrentRequestsPerInstance: { - defaultValue: 1, - serializedName: "maxConcurrentRequestsPerInstance", + defaultWorkspaceResourceGroup: { + serializedName: "defaultWorkspaceResourceGroup", type: { - name: "Number", + name: "String", }, }, }, }, }; -export const ProbeSettings: coreClient.CompositeMapper = { +export const WorkspaceUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProbeSettings", + className: "WorkspaceUpdateParameters", modelProperties: { - failureThreshold: { - defaultValue: 30, - serializedName: "failureThreshold", - type: { - name: "Number", - }, - }, - successThreshold: { - defaultValue: 1, - serializedName: "successThreshold", + tags: { + serializedName: "tags", type: { - name: "Number", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - timeout: { - defaultValue: "PT2S", - serializedName: "timeout", + sku: { + serializedName: "sku", type: { - name: "TimeSpan", + name: "Composite", + className: "Sku", }, }, - period: { - defaultValue: "PT10S", - serializedName: "period", + identity: { + serializedName: "identity", type: { - name: "TimeSpan", + name: "Composite", + className: "ManagedServiceIdentity", }, }, - initialDelay: { - serializedName: "initialDelay", - nullable: true, + description: { + serializedName: "properties.description", type: { - name: "TimeSpan", + name: "String", }, }, - }, - }, -}; - -export const DataCollector: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataCollector", - modelProperties: { - collections: { - serializedName: "collections", - required: true, + friendlyName: { + serializedName: "properties.friendlyName", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "Collection" } }, + name: "String", }, }, - rollingRate: { - serializedName: "rollingRate", + imageBuildCompute: { + serializedName: "properties.imageBuildCompute", type: { name: "String", }, }, - requestLogging: { - serializedName: "requestLogging", + serviceManagedResourcesSettings: { + serializedName: "properties.serviceManagedResourcesSettings", type: { name: "Composite", - className: "RequestLogging", + className: "ServiceManagedResourcesSettings", }, }, - }, - }, -}; - -export const Collection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Collection", - modelProperties: { - samplingRate: { - defaultValue: 1, - serializedName: "samplingRate", + primaryUserAssignedIdentity: { + serializedName: "properties.primaryUserAssignedIdentity", type: { - name: "Number", + name: "String", }, }, - dataCollectionMode: { - serializedName: "dataCollectionMode", + serverlessComputeSettings: { + serializedName: "properties.serverlessComputeSettings", type: { - name: "String", + name: "Composite", + className: "ServerlessComputeSettings", }, }, - dataId: { - serializedName: "dataId", - nullable: true, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { name: "String", }, }, - clientId: { - serializedName: "clientId", - nullable: true, + applicationInsights: { + serializedName: "properties.applicationInsights", type: { name: "String", }, }, - }, - }, -}; - -export const RequestLogging: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RequestLogging", - modelProperties: { - captureHeaders: { - serializedName: "captureHeaders", - nullable: true, + containerRegistry: { + serializedName: "properties.containerRegistry", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - }, - }, -}; - -export const PartialSku: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PartialSku", - modelProperties: { - name: { - serializedName: "name", + featureStoreSettings: { + serializedName: "properties.featureStoreSettings", type: { - name: "String", + name: "Composite", + className: "FeatureStoreSettings", }, }, - tier: { - serializedName: "tier", + managedNetwork: { + serializedName: "properties.managedNetwork", type: { - name: "Enum", - allowedValues: ["Free", "Basic", "Standard", "Premium"], + name: "Composite", + className: "ManagedNetworkSettings", }, }, - size: { - serializedName: "size", + enableDataIsolation: { + serializedName: "properties.enableDataIsolation", type: { - name: "String", + name: "Boolean", }, }, - family: { - serializedName: "family", + v1LegacyMode: { + serializedName: "properties.v1LegacyMode", type: { - name: "String", + name: "Boolean", }, }, - capacity: { - serializedName: "capacity", + encryption: { + serializedName: "properties.encryption", type: { - name: "Number", + name: "Composite", + className: "EncryptionUpdateProperties", }, }, }, }, }; -export const DeploymentLogsRequest: coreClient.CompositeMapper = { +export const EncryptionUpdateProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentLogsRequest", + className: "EncryptionUpdateProperties", modelProperties: { - containerType: { - serializedName: "containerType", - type: { - name: "String", - }, - }, - tail: { - serializedName: "tail", - nullable: true, + keyVaultProperties: { + serializedName: "keyVaultProperties", type: { - name: "Number", + name: "Composite", + className: "EncryptionKeyVaultUpdateProperties", }, }, }, }, }; -export const DeploymentLogs: coreClient.CompositeMapper = { +export const EncryptionKeyVaultUpdateProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentLogs", + className: "EncryptionKeyVaultUpdateProperties", modelProperties: { - content: { - serializedName: "content", - nullable: true, + keyIdentifier: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1, + }, + serializedName: "keyIdentifier", + required: true, type: { name: "String", }, @@ -4775,10 +4706,10 @@ export const DeploymentLogs: coreClient.CompositeMapper = { }, }; -export const SkuResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const WorkspaceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SkuResourceArmPaginatedResult", + className: "WorkspaceListResult", modelProperties: { value: { serializedName: "value", @@ -4787,7 +4718,7 @@ export const SkuResourceArmPaginatedResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SkuResource", + className: "Workspace", }, }, }, @@ -4802,388 +4733,392 @@ export const SkuResourceArmPaginatedResult: coreClient.CompositeMapper = { }, }; -export const SkuResource: coreClient.CompositeMapper = { +export const DiagnoseWorkspaceParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SkuResource", + className: "DiagnoseWorkspaceParameters", modelProperties: { - resourceType: { - serializedName: "resourceType", - readOnly: true, - nullable: true, - type: { - name: "String", - }, - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "SkuSetting", - }, - }, - capacity: { - serializedName: "capacity", + value: { + serializedName: "value", type: { name: "Composite", - className: "SkuCapacity", + className: "DiagnoseRequestProperties", }, }, }, }, }; -export const SkuSetting: coreClient.CompositeMapper = { +export const DiagnoseRequestProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SkuSetting", + className: "DiagnoseRequestProperties", modelProperties: { - name: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]"), - MinLength: 1, + udr: { + serializedName: "udr", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, }, - serializedName: "name", - required: true, + }, + nsg: { + serializedName: "nsg", type: { - name: "String", + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, }, }, - tier: { - serializedName: "tier", + resourceLock: { + serializedName: "resourceLock", type: { - name: "Enum", - allowedValues: ["Free", "Basic", "Standard", "Premium"], + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, }, }, - }, - }, -}; - -export const SkuCapacity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SkuCapacity", - modelProperties: { - minimum: { - defaultValue: 0, - serializedName: "minimum", + dnsResolution: { + serializedName: "dnsResolution", type: { - name: "Number", + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, }, }, - maximum: { - defaultValue: 0, - serializedName: "maximum", + storageAccount: { + serializedName: "storageAccount", type: { - name: "Number", + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, }, }, - default: { - defaultValue: 0, - serializedName: "default", + keyVault: { + serializedName: "keyVault", type: { - name: "Number", + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, }, }, - scaleType: { - serializedName: "scaleType", + containerRegistry: { + serializedName: "containerRegistry", type: { - name: "String", + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, + }, + }, + applicationInsights: { + serializedName: "applicationInsights", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, + }, + }, + others: { + serializedName: "others", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, }, }, }, }, }; -export const RegenerateEndpointKeysRequest: coreClient.CompositeMapper = { +export const DiagnoseResponseResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegenerateEndpointKeysRequest", + className: "DiagnoseResponseResult", modelProperties: { - keyType: { - serializedName: "keyType", - required: true, - type: { - name: "String", - }, - }, - keyValue: { - serializedName: "keyValue", - nullable: true, + value: { + serializedName: "value", type: { - name: "String", + name: "Composite", + className: "DiagnoseResponseResultValue", }, }, }, }, }; -export const EndpointAuthToken: coreClient.CompositeMapper = { +export const DiagnoseResponseResultValue: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointAuthToken", + className: "DiagnoseResponseResultValue", modelProperties: { - accessToken: { - serializedName: "accessToken", - nullable: true, + userDefinedRouteResults: { + serializedName: "userDefinedRouteResults", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult", + }, + }, }, }, - tokenType: { - serializedName: "tokenType", - nullable: true, + networkSecurityRuleResults: { + serializedName: "networkSecurityRuleResults", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult", + }, + }, }, }, - expiryTimeUtc: { - defaultValue: 0, - serializedName: "expiryTimeUtc", + resourceLockResults: { + serializedName: "resourceLockResults", type: { - name: "Number", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult", + }, + }, }, }, - refreshAfterTimeUtc: { - defaultValue: 0, - serializedName: "refreshAfterTimeUtc", + dnsResolutionResults: { + serializedName: "dnsResolutionResults", type: { - name: "Number", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult", + }, + }, }, }, - }, - }, -}; - -export const ScheduleResourceArmPaginatedResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScheduleResourceArmPaginatedResult", - modelProperties: { - value: { - serializedName: "value", + storageAccountResults: { + serializedName: "storageAccountResults", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Schedule", + className: "DiagnoseResult", }, }, }, }, - nextLink: { - serializedName: "nextLink", + keyVaultResults: { + serializedName: "keyVaultResults", type: { - name: "String", - }, - }, - }, - }, -}; - -export const ScheduleActionBase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScheduleActionBase", - uberParent: "ScheduleActionBase", - polymorphicDiscriminator: { - serializedName: "actionType", - clientName: "actionType", - }, - modelProperties: { - actionType: { - serializedName: "actionType", - required: true, + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult", + }, + }, + }, + }, + containerRegistryResults: { + serializedName: "containerRegistryResults", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult", + }, + }, }, }, - }, - }, -}; - -export const ServerlessEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ServerlessEndpointTrackedResourceArmPaginatedResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerlessEndpoint", - }, + applicationInsightsResults: { + serializedName: "applicationInsightsResults", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult", }, }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", + }, + otherResults: { + serializedName: "otherResults", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult", + }, }, }, }, }, - }; + }, +}; -export const ServerlessEndpointProperties: coreClient.CompositeMapper = { +export const DiagnoseResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerlessEndpointProperties", + className: "DiagnoseResult", modelProperties: { - modelSettings: { - serializedName: "modelSettings", + code: { + serializedName: "code", + readOnly: true, type: { - name: "Composite", - className: "ModelSettings", + name: "String", }, }, - authMode: { - serializedName: "authMode", - required: true, + level: { + serializedName: "level", + readOnly: true, type: { name: "String", }, }, - inferenceEndpoint: { - serializedName: "inferenceEndpoint", + message: { + serializedName: "message", + readOnly: true, type: { - name: "Composite", - className: "ServerlessInferenceEndpoint", + name: "String", }, }, - provisioningState: { - serializedName: "provisioningState", + }, + }, +}; + +export const ListWorkspaceKeysResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListWorkspaceKeysResult", + modelProperties: { + userStorageKey: { + serializedName: "userStorageKey", readOnly: true, type: { name: "String", }, }, - endpointState: { - serializedName: "endpointState", + userStorageResourceId: { + serializedName: "userStorageResourceId", readOnly: true, type: { name: "String", }, }, - marketplaceSubscriptionId: { - serializedName: "marketplaceSubscriptionId", + appInsightsInstrumentationKey: { + serializedName: "appInsightsInstrumentationKey", readOnly: true, - nullable: true, type: { name: "String", }, }, - contentSafety: { - serializedName: "contentSafety", + containerRegistryCredentials: { + serializedName: "containerRegistryCredentials", type: { name: "Composite", - className: "ContentSafety", + className: "RegistryListCredentialsResult", + }, + }, + notebookAccessKeys: { + serializedName: "notebookAccessKeys", + type: { + name: "Composite", + className: "ListNotebookKeysResult", }, }, }, }, }; -export const ModelSettings: coreClient.CompositeMapper = { +export const RegistryListCredentialsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelSettings", + className: "RegistryListCredentialsResult", modelProperties: { - modelId: { - serializedName: "modelId", - nullable: true, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String", + }, + }, + username: { + serializedName: "username", + readOnly: true, type: { name: "String", }, }, + passwords: { + serializedName: "passwords", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Password", + }, + }, + }, + }, }, }, }; -export const ServerlessInferenceEndpoint: coreClient.CompositeMapper = { +export const Password: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerlessInferenceEndpoint", + className: "Password", modelProperties: { - uri: { - serializedName: "uri", - required: true, + name: { + serializedName: "name", + readOnly: true, type: { name: "String", }, }, - headers: { - serializedName: "headers", + value: { + serializedName: "value", readOnly: true, - nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, }, }, }; -export const ContentSafety: coreClient.CompositeMapper = { +export const ListNotebookKeysResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContentSafety", + className: "ListNotebookKeysResult", modelProperties: { - contentSafetyStatus: { - serializedName: "contentSafetyStatus", - required: true, + primaryAccessKey: { + serializedName: "primaryAccessKey", + readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const RegistryTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "RegistryTrackedResourceArmPaginatedResult", - modelProperties: { - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Registry", - }, - }, - }, - }, - }, - }, - }; - -export const ArmResourceId: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ArmResourceId", - modelProperties: { - resourceId: { - serializedName: "resourceId", - nullable: true, + secondaryAccessKey: { + serializedName: "secondaryAccessKey", + readOnly: true, type: { name: "String", }, @@ -5192,126 +5127,105 @@ export const ArmResourceId: coreClient.CompositeMapper = { }, }; -export const RegistryPrivateEndpointConnection: coreClient.CompositeMapper = { +export const NotebookAccessTokenResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegistryPrivateEndpointConnection", + className: "NotebookAccessTokenResult", modelProperties: { - id: { - serializedName: "id", - nullable: true, + notebookResourceId: { + serializedName: "notebookResourceId", + readOnly: true, type: { name: "String", }, }, - location: { - serializedName: "location", - nullable: true, + hostName: { + serializedName: "hostName", + readOnly: true, type: { name: "String", }, }, - groupIds: { - serializedName: "properties.groupIds", - nullable: true, + publicDns: { + serializedName: "publicDns", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + accessToken: { + serializedName: "accessToken", + readOnly: true, type: { - name: "Composite", - className: "PrivateEndpointResource", + name: "String", }, }, - registryPrivateLinkServiceConnectionState: { - serializedName: "properties.registryPrivateLinkServiceConnectionState", + tokenType: { + serializedName: "tokenType", + readOnly: true, type: { - name: "Composite", - className: "RegistryPrivateLinkServiceConnectionState", + name: "String", }, }, - provisioningState: { - serializedName: "properties.provisioningState", - nullable: true, + expiresIn: { + serializedName: "expiresIn", + readOnly: true, type: { - name: "String", + name: "Number", }, }, - }, - }, -}; - -export const RegistryPrivateLinkServiceConnectionState: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "RegistryPrivateLinkServiceConnectionState", - modelProperties: { - actionsRequired: { - serializedName: "actionsRequired", - nullable: true, - type: { - name: "String", - }, - }, - description: { - serializedName: "description", - nullable: true, - type: { - name: "String", - }, + refreshToken: { + serializedName: "refreshToken", + readOnly: true, + type: { + name: "String", }, - status: { - serializedName: "status", - type: { - name: "String", - }, + }, + scope: { + serializedName: "scope", + readOnly: true, + type: { + name: "String", }, }, }, - }; + }, +}; -export const RegistryRegionArmDetails: coreClient.CompositeMapper = { +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegistryRegionArmDetails", + className: "PrivateEndpointConnectionListResult", modelProperties: { - acrDetails: { - serializedName: "acrDetails", - nullable: true, + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AcrDetails", + className: "PrivateEndpointConnection", }, }, }, }, - location: { - serializedName: "location", - nullable: true, - type: { - name: "String", - }, - }, - storageAccountDetails: { - serializedName: "storageAccountDetails", - nullable: true, + }, + }, +}; + +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "StorageAccountDetails", + className: "PrivateLinkResource", }, }, }, @@ -5320,132 +5234,103 @@ export const RegistryRegionArmDetails: coreClient.CompositeMapper = { }, }; -export const AcrDetails: coreClient.CompositeMapper = { +export const ListStorageAccountKeysResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AcrDetails", + className: "ListStorageAccountKeysResult", modelProperties: { - systemCreatedAcrAccount: { - serializedName: "systemCreatedAcrAccount", - type: { - name: "Composite", - className: "SystemCreatedAcrAccount", - }, - }, - userCreatedAcrAccount: { - serializedName: "userCreatedAcrAccount", + userStorageKey: { + serializedName: "userStorageKey", + readOnly: true, type: { - name: "Composite", - className: "UserCreatedAcrAccount", + name: "String", }, }, }, }, }; -export const SystemCreatedAcrAccount: coreClient.CompositeMapper = { +export const WorkspaceConnectionPropertiesV2: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemCreatedAcrAccount", + className: "WorkspaceConnectionPropertiesV2", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: { + serializedName: "authType", + clientName: "authType", + }, modelProperties: { - acrAccountName: { - serializedName: "acrAccountName", - nullable: true, + authType: { + serializedName: "authType", + required: true, type: { name: "String", }, }, - acrAccountSku: { - serializedName: "acrAccountSku", - nullable: true, + category: { + serializedName: "category", type: { name: "String", }, }, - armResourceId: { - serializedName: "armResourceId", + createdByWorkspaceArmId: { + serializedName: "createdByWorkspaceArmId", + readOnly: true, type: { - name: "Composite", - className: "ArmResourceId", + name: "String", }, }, - }, - }, -}; - -export const UserCreatedAcrAccount: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UserCreatedAcrAccount", - modelProperties: { - armResourceId: { - serializedName: "armResourceId", + expiryTime: { + serializedName: "expiryTime", type: { - name: "Composite", - className: "ArmResourceId", + name: "DateTime", }, }, - }, - }, -}; - -export const StorageAccountDetails: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StorageAccountDetails", - modelProperties: { - systemCreatedStorageAccount: { - serializedName: "systemCreatedStorageAccount", + group: { + serializedName: "group", + readOnly: true, type: { - name: "Composite", - className: "SystemCreatedStorageAccount", + name: "String", }, }, - userCreatedStorageAccount: { - serializedName: "userCreatedStorageAccount", + isSharedToAll: { + serializedName: "isSharedToAll", type: { - name: "Composite", - className: "UserCreatedStorageAccount", + name: "Boolean", }, }, - }, - }, -}; - -export const SystemCreatedStorageAccount: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SystemCreatedStorageAccount", - modelProperties: { - allowBlobPublicAccess: { - serializedName: "allowBlobPublicAccess", + target: { + serializedName: "target", type: { - name: "Boolean", + name: "String", }, }, - armResourceId: { - serializedName: "armResourceId", + metadata: { + serializedName: "metadata", type: { - name: "Composite", - className: "ArmResourceId", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - storageAccountHnsEnabled: { - serializedName: "storageAccountHnsEnabled", + sharedUserList: { + serializedName: "sharedUserList", type: { - name: "Boolean", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - storageAccountName: { - serializedName: "storageAccountName", - nullable: true, + value: { + serializedName: "value", type: { name: "String", }, }, - storageAccountType: { - serializedName: "storageAccountType", - nullable: true, + valueFormat: { + serializedName: "valueFormat", type: { name: "String", }, @@ -5454,105 +5339,196 @@ export const SystemCreatedStorageAccount: coreClient.CompositeMapper = { }, }; -export const UserCreatedStorageAccount: coreClient.CompositeMapper = { +export const WorkspaceConnectionUpdateParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserCreatedStorageAccount", + className: "WorkspaceConnectionUpdateParameter", modelProperties: { - armResourceId: { - serializedName: "armResourceId", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "ArmResourceId", + className: "WorkspaceConnectionPropertiesV2", }, }, }, }, }; -export const PartialRegistryPartialTrackedResource: coreClient.CompositeMapper = +export const WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartialRegistryPartialTrackedResource", + className: + "WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult", modelProperties: { - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "RegistryPartialManagedServiceIdentity", - }, - }, - sku: { - serializedName: "sku", + value: { + serializedName: "value", type: { - name: "Composite", - className: "PartialSku", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceConnectionPropertiesV2BasicResource", + }, + }, }, }, - tags: { - serializedName: "tags", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, }, }, }; -export const ListAmlUserFeatureResult: coreClient.CompositeMapper = { +export const ExternalFqdnResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListAmlUserFeatureResult", + className: "ExternalFqdnResponse", modelProperties: { value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AmlUserFeature", + className: "FqdnEndpoints", }, }, }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + }, + }, +}; + +export const FqdnEndpoints: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FqdnEndpoints", + modelProperties: { + properties: { + serializedName: "properties", type: { - name: "String", + name: "Composite", + className: "FqdnEndpointsProperties", }, }, }, }, }; -export const AmlUserFeature: coreClient.CompositeMapper = { +export const FqdnEndpointsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlUserFeature", + className: "FqdnEndpointsProperties", modelProperties: { - id: { - serializedName: "id", + category: { + serializedName: "category", type: { name: "String", }, }, - displayName: { - serializedName: "displayName", + endpoints: { + serializedName: "endpoints", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FqdnEndpoint", + }, + }, + }, + }, + }, + }, +}; + +export const FqdnEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FqdnEndpoint", + modelProperties: { + domainName: { + serializedName: "domainName", type: { name: "String", }, }, - description: { - serializedName: "description", + endpointDetails: { + serializedName: "endpointDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FqdnEndpointDetail", + }, + }, + }, + }, + }, + }, +}; + +export const FqdnEndpointDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FqdnEndpointDetail", + modelProperties: { + port: { + serializedName: "port", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const OutboundRuleListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OutboundRuleListResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", type: { name: "String", }, }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutboundRuleBasicResource", + }, + }, + }, + }, + }, + }, +}; + +export const ManagedNetworkProvisionOptions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedNetworkProvisionOptions", + modelProperties: { + includeSpark: { + serializedName: "includeSpark", + type: { + name: "Boolean", + }, + }, }, }, }; @@ -7786,31 +7762,19 @@ export const IdleShutdownSetting: coreClient.CompositeMapper = { }, }; -export const PrivateEndpointDestination: coreClient.CompositeMapper = { +export const MonitoringFeatureFilterBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointDestination", + className: "MonitoringFeatureFilterBase", + uberParent: "MonitoringFeatureFilterBase", + polymorphicDiscriminator: { + serializedName: "filterType", + clientName: "filterType", + }, modelProperties: { - serviceResourceId: { - serializedName: "serviceResourceId", - type: { - name: "String", - }, - }, - sparkEnabled: { - serializedName: "sparkEnabled", - type: { - name: "Boolean", - }, - }, - sparkStatus: { - serializedName: "sparkStatus", - type: { - name: "String", - }, - }, - subresourceTarget: { - serializedName: "subresourceTarget", + filterType: { + serializedName: "filterType", + required: true, type: { name: "String", }, @@ -7819,43 +7783,45 @@ export const PrivateEndpointDestination: coreClient.CompositeMapper = { }, }; -export const ServiceTagDestination: coreClient.CompositeMapper = { +export const MonitorComputeIdentityBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceTagDestination", + className: "MonitorComputeIdentityBase", + uberParent: "MonitorComputeIdentityBase", + polymorphicDiscriminator: { + serializedName: "computeIdentityType", + clientName: "computeIdentityType", + }, modelProperties: { - action: { - serializedName: "action", + computeIdentityType: { + serializedName: "computeIdentityType", + required: true, type: { name: "String", }, }, - addressPrefixes: { - serializedName: "addressPrefixes", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - portRanges: { - serializedName: "portRanges", + }, + }, +}; + +export const AssetJobInput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssetJobInput", + modelProperties: { + mode: { + serializedName: "mode", type: { name: "String", }, }, - protocol: { - serializedName: "protocol", - type: { - name: "String", + uri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1, }, - }, - serviceTag: { - serializedName: "serviceTag", + serializedName: "uri", + required: true, type: { name: "String", }, @@ -7864,25 +7830,20 @@ export const ServiceTagDestination: coreClient.CompositeMapper = { }, }; -export const WorkspaceConnectionUsernamePassword: coreClient.CompositeMapper = { +export const AssetJobOutput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionUsernamePassword", + className: "AssetJobOutput", modelProperties: { - username: { - serializedName: "username", - type: { - name: "String", - }, - }, - password: { - serializedName: "password", + mode: { + serializedName: "mode", type: { name: "String", }, }, - securityToken: { - serializedName: "securityToken", + uri: { + serializedName: "uri", + nullable: true, type: { name: "String", }, @@ -7891,66 +7852,19 @@ export const WorkspaceConnectionUsernamePassword: coreClient.CompositeMapper = { }, }; -export const WorkspaceConnectionPersonalAccessToken: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "WorkspaceConnectionPersonalAccessToken", - modelProperties: { - pat: { - serializedName: "pat", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const WorkspaceConnectionSharedAccessSignature: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "WorkspaceConnectionSharedAccessSignature", - modelProperties: { - sas: { - serializedName: "sas", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const WorkspaceConnectionAccountKey: coreClient.CompositeMapper = { +export const ForecastHorizon: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionAccountKey", - modelProperties: { - key: { - serializedName: "key", - type: { - name: "String", - }, - }, + className: "ForecastHorizon", + uberParent: "ForecastHorizon", + polymorphicDiscriminator: { + serializedName: "mode", + clientName: "mode", }, - }, -}; - -export const WorkspaceConnectionManagedIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkspaceConnectionManagedIdentity", modelProperties: { - resourceId: { - serializedName: "resourceId", - type: { - name: "String", - }, - }, - clientId: { - serializedName: "clientId", + mode: { + serializedName: "mode", + required: true, type: { name: "String", }, @@ -7959,19 +7873,26 @@ export const WorkspaceConnectionManagedIdentity: coreClient.CompositeMapper = { }, }; -export const WorkspaceConnectionAccessKey: coreClient.CompositeMapper = { +export const JobOutput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionAccessKey", + className: "JobOutput", + uberParent: "JobOutput", + polymorphicDiscriminator: { + serializedName: "jobOutputType", + clientName: "jobOutputType", + }, modelProperties: { - accessKeyId: { - serializedName: "accessKeyId", + description: { + serializedName: "description", + nullable: true, type: { name: "String", }, }, - secretAccessKey: { - serializedName: "secretAccessKey", + jobOutputType: { + serializedName: "jobOutputType", + required: true, type: { name: "String", }, @@ -7980,13 +7901,13 @@ export const WorkspaceConnectionAccessKey: coreClient.CompositeMapper = { }, }; -export const WorkspaceConnectionApiKey: coreClient.CompositeMapper = { +export const QueueSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionApiKey", + className: "QueueSettings", modelProperties: { - key: { - serializedName: "key", + jobTier: { + serializedName: "jobTier", type: { name: "String", }, @@ -7995,98 +7916,67 @@ export const WorkspaceConnectionApiKey: coreClient.CompositeMapper = { }, }; -export const CustomKeys: coreClient.CompositeMapper = { +export const AutoMLVertical: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomKeys", - modelProperties: { - keys: { - serializedName: "keys", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, + className: "AutoMLVertical", + uberParent: "AutoMLVertical", + polymorphicDiscriminator: { + serializedName: "taskType", + clientName: "taskType", }, - }, -}; - -export const WorkspaceConnectionOAuth2: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkspaceConnectionOAuth2", modelProperties: { - authUrl: { - serializedName: "authUrl", - type: { - name: "String", - }, - }, - clientId: { - serializedName: "clientId", - type: { - name: "Uuid", - }, - }, - clientSecret: { - serializedName: "clientSecret", - type: { - name: "String", - }, - }, - developerToken: { - serializedName: "developerToken", - type: { - name: "String", - }, - }, - password: { - serializedName: "password", + logVerbosity: { + serializedName: "logVerbosity", type: { name: "String", }, }, - refreshToken: { - serializedName: "refreshToken", + targetColumnName: { + serializedName: "targetColumnName", + nullable: true, type: { name: "String", }, }, - tenantId: { - serializedName: "tenantId", + taskType: { + serializedName: "taskType", + required: true, type: { name: "String", }, }, - username: { - serializedName: "username", + trainingData: { + serializedName: "trainingData", type: { - name: "String", + name: "Composite", + className: "MLTableJobInput", }, }, }, }, }; -export const WorkspaceConnectionServicePrincipal: coreClient.CompositeMapper = { +export const JobInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionServicePrincipal", + className: "JobInput", + uberParent: "JobInput", + polymorphicDiscriminator: { + serializedName: "jobInputType", + clientName: "jobInputType", + }, modelProperties: { - clientId: { - serializedName: "clientId", - type: { - name: "String", - }, - }, - clientSecret: { - serializedName: "clientSecret", + description: { + serializedName: "description", + nullable: true, type: { name: "String", }, }, - tenantId: { - serializedName: "tenantId", + jobInputType: { + serializedName: "jobInputType", + required: true, type: { name: "String", }, @@ -8095,18 +7985,18 @@ export const WorkspaceConnectionServicePrincipal: coreClient.CompositeMapper = { }, }; -export const MonitoringFeatureFilterBase: coreClient.CompositeMapper = { +export const NCrossValidations: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MonitoringFeatureFilterBase", - uberParent: "MonitoringFeatureFilterBase", + className: "NCrossValidations", + uberParent: "NCrossValidations", polymorphicDiscriminator: { - serializedName: "filterType", - clientName: "filterType", + serializedName: "mode", + clientName: "mode", }, modelProperties: { - filterType: { - serializedName: "filterType", + mode: { + serializedName: "mode", required: true, type: { name: "String", @@ -8116,18 +8006,18 @@ export const MonitoringFeatureFilterBase: coreClient.CompositeMapper = { }, }; -export const MonitorComputeIdentityBase: coreClient.CompositeMapper = { +export const Seasonality: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MonitorComputeIdentityBase", - uberParent: "MonitorComputeIdentityBase", + className: "Seasonality", + uberParent: "Seasonality", polymorphicDiscriminator: { - serializedName: "computeIdentityType", - clientName: "computeIdentityType", + serializedName: "mode", + clientName: "mode", }, modelProperties: { - computeIdentityType: { - serializedName: "computeIdentityType", + mode: { + serializedName: "mode", required: true, type: { name: "String", @@ -8137,24 +8027,40 @@ export const MonitorComputeIdentityBase: coreClient.CompositeMapper = { }, }; -export const AssetJobInput: coreClient.CompositeMapper = { +export const TargetLags: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssetJobInput", + className: "TargetLags", + uberParent: "TargetLags", + polymorphicDiscriminator: { + serializedName: "mode", + clientName: "mode", + }, modelProperties: { - uri: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]"), - MinLength: 1, - }, - serializedName: "uri", + mode: { + serializedName: "mode", required: true, type: { name: "String", }, }, + }, + }, +}; + +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", }, @@ -8163,20 +8069,21 @@ export const AssetJobInput: coreClient.CompositeMapper = { }, }; -export const AssetJobOutput: coreClient.CompositeMapper = { +export const AzureDatastore: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssetJobOutput", + className: "AzureDatastore", modelProperties: { - uri: { - serializedName: "uri", + resourceGroup: { + serializedName: "resourceGroup", nullable: true, type: { name: "String", }, }, - mode: { - serializedName: "mode", + subscriptionId: { + serializedName: "subscriptionId", + nullable: true, type: { name: "String", }, @@ -8185,261 +8092,21 @@ export const AssetJobOutput: coreClient.CompositeMapper = { }, }; -export const ForecastHorizon: coreClient.CompositeMapper = { +export const EarlyTerminationPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ForecastHorizon", - uberParent: "ForecastHorizon", + className: "EarlyTerminationPolicy", + uberParent: "EarlyTerminationPolicy", polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode", + serializedName: "policyType", + clientName: "policyType", }, modelProperties: { - mode: { - serializedName: "mode", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const AutoMLVertical: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutoMLVertical", - uberParent: "AutoMLVertical", - polymorphicDiscriminator: { - serializedName: "taskType", - clientName: "taskType", - }, - modelProperties: { - taskType: { - serializedName: "taskType", - required: true, - type: { - name: "String", - }, - }, - logVerbosity: { - serializedName: "logVerbosity", - type: { - name: "String", - }, - }, - trainingData: { - serializedName: "trainingData", - type: { - name: "Composite", - className: "MLTableJobInput", - }, - }, - targetColumnName: { - serializedName: "targetColumnName", - nullable: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const JobInput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobInput", - uberParent: "JobInput", - polymorphicDiscriminator: { - serializedName: "jobInputType", - clientName: "jobInputType", - }, - modelProperties: { - jobInputType: { - serializedName: "jobInputType", - required: true, - type: { - name: "String", - }, - }, - description: { - serializedName: "description", - nullable: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const JobOutput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobOutput", - uberParent: "JobOutput", - polymorphicDiscriminator: { - serializedName: "jobOutputType", - clientName: "jobOutputType", - }, - modelProperties: { - jobOutputType: { - serializedName: "jobOutputType", - required: true, - type: { - name: "String", - }, - }, - description: { - serializedName: "description", - nullable: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const QueueSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "QueueSettings", - modelProperties: { - jobTier: { - serializedName: "jobTier", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const NCrossValidations: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NCrossValidations", - uberParent: "NCrossValidations", - polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode", - }, - modelProperties: { - mode: { - serializedName: "mode", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -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: "String", - }, - }, - }, - }, -}; - -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", - }, - }, - }, - }, -}; - -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", - }, - }, - }, - }, -}; - -export const AzureDatastore: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureDatastore", - modelProperties: { - subscriptionId: { - serializedName: "subscriptionId", - nullable: true, - type: { - name: "String", - }, - }, - resourceGroup: { - serializedName: "resourceGroup", - nullable: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const EarlyTerminationPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EarlyTerminationPolicy", - uberParent: "EarlyTerminationPolicy", - polymorphicDiscriminator: { - serializedName: "policyType", - clientName: "policyType", - }, - modelProperties: { - policyType: { - serializedName: "policyType", - required: true, + delayEvaluation: { + defaultValue: 0, + serializedName: "delayEvaluation", type: { - name: "String", + name: "Number", }, }, evaluationInterval: { @@ -8449,11 +8116,11 @@ export const EarlyTerminationPolicy: coreClient.CompositeMapper = { name: "Number", }, }, - delayEvaluation: { - defaultValue: 0, - serializedName: "delayEvaluation", + policyType: { + serializedName: "policyType", + required: true, type: { - name: "Number", + name: "String", }, }, }, @@ -8586,18 +8253,25 @@ export const TrainingSettings: coreClient.CompositeMapper = { name: "Composite", className: "TrainingSettings", modelProperties: { - enableOnnxCompatibleModels: { + enableDnnTraining: { defaultValue: false, - serializedName: "enableOnnxCompatibleModels", + serializedName: "enableDnnTraining", type: { name: "Boolean", }, }, - stackEnsembleSettings: { - serializedName: "stackEnsembleSettings", + enableModelExplainability: { + defaultValue: true, + serializedName: "enableModelExplainability", type: { - name: "Composite", - className: "StackEnsembleSettings", + name: "Boolean", + }, + }, + enableOnnxCompatibleModels: { + defaultValue: false, + serializedName: "enableOnnxCompatibleModels", + type: { + name: "Boolean", }, }, enableStackEnsemble: { @@ -8621,18 +8295,11 @@ export const TrainingSettings: coreClient.CompositeMapper = { name: "TimeSpan", }, }, - enableModelExplainability: { - defaultValue: true, - serializedName: "enableModelExplainability", - type: { - name: "Boolean", - }, - }, - enableDnnTraining: { - defaultValue: false, - serializedName: "enableDnnTraining", + stackEnsembleSettings: { + serializedName: "stackEnsembleSettings", type: { - name: "Boolean", + name: "Composite", + className: "StackEnsembleSettings", }, }, }, @@ -8644,10 +8311,12 @@ export const StackEnsembleSettings: coreClient.CompositeMapper = { name: "Composite", className: "StackEnsembleSettings", modelProperties: { - stackMetaLearnerType: { - serializedName: "stackMetaLearnerType", + stackMetaLearnerKWargs: { + serializedName: "stackMetaLearnerKWargs", + nullable: true, type: { - name: "String", + name: "Dictionary", + value: { type: { name: "any" } }, }, }, stackMetaLearnerTrainPercentage: { @@ -8657,12 +8326,10 @@ export const StackEnsembleSettings: coreClient.CompositeMapper = { name: "Number", }, }, - stackMetaLearnerKWargs: { - serializedName: "stackMetaLearnerKWargs", - nullable: true, + stackMetaLearnerType: { + serializedName: "stackMetaLearnerType", type: { - name: "Dictionary", - value: { type: { name: "any" } }, + name: "String", }, }, }, @@ -8674,20 +8341,6 @@ export const TableVertical: coreClient.CompositeMapper = { name: "Composite", className: "TableVertical", modelProperties: { - limitSettings: { - serializedName: "limitSettings", - type: { - name: "Composite", - className: "TableVerticalLimitSettings", - }, - }, - nCrossValidations: { - serializedName: "nCrossValidations", - type: { - name: "Composite", - className: "NCrossValidations", - }, - }, cvSplitColumnNames: { serializedName: "cvSplitColumnNames", nullable: true, @@ -8700,32 +8353,32 @@ export const TableVertical: coreClient.CompositeMapper = { }, }, }, - weightColumnName: { - serializedName: "weightColumnName", - nullable: true, + featurizationSettings: { + serializedName: "featurizationSettings", type: { - name: "String", + name: "Composite", + className: "TableVerticalFeaturizationSettings", }, }, - validationData: { - serializedName: "validationData", + limitSettings: { + serializedName: "limitSettings", type: { name: "Composite", - className: "MLTableJobInput", + className: "TableVerticalLimitSettings", }, }, - testData: { - serializedName: "testData", + nCrossValidations: { + serializedName: "nCrossValidations", type: { name: "Composite", - className: "MLTableJobInput", + className: "NCrossValidations", }, }, - validationDataSize: { - serializedName: "validationDataSize", - nullable: true, + testData: { + serializedName: "testData", type: { - name: "Number", + name: "Composite", + className: "MLTableJobInput", }, }, testDataSize: { @@ -8735,69 +8388,25 @@ export const TableVertical: coreClient.CompositeMapper = { name: "Number", }, }, - featurizationSettings: { - serializedName: "featurizationSettings", + validationData: { + serializedName: "validationData", type: { name: "Composite", - className: "TableVerticalFeaturizationSettings", - }, - }, - }, - }, -}; - -export const TableVerticalLimitSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TableVerticalLimitSettings", - modelProperties: { - maxTrials: { - defaultValue: 1000, - serializedName: "maxTrials", - type: { - name: "Number", - }, - }, - trialTimeout: { - defaultValue: "PT30M", - serializedName: "trialTimeout", - type: { - name: "TimeSpan", - }, - }, - timeout: { - defaultValue: "PT6H", - serializedName: "timeout", - type: { - name: "TimeSpan", - }, - }, - maxConcurrentTrials: { - defaultValue: 1, - serializedName: "maxConcurrentTrials", - type: { - name: "Number", - }, - }, - maxCoresPerTrial: { - defaultValue: -1, - serializedName: "maxCoresPerTrial", - type: { - name: "Number", + className: "MLTableJobInput", }, }, - exitScore: { - serializedName: "exitScore", + validationDataSize: { + serializedName: "validationDataSize", nullable: true, type: { name: "Number", }, }, - enableEarlyTermination: { - defaultValue: true, - serializedName: "enableEarlyTermination", + weightColumnName: { + serializedName: "weightColumnName", + nullable: true, type: { - name: "Boolean", + name: "String", }, }, }, @@ -8849,6 +8458,64 @@ export const FeaturizationSettings: coreClient.CompositeMapper = { }, }; +export const TableVerticalLimitSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TableVerticalLimitSettings", + modelProperties: { + enableEarlyTermination: { + defaultValue: true, + serializedName: "enableEarlyTermination", + type: { + name: "Boolean", + }, + }, + exitScore: { + serializedName: "exitScore", + nullable: true, + type: { + name: "Number", + }, + }, + maxConcurrentTrials: { + defaultValue: 1, + serializedName: "maxConcurrentTrials", + type: { + name: "Number", + }, + }, + maxCoresPerTrial: { + defaultValue: -1, + serializedName: "maxCoresPerTrial", + type: { + name: "Number", + }, + }, + maxTrials: { + defaultValue: 1000, + serializedName: "maxTrials", + type: { + name: "Number", + }, + }, + timeout: { + defaultValue: "PT6H", + serializedName: "timeout", + type: { + name: "TimeSpan", + }, + }, + trialTimeout: { + defaultValue: "PT30M", + serializedName: "trialTimeout", + type: { + name: "TimeSpan", + }, + }, + }, + }, +}; + export const DistributionConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", @@ -8903,15 +8570,15 @@ export const ContainerResourceRequirements: coreClient.CompositeMapper = { name: "Composite", className: "ContainerResourceRequirements", modelProperties: { - containerResourceRequests: { - serializedName: "containerResourceRequests", + containerResourceLimits: { + serializedName: "containerResourceLimits", type: { name: "Composite", className: "ContainerResourceSettings", }, }, - containerResourceLimits: { - serializedName: "containerResourceLimits", + containerResourceRequests: { + serializedName: "containerResourceRequests", type: { name: "Composite", className: "ContainerResourceSettings", @@ -8933,15 +8600,15 @@ export const ContainerResourceSettings: coreClient.CompositeMapper = { name: "String", }, }, - memory: { - serializedName: "memory", + gpu: { + serializedName: "gpu", nullable: true, type: { name: "String", }, }, - gpu: { - serializedName: "gpu", + memory: { + serializedName: "memory", nullable: true, type: { name: "String", @@ -8956,6 +8623,20 @@ export const MonitorDefinition: coreClient.CompositeMapper = { name: "Composite", className: "MonitorDefinition", modelProperties: { + alertNotificationSettings: { + serializedName: "alertNotificationSettings", + type: { + name: "Composite", + className: "MonitorNotificationSettings", + }, + }, + computeConfiguration: { + serializedName: "computeConfiguration", + type: { + name: "Composite", + className: "MonitorComputeConfigurationBase", + }, + }, monitoringTarget: { serializedName: "monitoringTarget", type: { @@ -8973,73 +8654,33 @@ export const MonitorDefinition: coreClient.CompositeMapper = { }, }, }, - computeConfiguration: { - serializedName: "computeConfiguration", - type: { - name: "Composite", - className: "MonitorComputeConfigurationBase", - }, - }, - alertNotificationSettings: { - serializedName: "alertNotificationSettings", - type: { - name: "Composite", - className: "MonitorNotificationSettings", - }, - }, }, }, }; -export const MonitoringTarget: coreClient.CompositeMapper = { +export const MonitorNotificationSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MonitoringTarget", + className: "MonitorNotificationSettings", modelProperties: { - modelId: { - serializedName: "modelId", - nullable: true, - type: { - name: "String", - }, - }, - deploymentId: { - serializedName: "deploymentId", - nullable: true, - type: { - name: "String", - }, - }, - taskType: { - serializedName: "taskType", - required: true, + emailNotificationSettings: { + serializedName: "emailNotificationSettings", type: { - name: "String", + name: "Composite", + className: "MonitorEmailNotificationSettings", }, }, }, }, }; -export const MonitoringSignalBase: coreClient.CompositeMapper = { +export const MonitorEmailNotificationSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MonitoringSignalBase", - uberParent: "MonitoringSignalBase", - polymorphicDiscriminator: { - serializedName: "signalType", - clientName: "signalType", - }, + className: "MonitorEmailNotificationSettings", modelProperties: { - signalType: { - serializedName: "signalType", - required: true, - type: { - name: "String", - }, - }, - notificationTypes: { - serializedName: "notificationTypes", + emails: { + serializedName: "emails", nullable: true, type: { name: "Sequence", @@ -9050,14 +8691,6 @@ export const MonitoringSignalBase: coreClient.CompositeMapper = { }, }, }, - properties: { - serializedName: "properties", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, }, }, }; @@ -9083,29 +8716,48 @@ export const MonitorComputeConfigurationBase: coreClient.CompositeMapper = { }, }; -export const MonitorNotificationSettings: coreClient.CompositeMapper = { +export const MonitoringTarget: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MonitorNotificationSettings", + className: "MonitoringTarget", modelProperties: { - emailNotificationSettings: { - serializedName: "emailNotificationSettings", + deploymentId: { + serializedName: "deploymentId", + nullable: true, type: { - name: "Composite", - className: "MonitorEmailNotificationSettings", + name: "String", + }, + }, + modelId: { + serializedName: "modelId", + nullable: true, + type: { + name: "String", + }, + }, + taskType: { + serializedName: "taskType", + required: true, + type: { + name: "String", }, }, }, }, }; -export const MonitorEmailNotificationSettings: coreClient.CompositeMapper = { +export const MonitoringSignalBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MonitorEmailNotificationSettings", + className: "MonitoringSignalBase", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: { + serializedName: "signalType", + clientName: "signalType", + }, modelProperties: { - emails: { - serializedName: "emails", + notificationTypes: { + serializedName: "notificationTypes", nullable: true, type: { name: "Sequence", @@ -9116,6 +8768,21 @@ export const MonitorEmailNotificationSettings: coreClient.CompositeMapper = { }, }, }, + properties: { + serializedName: "properties", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + signalType: { + serializedName: "signalType", + required: true, + type: { + name: "String", + }, + }, }, }, }; @@ -9125,13 +8792,6 @@ export const CustomMetricThreshold: coreClient.CompositeMapper = { name: "Composite", className: "CustomMetricThreshold", modelProperties: { - threshold: { - serializedName: "threshold", - type: { - name: "Composite", - className: "MonitoringThreshold", - }, - }, metric: { constraints: { Pattern: new RegExp("[a-zA-Z0-9_]"), @@ -9143,6 +8803,13 @@ export const CustomMetricThreshold: coreClient.CompositeMapper = { name: "String", }, }, + threshold: { + serializedName: "threshold", + type: { + name: "Composite", + className: "MonitoringThreshold", + }, + }, }, }, }; @@ -9157,11 +8824,12 @@ export const MonitoringInputDataBase: coreClient.CompositeMapper = { clientName: "inputDataType", }, modelProperties: { - inputDataType: { - serializedName: "inputDataType", - required: true, + columns: { + serializedName: "columns", + nullable: true, type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, dataContext: { @@ -9171,6 +8839,13 @@ export const MonitoringInputDataBase: coreClient.CompositeMapper = { name: "String", }, }, + inputDataType: { + serializedName: "inputDataType", + required: true, + type: { + name: "String", + }, + }, jobInputType: { serializedName: "jobInputType", required: true, @@ -9189,14 +8864,6 @@ export const MonitoringInputDataBase: coreClient.CompositeMapper = { name: "String", }, }, - columns: { - serializedName: "columns", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, }, }, }; @@ -9228,13 +8895,6 @@ export const FeatureAttributionMetricThreshold: coreClient.CompositeMapper = { name: "Composite", className: "FeatureAttributionMetricThreshold", modelProperties: { - threshold: { - serializedName: "threshold", - type: { - name: "Composite", - className: "MonitoringThreshold", - }, - }, metric: { serializedName: "metric", required: true, @@ -9242,6 +8902,13 @@ export const FeatureAttributionMetricThreshold: coreClient.CompositeMapper = { name: "String", }, }, + threshold: { + serializedName: "threshold", + type: { + name: "Composite", + className: "MonitoringThreshold", + }, + }, }, }, }; @@ -9258,25 +8925,17 @@ export const ForecastingSettings: coreClient.CompositeMapper = { name: "String", }, }, - timeColumnName: { - serializedName: "timeColumnName", + cvStepSize: { + serializedName: "cvStepSize", nullable: true, type: { - name: "String", - }, - }, - targetLags: { - serializedName: "targetLags", - type: { - name: "Composite", - className: "TargetLags", + name: "Number", }, }, - targetRollingWindowSize: { - serializedName: "targetRollingWindowSize", + featureLags: { + serializedName: "featureLags", type: { - name: "Composite", - className: "TargetRollingWindowSize", + name: "String", }, }, forecastHorizon: { @@ -9286,18 +8945,6 @@ export const ForecastingSettings: coreClient.CompositeMapper = { className: "ForecastHorizon", }, }, - timeSeriesIdColumnNames: { - serializedName: "timeSeriesIdColumnNames", - nullable: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, frequency: { serializedName: "frequency", nullable: true, @@ -9305,12 +8952,6 @@ export const ForecastingSettings: coreClient.CompositeMapper = { name: "String", }, }, - featureLags: { - serializedName: "featureLags", - type: { - name: "String", - }, - }, seasonality: { serializedName: "seasonality", type: { @@ -9324,23 +8965,49 @@ export const ForecastingSettings: coreClient.CompositeMapper = { name: "String", }, }, - useStl: { - serializedName: "useStl", + targetAggregateFunction: { + serializedName: "targetAggregateFunction", type: { name: "String", }, }, - targetAggregateFunction: { - serializedName: "targetAggregateFunction", + targetLags: { + serializedName: "targetLags", + type: { + name: "Composite", + className: "TargetLags", + }, + }, + targetRollingWindowSize: { + serializedName: "targetRollingWindowSize", + type: { + name: "Composite", + className: "TargetRollingWindowSize", + }, + }, + timeColumnName: { + serializedName: "timeColumnName", + nullable: true, type: { name: "String", }, }, - cvStepSize: { - serializedName: "cvStepSize", + timeSeriesIdColumnNames: { + serializedName: "timeSeriesIdColumnNames", nullable: true, type: { - name: "Number", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + useStl: { + serializedName: "useStl", + type: { + name: "String", }, }, }, @@ -9352,18 +9019,18 @@ export const ImageModelSettings: coreClient.CompositeMapper = { name: "Composite", className: "ImageModelSettings", modelProperties: { - amsGradient: { - serializedName: "amsGradient", + advancedSettings: { + serializedName: "advancedSettings", nullable: true, type: { - name: "Boolean", + name: "String", }, }, - advancedSettings: { - serializedName: "advancedSettings", + amsGradient: { + serializedName: "amsGradient", nullable: true, type: { - name: "String", + name: "Boolean", }, }, augmentations: { @@ -9394,18 +9061,18 @@ export const ImageModelSettings: coreClient.CompositeMapper = { name: "Number", }, }, - checkpointRunId: { - serializedName: "checkpointRunId", - nullable: true, + checkpointModel: { + serializedName: "checkpointModel", type: { - name: "String", + name: "Composite", + className: "MLFlowModelJobInput", }, }, - checkpointModel: { - serializedName: "checkpointModel", + checkpointRunId: { + serializedName: "checkpointRunId", + nullable: true, type: { - name: "Composite", - className: "MLFlowModelJobInput", + name: "String", }, }, distributed: { @@ -9436,18 +9103,18 @@ export const ImageModelSettings: coreClient.CompositeMapper = { name: "Number", }, }, - evaluationFrequency: { - serializedName: "evaluationFrequency", + enableOnnxNormalization: { + serializedName: "enableOnnxNormalization", nullable: true, type: { - name: "Number", + name: "Boolean", }, }, - enableOnnxNormalization: { - serializedName: "enableOnnxNormalization", + evaluationFrequency: { + serializedName: "evaluationFrequency", nullable: true, type: { - name: "Boolean", + name: "Number", }, }, gradientAccumulationStep: { @@ -9639,15 +9306,15 @@ export const ImageModelDistributionSettings: coreClient.CompositeMapper = { name: "String", }, }, - evaluationFrequency: { - serializedName: "evaluationFrequency", + enableOnnxNormalization: { + serializedName: "enableOnnxNormalization", nullable: true, type: { name: "String", }, }, - enableOnnxNormalization: { - serializedName: "enableOnnxNormalization", + evaluationFrequency: { + serializedName: "evaluationFrequency", nullable: true, type: { name: "String", @@ -9825,6 +9492,13 @@ export const ImageLimitSettings: coreClient.CompositeMapper = { name: "Composite", className: "ImageLimitSettings", modelProperties: { + maxConcurrentTrials: { + defaultValue: 1, + serializedName: "maxConcurrentTrials", + type: { + name: "Number", + }, + }, maxTrials: { defaultValue: 1, serializedName: "maxTrials", @@ -9839,13 +9513,6 @@ export const ImageLimitSettings: coreClient.CompositeMapper = { name: "TimeSpan", }, }, - maxConcurrentTrials: { - defaultValue: 1, - serializedName: "maxConcurrentTrials", - type: { - name: "Number", - }, - }, }, }, }; @@ -9855,13 +9522,6 @@ export const ImageSweepSettings: coreClient.CompositeMapper = { name: "Composite", className: "ImageSweepSettings", modelProperties: { - samplingAlgorithm: { - serializedName: "samplingAlgorithm", - required: true, - type: { - name: "String", - }, - }, earlyTermination: { serializedName: "earlyTermination", type: { @@ -9869,6 +9529,13 @@ export const ImageSweepSettings: coreClient.CompositeMapper = { className: "EarlyTerminationPolicy", }, }, + samplingAlgorithm: { + serializedName: "samplingAlgorithm", + required: true, + type: { + name: "String", + }, + }, }, }, }; @@ -9883,13 +9550,6 @@ export const OneLakeArtifact: coreClient.CompositeMapper = { clientName: "artifactType", }, modelProperties: { - artifactType: { - serializedName: "artifactType", - required: true, - type: { - name: "String", - }, - }, artifactName: { constraints: { Pattern: new RegExp("[a-zA-Z0-9_]"), @@ -9901,6 +9561,13 @@ export const OneLakeArtifact: coreClient.CompositeMapper = { name: "String", }, }, + artifactType: { + serializedName: "artifactType", + required: true, + type: { + name: "String", + }, + }, }, }, }; @@ -9910,18 +9577,18 @@ export const NlpVertical: coreClient.CompositeMapper = { name: "Composite", className: "NlpVertical", modelProperties: { - limitSettings: { - serializedName: "limitSettings", + featurizationSettings: { + serializedName: "featurizationSettings", type: { name: "Composite", - className: "NlpVerticalLimitSettings", + className: "NlpVerticalFeaturizationSettings", }, }, - featurizationSettings: { - serializedName: "featurizationSettings", + limitSettings: { + serializedName: "limitSettings", type: { name: "Composite", - className: "NlpVerticalFeaturizationSettings", + className: "NlpVerticalLimitSettings", }, }, validationData: { @@ -9940,11 +9607,11 @@ export const NlpVerticalLimitSettings: coreClient.CompositeMapper = { name: "Composite", className: "NlpVerticalLimitSettings", modelProperties: { - timeout: { - defaultValue: "P7D", - serializedName: "timeout", + maxConcurrentTrials: { + defaultValue: 1, + serializedName: "maxConcurrentTrials", type: { - name: "TimeSpan", + name: "Number", }, }, maxTrials: { @@ -9954,11 +9621,11 @@ export const NlpVerticalLimitSettings: coreClient.CompositeMapper = { name: "Number", }, }, - maxConcurrentTrials: { - defaultValue: 1, - serializedName: "maxConcurrentTrials", + timeout: { + defaultValue: "P7D", + serializedName: "timeout", type: { - name: "Number", + name: "TimeSpan", }, }, }, @@ -9970,6 +9637,13 @@ export const Objective: coreClient.CompositeMapper = { name: "Composite", className: "Objective", modelProperties: { + goal: { + serializedName: "goal", + required: true, + type: { + name: "String", + }, + }, primaryMetric: { constraints: { Pattern: new RegExp("[a-zA-Z0-9_]"), @@ -9981,8 +9655,22 @@ export const Objective: coreClient.CompositeMapper = { name: "String", }, }, - goal: { - serializedName: "goal", + }, + }, +}; + +export const SparkJobEntry: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SparkJobEntry", + uberParent: "SparkJobEntry", + polymorphicDiscriminator: { + serializedName: "sparkJobEntryType", + clientName: "sparkJobEntryType", + }, + modelProperties: { + sparkJobEntryType: { + serializedName: "sparkJobEntryType", required: true, type: { name: "String", @@ -10015,27 +9703,6 @@ export const SparkResourceConfiguration: coreClient.CompositeMapper = { }, }; -export const SparkJobEntry: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SparkJobEntry", - uberParent: "SparkJobEntry", - polymorphicDiscriminator: { - serializedName: "sparkJobEntryType", - clientName: "sparkJobEntryType", - }, - modelProperties: { - sparkJobEntryType: { - serializedName: "sparkJobEntryType", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - export const TrialComponent: coreClient.CompositeMapper = { type: { name: "Composite", @@ -10059,6 +9726,13 @@ export const TrialComponent: coreClient.CompositeMapper = { name: "String", }, }, + distribution: { + serializedName: "distribution", + type: { + name: "Composite", + className: "DistributionConfiguration", + }, + }, environmentId: { constraints: { Pattern: new RegExp("[a-zA-Z0-9_]"), @@ -10078,13 +9752,6 @@ export const TrialComponent: coreClient.CompositeMapper = { value: { type: { name: "String" } }, }, }, - distribution: { - serializedName: "distribution", - type: { - name: "Composite", - className: "DistributionConfiguration", - }, - }, resources: { serializedName: "resources", type: { @@ -10096,84 +9763,76 @@ export const TrialComponent: coreClient.CompositeMapper = { }, }; -export const PrivateEndpointResource: coreClient.CompositeMapper = { +export const PrivateEndpointDestination: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointResource", + className: "PrivateEndpointDestination", modelProperties: { - ...PrivateEndpoint.type.modelProperties, - subnetArmId: { - serializedName: "subnetArmId", - nullable: true, + serviceResourceId: { + serializedName: "serviceResourceId", type: { name: "String", }, }, - }, - }, -}; - -export const RegistryPartialManagedServiceIdentity: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "RegistryPartialManagedServiceIdentity", - modelProperties: { - ...ManagedServiceIdentity.type.modelProperties, + sparkEnabled: { + serializedName: "sparkEnabled", + type: { + name: "Boolean", + }, }, - }, - }; - -export const PrivateEndpointConnection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnection", - modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "identity", + sparkStatus: { + serializedName: "sparkStatus", type: { - name: "Composite", - className: "ManagedServiceIdentity", + name: "String", }, }, - location: { - serializedName: "location", + subresourceTarget: { + serializedName: "subresourceTarget", type: { name: "String", }, }, - tags: { - serializedName: "tags", + }, + }, +}; + +export const ServiceTagDestination: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceTagDestination", + modelProperties: { + action: { + serializedName: "action", type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, - sku: { - serializedName: "sku", + addressPrefixes: { + serializedName: "addressPrefixes", + readOnly: true, type: { - name: "Composite", - className: "Sku", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + portRanges: { + serializedName: "portRanges", type: { - name: "Composite", - className: "PrivateEndpoint", + name: "String", }, }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + protocol: { + serializedName: "protocol", type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState", + name: "String", }, }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + serviceTag: { + serializedName: "serviceTag", type: { name: "String", }, @@ -10182,284 +9841,327 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { }, }; -export const Workspace: coreClient.CompositeMapper = { +export const WorkspaceConnectionUsernamePassword: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Workspace", + className: "WorkspaceConnectionUsernamePassword", modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "identity", + username: { + serializedName: "username", type: { - name: "Composite", - className: "ManagedServiceIdentity", + name: "String", }, }, - kind: { - serializedName: "kind", + password: { + serializedName: "password", type: { name: "String", }, }, - location: { - serializedName: "location", + securityToken: { + serializedName: "securityToken", type: { name: "String", }, }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, + }, + }, +}; + +export const WorkspaceConnectionPersonalAccessToken: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "WorkspaceConnectionPersonalAccessToken", + modelProperties: { + pat: { + serializedName: "pat", + type: { + name: "String", + }, }, }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku", + }, + }; + +export const WorkspaceConnectionSharedAccessSignature: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "WorkspaceConnectionSharedAccessSignature", + modelProperties: { + sas: { + serializedName: "sas", + type: { + name: "String", + }, }, }, - workspaceId: { - serializedName: "properties.workspaceId", - readOnly: true, + }, + }; + +export const WorkspaceConnectionAccountKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionAccountKey", + modelProperties: { + key: { + serializedName: "key", type: { name: "String", }, }, - description: { - serializedName: "properties.description", + }, + }, +}; + +export const WorkspaceConnectionManagedIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionManagedIdentity", + modelProperties: { + resourceId: { + serializedName: "resourceId", type: { name: "String", }, }, - friendlyName: { - serializedName: "properties.friendlyName", + clientId: { + serializedName: "clientId", type: { name: "String", }, }, - keyVault: { - serializedName: "properties.keyVault", + }, + }, +}; + +export const WorkspaceConnectionAccessKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionAccessKey", + modelProperties: { + accessKeyId: { + serializedName: "accessKeyId", type: { name: "String", }, }, - applicationInsights: { - serializedName: "properties.applicationInsights", + secretAccessKey: { + serializedName: "secretAccessKey", type: { name: "String", }, }, - containerRegistry: { - serializedName: "properties.containerRegistry", - nullable: true, + }, + }, +}; + +export const WorkspaceConnectionApiKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionApiKey", + modelProperties: { + key: { + serializedName: "key", type: { name: "String", }, }, - storageAccount: { - serializedName: "properties.storageAccount", + }, + }, +}; + +export const CustomKeys: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomKeys", + modelProperties: { + keys: { + serializedName: "keys", type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - discoveryUrl: { - serializedName: "properties.discoveryUrl", + }, + }, +}; + +export const WorkspaceConnectionOAuth2: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionOAuth2", + modelProperties: { + authUrl: { + serializedName: "authUrl", type: { name: "String", }, }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + clientId: { + serializedName: "clientId", + type: { + name: "Uuid", + }, + }, + clientSecret: { + serializedName: "clientSecret", type: { name: "String", }, }, - encryption: { - serializedName: "properties.encryption", + developerToken: { + serializedName: "developerToken", type: { - name: "Composite", - className: "EncryptionProperty", + name: "String", }, }, - hbiWorkspace: { - defaultValue: false, - serializedName: "properties.hbiWorkspace", + password: { + serializedName: "password", type: { - name: "Boolean", + name: "String", }, }, - serviceProvisionedResourceGroup: { - serializedName: "properties.serviceProvisionedResourceGroup", - readOnly: true, + refreshToken: { + serializedName: "refreshToken", type: { name: "String", }, }, - privateLinkCount: { - serializedName: "properties.privateLinkCount", - readOnly: true, + tenantId: { + serializedName: "tenantId", type: { - name: "Number", + name: "String", }, }, - imageBuildCompute: { - serializedName: "properties.imageBuildCompute", + username: { + serializedName: "username", type: { name: "String", }, }, - allowPublicAccessWhenBehindVnet: { - defaultValue: false, - serializedName: "properties.allowPublicAccessWhenBehindVnet", + }, + }, +}; + +export const WorkspaceConnectionServicePrincipal: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionServicePrincipal", + modelProperties: { + clientId: { + serializedName: "clientId", type: { - name: "Boolean", + name: "String", }, }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + clientSecret: { + serializedName: "clientSecret", type: { name: "String", }, }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - readOnly: true, + tenantId: { + serializedName: "tenantId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection", - }, - }, + name: "String", }, }, - serverlessComputeSettings: { - serializedName: "properties.serverlessComputeSettings", + }, + }, +}; + +export const RegistryPartialManagedServiceIdentity: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RegistryPartialManagedServiceIdentity", + modelProperties: { + ...ManagedServiceIdentity.type.modelProperties, + }, + }, + }; + +export const ComputeResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeResource", + modelProperties: { + ...Resource.type.modelProperties, + ...ComputeResourceSchema.type.modelProperties, + identity: { + serializedName: "identity", type: { name: "Composite", - className: "ServerlessComputeSettings", + className: "ManagedServiceIdentity", }, }, - 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, + location: { + serializedName: "location", type: { name: "String", }, }, - v1LegacyMode: { - defaultValue: false, - serializedName: "properties.v1LegacyMode", - type: { - name: "Boolean", - }, - }, - managedNetwork: { - serializedName: "properties.managedNetwork", + tags: { + serializedName: "tags", + nullable: true, type: { - name: "Composite", - className: "ManagedNetworkSettings", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - featureStoreSettings: { - serializedName: "properties.featureStoreSettings", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "FeatureStoreSettings", - }, - }, - associatedWorkspaces: { - serializedName: "properties.associatedWorkspaces", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + className: "Sku", }, }, - enableDataIsolation: { - serializedName: "properties.enableDataIsolation", + }, + }, +}; + +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties, + }, + }, +}; + +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", type: { - name: "Boolean", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - hubResourceId: { - serializedName: "properties.hubResourceId", + location: { + serializedName: "location", + required: true, type: { name: "String", }, }, - workspaceHubConfig: { - serializedName: "properties.workspaceHubConfig", - type: { - name: "Composite", - className: "WorkspaceHubConfig", - }, - }, }, }, }; -export const ComputeResource: coreClient.CompositeMapper = { +export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeResource", + className: "PrivateEndpointConnection", modelProperties: { ...Resource.type.modelProperties, - ...ComputeResourceSchema.type.modelProperties, identity: { serializedName: "identity", type: { @@ -10475,7 +10177,6 @@ export const ComputeResource: coreClient.CompositeMapper = { }, tags: { serializedName: "tags", - nullable: true, type: { name: "Dictionary", value: { type: { name: "String" } }, @@ -10488,14 +10189,35 @@ export const ComputeResource: coreClient.CompositeMapper = { 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 PrivateLinkResource: coreClient.CompositeMapper = { +export const Workspace: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResource", + className: "Workspace", modelProperties: { ...Resource.type.modelProperties, identity: { @@ -10505,6 +10227,12 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { className: "ManagedServiceIdentity", }, }, + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, location: { serializedName: "location", type: { @@ -10525,162 +10253,334 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { className: "Sku", }, }, - groupId: { - serializedName: "properties.groupId", + workspaceId: { + serializedName: "properties.workspaceId", readOnly: true, type: { name: "String", }, }, - requiredMembers: { - serializedName: "properties.requiredMembers", - readOnly: true, + description: { + serializedName: "properties.description", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", + friendlyName: { + serializedName: "properties.friendlyName", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - }, - }, -}; - -export const WorkspaceConnectionPropertiesV2BasicResource: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "WorkspaceConnectionPropertiesV2BasicResource", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "WorkspaceConnectionPropertiesV2", - }, + keyVault: { + serializedName: "properties.keyVault", + type: { + name: "String", }, }, - }, - }; - -export const OutboundRuleBasicResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OutboundRuleBasicResource", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + applicationInsights: { + serializedName: "properties.applicationInsights", type: { - name: "Composite", - className: "OutboundRule", + name: "String", }, }, - }, - }, -}; - -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties, - }, - }, -}; - -export const TrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", + containerRegistry: { + serializedName: "properties.containerRegistry", + nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, - location: { - serializedName: "location", - required: true, + storageAccount: { + serializedName: "properties.storageAccount", type: { name: "String", }, }, - }, - }, -}; - -export const PrivateEndpointOutboundRule: coreClient.CompositeMapper = { - serializedName: "PrivateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpointOutboundRule", - uberParent: "OutboundRule", - polymorphicDiscriminator: OutboundRule.type.polymorphicDiscriminator, - modelProperties: { - ...OutboundRule.type.modelProperties, - destination: { - serializedName: "destination", + discoveryUrl: { + serializedName: "properties.discoveryUrl", + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + encryption: { + serializedName: "properties.encryption", type: { name: "Composite", - className: "PrivateEndpointDestination", + 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", + }, + }, + }, + }, + serverlessComputeSettings: { + serializedName: "properties.serverlessComputeSettings", + type: { + name: "Composite", + className: "ServerlessComputeSettings", + }, + }, + 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", + }, + }, + featureStoreSettings: { + serializedName: "properties.featureStoreSettings", + type: { + name: "Composite", + className: "FeatureStoreSettings", + }, + }, + associatedWorkspaces: { + serializedName: "properties.associatedWorkspaces", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + enableDataIsolation: { + serializedName: "properties.enableDataIsolation", + type: { + name: "Boolean", + }, + }, + hubResourceId: { + serializedName: "properties.hubResourceId", + type: { + name: "String", + }, + }, + workspaceHubConfig: { + serializedName: "properties.workspaceHubConfig", + type: { + name: "Composite", + className: "WorkspaceHubConfig", }, }, }, }, }; -export const ServiceTagOutboundRule: coreClient.CompositeMapper = { - serializedName: "ServiceTag", +export const PrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceTagOutboundRule", - uberParent: "OutboundRule", - polymorphicDiscriminator: OutboundRule.type.polymorphicDiscriminator, + className: "PrivateLinkResource", modelProperties: { - ...OutboundRule.type.modelProperties, - destination: { - serializedName: "destination", + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", type: { name: "Composite", - className: "ServiceTagDestination", + 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 FqdnOutboundRule: coreClient.CompositeMapper = { - serializedName: "FQDN", +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: "FqdnOutboundRule", - uberParent: "OutboundRule", - polymorphicDiscriminator: OutboundRule.type.polymorphicDiscriminator, + className: "OutboundRuleBasicResource", modelProperties: { - ...OutboundRule.type.modelProperties, - destination: { - serializedName: "destination", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String", + name: "Composite", + className: "OutboundRule", }, }, }, @@ -10770,359 +10670,109 @@ export const HDInsight: coreClient.CompositeMapper = { }, }, }; - -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 AADAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = - { - serializedName: "AAD", - type: { - name: "Composite", - className: "AADAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, - modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - }, - }, - }; - -export const AccessKeyAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = - { - serializedName: "AccessKey", - type: { - name: "Composite", - className: "AccessKeyAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, - modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", - type: { - name: "Composite", - className: "WorkspaceConnectionAccessKey", - }, - }, - }, + +export const DataFactory: coreClient.CompositeMapper = { + serializedName: "DataFactory", + type: { + name: "Composite", + className: "DataFactory", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, }, - }; + }, +}; -export const AccountKeyAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = - { - serializedName: "AccountKey", - type: { - name: "Composite", - className: "AccountKeyAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, - modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", - type: { - name: "Composite", - className: "WorkspaceConnectionAccountKey", - }, - }, - }, +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 ApiKeyAuthWorkspaceConnectionProperties: coreClient.CompositeMapper = - { - serializedName: "ApiKey", - type: { - name: "Composite", - className: "ApiKeyAuthWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, - modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", - type: { - name: "Composite", - className: "WorkspaceConnectionApiKey", - }, - }, - }, +export const 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 CustomKeysWorkspaceConnectionProperties: coreClient.CompositeMapper = - { - serializedName: "CustomKeys", - type: { - name: "Composite", - className: "CustomKeysWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, - modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", - type: { - name: "Composite", - className: "CustomKeys", - }, +export const 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 OAuth2AuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = - { - serializedName: "OAuth2", - type: { - name: "Composite", - className: "OAuth2AuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, - modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", - type: { - name: "Composite", - className: "WorkspaceConnectionOAuth2", - }, - }, - }, +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 ServicePrincipalAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = - { - serializedName: "ServicePrincipal", - type: { - name: "Composite", - className: "ServicePrincipalAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, - modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", - type: { - name: "Composite", - className: "WorkspaceConnectionServicePrincipal", - }, - }, - }, +export const VirtualMachineSecrets: coreClient.CompositeMapper = { + serializedName: "VirtualMachine", + type: { + name: "Composite", + className: "VirtualMachineSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...ComputeSecrets.type.modelProperties, + ...VirtualMachineSecretsSchema.type.modelProperties, }, - }; + }, +}; + +export const DatabricksComputeSecrets: coreClient.CompositeMapper = { + serializedName: "Databricks", + type: { + name: "Composite", + className: "DatabricksComputeSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...ComputeSecrets.type.modelProperties, + ...DatabricksComputeSecretsProperties.type.modelProperties, + }, + }, +}; export const AssetContainer: coreClient.CompositeMapper = { type: { @@ -11163,16 +10813,16 @@ export const AssetBase: coreClient.CompositeMapper = { className: "AssetBase", modelProperties: { ...ResourceBase.type.modelProperties, - isArchived: { + isAnonymous: { defaultValue: false, - serializedName: "isArchived", + serializedName: "isAnonymous", type: { name: "Boolean", }, }, - isAnonymous: { + isArchived: { defaultValue: false, - serializedName: "isAnonymous", + serializedName: "isArchived", type: { name: "Boolean", }, @@ -11193,6 +10843,13 @@ export const DatastoreProperties: coreClient.CompositeMapper = { }, modelProperties: { ...ResourceBase.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "DatastoreCredentials", + }, + }, datastoreType: { serializedName: "datastoreType", required: true, @@ -11207,13 +10864,6 @@ export const DatastoreProperties: coreClient.CompositeMapper = { name: "Boolean", }, }, - credentials: { - serializedName: "credentials", - type: { - name: "Composite", - className: "DatastoreCredentials", - }, - }, }, }, }; @@ -11224,15 +10874,15 @@ export const FeatureProperties: coreClient.CompositeMapper = { className: "FeatureProperties", modelProperties: { ...ResourceBase.type.modelProperties, - featureName: { - serializedName: "featureName", - nullable: true, + dataType: { + serializedName: "dataType", type: { name: "String", }, }, - dataType: { - serializedName: "dataType", + featureName: { + serializedName: "featureName", + nullable: true, type: { name: "String", }, @@ -11253,54 +10903,32 @@ export const JobBaseProperties: coreClient.CompositeMapper = { }, modelProperties: { ...ResourceBase.type.modelProperties, - jobType: { - serializedName: "jobType", - required: true, - type: { - name: "String", - }, - }, - displayName: { - serializedName: "displayName", + componentId: { + serializedName: "componentId", nullable: true, type: { name: "String", }, }, - status: { - serializedName: "status", - readOnly: true, - type: { - name: "String", - }, - }, - experimentName: { - defaultValue: "Default", - serializedName: "experimentName", - type: { - name: "String", - }, - }, - services: { - serializedName: "services", + computeId: { + serializedName: "computeId", nullable: true, type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobService" } }, + name: "String", }, }, - computeId: { - serializedName: "computeId", + displayName: { + serializedName: "displayName", nullable: true, type: { name: "String", }, }, - isArchived: { - defaultValue: false, - serializedName: "isArchived", + experimentName: { + defaultValue: "Default", + serializedName: "experimentName", type: { - name: "Boolean", + name: "String", }, }, identity: { @@ -11310,9 +10938,16 @@ export const JobBaseProperties: coreClient.CompositeMapper = { className: "IdentityConfiguration", }, }, - componentId: { - serializedName: "componentId", - nullable: true, + isArchived: { + defaultValue: false, + serializedName: "isArchived", + type: { + name: "Boolean", + }, + }, + jobType: { + serializedName: "jobType", + required: true, type: { name: "String", }, @@ -11324,6 +10959,21 @@ export const JobBaseProperties: coreClient.CompositeMapper = { className: "NotificationSetting", }, }, + services: { + serializedName: "services", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobService" } }, + }, + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String", + }, + }, }, }, }; @@ -11334,6 +10984,13 @@ export const ScheduleProperties: coreClient.CompositeMapper = { className: "ScheduleProperties", modelProperties: { ...ResourceBase.type.modelProperties, + action: { + serializedName: "action", + type: { + name: "Composite", + className: "ScheduleActionBase", + }, + }, displayName: { serializedName: "displayName", nullable: true, @@ -11348,20 +11005,6 @@ export const ScheduleProperties: coreClient.CompositeMapper = { name: "Boolean", }, }, - trigger: { - serializedName: "trigger", - type: { - name: "Composite", - className: "TriggerBase", - }, - }, - action: { - serializedName: "action", - type: { - name: "Composite", - className: "ScheduleActionBase", - }, - }, provisioningState: { serializedName: "provisioningState", readOnly: true, @@ -11369,6 +11012,13 @@ export const ScheduleProperties: coreClient.CompositeMapper = { name: "String", }, }, + trigger: { + serializedName: "trigger", + type: { + name: "Composite", + className: "TriggerBase", + }, + }, }, }, }; @@ -11418,15 +11068,15 @@ export const DockerCredential: coreClient.CompositeMapper = { DataReferenceCredential.type.polymorphicDiscriminator, modelProperties: { ...DataReferenceCredential.type.modelProperties, - userName: { - serializedName: "userName", + password: { + serializedName: "password", nullable: true, type: { name: "String", }, }, - password: { - serializedName: "password", + userName: { + serializedName: "userName", nullable: true, type: { name: "String", @@ -11453,22 +11103,22 @@ export const ManagedIdentityCredential: coreClient.CompositeMapper = { name: "String", }, }, - userManagedIdentityResourceId: { - serializedName: "userManagedIdentityResourceId", + userManagedIdentityClientId: { + serializedName: "userManagedIdentityClientId", nullable: true, type: { name: "String", }, }, - userManagedIdentityClientId: { - serializedName: "userManagedIdentityClientId", + userManagedIdentityPrincipalId: { + serializedName: "userManagedIdentityPrincipalId", nullable: true, type: { name: "String", }, }, - userManagedIdentityPrincipalId: { - serializedName: "userManagedIdentityPrincipalId", + userManagedIdentityResourceId: { + serializedName: "userManagedIdentityResourceId", nullable: true, type: { name: "String", @@ -11536,16 +11186,24 @@ export const OnlineEndpointProperties: coreClient.CompositeMapper = { className: "OnlineEndpointProperties", modelProperties: { ...EndpointPropertiesBase.type.modelProperties, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + compute: { + serializedName: "compute", + nullable: true, type: { name: "String", }, }, - compute: { - serializedName: "compute", + mirrorTraffic: { + serializedName: "mirrorTraffic", nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Number" } }, + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String", }, @@ -11564,14 +11222,6 @@ export const OnlineEndpointProperties: coreClient.CompositeMapper = { value: { type: { name: "Number" } }, }, }, - mirrorTraffic: { - serializedName: "mirrorTraffic", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "Number" } }, - }, - }, }, }, }; @@ -11619,18 +11269,18 @@ export const PartialMinimalTrackedResourceWithSkuAndIdentity: coreClient.Composi className: "PartialMinimalTrackedResourceWithSkuAndIdentity", modelProperties: { ...PartialMinimalTrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + identity: { + serializedName: "identity", type: { name: "Composite", - className: "PartialSku", + className: "PartialManagedServiceIdentity", }, }, - identity: { - serializedName: "identity", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "PartialManagedServiceIdentity", + className: "PartialSku", }, }, }, @@ -11715,15 +11365,15 @@ export const DataPathAssetReference: coreClient.CompositeMapper = { polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, modelProperties: { ...AssetReferenceBase.type.modelProperties, - path: { - serializedName: "path", + datastoreId: { + serializedName: "datastoreId", nullable: true, type: { name: "String", }, }, - datastoreId: { - serializedName: "datastoreId", + path: { + serializedName: "path", nullable: true, type: { name: "String", @@ -11742,15 +11392,15 @@ export const OutputPathAssetReference: coreClient.CompositeMapper = { polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, modelProperties: { ...AssetReferenceBase.type.modelProperties, - path: { - serializedName: "path", + jobId: { + serializedName: "jobId", nullable: true, type: { name: "String", }, }, - jobId: { - serializedName: "jobId", + path: { + serializedName: "path", nullable: true, type: { name: "String", @@ -11776,6 +11426,13 @@ export const JobResourceConfiguration: coreClient.CompositeMapper = { className: "JobResourceConfiguration", modelProperties: { ...ResourceConfiguration.type.modelProperties, + dockerArgs: { + serializedName: "dockerArgs", + nullable: true, + type: { + name: "String", + }, + }, shmSize: { defaultValue: "2g", constraints: { @@ -11786,13 +11443,6 @@ export const JobResourceConfiguration: coreClient.CompositeMapper = { name: "String", }, }, - dockerArgs: { - serializedName: "dockerArgs", - nullable: true, - type: { - name: "String", - }, - }, }, }, }; @@ -11824,24 +11474,24 @@ export const BatchDeploymentProperties: coreClient.CompositeMapper = { name: "Number", }, }, - retrySettings: { - serializedName: "retrySettings", + loggingLevel: { + serializedName: "loggingLevel", type: { - name: "Composite", - className: "BatchRetrySettings", + name: "String", }, }, - miniBatchSize: { - defaultValue: 10, - serializedName: "miniBatchSize", + maxConcurrencyPerInstance: { + defaultValue: 1, + serializedName: "maxConcurrencyPerInstance", type: { name: "Number", }, }, - loggingLevel: { - serializedName: "loggingLevel", + miniBatchSize: { + defaultValue: 10, + serializedName: "miniBatchSize", type: { - name: "String", + name: "Number", }, }, model: { @@ -11851,13 +11501,6 @@ export const BatchDeploymentProperties: coreClient.CompositeMapper = { className: "AssetReferenceBase", }, }, - maxConcurrencyPerInstance: { - defaultValue: 1, - serializedName: "maxConcurrencyPerInstance", - type: { - name: "Number", - }, - }, outputAction: { serializedName: "outputAction", type: { @@ -11871,6 +11514,13 @@ export const BatchDeploymentProperties: coreClient.CompositeMapper = { name: "String", }, }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, resources: { serializedName: "resources", type: { @@ -11878,11 +11528,11 @@ export const BatchDeploymentProperties: coreClient.CompositeMapper = { className: "DeploymentResourceConfiguration", }, }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + retrySettings: { + serializedName: "retrySettings", type: { - name: "String", + name: "Composite", + className: "BatchRetrySettings", }, }, }, @@ -11901,39 +11551,39 @@ export const OnlineDeploymentProperties: coreClient.CompositeMapper = { }, modelProperties: { ...EndpointDeploymentPropertiesBase.type.modelProperties, - endpointComputeType: { - serializedName: "endpointComputeType", - required: true, + appInsightsEnabled: { + defaultValue: false, + serializedName: "appInsightsEnabled", type: { - name: "String", + name: "Boolean", }, }, - scaleSettings: { - serializedName: "scaleSettings", + dataCollector: { + serializedName: "dataCollector", type: { name: "Composite", - className: "OnlineScaleSettings", + className: "DataCollector", }, }, - requestSettings: { - serializedName: "requestSettings", + egressPublicNetworkAccess: { + serializedName: "egressPublicNetworkAccess", type: { - name: "Composite", - className: "OnlineRequestSettings", + name: "String", }, }, - modelMountPath: { - serializedName: "modelMountPath", - nullable: true, + endpointComputeType: { + serializedName: "endpointComputeType", + required: true, type: { name: "String", }, }, - appInsightsEnabled: { - defaultValue: false, - serializedName: "appInsightsEnabled", + instanceType: { + defaultValue: "Standard_F4s_v2", + serializedName: "instanceType", + nullable: true, type: { - name: "Boolean", + name: "String", }, }, livenessProbe: { @@ -11943,45 +11593,46 @@ export const OnlineDeploymentProperties: coreClient.CompositeMapper = { className: "ProbeSettings", }, }, - readinessProbe: { - serializedName: "readinessProbe", + model: { + serializedName: "model", + nullable: true, type: { - name: "Composite", - className: "ProbeSettings", + name: "String", }, }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + modelMountPath: { + serializedName: "modelMountPath", + nullable: true, type: { name: "String", }, }, - instanceType: { - serializedName: "instanceType", - nullable: true, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String", }, }, - model: { - serializedName: "model", - nullable: true, + readinessProbe: { + serializedName: "readinessProbe", type: { - name: "String", + name: "Composite", + className: "ProbeSettings", }, }, - egressPublicNetworkAccess: { - serializedName: "egressPublicNetworkAccess", + requestSettings: { + serializedName: "requestSettings", type: { - name: "String", + name: "Composite", + className: "OnlineRequestSettings", }, }, - dataCollector: { - serializedName: "dataCollector", + scaleSettings: { + serializedName: "scaleSettings", type: { name: "Composite", - className: "DataCollector", + className: "OnlineScaleSettings", }, }, }, @@ -12026,6 +11677,13 @@ export const CertificateDatastoreCredentials: coreClient.CompositeMapper = { name: "String", }, }, + clientId: { + serializedName: "clientId", + required: true, + type: { + name: "Uuid", + }, + }, resourceUrl: { serializedName: "resourceUrl", nullable: true, @@ -12033,15 +11691,15 @@ export const CertificateDatastoreCredentials: coreClient.CompositeMapper = { name: "String", }, }, - tenantId: { - serializedName: "tenantId", - required: true, + secrets: { + serializedName: "secrets", type: { - name: "Uuid", + name: "Composite", + className: "CertificateDatastoreSecrets", }, }, - clientId: { - serializedName: "clientId", + tenantId: { + serializedName: "tenantId", required: true, type: { name: "Uuid", @@ -12058,13 +11716,6 @@ export const CertificateDatastoreCredentials: coreClient.CompositeMapper = { name: "String", }, }, - secrets: { - serializedName: "secrets", - type: { - name: "Composite", - className: "CertificateDatastoreSecrets", - }, - }, }, }, }; @@ -12122,25 +11773,18 @@ export const ServicePrincipalDatastoreCredentials: coreClient.CompositeMapper = name: "String", }, }, - resourceUrl: { - serializedName: "resourceUrl", - nullable: true, - type: { - name: "String", - }, - }, - tenantId: { - serializedName: "tenantId", + clientId: { + serializedName: "clientId", required: true, type: { name: "Uuid", }, }, - clientId: { - serializedName: "clientId", - required: true, + resourceUrl: { + serializedName: "resourceUrl", + nullable: true, type: { - name: "Uuid", + name: "String", }, }, secrets: { @@ -12150,6 +11794,13 @@ export const ServicePrincipalDatastoreCredentials: coreClient.CompositeMapper = className: "ServicePrincipalDatastoreSecrets", }, }, + tenantId: { + serializedName: "tenantId", + required: true, + type: { + name: "Uuid", + }, + }, }, }, }; @@ -12234,6 +11885,19 @@ export const ServicePrincipalDatastoreSecrets: coreClient.CompositeMapper = { }, }; +export const AzureDevOpsWebhook: coreClient.CompositeMapper = { + serializedName: "AzureDevOps", + type: { + name: "Composite", + className: "AzureDevOpsWebhook", + uberParent: "Webhook", + polymorphicDiscriminator: Webhook.type.polymorphicDiscriminator, + modelProperties: { + ...Webhook.type.modelProperties, + }, + }, +}; + export const RecurrenceTrigger: coreClient.CompositeMapper = { serializedName: "Recurrence", type: { @@ -12292,15 +11956,65 @@ export const CronTrigger: coreClient.CompositeMapper = { }, }; -export const AzureDevOpsWebhook: coreClient.CompositeMapper = { - serializedName: "AzureDevOps", +export const AmlToken: coreClient.CompositeMapper = { + serializedName: "AMLToken", type: { name: "Composite", - className: "AzureDevOpsWebhook", - uberParent: "Webhook", - polymorphicDiscriminator: Webhook.type.polymorphicDiscriminator, + className: "AmlToken", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: + IdentityConfiguration.type.polymorphicDiscriminator, modelProperties: { - ...Webhook.type.modelProperties, + ...IdentityConfiguration.type.modelProperties, + }, + }, +}; + +export const ManagedIdentity: coreClient.CompositeMapper = { + serializedName: "Managed", + type: { + name: "Composite", + className: "ManagedIdentity", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: + IdentityConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...IdentityConfiguration.type.modelProperties, + clientId: { + serializedName: "clientId", + nullable: true, + type: { + name: "Uuid", + }, + }, + objectId: { + serializedName: "objectId", + nullable: true, + type: { + name: "Uuid", + }, + }, + resourceId: { + serializedName: "resourceId", + nullable: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const UserIdentity: coreClient.CompositeMapper = { + serializedName: "UserIdentity", + type: { + name: "Composite", + className: "UserIdentity", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: + IdentityConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...IdentityConfiguration.type.modelProperties, }, }, }; @@ -12318,46 +12032,129 @@ export const AllNodes: coreClient.CompositeMapper = { }, }; -export const AmlToken: coreClient.CompositeMapper = { - serializedName: "AMLToken", +export const DefaultScaleSettings: coreClient.CompositeMapper = { + serializedName: "Default", type: { name: "Composite", - className: "AmlToken", - uberParent: "IdentityConfiguration", - polymorphicDiscriminator: - IdentityConfiguration.type.polymorphicDiscriminator, + className: "DefaultScaleSettings", + uberParent: "OnlineScaleSettings", + polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, modelProperties: { - ...IdentityConfiguration.type.modelProperties, + ...OnlineScaleSettings.type.modelProperties, + }, + }, +}; + +export const TargetUtilizationScaleSettings: coreClient.CompositeMapper = { + serializedName: "TargetUtilization", + type: { + name: "Composite", + className: "TargetUtilizationScaleSettings", + uberParent: "OnlineScaleSettings", + polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, + modelProperties: { + ...OnlineScaleSettings.type.modelProperties, + maxInstances: { + defaultValue: 1, + serializedName: "maxInstances", + type: { + name: "Number", + }, + }, + minInstances: { + defaultValue: 1, + serializedName: "minInstances", + type: { + name: "Number", + }, + }, + pollingInterval: { + defaultValue: "PT1S", + serializedName: "pollingInterval", + type: { + name: "TimeSpan", + }, + }, + targetUtilizationPercentage: { + defaultValue: 70, + serializedName: "targetUtilizationPercentage", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const CreateMonitorAction: coreClient.CompositeMapper = { + serializedName: "CreateMonitor", + type: { + name: "Composite", + className: "CreateMonitorAction", + uberParent: "ScheduleActionBase", + polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, + modelProperties: { + ...ScheduleActionBase.type.modelProperties, + monitorDefinition: { + serializedName: "monitorDefinition", + type: { + name: "Composite", + className: "MonitorDefinition", + }, + }, + }, + }, +}; + +export const EndpointScheduleAction: coreClient.CompositeMapper = { + serializedName: "InvokeBatchEndpoint", + type: { + name: "Composite", + className: "EndpointScheduleAction", + uberParent: "ScheduleActionBase", + polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, + modelProperties: { + ...ScheduleActionBase.type.modelProperties, + endpointInvocationDefinition: { + serializedName: "endpointInvocationDefinition", + required: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + }, + }, +}; + +export const JobScheduleAction: coreClient.CompositeMapper = { + serializedName: "CreateJob", + type: { + name: "Composite", + className: "JobScheduleAction", + uberParent: "ScheduleActionBase", + polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, + modelProperties: { + ...ScheduleActionBase.type.modelProperties, + jobDefinition: { + serializedName: "jobDefinition", + type: { + name: "Composite", + className: "JobBaseProperties", + }, + }, }, }, }; -export const ManagedIdentity: coreClient.CompositeMapper = { - serializedName: "Managed", +export const PrivateEndpointResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedIdentity", - uberParent: "IdentityConfiguration", - polymorphicDiscriminator: - IdentityConfiguration.type.polymorphicDiscriminator, + className: "PrivateEndpointResource", modelProperties: { - ...IdentityConfiguration.type.modelProperties, - clientId: { - serializedName: "clientId", - nullable: true, - type: { - name: "Uuid", - }, - }, - objectId: { - serializedName: "objectId", - nullable: true, - type: { - name: "Uuid", - }, - }, - resourceId: { - serializedName: "resourceId", + ...PrivateEndpoint.type.modelProperties, + subnetArmId: { + serializedName: "subnetArmId", nullable: true, type: { name: "String", @@ -12367,134 +12164,314 @@ export const ManagedIdentity: coreClient.CompositeMapper = { }, }; -export const UserIdentity: coreClient.CompositeMapper = { - serializedName: "UserIdentity", +export const PrivateEndpointOutboundRule: coreClient.CompositeMapper = { + serializedName: "PrivateEndpoint", type: { name: "Composite", - className: "UserIdentity", - uberParent: "IdentityConfiguration", - polymorphicDiscriminator: - IdentityConfiguration.type.polymorphicDiscriminator, + className: "PrivateEndpointOutboundRule", + uberParent: "OutboundRule", + polymorphicDiscriminator: OutboundRule.type.polymorphicDiscriminator, modelProperties: { - ...IdentityConfiguration.type.modelProperties, + ...OutboundRule.type.modelProperties, + destination: { + serializedName: "destination", + type: { + name: "Composite", + className: "PrivateEndpointDestination", + }, + }, }, }, }; -export const DefaultScaleSettings: coreClient.CompositeMapper = { - serializedName: "Default", +export const ServiceTagOutboundRule: coreClient.CompositeMapper = { + serializedName: "ServiceTag", type: { name: "Composite", - className: "DefaultScaleSettings", - uberParent: "OnlineScaleSettings", - polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, + className: "ServiceTagOutboundRule", + uberParent: "OutboundRule", + polymorphicDiscriminator: OutboundRule.type.polymorphicDiscriminator, modelProperties: { - ...OnlineScaleSettings.type.modelProperties, + ...OutboundRule.type.modelProperties, + destination: { + serializedName: "destination", + type: { + name: "Composite", + className: "ServiceTagDestination", + }, + }, }, }, }; -export const TargetUtilizationScaleSettings: coreClient.CompositeMapper = { - serializedName: "TargetUtilization", +export const FqdnOutboundRule: coreClient.CompositeMapper = { + serializedName: "FQDN", type: { name: "Composite", - className: "TargetUtilizationScaleSettings", - uberParent: "OnlineScaleSettings", - polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, + className: "FqdnOutboundRule", + uberParent: "OutboundRule", + polymorphicDiscriminator: OutboundRule.type.polymorphicDiscriminator, modelProperties: { - ...OnlineScaleSettings.type.modelProperties, - pollingInterval: { - defaultValue: "PT1S", - serializedName: "pollingInterval", + ...OutboundRule.type.modelProperties, + destination: { + serializedName: "destination", type: { - name: "TimeSpan", + name: "String", }, }, - targetUtilizationPercentage: { - defaultValue: 70, - serializedName: "targetUtilizationPercentage", - type: { - name: "Number", + }, + }, +}; + +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", + }, }, }, - minInstances: { - defaultValue: 1, - serializedName: "minInstances", - type: { - name: "Number", + }, + }; + +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 AADAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = + { + serializedName: "AAD", + type: { + name: "Composite", + className: "AADAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + }, + }, + }; + +export const AccessKeyAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = + { + serializedName: "AccessKey", + type: { + name: "Composite", + className: "AccessKeyAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "WorkspaceConnectionAccessKey", + }, + }, + }, + }, + }; + +export const AccountKeyAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = + { + serializedName: "AccountKey", + type: { + name: "Composite", + className: "AccountKeyAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "WorkspaceConnectionAccountKey", + }, }, }, - maxInstances: { - defaultValue: 1, - serializedName: "maxInstances", - type: { - name: "Number", + }, + }; + +export const ApiKeyAuthWorkspaceConnectionProperties: coreClient.CompositeMapper = + { + serializedName: "ApiKey", + type: { + name: "Composite", + className: "ApiKeyAuthWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "WorkspaceConnectionApiKey", + }, }, }, }, - }, -}; + }; -export const CreateMonitorAction: coreClient.CompositeMapper = { - serializedName: "CreateMonitor", - type: { - name: "Composite", - className: "CreateMonitorAction", - uberParent: "ScheduleActionBase", - polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, - modelProperties: { - ...ScheduleActionBase.type.modelProperties, - monitorDefinition: { - serializedName: "monitorDefinition", - type: { - name: "Composite", - className: "MonitorDefinition", +export const CustomKeysWorkspaceConnectionProperties: coreClient.CompositeMapper = + { + serializedName: "CustomKeys", + type: { + name: "Composite", + className: "CustomKeysWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "CustomKeys", + }, }, }, }, - }, -}; + }; -export const EndpointScheduleAction: coreClient.CompositeMapper = { - serializedName: "InvokeBatchEndpoint", - type: { - name: "Composite", - className: "EndpointScheduleAction", - uberParent: "ScheduleActionBase", - polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, - modelProperties: { - ...ScheduleActionBase.type.modelProperties, - endpointInvocationDefinition: { - serializedName: "endpointInvocationDefinition", - required: true, - type: { - name: "Dictionary", - value: { type: { name: "any" } }, +export const OAuth2AuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = + { + serializedName: "OAuth2", + type: { + name: "Composite", + className: "OAuth2AuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "WorkspaceConnectionOAuth2", + }, }, }, }, - }, -}; + }; -export const JobScheduleAction: coreClient.CompositeMapper = { - serializedName: "CreateJob", - type: { - name: "Composite", - className: "JobScheduleAction", - uberParent: "ScheduleActionBase", - polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, - modelProperties: { - ...ScheduleActionBase.type.modelProperties, - jobDefinition: { - serializedName: "jobDefinition", - type: { - name: "Composite", - className: "JobBaseProperties", +export const ServicePrincipalAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = + { + serializedName: "ServicePrincipal", + type: { + name: "Composite", + className: "ServicePrincipalAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "WorkspaceConnectionServicePrincipal", + }, }, }, }, - }, -}; + }; export const AllFeatures: coreClient.CompositeMapper = { serializedName: "AllFeatures", @@ -12803,6 +12780,13 @@ export const Classification: coreClient.CompositeMapper = { modelProperties: { ...TableVertical.type.modelProperties, ...AutoMLVertical.type.modelProperties, + positiveLabel: { + serializedName: "positiveLabel", + nullable: true, + type: { + name: "String", + }, + }, primaryMetric: { serializedName: "primaryMetric", type: { @@ -12816,13 +12800,6 @@ export const Classification: coreClient.CompositeMapper = { className: "ClassificationTrainingSettings", }, }, - positiveLabel: { - serializedName: "positiveLabel", - nullable: true, - type: { - name: "String", - }, - }, }, }, }; @@ -12837,12 +12814,6 @@ export const Forecasting: coreClient.CompositeMapper = { modelProperties: { ...TableVertical.type.modelProperties, ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", - type: { - name: "String", - }, - }, forecastingSettings: { serializedName: "forecastingSettings", type: { @@ -12850,6 +12821,12 @@ export const Forecasting: coreClient.CompositeMapper = { className: "ForecastingSettings", }, }, + primaryMetric: { + serializedName: "primaryMetric", + type: { + name: "String", + }, + }, trainingSettings: { serializedName: "trainingSettings", type: { @@ -13311,6 +13288,12 @@ export const AzureDataLakeGen1Datastore: coreClient.CompositeMapper = { modelProperties: { ...AzureDatastore.type.modelProperties, ...DatastoreProperties.type.modelProperties, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", + type: { + name: "String", + }, + }, storeName: { constraints: { Pattern: new RegExp("[a-zA-Z0-9_]"), @@ -13322,12 +13305,6 @@ export const AzureDataLakeGen1Datastore: coreClient.CompositeMapper = { name: "String", }, }, - serviceDataAccessAuthIdentity: { - serializedName: "serviceDataAccessAuthIdentity", - type: { - name: "String", - }, - }, }, }, }; @@ -13342,17 +13319,6 @@ export const AzureDataLakeGen2Datastore: coreClient.CompositeMapper = { modelProperties: { ...AzureDatastore.type.modelProperties, ...DatastoreProperties.type.modelProperties, - filesystem: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]"), - MinLength: 1, - }, - serializedName: "filesystem", - required: true, - type: { - name: "String", - }, - }, accountName: { constraints: { Pattern: new RegExp("[a-zA-Z0-9_]"), @@ -13371,6 +13337,17 @@ export const AzureDataLakeGen2Datastore: coreClient.CompositeMapper = { name: "String", }, }, + filesystem: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1, + }, + serializedName: "filesystem", + required: true, + type: { + name: "String", + }, + }, protocol: { serializedName: "protocol", nullable: true, @@ -13409,6 +13386,13 @@ export const AzureFileDatastore: coreClient.CompositeMapper = { name: "String", }, }, + endpoint: { + serializedName: "endpoint", + nullable: true, + type: { + name: "String", + }, + }, fileShareName: { constraints: { Pattern: new RegExp("[a-zA-Z0-9_]"), @@ -13420,13 +13404,6 @@ export const AzureFileDatastore: coreClient.CompositeMapper = { name: "String", }, }, - endpoint: { - serializedName: "endpoint", - nullable: true, - type: { - name: "String", - }, - }, protocol: { serializedName: "protocol", nullable: true, @@ -13454,16 +13431,16 @@ export const BanditPolicy: coreClient.CompositeMapper = { EarlyTerminationPolicy.type.polymorphicDiscriminator, modelProperties: { ...EarlyTerminationPolicy.type.modelProperties, - slackFactor: { + slackAmount: { defaultValue: 0, - serializedName: "slackFactor", + serializedName: "slackAmount", type: { name: "Number", }, }, - slackAmount: { + slackFactor: { defaultValue: 0, - serializedName: "slackAmount", + serializedName: "slackFactor", type: { name: "Number", }, @@ -13542,6 +13519,12 @@ export const RandomSamplingAlgorithm: coreClient.CompositeMapper = { polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, modelProperties: { ...SamplingAlgorithm.type.modelProperties, + rule: { + serializedName: "rule", + type: { + name: "String", + }, + }, seed: { serializedName: "seed", nullable: true, @@ -13549,12 +13532,6 @@ export const RandomSamplingAlgorithm: coreClient.CompositeMapper = { name: "Number", }, }, - rule: { - serializedName: "rule", - type: { - name: "String", - }, - }, }, }, }; @@ -13796,12 +13773,6 @@ export const TableVerticalFeaturizationSettings: coreClient.CompositeMapper = { className: "TableVerticalFeaturizationSettings", modelProperties: { ...FeaturizationSettings.type.modelProperties, - mode: { - serializedName: "mode", - type: { - name: "String", - }, - }, blockedTransformers: { serializedName: "blockedTransformers", nullable: true, @@ -13822,6 +13793,19 @@ export const TableVerticalFeaturizationSettings: coreClient.CompositeMapper = { value: { type: { name: "String" } }, }, }, + enableDnnFeaturization: { + defaultValue: false, + serializedName: "enableDnnFeaturization", + type: { + name: "Boolean", + }, + }, + mode: { + serializedName: "mode", + type: { + name: "String", + }, + }, transformerParams: { serializedName: "transformerParams", nullable: true, @@ -13830,18 +13814,11 @@ export const TableVerticalFeaturizationSettings: coreClient.CompositeMapper = { value: { type: { name: "Sequence", - element: { - type: { name: "Composite", className: "ColumnTransformer" }, - }, - }, - }, - }, - }, - enableDnnFeaturization: { - defaultValue: false, - serializedName: "enableDnnFeaturization", - type: { - name: "Boolean", + element: { + type: { name: "Composite", className: "ColumnTransformer" }, + }, + }, + }, }, }, }, @@ -13910,16 +13887,16 @@ export const TensorFlow: coreClient.CompositeMapper = { DistributionConfiguration.type.polymorphicDiscriminator, modelProperties: { ...DistributionConfiguration.type.modelProperties, - workerCount: { - serializedName: "workerCount", - nullable: true, + parameterServerCount: { + defaultValue: 0, + serializedName: "parameterServerCount", type: { name: "Number", }, }, - parameterServerCount: { - defaultValue: 0, - serializedName: "parameterServerCount", + workerCount: { + serializedName: "workerCount", + nullable: true, type: { name: "Number", }, @@ -13950,15 +13927,15 @@ export const SweepJobLimits: coreClient.CompositeMapper = { polymorphicDiscriminator: JobLimits.type.polymorphicDiscriminator, modelProperties: { ...JobLimits.type.modelProperties, - maxTotalTrials: { - serializedName: "maxTotalTrials", + maxConcurrentTrials: { + serializedName: "maxConcurrentTrials", nullable: true, type: { name: "Number", }, }, - maxConcurrentTrials: { - serializedName: "maxConcurrentTrials", + maxTotalTrials: { + serializedName: "maxTotalTrials", nullable: true, type: { name: "Number", @@ -13975,6 +13952,49 @@ export const SweepJobLimits: coreClient.CompositeMapper = { }, }; +export const MonitorServerlessSparkCompute: coreClient.CompositeMapper = { + serializedName: "ServerlessSpark", + type: { + name: "Composite", + className: "MonitorServerlessSparkCompute", + uberParent: "MonitorComputeConfigurationBase", + polymorphicDiscriminator: + MonitorComputeConfigurationBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitorComputeConfigurationBase.type.modelProperties, + computeIdentity: { + serializedName: "computeIdentity", + type: { + name: "Composite", + className: "MonitorComputeIdentityBase", + }, + }, + instanceType: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1, + }, + serializedName: "instanceType", + required: true, + type: { + name: "String", + }, + }, + runtimeVersion: { + constraints: { + Pattern: new RegExp("^[0-9]+\\.[0-9]+$"), + MinLength: 1, + }, + serializedName: "runtimeVersion", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + export const CustomMonitoringSignal: coreClient.CompositeMapper = { serializedName: "Custom", type: { @@ -13985,6 +14005,17 @@ export const CustomMonitoringSignal: coreClient.CompositeMapper = { MonitoringSignalBase.type.polymorphicDiscriminator, modelProperties: { ...MonitoringSignalBase.type.modelProperties, + componentId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1, + }, + serializedName: "componentId", + required: true, + type: { + name: "String", + }, + }, inputAssets: { serializedName: "inputAssets", nullable: true, @@ -14003,17 +14034,6 @@ export const CustomMonitoringSignal: coreClient.CompositeMapper = { value: { type: { name: "Composite", className: "JobInput" } }, }, }, - componentId: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]"), - MinLength: 1, - }, - serializedName: "componentId", - required: true, - type: { - name: "String", - }, - }, metricThresholds: { serializedName: "metricThresholds", required: true, @@ -14041,11 +14061,12 @@ export const DataDriftMonitoringSignal: coreClient.CompositeMapper = { MonitoringSignalBase.type.polymorphicDiscriminator, modelProperties: { ...MonitoringSignalBase.type.modelProperties, - features: { - serializedName: "features", + featureDataTypeOverride: { + serializedName: "featureDataTypeOverride", + nullable: true, type: { - name: "Composite", - className: "MonitoringFeatureFilterBase", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, featureImportanceSettings: { @@ -14055,6 +14076,13 @@ export const DataDriftMonitoringSignal: coreClient.CompositeMapper = { className: "FeatureImportanceSettings", }, }, + features: { + serializedName: "features", + type: { + name: "Composite", + className: "MonitoringFeatureFilterBase", + }, + }, metricThresholds: { serializedName: "metricThresholds", required: true, @@ -14082,14 +14110,6 @@ export const DataDriftMonitoringSignal: coreClient.CompositeMapper = { className: "MonitoringInputDataBase", }, }, - featureDataTypeOverride: { - serializedName: "featureDataTypeOverride", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, }, }, }; @@ -14104,11 +14124,12 @@ export const DataQualityMonitoringSignal: coreClient.CompositeMapper = { MonitoringSignalBase.type.polymorphicDiscriminator, modelProperties: { ...MonitoringSignalBase.type.modelProperties, - features: { - serializedName: "features", + featureDataTypeOverride: { + serializedName: "featureDataTypeOverride", + nullable: true, type: { - name: "Composite", - className: "MonitoringFeatureFilterBase", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, featureImportanceSettings: { @@ -14118,6 +14139,13 @@ export const DataQualityMonitoringSignal: coreClient.CompositeMapper = { className: "FeatureImportanceSettings", }, }, + features: { + serializedName: "features", + type: { + name: "Composite", + className: "MonitoringFeatureFilterBase", + }, + }, metricThresholds: { serializedName: "metricThresholds", required: true, @@ -14145,14 +14173,6 @@ export const DataQualityMonitoringSignal: coreClient.CompositeMapper = { className: "MonitoringInputDataBase", }, }, - featureDataTypeOverride: { - serializedName: "featureDataTypeOverride", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, }, }, }; @@ -14168,11 +14188,12 @@ export const FeatureAttributionDriftMonitoringSignal: coreClient.CompositeMapper MonitoringSignalBase.type.polymorphicDiscriminator, modelProperties: { ...MonitoringSignalBase.type.modelProperties, - metricThreshold: { - serializedName: "metricThreshold", + featureDataTypeOverride: { + serializedName: "featureDataTypeOverride", + nullable: true, type: { - name: "Composite", - className: "FeatureAttributionMetricThreshold", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, featureImportanceSettings: { @@ -14182,6 +14203,13 @@ export const FeatureAttributionDriftMonitoringSignal: coreClient.CompositeMapper className: "FeatureImportanceSettings", }, }, + metricThreshold: { + serializedName: "metricThreshold", + type: { + name: "Composite", + className: "FeatureAttributionMetricThreshold", + }, + }, productionData: { serializedName: "productionData", required: true, @@ -14202,14 +14230,6 @@ export const FeatureAttributionDriftMonitoringSignal: coreClient.CompositeMapper className: "MonitoringInputDataBase", }, }, - featureDataTypeOverride: { - serializedName: "featureDataTypeOverride", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, }, }, }; @@ -14224,6 +14244,14 @@ export const PredictionDriftMonitoringSignal: coreClient.CompositeMapper = { MonitoringSignalBase.type.polymorphicDiscriminator, modelProperties: { ...MonitoringSignalBase.type.modelProperties, + featureDataTypeOverride: { + serializedName: "featureDataTypeOverride", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, metricThresholds: { serializedName: "metricThresholds", required: true, @@ -14251,57 +14279,6 @@ export const PredictionDriftMonitoringSignal: coreClient.CompositeMapper = { className: "MonitoringInputDataBase", }, }, - featureDataTypeOverride: { - serializedName: "featureDataTypeOverride", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - }, - }, -}; - -export const MonitorServerlessSparkCompute: coreClient.CompositeMapper = { - serializedName: "ServerlessSpark", - type: { - name: "Composite", - className: "MonitorServerlessSparkCompute", - uberParent: "MonitorComputeConfigurationBase", - polymorphicDiscriminator: - MonitorComputeConfigurationBase.type.polymorphicDiscriminator, - modelProperties: { - ...MonitorComputeConfigurationBase.type.modelProperties, - computeIdentity: { - serializedName: "computeIdentity", - type: { - name: "Composite", - className: "MonitorComputeIdentityBase", - }, - }, - instanceType: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]"), - MinLength: 1, - }, - serializedName: "instanceType", - required: true, - type: { - name: "String", - }, - }, - runtimeVersion: { - constraints: { - Pattern: new RegExp("^[0-9]+\\.[0-9]+$"), - MinLength: 1, - }, - serializedName: "runtimeVersion", - required: true, - type: { - name: "String", - }, - }, }, }, }; @@ -14330,6 +14307,13 @@ export const RollingInputData: coreClient.CompositeMapper = { MonitoringInputDataBase.type.polymorphicDiscriminator, modelProperties: { ...MonitoringInputDataBase.type.modelProperties, + preprocessingComponentId: { + serializedName: "preprocessingComponentId", + nullable: true, + type: { + name: "String", + }, + }, windowOffset: { serializedName: "windowOffset", required: true, @@ -14344,13 +14328,6 @@ export const RollingInputData: coreClient.CompositeMapper = { name: "TimeSpan", }, }, - preprocessingComponentId: { - serializedName: "preprocessingComponentId", - nullable: true, - type: { - name: "String", - }, - }, }, }, }; @@ -14365,11 +14342,11 @@ export const StaticInputData: coreClient.CompositeMapper = { MonitoringInputDataBase.type.polymorphicDiscriminator, modelProperties: { ...MonitoringInputDataBase.type.modelProperties, - windowStart: { - serializedName: "windowStart", - required: true, + preprocessingComponentId: { + serializedName: "preprocessingComponentId", + nullable: true, type: { - name: "DateTime", + name: "String", }, }, windowEnd: { @@ -14379,11 +14356,11 @@ export const StaticInputData: coreClient.CompositeMapper = { name: "DateTime", }, }, - preprocessingComponentId: { - serializedName: "preprocessingComponentId", - nullable: true, + windowStart: { + serializedName: "windowStart", + required: true, type: { - name: "String", + name: "DateTime", }, }, }, @@ -15058,11 +15035,11 @@ export const BatchEndpoint: coreClient.CompositeMapper = { className: "BatchEndpoint", modelProperties: { ...TrackedResource.type.modelProperties, - properties: { - serializedName: "properties", + identity: { + serializedName: "identity", type: { name: "Composite", - className: "BatchEndpointProperties", + className: "ManagedServiceIdentity", }, }, kind: { @@ -15071,11 +15048,11 @@ export const BatchEndpoint: coreClient.CompositeMapper = { name: "String", }, }, - identity: { - serializedName: "identity", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "ManagedServiceIdentity", + className: "BatchEndpointProperties", }, }, sku: { @@ -15095,11 +15072,11 @@ export const BatchDeployment: coreClient.CompositeMapper = { className: "BatchDeployment", modelProperties: { ...TrackedResource.type.modelProperties, - properties: { - serializedName: "properties", + identity: { + serializedName: "identity", type: { name: "Composite", - className: "BatchDeploymentProperties", + className: "ManagedServiceIdentity", }, }, kind: { @@ -15108,11 +15085,11 @@ export const BatchDeployment: coreClient.CompositeMapper = { name: "String", }, }, - identity: { - serializedName: "identity", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "ManagedServiceIdentity", + className: "BatchDeploymentProperties", }, }, sku: { @@ -15132,11 +15109,11 @@ export const OnlineEndpoint: coreClient.CompositeMapper = { className: "OnlineEndpoint", modelProperties: { ...TrackedResource.type.modelProperties, - properties: { - serializedName: "properties", + identity: { + serializedName: "identity", type: { name: "Composite", - className: "OnlineEndpointProperties", + className: "ManagedServiceIdentity", }, }, kind: { @@ -15145,11 +15122,11 @@ export const OnlineEndpoint: coreClient.CompositeMapper = { name: "String", }, }, - identity: { - serializedName: "identity", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "ManagedServiceIdentity", + className: "OnlineEndpointProperties", }, }, sku: { @@ -15169,11 +15146,11 @@ export const OnlineDeployment: coreClient.CompositeMapper = { className: "OnlineDeployment", modelProperties: { ...TrackedResource.type.modelProperties, - properties: { - serializedName: "properties", + identity: { + serializedName: "identity", type: { name: "Composite", - className: "OnlineDeploymentProperties", + className: "ManagedServiceIdentity", }, }, kind: { @@ -15182,11 +15159,11 @@ export const OnlineDeployment: coreClient.CompositeMapper = { name: "String", }, }, - identity: { - serializedName: "identity", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "ManagedServiceIdentity", + className: "OnlineDeploymentProperties", }, }, sku: { @@ -15206,11 +15183,11 @@ export const ServerlessEndpoint: coreClient.CompositeMapper = { className: "ServerlessEndpoint", modelProperties: { ...TrackedResource.type.modelProperties, - properties: { - serializedName: "properties", + identity: { + serializedName: "identity", type: { name: "Composite", - className: "ServerlessEndpointProperties", + className: "ManagedServiceIdentity", }, }, kind: { @@ -15219,11 +15196,11 @@ export const ServerlessEndpoint: coreClient.CompositeMapper = { name: "String", }, }, - identity: { - serializedName: "identity", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "ManagedServiceIdentity", + className: "ServerlessEndpointProperties", }, }, sku: { @@ -15537,17 +15514,17 @@ export const EnvironmentVersionProperties: coreClient.CompositeMapper = { className: "EnvironmentVersionProperties", modelProperties: { ...AssetBase.type.modelProperties, - environmentType: { - serializedName: "environmentType", - readOnly: true, + autoRebuild: { + serializedName: "autoRebuild", type: { name: "String", }, }, - image: { - serializedName: "image", + build: { + serializedName: "build", type: { - name: "String", + name: "Composite", + className: "BuildContext", }, }, condaFile: { @@ -15556,15 +15533,15 @@ export const EnvironmentVersionProperties: coreClient.CompositeMapper = { name: "String", }, }, - build: { - serializedName: "build", + environmentType: { + serializedName: "environmentType", + readOnly: true, type: { - name: "Composite", - className: "BuildContext", + name: "String", }, }, - osType: { - serializedName: "osType", + image: { + serializedName: "image", type: { name: "String", }, @@ -15576,8 +15553,8 @@ export const EnvironmentVersionProperties: coreClient.CompositeMapper = { className: "InferenceContainerProperties", }, }, - autoRebuild: { - serializedName: "autoRebuild", + osType: { + serializedName: "osType", type: { name: "String", }, @@ -15614,22 +15591,22 @@ export const ModelVersionProperties: coreClient.CompositeMapper = { value: { type: { name: "Composite", className: "FlavorData" } }, }, }, - modelType: { - serializedName: "modelType", + jobName: { + serializedName: "jobName", nullable: true, type: { name: "String", }, }, - modelUri: { - serializedName: "modelUri", + modelType: { + serializedName: "modelType", nullable: true, type: { name: "String", }, }, - jobName: { - serializedName: "jobName", + modelUri: { + serializedName: "modelUri", nullable: true, type: { name: "String", @@ -15659,11 +15636,16 @@ export const FeaturesetVersionProperties: coreClient.CompositeMapper = { className: "FeaturesetVersionProperties", modelProperties: { ...AssetBase.type.modelProperties, - specification: { - serializedName: "specification", + entities: { + serializedName: "entities", + nullable: true, type: { - name: "Composite", - className: "FeaturesetSpecification", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, materializationSettings: { @@ -15673,28 +15655,23 @@ export const FeaturesetVersionProperties: coreClient.CompositeMapper = { className: "MaterializationSettings", }, }, - stage: { - serializedName: "stage", - nullable: true, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String", }, }, - entities: { - serializedName: "entities", - nullable: true, + specification: { + serializedName: "specification", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "FeaturesetSpecification", }, }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + stage: { + serializedName: "stage", + nullable: true, type: { name: "String", }, @@ -15722,16 +15699,16 @@ export const FeaturestoreEntityVersionProperties: coreClient.CompositeMapper = { }, }, }, - stage: { - serializedName: "stage", - nullable: true, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String", }, }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + stage: { + serializedName: "stage", + nullable: true, type: { name: "String", }, @@ -15756,6 +15733,13 @@ export const OneLakeDatastore: coreClient.CompositeMapper = { className: "OneLakeArtifact", }, }, + endpoint: { + serializedName: "endpoint", + nullable: true, + type: { + name: "String", + }, + }, oneLakeWorkspaceName: { constraints: { Pattern: new RegExp("[a-zA-Z0-9_]"), @@ -15767,13 +15751,6 @@ export const OneLakeDatastore: coreClient.CompositeMapper = { name: "String", }, }, - endpoint: { - serializedName: "endpoint", - nullable: true, - type: { - name: "String", - }, - }, serviceDataAccessAuthIdentity: { serializedName: "serviceDataAccessAuthIdentity", type: { @@ -15793,13 +15770,6 @@ export const AutoMLJob: coreClient.CompositeMapper = { polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { ...JobBaseProperties.type.modelProperties, - resources: { - serializedName: "resources", - type: { - name: "Composite", - className: "JobResourceConfiguration", - }, - }, environmentId: { serializedName: "environmentId", nullable: true, @@ -15815,13 +15785,6 @@ export const AutoMLJob: coreClient.CompositeMapper = { value: { type: { name: "String" } }, }, }, - taskDetails: { - serializedName: "taskDetails", - type: { - name: "Composite", - className: "AutoMLVertical", - }, - }, outputs: { serializedName: "outputs", nullable: true, @@ -15837,6 +15800,20 @@ export const AutoMLJob: coreClient.CompositeMapper = { className: "QueueSettings", }, }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "JobResourceConfiguration", + }, + }, + taskDetails: { + serializedName: "taskDetails", + type: { + name: "Composite", + className: "AutoMLVertical", + }, + }, }, }, }; @@ -15850,13 +15827,6 @@ export const CommandJob: coreClient.CompositeMapper = { polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { ...JobBaseProperties.type.modelProperties, - resources: { - serializedName: "resources", - type: { - name: "Composite", - className: "JobResourceConfiguration", - }, - }, codeId: { serializedName: "codeId", nullable: true, @@ -15875,6 +15845,13 @@ export const CommandJob: coreClient.CompositeMapper = { name: "String", }, }, + distribution: { + serializedName: "distribution", + type: { + name: "Composite", + className: "DistributionConfiguration", + }, + }, environmentId: { constraints: { Pattern: new RegExp("[a-zA-Z0-9_]"), @@ -15886,27 +15863,20 @@ export const CommandJob: coreClient.CompositeMapper = { name: "String", }, }, - inputs: { - serializedName: "inputs", + environmentVariables: { + serializedName: "environmentVariables", nullable: true, type: { name: "Dictionary", - value: { type: { name: "Composite", className: "JobInput" } }, + value: { type: { name: "String" } }, }, }, - outputs: { - serializedName: "outputs", + inputs: { + serializedName: "inputs", nullable: true, type: { name: "Dictionary", - value: { type: { name: "Composite", className: "JobOutput" } }, - }, - }, - distribution: { - serializedName: "distribution", - type: { - name: "Composite", - className: "DistributionConfiguration", + value: { type: { name: "Composite", className: "JobInput" } }, }, }, limits: { @@ -15916,12 +15886,12 @@ export const CommandJob: coreClient.CompositeMapper = { className: "CommandJobLimits", }, }, - environmentVariables: { - serializedName: "environmentVariables", + outputs: { + serializedName: "outputs", nullable: true, type: { name: "Dictionary", - value: { type: { name: "String" } }, + value: { type: { name: "Composite", className: "JobOutput" } }, }, }, parameters: { @@ -15940,6 +15910,13 @@ export const CommandJob: coreClient.CompositeMapper = { className: "QueueSettings", }, }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "JobResourceConfiguration", + }, + }, }, }, }; @@ -15953,12 +15930,12 @@ export const PipelineJob: coreClient.CompositeMapper = { polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { ...JobBaseProperties.type.modelProperties, - settings: { - serializedName: "settings", + inputs: { + serializedName: "inputs", nullable: true, type: { name: "Dictionary", - value: { type: { name: "any" } }, + value: { type: { name: "Composite", className: "JobInput" } }, }, }, jobs: { @@ -15971,20 +15948,20 @@ export const PipelineJob: coreClient.CompositeMapper = { }, }, }, - inputs: { - serializedName: "inputs", + outputs: { + serializedName: "outputs", nullable: true, type: { name: "Dictionary", - value: { type: { name: "Composite", className: "JobInput" } }, + value: { type: { name: "Composite", className: "JobOutput" } }, }, }, - outputs: { - serializedName: "outputs", + settings: { + serializedName: "settings", nullable: true, type: { name: "Dictionary", - value: { type: { name: "Composite", className: "JobOutput" } }, + value: { type: { name: "any" } }, }, }, sourceJobId: { @@ -16007,11 +15984,16 @@ export const SparkJob: coreClient.CompositeMapper = { polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { ...JobBaseProperties.type.modelProperties, - resources: { - serializedName: "resources", + archives: { + serializedName: "archives", + nullable: true, type: { - name: "Composite", - className: "SparkResourceConfiguration", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, args: { @@ -16028,6 +16010,14 @@ export const SparkJob: coreClient.CompositeMapper = { name: "String", }, }, + conf: { + serializedName: "conf", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, entry: { serializedName: "entry", type: { @@ -16042,24 +16032,16 @@ export const SparkJob: coreClient.CompositeMapper = { name: "String", }, }, - inputs: { - serializedName: "inputs", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobInput" } }, - }, - }, - outputs: { - serializedName: "outputs", + environmentVariables: { + serializedName: "environmentVariables", nullable: true, type: { name: "Dictionary", - value: { type: { name: "Composite", className: "JobOutput" } }, + value: { type: { name: "String" } }, }, }, - pyFiles: { - serializedName: "pyFiles", + files: { + serializedName: "files", nullable: true, type: { name: "Sequence", @@ -16070,6 +16052,14 @@ export const SparkJob: coreClient.CompositeMapper = { }, }, }, + inputs: { + serializedName: "inputs", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobInput" } }, + }, + }, jars: { serializedName: "jars", nullable: true, @@ -16082,20 +16072,16 @@ export const SparkJob: coreClient.CompositeMapper = { }, }, }, - files: { - serializedName: "files", + outputs: { + serializedName: "outputs", nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Dictionary", + value: { type: { name: "Composite", className: "JobOutput" } }, }, }, - archives: { - serializedName: "archives", + pyFiles: { + serializedName: "pyFiles", nullable: true, type: { name: "Sequence", @@ -16106,14 +16092,6 @@ export const SparkJob: coreClient.CompositeMapper = { }, }, }, - conf: { - serializedName: "conf", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, queueSettings: { serializedName: "queueSettings", type: { @@ -16121,12 +16099,11 @@ export const SparkJob: coreClient.CompositeMapper = { className: "QueueSettings", }, }, - environmentVariables: { - serializedName: "environmentVariables", - nullable: true, + resources: { + serializedName: "resources", type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "Composite", + className: "SparkResourceConfiguration", }, }, }, @@ -16142,19 +16119,19 @@ export const SweepJob: coreClient.CompositeMapper = { polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { ...JobBaseProperties.type.modelProperties, - searchSpace: { - serializedName: "searchSpace", - required: true, + earlyTermination: { + serializedName: "earlyTermination", type: { - name: "Dictionary", - value: { type: { name: "any" } }, + name: "Composite", + className: "EarlyTerminationPolicy", }, }, - samplingAlgorithm: { - serializedName: "samplingAlgorithm", + inputs: { + serializedName: "inputs", + nullable: true, type: { - name: "Composite", - className: "SamplingAlgorithm", + name: "Dictionary", + value: { type: { name: "Composite", className: "JobInput" } }, }, }, limits: { @@ -16164,13 +16141,6 @@ export const SweepJob: coreClient.CompositeMapper = { className: "SweepJobLimits", }, }, - earlyTermination: { - serializedName: "earlyTermination", - type: { - name: "Composite", - className: "EarlyTerminationPolicy", - }, - }, objective: { serializedName: "objective", type: { @@ -16178,21 +16148,6 @@ export const SweepJob: coreClient.CompositeMapper = { className: "Objective", }, }, - trial: { - serializedName: "trial", - type: { - name: "Composite", - className: "TrialComponent", - }, - }, - inputs: { - serializedName: "inputs", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobInput" } }, - }, - }, outputs: { serializedName: "outputs", nullable: true, @@ -16208,6 +16163,28 @@ export const SweepJob: coreClient.CompositeMapper = { className: "QueueSettings", }, }, + samplingAlgorithm: { + serializedName: "samplingAlgorithm", + type: { + name: "Composite", + className: "SamplingAlgorithm", + }, + }, + searchSpace: { + serializedName: "searchSpace", + required: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + trial: { + serializedName: "trial", + type: { + name: "Composite", + className: "TrialComponent", + }, + }, }, }, }; @@ -16278,150 +16255,25 @@ export const UriFileDataVersion: coreClient.CompositeMapper = { type: { name: "Composite", className: "UriFileDataVersion", - uberParent: "DataVersionBaseProperties", - polymorphicDiscriminator: - DataVersionBaseProperties.type.polymorphicDiscriminator, - modelProperties: { - ...DataVersionBaseProperties.type.modelProperties, - }, - }, -}; - -export const UriFolderDataVersion: coreClient.CompositeMapper = { - serializedName: "uri_folder", - type: { - name: "Composite", - className: "UriFolderDataVersion", - uberParent: "DataVersionBaseProperties", - polymorphicDiscriminator: - DataVersionBaseProperties.type.polymorphicDiscriminator, - modelProperties: { - ...DataVersionBaseProperties.type.modelProperties, - }, - }, -}; - -export const WorkspacesCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkspacesCreateOrUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - constraints: { - InclusiveMaximum: 600, - InclusiveMinimum: 10, - }, - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const WorkspacesUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkspacesUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - constraints: { - InclusiveMaximum: 600, - InclusiveMinimum: 10, - }, - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const WorkspacesDiagnoseHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkspacesDiagnoseHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - constraints: { - InclusiveMaximum: 600, - InclusiveMinimum: 10, - }, - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const WorkspacesResyncKeysHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkspacesResyncKeysHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - constraints: { - InclusiveMaximum: 600, - InclusiveMinimum: 10, - }, - serializedName: "retry-after", - type: { - name: "Number", - }, - }, + uberParent: "DataVersionBaseProperties", + polymorphicDiscriminator: + DataVersionBaseProperties.type.polymorphicDiscriminator, + modelProperties: { + ...DataVersionBaseProperties.type.modelProperties, }, }, }; -export const WorkspacesPrepareNotebookHeaders: coreClient.CompositeMapper = { +export const UriFolderDataVersion: coreClient.CompositeMapper = { + serializedName: "uri_folder", type: { name: "Composite", - className: "WorkspacesPrepareNotebookHeaders", + className: "UriFolderDataVersion", + uberParent: "DataVersionBaseProperties", + polymorphicDiscriminator: + DataVersionBaseProperties.type.polymorphicDiscriminator, modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - constraints: { - InclusiveMaximum: 600, - InclusiveMinimum: 10, - }, - serializedName: "retry-after", - type: { - name: "Number", - }, - }, + ...DataVersionBaseProperties.type.modelProperties, }, }, }; @@ -16462,74 +16314,6 @@ export const ComputeDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const ManagedNetworkSettingsRuleDeleteHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedNetworkSettingsRuleDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const ManagedNetworkSettingsRuleCreateOrUpdateHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedNetworkSettingsRuleCreateOrUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - constraints: { - InclusiveMaximum: 600, - InclusiveMinimum: 10, - }, - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const ManagedNetworkProvisionsProvisionManagedNetworkHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedNetworkProvisionsProvisionManagedNetworkHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - constraints: { - InclusiveMaximum: 600, - InclusiveMinimum: 10, - }, - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - export const RegistryCodeContainersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", @@ -17151,14 +16935,167 @@ export const BatchEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { export const BatchDeploymentsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchDeploymentsDeleteHeaders", + className: "BatchDeploymentsDeleteHeaders", + 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 BatchDeploymentsUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchDeploymentsUpdateHeaders", + 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 BatchDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BatchDeploymentsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; + +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: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", - type: { - name: "TimeSpan", - }, - }, location: { serializedName: "location", type: { @@ -17179,10 +17116,10 @@ export const BatchDeploymentsDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const BatchDeploymentsUpdateHeaders: coreClient.CompositeMapper = { +export const FeaturesetContainersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchDeploymentsUpdateHeaders", + className: "FeaturesetContainersDeleteHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -17210,11 +17147,11 @@ export const BatchDeploymentsUpdateHeaders: coreClient.CompositeMapper = { }, }; -export const BatchDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = +export const FeaturesetContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchDeploymentsCreateOrUpdateHeaders", + className: "FeaturesetContainersCreateOrUpdateHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -17232,11 +17169,17 @@ export const BatchDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = }, }; -export const CodeVersionsPublishHeaders: coreClient.CompositeMapper = { +export const FeaturesetVersionsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeVersionsPublishHeaders", + className: "FeaturesetVersionsDeleteHeaders", modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan", + }, + }, location: { serializedName: "location", type: { @@ -17257,10 +17200,32 @@ export const CodeVersionsPublishHeaders: coreClient.CompositeMapper = { }, }; -export const ComponentVersionsPublishHeaders: coreClient.CompositeMapper = { +export const FeaturesetVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "FeaturesetVersionsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const FeaturesetVersionsBackfillHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentVersionsPublishHeaders", + className: "FeaturesetVersionsBackfillHeaders", modelProperties: { location: { serializedName: "location", @@ -17282,36 +17247,125 @@ export const ComponentVersionsPublishHeaders: coreClient.CompositeMapper = { }, }; -export const DataVersionsPublishHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataVersionsPublishHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", +export const FeaturestoreEntityContainersDeleteHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "FeaturestoreEntityContainersDeleteHeaders", + 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", + }, }, }, - retryAfter: { - constraints: { - InclusiveMaximum: 600, - InclusiveMinimum: 10, + }, + }; + +export const FeaturestoreEntityContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "FeaturestoreEntityContainersCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan", + }, }, - serializedName: "retry-after", - type: { - name: "Number", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, }, }, }, - }, -}; + }; -export const EnvironmentVersionsPublishHeaders: coreClient.CompositeMapper = { +export const FeaturestoreEntityVersionsDeleteHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "FeaturestoreEntityVersionsDeleteHeaders", + 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 FeaturestoreEntityVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "FeaturestoreEntityVersionsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const JobsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentVersionsPublishHeaders", + className: "JobsDeleteHeaders", modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan", + }, + }, location: { serializedName: "location", type: { @@ -17332,17 +17386,11 @@ export const EnvironmentVersionsPublishHeaders: coreClient.CompositeMapper = { }, }; -export const FeaturesetContainersDeleteHeaders: coreClient.CompositeMapper = { +export const JobsCancelHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FeaturesetContainersDeleteHeaders", + className: "JobsCancelHeaders", modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", - type: { - name: "TimeSpan", - }, - }, location: { serializedName: "location", type: { @@ -17363,11 +17411,43 @@ export const FeaturesetContainersDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const FeaturesetContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = +export const MarketplaceSubscriptionsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FeaturesetContainersCreateOrUpdateHeaders", + className: "MarketplaceSubscriptionsDeleteHeaders", + 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 MarketplaceSubscriptionsCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "MarketplaceSubscriptionsCreateOrUpdateHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -17385,10 +17465,35 @@ export const FeaturesetContainersCreateOrUpdateHeaders: coreClient.CompositeMapp }, }; -export const FeaturesetVersionsDeleteHeaders: coreClient.CompositeMapper = { +export const ModelVersionsPublishHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FeaturesetVersionsDeleteHeaders", + 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", + className: "OnlineEndpointsDeleteHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -17416,33 +17521,17 @@ export const FeaturesetVersionsDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const FeaturesetVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "FeaturesetVersionsCreateOrUpdateHeaders", - modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", - type: { - name: "TimeSpan", - }, - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const FeaturesetVersionsBackfillHeaders: coreClient.CompositeMapper = { +export const OnlineEndpointsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FeaturesetVersionsBackfillHeaders", + className: "OnlineEndpointsUpdateHeaders", modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan", + }, + }, location: { serializedName: "location", type: { @@ -17463,43 +17552,11 @@ export const FeaturesetVersionsBackfillHeaders: coreClient.CompositeMapper = { }, }; -export const FeaturestoreEntityContainersDeleteHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "FeaturestoreEntityContainersDeleteHeaders", - 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 FeaturestoreEntityContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = +export const OnlineEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FeaturestoreEntityContainersCreateOrUpdateHeaders", + className: "OnlineEndpointsCreateOrUpdateHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -17517,18 +17574,12 @@ export const FeaturestoreEntityContainersCreateOrUpdateHeaders: coreClient.Compo }, }; -export const FeaturestoreEntityVersionsDeleteHeaders: coreClient.CompositeMapper = +export const OnlineEndpointsRegenerateKeysHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FeaturestoreEntityVersionsDeleteHeaders", + className: "OnlineEndpointsRegenerateKeysHeaders", modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", - type: { - name: "TimeSpan", - }, - }, location: { serializedName: "location", type: { @@ -17549,32 +17600,10 @@ export const FeaturestoreEntityVersionsDeleteHeaders: coreClient.CompositeMapper }, }; -export const FeaturestoreEntityVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "FeaturestoreEntityVersionsCreateOrUpdateHeaders", - modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", - type: { - name: "TimeSpan", - }, - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const JobsDeleteHeaders: coreClient.CompositeMapper = { +export const OnlineDeploymentsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobsDeleteHeaders", + className: "OnlineDeploymentsDeleteHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -17602,11 +17631,17 @@ export const JobsDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const JobsCancelHeaders: coreClient.CompositeMapper = { +export const OnlineDeploymentsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobsCancelHeaders", + className: "OnlineDeploymentsUpdateHeaders", modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan", + }, + }, location: { serializedName: "location", type: { @@ -17627,43 +17662,11 @@ export const JobsCancelHeaders: coreClient.CompositeMapper = { }, }; -export const MarketplaceSubscriptionsDeleteHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "MarketplaceSubscriptionsDeleteHeaders", - 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 MarketplaceSubscriptionsCreateOrUpdateHeaders: coreClient.CompositeMapper = +export const OnlineDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MarketplaceSubscriptionsCreateOrUpdateHeaders", + className: "OnlineDeploymentsCreateOrUpdateHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -17681,11 +17684,17 @@ export const MarketplaceSubscriptionsCreateOrUpdateHeaders: coreClient.Composite }, }; -export const ModelVersionsPublishHeaders: coreClient.CompositeMapper = { +export const SchedulesDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelVersionsPublishHeaders", + className: "SchedulesDeleteHeaders", modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan", + }, + }, location: { serializedName: "location", type: { @@ -17706,10 +17715,31 @@ export const ModelVersionsPublishHeaders: coreClient.CompositeMapper = { }, }; -export const OnlineEndpointsDeleteHeaders: coreClient.CompositeMapper = { +export const SchedulesCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointsDeleteHeaders", + className: "SchedulesCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ServerlessEndpointsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerlessEndpointsDeleteHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -17737,10 +17767,10 @@ export const OnlineEndpointsDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const OnlineEndpointsUpdateHeaders: coreClient.CompositeMapper = { +export const ServerlessEndpointsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointsUpdateHeaders", + className: "ServerlessEndpointsUpdateHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -17768,11 +17798,11 @@ export const OnlineEndpointsUpdateHeaders: coreClient.CompositeMapper = { }, }; -export const OnlineEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = +export const ServerlessEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointsCreateOrUpdateHeaders", + className: "ServerlessEndpointsCreateOrUpdateHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -17790,11 +17820,11 @@ export const OnlineEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = }, }; -export const OnlineEndpointsRegenerateKeysHeaders: coreClient.CompositeMapper = +export const ServerlessEndpointsRegenerateKeysHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointsRegenerateKeysHeaders", + className: "ServerlessEndpointsRegenerateKeysHeaders", modelProperties: { location: { serializedName: "location", @@ -17816,10 +17846,41 @@ export const OnlineEndpointsRegenerateKeysHeaders: coreClient.CompositeMapper = }, }; -export const OnlineDeploymentsDeleteHeaders: coreClient.CompositeMapper = { +export const RegistriesDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineDeploymentsDeleteHeaders", + 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", @@ -17847,17 +17908,36 @@ export const OnlineDeploymentsDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const OnlineDeploymentsUpdateHeaders: coreClient.CompositeMapper = { +export const WorkspacesCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspacesCreateOrUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10, + }, + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const WorkspacesDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineDeploymentsUpdateHeaders", + className: "WorkspacesDeleteHeaders", modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", - type: { - name: "TimeSpan", - }, - }, location: { serializedName: "location", type: { @@ -17865,10 +17945,6 @@ export const OnlineDeploymentsUpdateHeaders: coreClient.CompositeMapper = { }, }, retryAfter: { - constraints: { - InclusiveMaximum: 600, - InclusiveMinimum: 10, - }, serializedName: "retry-after", type: { name: "Number", @@ -17878,39 +17954,11 @@ export const OnlineDeploymentsUpdateHeaders: coreClient.CompositeMapper = { }, }; -export const OnlineDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "OnlineDeploymentsCreateOrUpdateHeaders", - modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", - type: { - name: "TimeSpan", - }, - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const SchedulesDeleteHeaders: coreClient.CompositeMapper = { +export const WorkspacesUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SchedulesDeleteHeaders", + className: "WorkspacesUpdateHeaders", modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", - type: { - name: "TimeSpan", - }, - }, location: { serializedName: "location", type: { @@ -17931,38 +17979,36 @@ export const SchedulesDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const SchedulesCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const WorkspacesDiagnoseHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SchedulesCreateOrUpdateHeaders", + className: "WorkspacesDiagnoseHeaders", modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", + location: { + serializedName: "location", type: { - name: "TimeSpan", + name: "String", }, }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10, + }, + serializedName: "retry-after", type: { - name: "String", + name: "Number", }, }, }, }, }; -export const ServerlessEndpointsDeleteHeaders: coreClient.CompositeMapper = { +export const WorkspacesResyncKeysHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerlessEndpointsDeleteHeaders", + className: "WorkspacesResyncKeysHeaders", modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", - type: { - name: "TimeSpan", - }, - }, location: { serializedName: "location", type: { @@ -17983,17 +18029,11 @@ export const ServerlessEndpointsDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const ServerlessEndpointsUpdateHeaders: coreClient.CompositeMapper = { +export const WorkspacesPrepareNotebookHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerlessEndpointsUpdateHeaders", + className: "WorkspacesPrepareNotebookHeaders", modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", - type: { - name: "TimeSpan", - }, - }, location: { serializedName: "location", type: { @@ -18014,20 +18054,14 @@ export const ServerlessEndpointsUpdateHeaders: coreClient.CompositeMapper = { }, }; -export const ServerlessEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = +export const ManagedNetworkSettingsRuleDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerlessEndpointsCreateOrUpdateHeaders", + className: "ManagedNetworkSettingsRuleDeleteHeaders", modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", - type: { - name: "TimeSpan", - }, - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String", }, @@ -18036,11 +18070,11 @@ export const ServerlessEndpointsCreateOrUpdateHeaders: coreClient.CompositeMappe }, }; -export const ServerlessEndpointsRegenerateKeysHeaders: coreClient.CompositeMapper = +export const ManagedNetworkSettingsRuleCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerlessEndpointsRegenerateKeysHeaders", + className: "ManagedNetworkSettingsRuleCreateOrUpdateHeaders", modelProperties: { location: { serializedName: "location", @@ -18062,91 +18096,55 @@ export const ServerlessEndpointsRegenerateKeysHeaders: coreClient.CompositeMappe }, }; -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, +export const ManagedNetworkProvisionsProvisionManagedNetworkHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedNetworkProvisionsProvisionManagedNetworkHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, }, - serializedName: "retry-after", - type: { - name: "Number", + 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, BatchDeploymentConfiguration: BatchDeploymentConfiguration, AssetReferenceBase: AssetReferenceBase, DatastoreCredentials: DatastoreCredentials, DatastoreSecrets: DatastoreSecrets, - TriggerBase: TriggerBase, Webhook: Webhook, - Nodes: Nodes, + TriggerBase: TriggerBase, IdentityConfiguration: IdentityConfiguration, + Nodes: Nodes, OnlineScaleSettings: OnlineScaleSettings, ScheduleActionBase: ScheduleActionBase, + OutboundRule: OutboundRule, + WorkspaceConnectionPropertiesV2: WorkspaceConnectionPropertiesV2, MonitoringFeatureFilterBase: MonitoringFeatureFilterBase, MonitorComputeIdentityBase: MonitorComputeIdentityBase, ForecastHorizon: ForecastHorizon, + JobOutput: JobOutput, AutoMLVertical: AutoMLVertical, JobInput: JobInput, - JobOutput: JobOutput, NCrossValidations: NCrossValidations, Seasonality: Seasonality, TargetLags: TargetLags, @@ -18158,14 +18156,11 @@ export let discriminators = { PredictionDriftMetricThresholdBase: PredictionDriftMetricThresholdBase, DistributionConfiguration: DistributionConfiguration, JobLimits: JobLimits, - MonitoringSignalBase: MonitoringSignalBase, MonitorComputeConfigurationBase: MonitorComputeConfigurationBase, + MonitoringSignalBase: MonitoringSignalBase, MonitoringInputDataBase: MonitoringInputDataBase, OneLakeArtifact: OneLakeArtifact, SparkJobEntry: SparkJobEntry, - "OutboundRule.PrivateEndpoint": PrivateEndpointOutboundRule, - "OutboundRule.ServiceTag": ServiceTagOutboundRule, - "OutboundRule.FQDN": FqdnOutboundRule, "Compute.AKS": Aks, "Compute.Kubernetes": Kubernetes, "Compute.AmlCompute": AmlCompute, @@ -18179,30 +18174,6 @@ export let discriminators = { "ComputeSecrets.AKS": AksComputeSecrets, "ComputeSecrets.VirtualMachine": VirtualMachineSecrets, "ComputeSecrets.Databricks": DatabricksComputeSecrets, - "WorkspaceConnectionPropertiesV2.PAT": - PATAuthTypeWorkspaceConnectionProperties, - "WorkspaceConnectionPropertiesV2.SAS": - SASAuthTypeWorkspaceConnectionProperties, - "WorkspaceConnectionPropertiesV2.UsernamePassword": - UsernamePasswordAuthTypeWorkspaceConnectionProperties, - "WorkspaceConnectionPropertiesV2.None": - NoneAuthTypeWorkspaceConnectionProperties, - "WorkspaceConnectionPropertiesV2.ManagedIdentity": - ManagedIdentityAuthTypeWorkspaceConnectionProperties, - "WorkspaceConnectionPropertiesV2.AAD": - AADAuthTypeWorkspaceConnectionProperties, - "WorkspaceConnectionPropertiesV2.AccessKey": - AccessKeyAuthTypeWorkspaceConnectionProperties, - "WorkspaceConnectionPropertiesV2.AccountKey": - AccountKeyAuthTypeWorkspaceConnectionProperties, - "WorkspaceConnectionPropertiesV2.ApiKey": - ApiKeyAuthWorkspaceConnectionProperties, - "WorkspaceConnectionPropertiesV2.CustomKeys": - CustomKeysWorkspaceConnectionProperties, - "WorkspaceConnectionPropertiesV2.OAuth2": - OAuth2AuthTypeWorkspaceConnectionProperties, - "WorkspaceConnectionPropertiesV2.ServicePrincipal": - ServicePrincipalAuthTypeWorkspaceConnectionProperties, "ResourceBase.DatastoreProperties": DatastoreProperties, "ResourceBase.JobBaseProperties": JobBaseProperties, "PendingUploadCredentialDto.SAS": SASCredentialDto, @@ -18226,18 +18197,45 @@ export let discriminators = { "DatastoreSecrets.Certificate": CertificateDatastoreSecrets, "DatastoreSecrets.Sas": SasDatastoreSecrets, "DatastoreSecrets.ServicePrincipal": ServicePrincipalDatastoreSecrets, + "Webhook.AzureDevOps": AzureDevOpsWebhook, "TriggerBase.Recurrence": RecurrenceTrigger, "TriggerBase.Cron": CronTrigger, - "Webhook.AzureDevOps": AzureDevOpsWebhook, - "Nodes.All": AllNodes, "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, + "OutboundRule.PrivateEndpoint": PrivateEndpointOutboundRule, + "OutboundRule.ServiceTag": ServiceTagOutboundRule, + "OutboundRule.FQDN": FqdnOutboundRule, + "WorkspaceConnectionPropertiesV2.PAT": + PATAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.SAS": + SASAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.UsernamePassword": + UsernamePasswordAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.None": + NoneAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.ManagedIdentity": + ManagedIdentityAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.AAD": + AADAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.AccessKey": + AccessKeyAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.AccountKey": + AccountKeyAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.ApiKey": + ApiKeyAuthWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.CustomKeys": + CustomKeysWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.OAuth2": + OAuth2AuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.ServicePrincipal": + ServicePrincipalAuthTypeWorkspaceConnectionProperties, "MonitoringFeatureFilterBase.AllFeatures": AllFeatures, "MonitoringFeatureFilterBase.FeatureSubset": FeatureSubset, "MonitoringFeatureFilterBase.TopNByAttribution": TopNFeaturesByAttribution, @@ -18302,14 +18300,14 @@ export let discriminators = { "DistributionConfiguration.TensorFlow": TensorFlow, "JobLimits.Command": CommandJobLimits, "JobLimits.Sweep": SweepJobLimits, + "MonitorComputeConfigurationBase.ServerlessSpark": + MonitorServerlessSparkCompute, "MonitoringSignalBase.Custom": CustomMonitoringSignal, "MonitoringSignalBase.DataDrift": DataDriftMonitoringSignal, "MonitoringSignalBase.DataQuality": DataQualityMonitoringSignal, "MonitoringSignalBase.FeatureAttributionDrift": FeatureAttributionDriftMonitoringSignal, "MonitoringSignalBase.PredictionDrift": PredictionDriftMonitoringSignal, - "MonitorComputeConfigurationBase.ServerlessSpark": - MonitorServerlessSparkCompute, "MonitoringInputDataBase.Fixed": FixedInputData, "MonitoringInputDataBase.Rolling": RollingInputData, "MonitoringInputDataBase.Static": StaticInputData, diff --git a/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts b/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts index 6cd7aad4495b..9c59296f26ee 100644 --- a/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts +++ b/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts @@ -12,16 +12,9 @@ import { OperationQueryParameter, } from "@azure/core-client"; import { - Workspace as WorkspaceMapper, - WorkspaceUpdateParameters as WorkspaceUpdateParametersMapper, - DiagnoseWorkspaceParameters as DiagnoseWorkspaceParametersMapper, QuotaUpdateParameters as QuotaUpdateParametersMapper, ComputeResource as ComputeResourceMapper, ClusterUpdateParameters as ClusterUpdateParametersMapper, - PrivateEndpointConnection as PrivateEndpointConnectionMapper, - WorkspaceConnectionPropertiesV2BasicResource as WorkspaceConnectionPropertiesV2BasicResourceMapper, - OutboundRuleBasicResource as OutboundRuleBasicResourceMapper, - ManagedNetworkProvisionOptions as ManagedNetworkProvisionOptionsMapper, CodeContainer as CodeContainerMapper, CodeVersion as CodeVersionMapper, PendingUploadRequestDto as PendingUploadRequestDtoMapper, @@ -57,7 +50,15 @@ import { ServerlessEndpoint as ServerlessEndpointMapper, PartialRegistryPartialTrackedResource as PartialRegistryPartialTrackedResourceMapper, Registry as RegistryMapper, -} from "../models/mappers"; + Workspace as WorkspaceMapper, + WorkspaceUpdateParameters as WorkspaceUpdateParametersMapper, + DiagnoseWorkspaceParameters as DiagnoseWorkspaceParametersMapper, + PrivateEndpointConnection as PrivateEndpointConnectionMapper, + WorkspaceConnectionPropertiesV2BasicResource as WorkspaceConnectionPropertiesV2BasicResourceMapper, + WorkspaceConnectionUpdateParameter as WorkspaceConnectionUpdateParameterMapper, + OutboundRuleBasicResource as OutboundRuleBasicResourceMapper, + ManagedNetworkProvisionOptions as ManagedNetworkProvisionOptionsMapper, +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", @@ -86,7 +87,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2024-04-01", + defaultValue: "2024-10-01", isConstant: true, serializedName: "api-version", type: { @@ -109,14 +110,13 @@ export const subscriptionId: OperationURLParameter = { }, }; -export const resourceGroupName: OperationURLParameter = { - parameterPath: "resourceGroupName", +export const location: OperationURLParameter = { + parameterPath: "location", mapper: { constraints: { - MaxLength: 90, - MinLength: 1, + Pattern: new RegExp("^[-\\w\\._]+$"), }, - serializedName: "resourceGroupName", + serializedName: "location", required: true, type: { name: "String", @@ -124,18 +124,16 @@ export const resourceGroupName: OperationURLParameter = { }, }; -export const workspaceName: OperationURLParameter = { - parameterPath: "workspaceName", +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$"), - }, - serializedName: "workspaceName", + serializedName: "nextLink", required: true, type: { name: "String", }, }, + skipEncoding: true, }; export const contentType: OperationParameter = { @@ -152,71 +150,48 @@ export const contentType: OperationParameter = { export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: WorkspaceMapper, + mapper: QuotaUpdateParametersMapper, }; -export const forceToPurge: OperationQueryParameter = { - parameterPath: ["options", "forceToPurge"], +export const resourceGroupName: OperationURLParameter = { + parameterPath: "resourceGroupName", mapper: { - defaultValue: false, - serializedName: "forceToPurge", - type: { - name: "Boolean", + constraints: { + MaxLength: 90, + MinLength: 1, }, - }, -}; - -export const parameters1: OperationParameter = { - parameterPath: "parameters", - mapper: WorkspaceUpdateParametersMapper, -}; - -export const skip: OperationQueryParameter = { - parameterPath: ["options", "skip"], - mapper: { - serializedName: "$skip", + serializedName: "resourceGroupName", + required: true, type: { name: "String", }, }, }; -export const parameters2: OperationParameter = { - parameterPath: ["options", "parameters"], - mapper: DiagnoseWorkspaceParametersMapper, -}; - -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", +export const workspaceName: OperationURLParameter = { + parameterPath: "workspaceName", mapper: { - serializedName: "nextLink", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$"), + }, + serializedName: "workspaceName", required: true, type: { name: "String", }, }, - skipEncoding: true, }; -export const location: OperationURLParameter = { - parameterPath: "location", +export const skip: OperationQueryParameter = { + parameterPath: ["options", "skip"], mapper: { - constraints: { - Pattern: new RegExp("^[-\\w\\._]+$"), - }, - serializedName: "location", - required: true, + serializedName: "$skip", type: { name: "String", }, }, }; -export const parameters3: OperationParameter = { - parameterPath: "parameters", - mapper: QuotaUpdateParametersMapper, -}; - export const computeName: OperationURLParameter = { parameterPath: "computeName", mapper: { @@ -228,12 +203,12 @@ export const computeName: OperationURLParameter = { }, }; -export const parameters4: OperationParameter = { +export const parameters1: OperationParameter = { parameterPath: "parameters", mapper: ComputeResourceMapper, }; -export const parameters5: OperationParameter = { +export const parameters2: OperationParameter = { parameterPath: "parameters", mapper: ClusterUpdateParametersMapper, }; @@ -249,85 +224,6 @@ export const underlyingResourceAction: OperationQueryParameter = { }, }; -export const privateEndpointConnectionName: OperationURLParameter = { - parameterPath: "privateEndpointConnectionName", - mapper: { - serializedName: "privateEndpointConnectionName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const properties: OperationParameter = { - parameterPath: "properties", - mapper: PrivateEndpointConnectionMapper, -}; - -export const parameters6: OperationParameter = { - parameterPath: "parameters", - mapper: WorkspaceConnectionPropertiesV2BasicResourceMapper, -}; - -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: { - name: "String", - }, - }, -}; - -export const target: OperationQueryParameter = { - parameterPath: ["options", "target"], - mapper: { - serializedName: "target", - type: { - name: "String", - }, - }, -}; - -export const category: OperationQueryParameter = { - parameterPath: ["options", "category"], - mapper: { - serializedName: "category", - type: { - name: "String", - }, - }, -}; - -export const ruleName: OperationURLParameter = { - parameterPath: "ruleName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$"), - }, - serializedName: "ruleName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const body: OperationParameter = { - parameterPath: "body", - mapper: OutboundRuleBasicResourceMapper, -}; - -export const body1: OperationParameter = { - parameterPath: ["options", "body"], - mapper: ManagedNetworkProvisionOptionsMapper, -}; - export const registryName: OperationURLParameter = { parameterPath: "registryName", mapper: { @@ -356,7 +252,7 @@ export const codeName: OperationURLParameter = { }, }; -export const body2: OperationParameter = { +export const body: OperationParameter = { parameterPath: "body", mapper: CodeContainerMapper, }; @@ -392,12 +288,12 @@ export const version: OperationURLParameter = { }, }; -export const body3: OperationParameter = { +export const body1: OperationParameter = { parameterPath: "body", mapper: CodeVersionMapper, }; -export const body4: OperationParameter = { +export const body2: OperationParameter = { parameterPath: "body", mapper: PendingUploadRequestDtoMapper, }; @@ -416,12 +312,12 @@ export const componentName: OperationURLParameter = { }, }; -export const body5: OperationParameter = { +export const body3: OperationParameter = { parameterPath: "body", mapper: ComponentContainerMapper, }; -export const body6: OperationParameter = { +export const body4: OperationParameter = { parameterPath: "body", mapper: ComponentVersionMapper, }; @@ -447,7 +343,7 @@ export const name: OperationURLParameter = { }, }; -export const body7: OperationParameter = { +export const body5: OperationParameter = { parameterPath: "body", mapper: DataContainerMapper, }; @@ -476,12 +372,12 @@ export const tags: OperationQueryParameter = { }, }; -export const body8: OperationParameter = { +export const body6: OperationParameter = { parameterPath: "body", mapper: DataVersionBaseMapper, }; -export const body9: OperationParameter = { +export const body7: OperationParameter = { parameterPath: "body", mapper: GetBlobReferenceSASRequestDtoMapper, }; @@ -500,12 +396,12 @@ export const environmentName: OperationURLParameter = { }, }; -export const body10: OperationParameter = { +export const body8: OperationParameter = { parameterPath: "body", mapper: EnvironmentContainerMapper, }; -export const body11: OperationParameter = { +export const body9: OperationParameter = { parameterPath: "body", mapper: EnvironmentVersionMapper, }; @@ -524,7 +420,7 @@ export const modelName: OperationURLParameter = { }, }; -export const body12: OperationParameter = { +export const body10: OperationParameter = { parameterPath: "body", mapper: ModelContainerMapper, }; @@ -559,7 +455,7 @@ export const tags1: OperationQueryParameter = { }, }; -export const properties1: OperationQueryParameter = { +export const properties: OperationQueryParameter = { parameterPath: ["options", "properties"], mapper: { serializedName: "properties", @@ -569,7 +465,7 @@ export const properties1: OperationQueryParameter = { }, }; -export const body13: OperationParameter = { +export const body11: OperationParameter = { parameterPath: "body", mapper: ModelVersionMapper, }; @@ -595,7 +491,7 @@ export const endpointName: OperationURLParameter = { }, }; -export const body14: OperationParameter = { +export const body12: OperationParameter = { parameterPath: "body", mapper: PartialMinimalTrackedResourceWithIdentityMapper, }; @@ -614,7 +510,7 @@ export const endpointName1: OperationURLParameter = { }, }; -export const body15: OperationParameter = { +export const body13: OperationParameter = { parameterPath: "body", mapper: BatchEndpointMapper, }; @@ -630,7 +526,7 @@ export const deploymentName: OperationURLParameter = { }, }; -export const body16: OperationParameter = { +export const body14: OperationParameter = { parameterPath: "body", mapper: PartialBatchDeploymentPartialMinimalTrackedResourceWithPropertiesMapper, @@ -650,7 +546,7 @@ export const deploymentName1: OperationURLParameter = { }, }; -export const body17: OperationParameter = { +export const body15: OperationParameter = { parameterPath: "body", mapper: BatchDeploymentMapper, }; @@ -675,7 +571,7 @@ export const hashVersion: OperationQueryParameter = { }, }; -export const body18: OperationParameter = { +export const body16: OperationParameter = { parameterPath: "body", mapper: DestinationAssetMapper, }; @@ -748,7 +644,7 @@ export const orderByAsc: OperationQueryParameter = { }, }; -export const body19: OperationParameter = { +export const body17: OperationParameter = { parameterPath: "body", mapper: DatastoreMapper, }; @@ -795,7 +691,7 @@ export const createdBy: OperationQueryParameter = { }, }; -export const body20: OperationParameter = { +export const body18: OperationParameter = { parameterPath: "body", mapper: FeaturesetContainerMapper, }; @@ -880,22 +776,22 @@ export const stage: OperationQueryParameter = { }, }; -export const body21: OperationParameter = { +export const body19: OperationParameter = { parameterPath: "body", mapper: FeaturesetVersionMapper, }; -export const body22: OperationParameter = { +export const body20: OperationParameter = { parameterPath: "body", mapper: FeaturesetVersionBackfillRequestMapper, }; -export const body23: OperationParameter = { +export const body21: OperationParameter = { parameterPath: "body", mapper: FeaturestoreEntityContainerMapper, }; -export const body24: OperationParameter = { +export const body22: OperationParameter = { parameterPath: "body", mapper: FeaturestoreEntityVersionMapper, }; @@ -931,7 +827,7 @@ export const id: OperationURLParameter = { }, }; -export const body25: OperationParameter = { +export const body23: OperationParameter = { parameterPath: "body", mapper: JobBaseMapper, }; @@ -950,7 +846,7 @@ export const id1: OperationURLParameter = { }, }; -export const body26: OperationParameter = { +export const body24: OperationParameter = { parameterPath: "body", mapper: MarketplaceSubscriptionMapper, }; @@ -995,27 +891,27 @@ export const orderBy2: OperationQueryParameter = { }, }; -export const body27: OperationParameter = { +export const body25: OperationParameter = { parameterPath: "body", mapper: OnlineEndpointMapper, }; -export const body28: OperationParameter = { +export const body26: OperationParameter = { parameterPath: "body", mapper: RegenerateEndpointKeysRequestMapper, }; -export const body29: OperationParameter = { +export const body27: OperationParameter = { parameterPath: "body", mapper: PartialMinimalTrackedResourceWithSkuMapper, }; -export const body30: OperationParameter = { +export const body28: OperationParameter = { parameterPath: "body", mapper: OnlineDeploymentMapper, }; -export const body31: OperationParameter = { +export const body29: OperationParameter = { parameterPath: "body", mapper: DeploymentLogsRequestMapper, }; @@ -1030,17 +926,17 @@ export const listViewType1: OperationQueryParameter = { }, }; -export const body32: OperationParameter = { +export const body30: OperationParameter = { parameterPath: "body", mapper: ScheduleMapper, }; -export const body33: OperationParameter = { +export const body31: OperationParameter = { parameterPath: "body", mapper: PartialMinimalTrackedResourceWithSkuAndIdentityMapper, }; -export const body34: OperationParameter = { +export const body32: OperationParameter = { parameterPath: "body", mapper: ServerlessEndpointMapper, }; @@ -1059,12 +955,133 @@ export const name3: OperationURLParameter = { }, }; -export const body35: OperationParameter = { +export const body33: OperationParameter = { parameterPath: "body", mapper: PartialRegistryPartialTrackedResourceMapper, }; -export const body36: OperationParameter = { +export const body34: OperationParameter = { parameterPath: "body", mapper: RegistryMapper, }; + +export const parameters3: OperationParameter = { + parameterPath: "parameters", + mapper: WorkspaceMapper, +}; + +export const forceToPurge: OperationQueryParameter = { + parameterPath: ["options", "forceToPurge"], + mapper: { + defaultValue: false, + serializedName: "forceToPurge", + type: { + name: "Boolean", + }, + }, +}; + +export const parameters4: OperationParameter = { + parameterPath: "parameters", + mapper: WorkspaceUpdateParametersMapper, +}; + +export const parameters5: OperationParameter = { + parameterPath: ["options", "parameters"], + mapper: DiagnoseWorkspaceParametersMapper, +}; + +export const privateEndpointConnectionName: OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", + mapper: { + serializedName: "privateEndpointConnectionName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const properties1: OperationParameter = { + parameterPath: "properties", + mapper: PrivateEndpointConnectionMapper, +}; + +export const parameters6: OperationParameter = { + parameterPath: "parameters", + mapper: WorkspaceConnectionPropertiesV2BasicResourceMapper, +}; + +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: { + name: "String", + }, + }, +}; + +export const body35: OperationParameter = { + parameterPath: ["options", "body"], + mapper: WorkspaceConnectionUpdateParameterMapper, +}; + +export const target: OperationQueryParameter = { + parameterPath: ["options", "target"], + mapper: { + serializedName: "target", + type: { + name: "String", + }, + }, +}; + +export const category: OperationQueryParameter = { + parameterPath: ["options", "category"], + mapper: { + serializedName: "category", + type: { + name: "String", + }, + }, +}; + +export const includeAll: OperationQueryParameter = { + parameterPath: ["options", "includeAll"], + mapper: { + defaultValue: false, + serializedName: "includeAll", + type: { + name: "Boolean", + }, + }, +}; + +export const ruleName: OperationURLParameter = { + parameterPath: "ruleName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$"), + }, + serializedName: "ruleName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const body36: OperationParameter = { + parameterPath: "body", + mapper: OutboundRuleBasicResourceMapper, +}; + +export const body37: OperationParameter = { + parameterPath: ["options", "body"], + mapper: ManagedNetworkProvisionOptionsMapper, +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/batchDeployments.ts b/sdk/machinelearning/arm-machinelearning/src/operations/batchDeployments.ts index b354b122c60a..981469847e86 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/batchDeployments.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/batchDeployments.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { BatchDeployments } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { BatchDeployments } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { BatchDeployment, BatchDeploymentsListNextOptionalParams, @@ -33,7 +33,7 @@ import { BatchDeploymentsCreateOrUpdateOptionalParams, BatchDeploymentsCreateOrUpdateResponse, BatchDeploymentsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing BatchDeployments operations. */ @@ -626,7 +626,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body16, + requestBody: Parameters.body14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -660,7 +660,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body17, + requestBody: Parameters.body15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -688,9 +688,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.endpointName, ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/batchEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operations/batchEndpoints.ts index 60ad4eea5bf7..49dc66d67589 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/batchEndpoints.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/batchEndpoints.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { BatchEndpoints } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { BatchEndpoints } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { BatchEndpoint, BatchEndpointsListNextOptionalParams, @@ -35,7 +35,7 @@ import { BatchEndpointsListKeysOptionalParams, BatchEndpointsListKeysResponse, BatchEndpointsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing BatchEndpoints operations. */ @@ -575,7 +575,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body14, + requestBody: Parameters.body12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -608,7 +608,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body15, + requestBody: Parameters.body13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -657,9 +657,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/codeContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/codeContainers.ts index 1d5cdc1ffa83..455c5b90200a 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/codeContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/codeContainers.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { CodeContainers } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { CodeContainers } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { CodeContainer, CodeContainersListNextOptionalParams, @@ -24,7 +24,7 @@ import { CodeContainersCreateOrUpdateOptionalParams, CodeContainersCreateOrUpdateResponse, CodeContainersListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing CodeContainers operations. */ @@ -291,7 +291,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body2, + requestBody: Parameters.body, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -318,9 +318,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/codeVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/codeVersions.ts index b96b27c7c808..08158d8b9c7b 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/codeVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/codeVersions.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { CodeVersions } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { CodeVersions } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { CodeVersion, CodeVersionsListNextOptionalParams, @@ -35,7 +35,7 @@ import { CodeVersionsCreateOrGetStartPendingUploadOptionalParams, CodeVersionsCreateOrGetStartPendingUploadResponse, CodeVersionsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing CodeVersions operations. */ @@ -459,7 +459,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body3, + requestBody: Parameters.body1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -485,7 +485,7 @@ const publishOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body18, + requestBody: Parameters.body16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -510,7 +510,7 @@ const createOrGetStartPendingUploadOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body4, + requestBody: Parameters.body2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -538,9 +538,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.name, ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/componentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/componentContainers.ts index e051f226dc63..79bf6d117f61 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/componentContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/componentContainers.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ComponentContainers } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ComponentContainers } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { ComponentContainer, ComponentContainersListNextOptionalParams, @@ -24,7 +24,7 @@ import { ComponentContainersCreateOrUpdateOptionalParams, ComponentContainersCreateOrUpdateResponse, ComponentContainersListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing ComponentContainers operations. */ @@ -295,7 +295,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body5, + requestBody: Parameters.body3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -322,9 +322,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/componentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/componentVersions.ts index bf90b229bb54..ad9ba1e250d9 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/componentVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/componentVersions.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ComponentVersions } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ComponentVersions } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { ComponentVersion, ComponentVersionsListNextOptionalParams, @@ -32,7 +32,7 @@ import { DestinationAsset, ComponentVersionsPublishOptionalParams, ComponentVersionsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing ComponentVersions operations. */ @@ -432,7 +432,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body6, + requestBody: Parameters.body4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -458,7 +458,7 @@ const publishOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body18, + requestBody: Parameters.body16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -486,9 +486,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.name, ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts b/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts index 7e9f18b29963..d3cd324c3c1c 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ComputeOperations } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ComputeOperations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { ComputeResource, ComputeListNextOptionalParams, @@ -44,7 +44,7 @@ import { ComputeRestartOptionalParams, ComputeListNextResponse, ComputeListNodesNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing ComputeOperations operations. */ @@ -982,7 +982,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters4, + requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1015,7 +1015,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1178,9 +1178,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, @@ -1199,9 +1199,9 @@ const listNodesNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.computeName, ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/dataContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/dataContainers.ts index 37f06f8f83fa..cc53f7deb3aa 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/dataContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/dataContainers.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DataContainers } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { DataContainers } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { DataContainer, DataContainersListNextOptionalParams, @@ -24,7 +24,7 @@ import { DataContainersCreateOrUpdateOptionalParams, DataContainersCreateOrUpdateResponse, DataContainersListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing DataContainers operations. */ @@ -295,7 +295,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body7, + requestBody: Parameters.body5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -322,9 +322,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/dataVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/dataVersions.ts index 945091990901..6c1a1698505a 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/dataVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/dataVersions.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DataVersions } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { DataVersions } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { DataVersionBase, DataVersionsListNextOptionalParams, @@ -32,7 +32,7 @@ import { DestinationAsset, DataVersionsPublishOptionalParams, DataVersionsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing DataVersions operations. */ @@ -433,7 +433,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body8, + requestBody: Parameters.body6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -459,7 +459,7 @@ const publishOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body18, + requestBody: Parameters.body16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -487,9 +487,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.name, ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/datastores.ts b/sdk/machinelearning/arm-machinelearning/src/operations/datastores.ts index ba30b92e5379..9de0413daa6a 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/datastores.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/datastores.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Datastores } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Datastores } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { Datastore, DatastoresListNextOptionalParams, @@ -26,7 +26,7 @@ import { DatastoresListSecretsOptionalParams, DatastoresListSecretsResponse, DatastoresListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Datastores operations. */ @@ -321,7 +321,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body19, + requestBody: Parameters.body17, queryParameters: [Parameters.apiVersion, Parameters.skipValidation], urlParameters: [ Parameters.$host, @@ -370,9 +370,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/environmentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/environmentContainers.ts index b2b05c13bcb2..8404a17cce8b 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/environmentContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/environmentContainers.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { EnvironmentContainers } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { EnvironmentContainers } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { EnvironmentContainer, EnvironmentContainersListNextOptionalParams, @@ -24,7 +24,7 @@ import { EnvironmentContainersCreateOrUpdateOptionalParams, EnvironmentContainersCreateOrUpdateResponse, EnvironmentContainersListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing EnvironmentContainers operations. */ @@ -295,7 +295,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body10, + requestBody: Parameters.body8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -322,9 +322,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/environmentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/environmentVersions.ts index ee50fa915db5..208406e48d63 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/environmentVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/environmentVersions.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { EnvironmentVersions } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { EnvironmentVersions } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { EnvironmentVersion, EnvironmentVersionsListNextOptionalParams, @@ -32,7 +32,7 @@ import { DestinationAsset, EnvironmentVersionsPublishOptionalParams, EnvironmentVersionsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing EnvironmentVersions operations. */ @@ -432,7 +432,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body11, + requestBody: Parameters.body9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -458,7 +458,7 @@ const publishOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body18, + requestBody: Parameters.body16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -486,9 +486,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.name, ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/features.ts b/sdk/machinelearning/arm-machinelearning/src/operations/features.ts index eb807e729516..05fe6f2dc4cf 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/features.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/features.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Features } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Features } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { Feature, FeaturesListNextOptionalParams, @@ -21,7 +21,7 @@ import { FeaturesGetOptionalParams, FeaturesGetResponse, FeaturesListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Features operations. */ @@ -297,9 +297,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.featuresetName, Parameters.featuresetVersion, ], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/featuresetContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/featuresetContainers.ts index c97498261409..01a8b53a9fc5 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/featuresetContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/featuresetContainers.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { FeaturesetContainers } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { FeaturesetContainers } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { FeaturesetContainer, FeaturesetContainersListNextOptionalParams, @@ -30,7 +30,7 @@ import { FeaturesetContainersCreateOrUpdateOptionalParams, FeaturesetContainersCreateOrUpdateResponse, FeaturesetContainersListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing FeaturesetContainers operations. */ @@ -461,7 +461,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body20, + requestBody: Parameters.body18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -488,9 +488,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/featuresetVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/featuresetVersions.ts index 34c136474846..7902ed255890 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/featuresetVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/featuresetVersions.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { FeaturesetVersions } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { FeaturesetVersions } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { FeaturesetVersion, FeaturesetVersionsListNextOptionalParams, @@ -33,7 +33,7 @@ import { FeaturesetVersionsBackfillOptionalParams, FeaturesetVersionsBackfillResponse, FeaturesetVersionsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing FeaturesetVersions operations. */ @@ -607,7 +607,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body21, + requestBody: Parameters.body19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -641,7 +641,7 @@ const backfillOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body22, + requestBody: Parameters.body20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -669,9 +669,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.name, ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityContainers.ts index ee8a24d5d47d..80107fe00dad 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityContainers.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { FeaturestoreEntityContainers } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { FeaturestoreEntityContainers } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { FeaturestoreEntityContainer, FeaturestoreEntityContainersListNextOptionalParams, @@ -30,7 +30,7 @@ import { FeaturestoreEntityContainersCreateOrUpdateOptionalParams, FeaturestoreEntityContainersCreateOrUpdateResponse, FeaturestoreEntityContainersListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing FeaturestoreEntityContainers operations. */ @@ -463,7 +463,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body23, + requestBody: Parameters.body21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -490,9 +490,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityVersions.ts index 1a0cdce0a1f0..7e0bb5342cfe 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityVersions.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { FeaturestoreEntityVersions } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { FeaturestoreEntityVersions } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { FeaturestoreEntityVersion, FeaturestoreEntityVersionsListNextOptionalParams, @@ -30,7 +30,7 @@ import { FeaturestoreEntityVersionsCreateOrUpdateOptionalParams, FeaturestoreEntityVersionsCreateOrUpdateResponse, FeaturestoreEntityVersionsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing FeaturestoreEntityVersions operations. */ @@ -501,7 +501,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body24, + requestBody: Parameters.body22, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -529,9 +529,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.name, ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/index.ts b/sdk/machinelearning/arm-machinelearning/src/operations/index.ts index 1ab888709948..3367c68fb3a5 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/index.ts @@ -6,51 +6,51 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./operations"; -export * from "./workspaces"; -export * from "./usages"; -export * from "./virtualMachineSizes"; -export * from "./quotas"; -export * from "./computeOperations"; -export * from "./privateEndpointConnections"; -export * from "./privateLinkResources"; -export * from "./workspaceConnections"; -export * from "./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"; -export * from "./codeVersions"; -export * from "./componentContainers"; -export * from "./componentVersions"; -export * from "./dataContainers"; -export * from "./dataVersions"; -export * from "./datastores"; -export * from "./environmentContainers"; -export * from "./environmentVersions"; -export * from "./featuresetContainers"; -export * from "./features"; -export * from "./featuresetVersions"; -export * from "./featurestoreEntityContainers"; -export * from "./featurestoreEntityVersions"; -export * from "./jobs"; -export * from "./marketplaceSubscriptions"; -export * from "./modelContainers"; -export * from "./modelVersions"; -export * from "./onlineEndpoints"; -export * from "./onlineDeployments"; -export * from "./schedules"; -export * from "./serverlessEndpoints"; -export * from "./registries"; -export * from "./workspaceFeatures"; +export * from "./usages.js"; +export * from "./virtualMachineSizes.js"; +export * from "./quotas.js"; +export * from "./computeOperations.js"; +export * from "./registryCodeContainers.js"; +export * from "./registryCodeVersions.js"; +export * from "./registryComponentContainers.js"; +export * from "./registryComponentVersions.js"; +export * from "./registryDataContainers.js"; +export * from "./registryDataVersions.js"; +export * from "./registryDataReferences.js"; +export * from "./registryEnvironmentContainers.js"; +export * from "./registryEnvironmentVersions.js"; +export * from "./registryModelContainers.js"; +export * from "./registryModelVersions.js"; +export * from "./batchEndpoints.js"; +export * from "./batchDeployments.js"; +export * from "./codeContainers.js"; +export * from "./codeVersions.js"; +export * from "./componentContainers.js"; +export * from "./componentVersions.js"; +export * from "./dataContainers.js"; +export * from "./dataVersions.js"; +export * from "./datastores.js"; +export * from "./environmentContainers.js"; +export * from "./environmentVersions.js"; +export * from "./featuresetContainers.js"; +export * from "./features.js"; +export * from "./featuresetVersions.js"; +export * from "./featurestoreEntityContainers.js"; +export * from "./featurestoreEntityVersions.js"; +export * from "./jobs.js"; +export * from "./marketplaceSubscriptions.js"; +export * from "./modelContainers.js"; +export * from "./modelVersions.js"; +export * from "./onlineEndpoints.js"; +export * from "./onlineDeployments.js"; +export * from "./schedules.js"; +export * from "./serverlessEndpoints.js"; +export * from "./registries.js"; +export * from "./workspaceFeatures.js"; +export * from "./operations.js"; +export * from "./workspaces.js"; +export * from "./privateEndpointConnections.js"; +export * from "./privateLinkResources.js"; +export * from "./workspaceConnections.js"; +export * from "./managedNetworkSettingsRule.js"; +export * from "./managedNetworkProvisions.js"; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/jobs.ts b/sdk/machinelearning/arm-machinelearning/src/operations/jobs.ts index fa9150c51ea1..b07eaaa6316d 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/jobs.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/jobs.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Jobs } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Jobs } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { JobBase, JobsListNextOptionalParams, @@ -31,7 +31,7 @@ import { JobsCreateOrUpdateResponse, JobsCancelOptionalParams, JobsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Jobs operations. */ @@ -391,7 +391,7 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.apiVersion, Parameters.skip, Parameters.listViewType, - Parameters.properties1, + Parameters.properties, Parameters.jobType, Parameters.tag, ], @@ -463,7 +463,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body25, + requestBody: Parameters.body23, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -513,9 +513,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkProvisions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkProvisions.ts index 4f310ee8c1aa..f9f521da5fac 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkProvisions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkProvisions.ts @@ -6,21 +6,21 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { ManagedNetworkProvisions } from "../operationsInterfaces"; +import { ManagedNetworkProvisions } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams, ManagedNetworkProvisionsProvisionManagedNetworkResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing ManagedNetworkProvisions operations. */ export class ManagedNetworkProvisionsImpl implements ManagedNetworkProvisions { @@ -147,7 +147,7 @@ const provisionManagedNetworkOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body1, + requestBody: Parameters.body37, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkSettingsRule.ts b/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkSettingsRule.ts index 217e8d5b55dd..1bfe994adbd5 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkSettingsRule.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkSettingsRule.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ManagedNetworkSettingsRule } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ManagedNetworkSettingsRule } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { OutboundRuleBasicResource, ManagedNetworkSettingsRuleListNextOptionalParams, @@ -30,7 +30,7 @@ import { ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams, ManagedNetworkSettingsRuleCreateOrUpdateResponse, ManagedNetworkSettingsRuleListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing ManagedNetworkSettingsRule operations. */ @@ -455,7 +455,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body, + requestBody: Parameters.body36, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -482,9 +482,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/marketplaceSubscriptions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/marketplaceSubscriptions.ts index 0b3ac054253d..a68a3a543f9f 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/marketplaceSubscriptions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/marketplaceSubscriptions.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { MarketplaceSubscriptions } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { MarketplaceSubscriptions } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { MarketplaceSubscription, MarketplaceSubscriptionsListNextOptionalParams, @@ -31,7 +31,7 @@ import { MarketplaceSubscriptionsCreateOrUpdateOptionalParams, MarketplaceSubscriptionsCreateOrUpdateResponse, MarketplaceSubscriptionsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing MarketplaceSubscriptions operations. */ @@ -469,7 +469,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body26, + requestBody: Parameters.body24, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -496,9 +496,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, 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 1b62e6f931ab..f028e84f3f5a 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/modelContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/modelContainers.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ModelContainers } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ModelContainers } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { ModelContainer, ModelContainersListNextOptionalParams, @@ -24,7 +24,7 @@ import { ModelContainersCreateOrUpdateOptionalParams, ModelContainersCreateOrUpdateResponse, ModelContainersListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing ModelContainers operations. */ @@ -296,7 +296,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body12, + requestBody: Parameters.body10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -323,9 +323,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/modelVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/modelVersions.ts index b95fa0d83639..a3bef69ee59c 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/modelVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/modelVersions.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ModelVersions } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ModelVersions } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { ModelVersion, ModelVersionsListNextOptionalParams, @@ -32,7 +32,7 @@ import { DestinationAsset, ModelVersionsPublishOptionalParams, ModelVersionsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing ModelVersions operations. */ @@ -365,7 +365,7 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.version1, Parameters.description, Parameters.tags1, - Parameters.properties1, + Parameters.properties, Parameters.offset, Parameters.feed, ], @@ -438,7 +438,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body13, + requestBody: Parameters.body11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -464,7 +464,7 @@ const publishOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body18, + requestBody: Parameters.body16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -492,9 +492,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.name, ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/onlineDeployments.ts b/sdk/machinelearning/arm-machinelearning/src/operations/onlineDeployments.ts index 517b12f76610..2d257f270384 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/onlineDeployments.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/onlineDeployments.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { OnlineDeployments } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { OnlineDeployments } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { OnlineDeployment, OnlineDeploymentsListNextOptionalParams, @@ -41,7 +41,7 @@ import { OnlineDeploymentsGetLogsResponse, OnlineDeploymentsListNextResponse, OnlineDeploymentsListSkusNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing OnlineDeployments operations. */ @@ -823,7 +823,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body29, + requestBody: Parameters.body27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -857,7 +857,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body30, + requestBody: Parameters.body28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -882,7 +882,7 @@ const getLogsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body31, + requestBody: Parameters.body29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -933,9 +933,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.endpointName, ], headerParameters: [Parameters.accept], @@ -955,9 +955,9 @@ const listSkusNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.endpointName, Parameters.deploymentName, ], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/onlineEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operations/onlineEndpoints.ts index faf9528d5ec9..671105b78c1c 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/onlineEndpoints.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/onlineEndpoints.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { OnlineEndpoints } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { OnlineEndpoints } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { OnlineEndpoint, OnlineEndpointsListNextOptionalParams, @@ -39,7 +39,7 @@ import { OnlineEndpointsGetTokenOptionalParams, OnlineEndpointsGetTokenResponse, OnlineEndpointsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing OnlineEndpoints operations. */ @@ -619,7 +619,7 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.apiVersion, Parameters.skip, Parameters.tags1, - Parameters.properties1, + Parameters.properties, Parameters.count, Parameters.name2, Parameters.computeType, @@ -699,7 +699,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body14, + requestBody: Parameters.body12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -732,7 +732,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body27, + requestBody: Parameters.body25, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -779,7 +779,7 @@ const regenerateKeysOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body28, + requestBody: Parameters.body26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -828,9 +828,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/operations.ts b/sdk/machinelearning/arm-machinelearning/src/operations/operations.ts index 6770e1c739a8..10b0c92234c2 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/operations.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/operations.ts @@ -7,16 +7,16 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { Operations } from "../operationsInterfaces"; +import { Operations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { Operation, OperationsListOptionalParams, OperationsListResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Operations operations. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/privateEndpointConnections.ts b/sdk/machinelearning/arm-machinelearning/src/operations/privateEndpointConnections.ts index eae9b01889d7..10e809b01359 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/privateEndpointConnections.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/privateEndpointConnections.ts @@ -7,11 +7,11 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { PrivateEndpointConnections } from "../operationsInterfaces"; +import { PrivateEndpointConnections } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { PrivateEndpointConnection, PrivateEndpointConnectionsListOptionalParams, @@ -21,7 +21,7 @@ import { PrivateEndpointConnectionsCreateOrUpdateOptionalParams, PrivateEndpointConnectionsCreateOrUpdateResponse, PrivateEndpointConnectionsDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Class containing PrivateEndpointConnections operations. */ @@ -248,7 +248,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.properties, + requestBody: Parameters.properties1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/privateLinkResources.ts b/sdk/machinelearning/arm-machinelearning/src/operations/privateLinkResources.ts index ee340e387393..7f480cc85883 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/privateLinkResources.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/privateLinkResources.ts @@ -6,15 +6,15 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PrivateLinkResources } from "../operationsInterfaces"; +import { PrivateLinkResources } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { PrivateLinkResourcesListOptionalParams, PrivateLinkResourcesListResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing PrivateLinkResources operations. */ export class PrivateLinkResourcesImpl implements PrivateLinkResources { diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/quotas.ts b/sdk/machinelearning/arm-machinelearning/src/operations/quotas.ts index 3817e12372b9..3229f15e1b73 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/quotas.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/quotas.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Quotas } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Quotas } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { ResourceQuota, QuotasListNextOptionalParams, @@ -22,7 +22,7 @@ import { QuotasUpdateOptionalParams, QuotasUpdateResponse, QuotasListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Quotas operations. */ @@ -158,7 +158,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters3, + requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -203,8 +203,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink, Parameters.location, + Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registries.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registries.ts index 5ca82fb9f095..774155414e78 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/registries.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registries.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Registries } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Registries } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { Registry, RegistriesListBySubscriptionNextOptionalParams, @@ -39,7 +39,7 @@ import { RegistriesRemoveRegionsResponse, RegistriesListBySubscriptionNextResponse, RegistriesListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Registries operations. */ @@ -631,7 +631,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body35, + requestBody: Parameters.body33, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -663,7 +663,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body36, + requestBody: Parameters.body34, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -695,7 +695,7 @@ const removeRegionsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body36, + requestBody: Parameters.body34, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -740,8 +740,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.nextLink, + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryCodeContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryCodeContainers.ts index 88006db3971c..238db3142617 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/registryCodeContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryCodeContainers.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { RegistryCodeContainers } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { RegistryCodeContainers } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { CodeContainer, RegistryCodeContainersListNextOptionalParams, @@ -30,7 +30,7 @@ import { RegistryCodeContainersCreateOrUpdateOptionalParams, RegistryCodeContainersCreateOrUpdateResponse, RegistryCodeContainersListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing RegistryCodeContainers operations. */ @@ -452,7 +452,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body2, + requestBody: Parameters.body, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -479,8 +479,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.registryName, ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryCodeVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryCodeVersions.ts index a2f5469d6eb3..aa7b7d7ba8ef 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/registryCodeVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryCodeVersions.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { RegistryCodeVersions } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { RegistryCodeVersions } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { CodeVersion, RegistryCodeVersionsListNextOptionalParams, @@ -33,7 +33,7 @@ import { RegistryCodeVersionsCreateOrGetStartPendingUploadOptionalParams, RegistryCodeVersionsCreateOrGetStartPendingUploadResponse, RegistryCodeVersionsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing RegistryCodeVersions operations. */ @@ -526,7 +526,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body3, + requestBody: Parameters.body1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -551,7 +551,7 @@ const createOrGetStartPendingUploadOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body4, + requestBody: Parameters.body2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -579,8 +579,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.registryName, Parameters.codeName, ], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryComponentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryComponentContainers.ts index 14c3eae5d7eb..11d25f1c617b 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/registryComponentContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryComponentContainers.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { RegistryComponentContainers } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { RegistryComponentContainers } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { ComponentContainer, RegistryComponentContainersListNextOptionalParams, @@ -30,7 +30,7 @@ import { RegistryComponentContainersCreateOrUpdateOptionalParams, RegistryComponentContainersCreateOrUpdateResponse, RegistryComponentContainersListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing RegistryComponentContainers operations. */ @@ -454,7 +454,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body5, + requestBody: Parameters.body3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -481,8 +481,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.registryName, ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryComponentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryComponentVersions.ts index 164c583c6200..3450c2bb5cdf 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/registryComponentVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryComponentVersions.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { RegistryComponentVersions } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { RegistryComponentVersions } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { ComponentVersion, RegistryComponentVersionsListNextOptionalParams, @@ -30,7 +30,7 @@ import { RegistryComponentVersionsCreateOrUpdateOptionalParams, RegistryComponentVersionsCreateOrUpdateResponse, RegistryComponentVersionsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing RegistryComponentVersions operations. */ @@ -508,7 +508,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body6, + requestBody: Parameters.body4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -536,8 +536,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.registryName, Parameters.componentName, ], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryDataContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryDataContainers.ts index 1d31306aefe4..210005fef913 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/registryDataContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryDataContainers.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { RegistryDataContainers } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { RegistryDataContainers } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { DataContainer, RegistryDataContainersListNextOptionalParams, @@ -30,7 +30,7 @@ import { RegistryDataContainersCreateOrUpdateOptionalParams, RegistryDataContainersCreateOrUpdateResponse, RegistryDataContainersListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing RegistryDataContainers operations. */ @@ -456,7 +456,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body7, + requestBody: Parameters.body5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -483,8 +483,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.registryName, ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryDataReferences.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryDataReferences.ts index 8e801a03b2da..8da4ec77697c 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/registryDataReferences.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryDataReferences.ts @@ -6,16 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { RegistryDataReferences } from "../operationsInterfaces"; +import { RegistryDataReferences } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { GetBlobReferenceSASRequestDto, RegistryDataReferencesGetBlobReferenceSASOptionalParams, RegistryDataReferencesGetBlobReferenceSASResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing RegistryDataReferences operations. */ export class RegistryDataReferencesImpl implements RegistryDataReferences { @@ -66,7 +66,7 @@ const getBlobReferenceSASOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body9, + requestBody: Parameters.body7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryDataVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryDataVersions.ts index c376ffeb3f60..24e91eb7fd52 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/registryDataVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryDataVersions.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { RegistryDataVersions } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { RegistryDataVersions } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { DataVersionBase, RegistryDataVersionsListNextOptionalParams, @@ -33,7 +33,7 @@ import { RegistryDataVersionsCreateOrGetStartPendingUploadOptionalParams, RegistryDataVersionsCreateOrGetStartPendingUploadResponse, RegistryDataVersionsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing RegistryDataVersions operations. */ @@ -516,7 +516,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body8, + requestBody: Parameters.body6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -541,7 +541,7 @@ const createOrGetStartPendingUploadOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body4, + requestBody: Parameters.body2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -569,8 +569,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.registryName, Parameters.name, ], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentContainers.ts index 8fd75f579068..07f309a29685 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentContainers.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { RegistryEnvironmentContainers } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { RegistryEnvironmentContainers } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { EnvironmentContainer, RegistryEnvironmentContainersListNextOptionalParams, @@ -30,7 +30,7 @@ import { RegistryEnvironmentContainersCreateOrUpdateOptionalParams, RegistryEnvironmentContainersCreateOrUpdateResponse, RegistryEnvironmentContainersListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing RegistryEnvironmentContainers operations. */ @@ -458,7 +458,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body10, + requestBody: Parameters.body8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -485,8 +485,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.registryName, ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentVersions.ts index ccac2d11593b..8e289b9b5e62 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentVersions.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { RegistryEnvironmentVersions } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { RegistryEnvironmentVersions } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { EnvironmentVersion, RegistryEnvironmentVersionsListNextOptionalParams, @@ -30,7 +30,7 @@ import { RegistryEnvironmentVersionsCreateOrUpdateOptionalParams, RegistryEnvironmentVersionsCreateOrUpdateResponse, RegistryEnvironmentVersionsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing RegistryEnvironmentVersions operations. */ @@ -509,7 +509,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body11, + requestBody: Parameters.body9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -537,8 +537,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.registryName, Parameters.environmentName, ], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryModelContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryModelContainers.ts index 289cb024f2eb..5e140025e350 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/registryModelContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryModelContainers.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { RegistryModelContainers } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { RegistryModelContainers } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { ModelContainer, RegistryModelContainersListNextOptionalParams, @@ -30,7 +30,7 @@ import { RegistryModelContainersCreateOrUpdateOptionalParams, RegistryModelContainersCreateOrUpdateResponse, RegistryModelContainersListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing RegistryModelContainers operations. */ @@ -456,7 +456,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body12, + requestBody: Parameters.body10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -483,8 +483,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.registryName, ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryModelVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryModelVersions.ts index 056c4d67d973..50c038baec60 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/registryModelVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryModelVersions.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { RegistryModelVersions } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { RegistryModelVersions } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { ModelVersion, RegistryModelVersionsListNextOptionalParams, @@ -33,7 +33,7 @@ import { RegistryModelVersionsCreateOrGetStartPendingUploadOptionalParams, RegistryModelVersionsCreateOrGetStartPendingUploadResponse, RegistryModelVersionsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing RegistryModelVersions operations. */ @@ -452,7 +452,7 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.version1, Parameters.description, Parameters.tags1, - Parameters.properties1, + Parameters.properties, ], urlParameters: [ Parameters.$host, @@ -531,7 +531,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body13, + requestBody: Parameters.body11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -556,7 +556,7 @@ const createOrGetStartPendingUploadOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body4, + requestBody: Parameters.body2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -584,8 +584,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.registryName, Parameters.modelName, ], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/schedules.ts b/sdk/machinelearning/arm-machinelearning/src/operations/schedules.ts index 7881737890c3..c7e6e3f2f792 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/schedules.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/schedules.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Schedules } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Schedules } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { Schedule, SchedulesListNextOptionalParams, @@ -30,7 +30,7 @@ import { SchedulesCreateOrUpdateOptionalParams, SchedulesCreateOrUpdateResponse, SchedulesListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Schedules operations. */ @@ -456,7 +456,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body32, + requestBody: Parameters.body30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -483,9 +483,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/serverlessEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operations/serverlessEndpoints.ts index d49a37cb2c8c..814b3db4566a 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/serverlessEndpoints.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/serverlessEndpoints.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ServerlessEndpoints } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ServerlessEndpoints } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { ServerlessEndpoint, ServerlessEndpointsListNextOptionalParams, @@ -39,7 +39,7 @@ import { ServerlessEndpointsRegenerateKeysOptionalParams, ServerlessEndpointsRegenerateKeysResponse, ServerlessEndpointsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing ServerlessEndpoints operations. */ @@ -695,7 +695,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body33, + requestBody: Parameters.body31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -728,7 +728,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body34, + requestBody: Parameters.body32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -783,7 +783,7 @@ const regenerateKeysOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body28, + requestBody: Parameters.body26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -810,9 +810,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/usages.ts b/sdk/machinelearning/arm-machinelearning/src/operations/usages.ts index 88f89c303dbd..b280670f7311 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/usages.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/usages.ts @@ -7,19 +7,19 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Usages } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Usages } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { Usage, UsagesListNextOptionalParams, UsagesListOptionalParams, UsagesListResponse, UsagesListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Usages operations. */ @@ -163,8 +163,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink, Parameters.location, + Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/virtualMachineSizes.ts b/sdk/machinelearning/arm-machinelearning/src/operations/virtualMachineSizes.ts index a837b74743f4..4c82612e00db 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/virtualMachineSizes.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/virtualMachineSizes.ts @@ -6,15 +6,15 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { VirtualMachineSizes } from "../operationsInterfaces"; +import { VirtualMachineSizes } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { VirtualMachineSizesListOptionalParams, VirtualMachineSizesListResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing VirtualMachineSizes operations. */ export class VirtualMachineSizesImpl implements VirtualMachineSizes { diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts b/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts index 62fbf5ade938..206af7d5ff12 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { WorkspaceConnections } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { WorkspaceConnections } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { WorkspaceConnectionPropertiesV2BasicResource, WorkspaceConnectionsListNextOptionalParams, @@ -23,10 +23,12 @@ import { WorkspaceConnectionsGetOptionalParams, WorkspaceConnectionsGetResponse, WorkspaceConnectionsDeleteOptionalParams, + WorkspaceConnectionsUpdateOptionalParams, + WorkspaceConnectionsUpdateResponse, WorkspaceConnectionsListSecretsOptionalParams, WorkspaceConnectionsListSecretsResponse, WorkspaceConnectionsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing WorkspaceConnections operations. */ @@ -172,6 +174,25 @@ export class WorkspaceConnectionsImpl implements WorkspaceConnections { ); } + /** + * Update machine learning workspaces connections under the specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param options The options parameters. + */ + update( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, connectionName, options }, + updateOperationSpec, + ); + } + /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. @@ -296,6 +317,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceConnectionPropertiesV2BasicResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body35, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.connectionName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections", httpMethod: "GET", @@ -312,6 +357,7 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.apiVersion, Parameters.target, Parameters.category, + Parameters.includeAll, ], urlParameters: [ Parameters.$host, @@ -359,9 +405,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/workspaceFeatures.ts b/sdk/machinelearning/arm-machinelearning/src/operations/workspaceFeatures.ts index 0eed26da9c95..7397475035de 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/workspaceFeatures.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/workspaceFeatures.ts @@ -7,19 +7,19 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { WorkspaceFeatures } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { WorkspaceFeatures } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { AmlUserFeature, WorkspaceFeaturesListNextOptionalParams, WorkspaceFeaturesListOptionalParams, WorkspaceFeaturesListResponse, WorkspaceFeaturesListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing WorkspaceFeatures operations. */ @@ -184,9 +184,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/workspaces.ts b/sdk/machinelearning/arm-machinelearning/src/operations/workspaces.ts index d6a49f9eb2e3..24aa7b7e2dd3 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/workspaces.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/workspaces.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Workspaces } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Workspaces } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureMachineLearningServicesManagementClient } from "../azureMachineLearningServicesManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { Workspace, WorkspacesListByResourceGroupNextOptionalParams, @@ -52,7 +52,7 @@ import { WorkspacesListOutboundNetworkDependenciesEndpointsResponse, WorkspacesListByResourceGroupNextResponse, WorkspacesListBySubscriptionNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Workspaces operations. */ @@ -358,6 +358,7 @@ export class WorkspacesImpl implements Workspaces { const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -930,7 +931,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters, + requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -984,7 +985,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters1, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1036,7 +1037,7 @@ const diagnoseOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters2, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1236,8 +1237,8 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.nextLink, + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchDeployments.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchDeployments.ts index 4329f6d8f702..adb58a651a82 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchDeployments.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchDeployments.ts @@ -19,7 +19,7 @@ import { BatchDeploymentsUpdateResponse, BatchDeploymentsCreateOrUpdateOptionalParams, BatchDeploymentsCreateOrUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a BatchDeployments. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchEndpoints.ts index c96798eff039..2be055dc8a5d 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchEndpoints.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchEndpoints.ts @@ -21,7 +21,7 @@ import { BatchEndpointsCreateOrUpdateResponse, BatchEndpointsListKeysOptionalParams, BatchEndpointsListKeysResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a BatchEndpoints. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/codeContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/codeContainers.ts index 1cd600bb0537..ff3e56131b2f 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/codeContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/codeContainers.ts @@ -15,7 +15,7 @@ import { CodeContainersGetResponse, CodeContainersCreateOrUpdateOptionalParams, CodeContainersCreateOrUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a CodeContainers. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/codeVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/codeVersions.ts index c38e8bfde2db..1645642d7589 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/codeVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/codeVersions.ts @@ -21,7 +21,7 @@ import { PendingUploadRequestDto, CodeVersionsCreateOrGetStartPendingUploadOptionalParams, CodeVersionsCreateOrGetStartPendingUploadResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a CodeVersions. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/componentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/componentContainers.ts index 0f5bc6da22bd..6e5bf21fb0e2 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/componentContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/componentContainers.ts @@ -15,7 +15,7 @@ import { ComponentContainersGetResponse, ComponentContainersCreateOrUpdateOptionalParams, ComponentContainersCreateOrUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ComponentContainers. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/componentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/componentVersions.ts index 97c0aa7f47e9..74219ad65114 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/componentVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/componentVersions.ts @@ -18,7 +18,7 @@ import { ComponentVersionsCreateOrUpdateResponse, DestinationAsset, ComponentVersionsPublishOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ComponentVersions. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts index 46ba330822d6..552580288f95 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts @@ -27,7 +27,7 @@ import { ComputeStartOptionalParams, ComputeStopOptionalParams, ComputeRestartOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ComputeOperations. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/dataContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/dataContainers.ts index 4f17719a3e62..7bd026563c59 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/dataContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/dataContainers.ts @@ -15,7 +15,7 @@ import { DataContainersGetResponse, DataContainersCreateOrUpdateOptionalParams, DataContainersCreateOrUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a DataContainers. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/dataVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/dataVersions.ts index 5ab954a6357f..432be85bfb08 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/dataVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/dataVersions.ts @@ -18,7 +18,7 @@ import { DataVersionsCreateOrUpdateResponse, DestinationAsset, DataVersionsPublishOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a DataVersions. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/datastores.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/datastores.ts index 206c0e00d71e..161a423df42e 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/datastores.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/datastores.ts @@ -17,7 +17,7 @@ import { DatastoresCreateOrUpdateResponse, DatastoresListSecretsOptionalParams, DatastoresListSecretsResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Datastores. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/environmentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/environmentContainers.ts index 3a792cf72225..097c0e1191c3 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/environmentContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/environmentContainers.ts @@ -15,7 +15,7 @@ import { EnvironmentContainersGetResponse, EnvironmentContainersCreateOrUpdateOptionalParams, EnvironmentContainersCreateOrUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a EnvironmentContainers. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/environmentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/environmentVersions.ts index 63c803dbc1a9..07fc23cb7998 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/environmentVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/environmentVersions.ts @@ -18,7 +18,7 @@ import { EnvironmentVersionsCreateOrUpdateResponse, DestinationAsset, EnvironmentVersionsPublishOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a EnvironmentVersions. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/features.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/features.ts index 92301cb0fe9e..048d2caf285d 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/features.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/features.ts @@ -12,7 +12,7 @@ import { FeaturesListOptionalParams, FeaturesGetOptionalParams, FeaturesGetResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Features. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetContainers.ts index 65655afb7632..ab5fe7d25b94 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetContainers.ts @@ -16,7 +16,7 @@ import { FeaturesetContainersGetEntityResponse, FeaturesetContainersCreateOrUpdateOptionalParams, FeaturesetContainersCreateOrUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a FeaturesetContainers. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetVersions.ts index 6a988d35469c..1b8ddf9ddc82 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetVersions.ts @@ -19,7 +19,7 @@ import { FeaturesetVersionBackfillRequest, FeaturesetVersionsBackfillOptionalParams, FeaturesetVersionsBackfillResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a FeaturesetVersions. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityContainers.ts index d95207a85749..0c7bffe41b56 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityContainers.ts @@ -16,7 +16,7 @@ import { FeaturestoreEntityContainersGetEntityResponse, FeaturestoreEntityContainersCreateOrUpdateOptionalParams, FeaturestoreEntityContainersCreateOrUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a FeaturestoreEntityContainers. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityVersions.ts index 8254f0791a5e..4b40eb3a30ad 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityVersions.ts @@ -16,7 +16,7 @@ import { FeaturestoreEntityVersionsGetResponse, FeaturestoreEntityVersionsCreateOrUpdateOptionalParams, FeaturestoreEntityVersionsCreateOrUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a FeaturestoreEntityVersions. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts index 1ab888709948..3367c68fb3a5 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts @@ -6,51 +6,51 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./operations"; -export * from "./workspaces"; -export * from "./usages"; -export * from "./virtualMachineSizes"; -export * from "./quotas"; -export * from "./computeOperations"; -export * from "./privateEndpointConnections"; -export * from "./privateLinkResources"; -export * from "./workspaceConnections"; -export * from "./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"; -export * from "./codeVersions"; -export * from "./componentContainers"; -export * from "./componentVersions"; -export * from "./dataContainers"; -export * from "./dataVersions"; -export * from "./datastores"; -export * from "./environmentContainers"; -export * from "./environmentVersions"; -export * from "./featuresetContainers"; -export * from "./features"; -export * from "./featuresetVersions"; -export * from "./featurestoreEntityContainers"; -export * from "./featurestoreEntityVersions"; -export * from "./jobs"; -export * from "./marketplaceSubscriptions"; -export * from "./modelContainers"; -export * from "./modelVersions"; -export * from "./onlineEndpoints"; -export * from "./onlineDeployments"; -export * from "./schedules"; -export * from "./serverlessEndpoints"; -export * from "./registries"; -export * from "./workspaceFeatures"; +export * from "./usages.js"; +export * from "./virtualMachineSizes.js"; +export * from "./quotas.js"; +export * from "./computeOperations.js"; +export * from "./registryCodeContainers.js"; +export * from "./registryCodeVersions.js"; +export * from "./registryComponentContainers.js"; +export * from "./registryComponentVersions.js"; +export * from "./registryDataContainers.js"; +export * from "./registryDataVersions.js"; +export * from "./registryDataReferences.js"; +export * from "./registryEnvironmentContainers.js"; +export * from "./registryEnvironmentVersions.js"; +export * from "./registryModelContainers.js"; +export * from "./registryModelVersions.js"; +export * from "./batchEndpoints.js"; +export * from "./batchDeployments.js"; +export * from "./codeContainers.js"; +export * from "./codeVersions.js"; +export * from "./componentContainers.js"; +export * from "./componentVersions.js"; +export * from "./dataContainers.js"; +export * from "./dataVersions.js"; +export * from "./datastores.js"; +export * from "./environmentContainers.js"; +export * from "./environmentVersions.js"; +export * from "./featuresetContainers.js"; +export * from "./features.js"; +export * from "./featuresetVersions.js"; +export * from "./featurestoreEntityContainers.js"; +export * from "./featurestoreEntityVersions.js"; +export * from "./jobs.js"; +export * from "./marketplaceSubscriptions.js"; +export * from "./modelContainers.js"; +export * from "./modelVersions.js"; +export * from "./onlineEndpoints.js"; +export * from "./onlineDeployments.js"; +export * from "./schedules.js"; +export * from "./serverlessEndpoints.js"; +export * from "./registries.js"; +export * from "./workspaceFeatures.js"; +export * from "./operations.js"; +export * from "./workspaces.js"; +export * from "./privateEndpointConnections.js"; +export * from "./privateLinkResources.js"; +export * from "./workspaceConnections.js"; +export * from "./managedNetworkSettingsRule.js"; +export * from "./managedNetworkProvisions.js"; diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/jobs.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/jobs.ts index 22ece531b5cb..06f874d656e6 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/jobs.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/jobs.ts @@ -17,7 +17,7 @@ import { JobsCreateOrUpdateOptionalParams, JobsCreateOrUpdateResponse, JobsCancelOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Jobs. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkProvisions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkProvisions.ts index ce0b0ccc93f6..1b8c16a88b00 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkProvisions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkProvisions.ts @@ -10,7 +10,7 @@ import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams, ManagedNetworkProvisionsProvisionManagedNetworkResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a ManagedNetworkProvisions. */ export interface ManagedNetworkProvisions { diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkSettingsRule.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkSettingsRule.ts index 4cf42f0f3a6e..6ccaa6e4b1e4 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkSettingsRule.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkSettingsRule.ts @@ -16,7 +16,7 @@ import { ManagedNetworkSettingsRuleGetResponse, ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams, ManagedNetworkSettingsRuleCreateOrUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ManagedNetworkSettingsRule. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/marketplaceSubscriptions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/marketplaceSubscriptions.ts index a0078c43a544..b5a227373785 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/marketplaceSubscriptions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/marketplaceSubscriptions.ts @@ -17,7 +17,7 @@ import { MarketplaceSubscriptionsGetResponse, MarketplaceSubscriptionsCreateOrUpdateOptionalParams, MarketplaceSubscriptionsCreateOrUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a MarketplaceSubscriptions. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/modelContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/modelContainers.ts index 7648e8a755fc..975489f09cc3 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/modelContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/modelContainers.ts @@ -15,7 +15,7 @@ import { ModelContainersGetResponse, ModelContainersCreateOrUpdateOptionalParams, ModelContainersCreateOrUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ModelContainers. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/modelVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/modelVersions.ts index 781f53fa56e7..b350a88e33e2 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/modelVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/modelVersions.ts @@ -18,7 +18,7 @@ import { ModelVersionsCreateOrUpdateResponse, DestinationAsset, ModelVersionsPublishOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ModelVersions. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineDeployments.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineDeployments.ts index b5d18b12f219..07970cda0885 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineDeployments.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineDeployments.ts @@ -24,7 +24,7 @@ import { DeploymentLogsRequest, OnlineDeploymentsGetLogsOptionalParams, OnlineDeploymentsGetLogsResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a OnlineDeployments. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineEndpoints.ts index 87cdddff27b5..9848a1dcfd2c 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineEndpoints.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineEndpoints.ts @@ -25,7 +25,7 @@ import { OnlineEndpointsRegenerateKeysOptionalParams, OnlineEndpointsGetTokenOptionalParams, OnlineEndpointsGetTokenResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a OnlineEndpoints. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/operations.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/operations.ts index 3f7a0879a045..336d65d55eee 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 { Operation, OperationsListOptionalParams } from "../models"; +import { Operation, OperationsListOptionalParams } from "../models/index.js"; /// /** Interface representing a Operations. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateEndpointConnections.ts index 6dbdbda8ffa6..9957222d8e3e 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateEndpointConnections.ts @@ -15,7 +15,7 @@ import { PrivateEndpointConnectionsCreateOrUpdateOptionalParams, PrivateEndpointConnectionsCreateOrUpdateResponse, PrivateEndpointConnectionsDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a PrivateEndpointConnections. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateLinkResources.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateLinkResources.ts index 5be795d4659d..21f8c79bdf51 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateLinkResources.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateLinkResources.ts @@ -9,7 +9,7 @@ import { PrivateLinkResourcesListOptionalParams, PrivateLinkResourcesListResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a PrivateLinkResources. */ export interface PrivateLinkResources { diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/quotas.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/quotas.ts index 7fa5c2d8aa87..ca384ddde97a 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/quotas.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/quotas.ts @@ -13,7 +13,7 @@ import { QuotaUpdateParameters, QuotasUpdateOptionalParams, QuotasUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Quotas. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registries.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registries.ts index fc0a31fb22da..260125fa11ac 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registries.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registries.ts @@ -22,7 +22,7 @@ import { RegistriesCreateOrUpdateResponse, RegistriesRemoveRegionsOptionalParams, RegistriesRemoveRegionsResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Registries. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeContainers.ts index 4abee808248c..ee505d7e4870 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeContainers.ts @@ -16,7 +16,7 @@ import { RegistryCodeContainersGetResponse, RegistryCodeContainersCreateOrUpdateOptionalParams, RegistryCodeContainersCreateOrUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a RegistryCodeContainers. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeVersions.ts index e05cee55ccdb..4b90624ec7ea 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeVersions.ts @@ -19,7 +19,7 @@ import { PendingUploadRequestDto, RegistryCodeVersionsCreateOrGetStartPendingUploadOptionalParams, RegistryCodeVersionsCreateOrGetStartPendingUploadResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a RegistryCodeVersions. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentContainers.ts index 05b1b6336b86..b6ec0193bafe 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentContainers.ts @@ -16,7 +16,7 @@ import { RegistryComponentContainersGetResponse, RegistryComponentContainersCreateOrUpdateOptionalParams, RegistryComponentContainersCreateOrUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a RegistryComponentContainers. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentVersions.ts index eb2adf740b2c..bdea85eae710 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentVersions.ts @@ -16,7 +16,7 @@ import { RegistryComponentVersionsGetResponse, RegistryComponentVersionsCreateOrUpdateOptionalParams, RegistryComponentVersionsCreateOrUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a RegistryComponentVersions. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataContainers.ts index dde956d2d6a5..fea914a4c683 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataContainers.ts @@ -16,7 +16,7 @@ import { RegistryDataContainersGetResponse, RegistryDataContainersCreateOrUpdateOptionalParams, RegistryDataContainersCreateOrUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a RegistryDataContainers. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataReferences.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataReferences.ts index d252cc915564..c4a75d27f822 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataReferences.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataReferences.ts @@ -10,7 +10,7 @@ import { GetBlobReferenceSASRequestDto, RegistryDataReferencesGetBlobReferenceSASOptionalParams, RegistryDataReferencesGetBlobReferenceSASResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a RegistryDataReferences. */ export interface RegistryDataReferences { diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataVersions.ts index 43fa172a2169..8978de3af1f8 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataVersions.ts @@ -19,7 +19,7 @@ import { PendingUploadRequestDto, RegistryDataVersionsCreateOrGetStartPendingUploadOptionalParams, RegistryDataVersionsCreateOrGetStartPendingUploadResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a RegistryDataVersions. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentContainers.ts index c52d9dbc38e2..5e3aa3ee6b27 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentContainers.ts @@ -16,7 +16,7 @@ import { RegistryEnvironmentContainersGetResponse, RegistryEnvironmentContainersCreateOrUpdateOptionalParams, RegistryEnvironmentContainersCreateOrUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a RegistryEnvironmentContainers. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentVersions.ts index 1d18c5d62c79..a7ab9ec9b73a 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentVersions.ts @@ -16,7 +16,7 @@ import { RegistryEnvironmentVersionsGetResponse, RegistryEnvironmentVersionsCreateOrUpdateOptionalParams, RegistryEnvironmentVersionsCreateOrUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a RegistryEnvironmentVersions. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelContainers.ts index fc13c95dde8d..8ff351dcf635 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelContainers.ts @@ -16,7 +16,7 @@ import { RegistryModelContainersGetResponse, RegistryModelContainersCreateOrUpdateOptionalParams, RegistryModelContainersCreateOrUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a RegistryModelContainers. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelVersions.ts index 3ac269f2a60b..3defac516c26 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelVersions.ts @@ -19,7 +19,7 @@ import { PendingUploadRequestDto, RegistryModelVersionsCreateOrGetStartPendingUploadOptionalParams, RegistryModelVersionsCreateOrGetStartPendingUploadResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a RegistryModelVersions. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/schedules.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/schedules.ts index 6bddf10b6f8e..889c94173db2 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/schedules.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/schedules.ts @@ -16,7 +16,7 @@ import { SchedulesGetResponse, SchedulesCreateOrUpdateOptionalParams, SchedulesCreateOrUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Schedules. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/serverlessEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/serverlessEndpoints.ts index 333f57ec925e..b8e6f2750b0c 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/serverlessEndpoints.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/serverlessEndpoints.ts @@ -25,7 +25,7 @@ import { RegenerateEndpointKeysRequest, ServerlessEndpointsRegenerateKeysOptionalParams, ServerlessEndpointsRegenerateKeysResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ServerlessEndpoints. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/usages.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/usages.ts index 2022c584649f..43e38effab47 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/usages.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/usages.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { Usage, UsagesListOptionalParams } from "../models"; +import { Usage, UsagesListOptionalParams } from "../models/index.js"; /// /** Interface representing a Usages. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/virtualMachineSizes.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/virtualMachineSizes.ts index 94c771a5381e..089d596596a3 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/virtualMachineSizes.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/virtualMachineSizes.ts @@ -9,7 +9,7 @@ import { VirtualMachineSizesListOptionalParams, VirtualMachineSizesListResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a VirtualMachineSizes. */ export interface VirtualMachineSizes { diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaceConnections.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaceConnections.ts index a0dbe0ddd6ca..440beacdbaa7 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaceConnections.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaceConnections.ts @@ -15,9 +15,11 @@ import { WorkspaceConnectionsGetOptionalParams, WorkspaceConnectionsGetResponse, WorkspaceConnectionsDeleteOptionalParams, + WorkspaceConnectionsUpdateOptionalParams, + WorkspaceConnectionsUpdateResponse, WorkspaceConnectionsListSecretsOptionalParams, WorkspaceConnectionsListSecretsResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a WorkspaceConnections. */ @@ -70,6 +72,19 @@ export interface WorkspaceConnections { connectionName: string, options?: WorkspaceConnectionsDeleteOptionalParams, ): Promise; + /** + * Update machine learning workspaces connections under the specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param options The options parameters. + */ + update( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsUpdateOptionalParams, + ): Promise; /** * List all the secrets of a machine learning workspaces connections. * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaceFeatures.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaceFeatures.ts index c33426b30f6a..53312c3332fd 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaceFeatures.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaceFeatures.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { AmlUserFeature, WorkspaceFeaturesListOptionalParams } from "../models"; +import { AmlUserFeature, WorkspaceFeaturesListOptionalParams } from "../models/index.js"; /// /** Interface representing a WorkspaceFeatures. */ diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaces.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaces.ts index e0e9dbaf128a..0c53f11e2f98 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaces.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaces.ts @@ -35,7 +35,7 @@ import { WorkspacesListNotebookKeysResponse, WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams, WorkspacesListOutboundNetworkDependenciesEndpointsResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Workspaces. */ diff --git a/sdk/machinelearning/arm-machinelearning/test/machinelearning_operations_test.spec.ts b/sdk/machinelearning/arm-machinelearning/test/machinelearning_operations_test.spec.ts index 5a62a2cdcba9..3aece72a69a6 100644 --- a/sdk/machinelearning/arm-machinelearning/test/machinelearning_operations_test.spec.ts +++ b/sdk/machinelearning/arm-machinelearning/test/machinelearning_operations_test.spec.ts @@ -10,13 +10,11 @@ import { env, Recorder, RecorderStartOptions, - delay, isPlaybackMode, } from "@azure-tools/test-recorder"; import { createTestCredential } from "@azure-tools/test-credential"; -import { assert } from "chai"; -import { Context } from "mocha"; -import { AzureMachineLearningServicesManagementClient } from "../src/azureMachineLearningServicesManagementClient"; +import { AzureMachineLearningServicesManagementClient } from "../src/azureMachineLearningServicesManagementClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const replaceableVariables: Record = { SUBSCRIPTION_ID: "88888888-8888-8888-8888-888888888888" @@ -42,22 +40,22 @@ describe("machinelearning test", () => { let resourceGroup: string; let resourcename: string; - beforeEach(async function (this: Context) { - recorder = new Recorder(this.currentTest); - await recorder.start(recorderOptions); - subscriptionId = env.SUBSCRIPTION_ID || ''; - // This is an example of how the environment variables are used - const credential = createTestCredential(); - client = new AzureMachineLearningServicesManagementClient(credential, subscriptionId, recorder.configureClientOptions({})); - location = "eastus"; - resourceGroup = "myjstest"; - resourcename = "resourcetest"; + beforeEach(async (ctx) => { + recorder = new Recorder(ctx); + await recorder.start(recorderOptions); + subscriptionId = env.SUBSCRIPTION_ID || ''; + // This is an example of how the environment variables are used + const credential = createTestCredential(); + client = new AzureMachineLearningServicesManagementClient(credential, subscriptionId, recorder.configureClientOptions({})); + location = "eastus"; + resourceGroup = "myjstest"; + resourcename = "resourcetest"; - }); + }); - afterEach(async function () { - await recorder.stop(); - }); + afterEach(async () => { + await recorder.stop(); + }); it("operations list test", async function () { const resArray = new Array(); diff --git a/sdk/machinelearning/arm-machinelearning/test/sampleTest.ts b/sdk/machinelearning/arm-machinelearning/test/sampleTest.ts new file mode 100644 index 000000000000..a1cf7c25afd2 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/test/sampleTest.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, +} from "@azure-tools/test-recorder"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async (ctx) => { + recorder = new Recorder(ctx); + await recorder.start(recorderOptions); + }); + + afterEach(async () => { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/machinelearning/arm-machinelearning/tsconfig.browser.config.json b/sdk/machinelearning/arm-machinelearning/tsconfig.browser.config.json new file mode 100644 index 000000000000..0c8bafa97126 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/tsconfig.browser.config.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.test.json", + "../../../tsconfig.browser.base.json" + ] +} diff --git a/sdk/machinelearning/arm-machinelearning/tsconfig.json b/sdk/machinelearning/arm-machinelearning/tsconfig.json index c068b7a47837..b35d05ad6e9d 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" + "src/**/*.ts", + "test/**/*.ts" ], "exclude": [ "node_modules" diff --git a/sdk/machinelearning/arm-machinelearning/tsconfig.samples.json b/sdk/machinelearning/arm-machinelearning/tsconfig.samples.json new file mode 100644 index 000000000000..723afbff0f25 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/tsconfig.samples.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../tsconfig.samples.base.json", + "compilerOptions": { + "paths": { + "@azure/arm-machinelearning": [ + "./dist/esm" + ] + } + } +} diff --git a/sdk/machinelearning/arm-machinelearning/tsconfig.src.json b/sdk/machinelearning/arm-machinelearning/tsconfig.src.json new file mode 100644 index 000000000000..bae70752dd38 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/tsconfig.src.json @@ -0,0 +1,3 @@ +{ + "extends": "../../../tsconfig.lib.json" +} diff --git a/sdk/machinelearning/arm-machinelearning/tsconfig.test.json b/sdk/machinelearning/arm-machinelearning/tsconfig.test.json new file mode 100644 index 000000000000..3c2b783a8c1b --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/tsconfig.test.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.src.json", + "../../../tsconfig.test.base.json" + ] +} diff --git a/sdk/machinelearning/arm-machinelearning/vitest.browser.config.ts b/sdk/machinelearning/arm-machinelearning/vitest.browser.config.ts new file mode 100644 index 000000000000..182729ab5ce9 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/vitest.browser.config.ts @@ -0,0 +1,17 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js",], + testTimeout: 1200000, + hookTimeout: 1200000, + }, + }), +); diff --git a/sdk/machinelearning/arm-machinelearning/vitest.config.ts b/sdk/machinelearning/arm-machinelearning/vitest.config.ts new file mode 100644 index 000000000000..40e031385dd8 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/vitest.config.ts @@ -0,0 +1,16 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + testTimeout: 1200000, + hookTimeout: 1200000, + }, + }), +); diff --git a/sdk/machinelearning/arm-machinelearning/vitest.esm.config.ts b/sdk/machinelearning/arm-machinelearning/vitest.esm.config.ts new file mode 100644 index 000000000000..a70127279fc9 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/vitest.esm.config.ts @@ -0,0 +1,12 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { mergeConfig } from "vitest/config"; +import vitestConfig from "./vitest.config.ts"; +import vitestEsmConfig from "../../../vitest.esm.shared.config.ts"; + +export default mergeConfig( + vitestConfig, + vitestEsmConfig +);