diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index eb705ce7079e..0131149b3477 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -13,6 +13,7 @@ dependencies: '@rush-temp/arm-keyvault': file:projects/arm-keyvault.tgz '@rush-temp/arm-links': file:projects/arm-links.tgz '@rush-temp/arm-locks': file:projects/arm-locks.tgz + '@rush-temp/arm-machinelearningservices': file:projects/arm-machinelearningservices.tgz '@rush-temp/arm-managedapplications': file:projects/arm-managedapplications.tgz '@rush-temp/arm-network': file:projects/arm-network.tgz '@rush-temp/arm-policy': file:projects/arm-policy.tgz @@ -8737,6 +8738,26 @@ packages: integrity: sha512-Pbwm7icKOAqRDLs7DB00ERbjwjtOHOCWtyxLuzSvnu14uHgTS7Hdc25em9Zj2kIIn9Fqq2EGPytZkfq4BA2Ayg== tarball: file:projects/arm-locks.tgz version: 0.0.0 + file:projects/arm-machinelearningservices.tgz: + dependencies: + '@microsoft/api-extractor': 7.7.11 + '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 + '@rollup/plugin-json': 4.1.0_rollup@1.32.1 + '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1 + '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1 + mkdirp: 1.0.4 + rollup: 1.32.1 + rollup-plugin-node-resolve: 3.4.0 + rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 + tslib: 2.3.1 + typescript: 4.2.4 + uglify-js: 3.14.1 + dev: false + name: '@rush-temp/arm-machinelearningservices' + resolution: + integrity: sha512-qVxrxqXQ0Qn1/LoS1knR21Ukb0tPwwPKLw8g3+r1zrPGGOy5jlkpw7qCoJgvpgkIDYlYtJwKLzoSs6rKkNpRGg== + tarball: file:projects/arm-machinelearningservices.tgz + version: 0.0.0 file:projects/arm-managedapplications.tgz: dependencies: '@microsoft/api-extractor': 7.7.11 @@ -12617,6 +12638,7 @@ specifiers: '@rush-temp/arm-keyvault': file:./projects/arm-keyvault.tgz '@rush-temp/arm-links': file:./projects/arm-links.tgz '@rush-temp/arm-locks': file:./projects/arm-locks.tgz + '@rush-temp/arm-machinelearningservices': file:./projects/arm-machinelearningservices.tgz '@rush-temp/arm-managedapplications': file:./projects/arm-managedapplications.tgz '@rush-temp/arm-network': file:./projects/arm-network.tgz '@rush-temp/arm-policy': file:./projects/arm-policy.tgz diff --git a/rush.json b/rush.json index bbdfbdbb98c6..db9ee8312bd2 100644 --- a/rush.json +++ b/rush.json @@ -875,6 +875,11 @@ "packageName": "@azure/arm-appservice", "projectFolder": "sdk/appservice/arm-appservice", "versionPolicyName": "management" + }, + { + "packageName": "@azure/arm-machinelearningservices", + "projectFolder": "sdk/machinelearningservices/arm-machinelearningservices", + "versionPolicyName": "management" } ] } \ No newline at end of file diff --git a/sdk/machinelearningservices/arm-machinelearningservices/CHANGELOG.md b/sdk/machinelearningservices/arm-machinelearningservices/CHANGELOG.md new file mode 100644 index 000000000000..0770e0fa6738 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/CHANGELOG.md @@ -0,0 +1,14 @@ +## 30.0.0-beta.1 (2021-08-17) + +This is the first preview for the new version of the `@azure/arm-machinelearningservices` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services. + +While this package remains auto generated, the SDK generator itself has undergone changes to comply with the above guidelines in order to generate packages that are idiomatic to the JavaScript/TypeScript ecosystem and consistent with other packages for Azure services. For more on this, please see [State of the Azure SDK 2021](https://devblogs.microsoft.com/azure-sdk/state-of-the-azure-sdk-2021/). + +Please note that this version has breaking changes, all of which were made after careful consideration during the authoring of the guidelines and user studies. + +**Noteworthy changes and features** +- Authentication: The packages `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` are no longer supported. Use package [@azure/identity](https://www.npmjs.com/package/@azure/identity) instead. Select a credential from Azure Identity examples based on the authentication method of your choice. +- Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead. +- List operations now return an iterable result that follows the `PagedAsyncIterableIterator` interface as opposed to the previous model where you had to make a new request using the link to the next page. +- Long running operations i.e. the Lro related object returned by methods whose names started with `begin`, now uses `pollUntilDone` to check whether the request is finished, instead of `pollUntilFinished`. To get the final result, use the corresponding method that will have the suffix `AndWait`. +- The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6. diff --git a/sdk/machinelearningservices/arm-machinelearningservices/LICENSE.txt b/sdk/machinelearningservices/arm-machinelearningservices/LICENSE.txt index ea8fb1516028..ccb63b166732 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/LICENSE.txt +++ b/sdk/machinelearningservices/arm-machinelearningservices/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE. \ No newline at end of file diff --git a/sdk/machinelearningservices/arm-machinelearningservices/README.md b/sdk/machinelearningservices/arm-machinelearningservices/README.md index cde11f4dfef7..2f8d29be963d 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/README.md +++ b/sdk/machinelearningservices/arm-machinelearningservices/README.md @@ -1,98 +1,91 @@ -## Azure AzureMachineLearningWorkspaces SDK for JavaScript +# Azure Service client library for JavaScript -This package contains an isomorphic SDK for AzureMachineLearningWorkspaces. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Service client. + +These APIs allow end users to operate on Azure Machine Learning Workspace resources. + +[Source code](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/machinelearningservices/arm-machinelearningservices) | +[Package (NPM)](https://www.npmjs.com/package/@azure/arm-machinelearningservices) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-machinelearningservices) | +[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/machinelearningservices/arm-machinelearningservices/samples) + +## Getting started ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge and Firefox. + +### Prerequisites + +- An [Azure subscription][azure_sub]. -### How to Install +### Install the `@azure/arm-machinelearningservices` package + +Install the Azure Service client library for JavaScript with `npm`: ```bash npm install @azure/arm-machinelearningservices ``` -### How to use +### Create and authenticate a `AzureMachineLearningWorkspaces` + +To create a client object to access the Azure Service API, you will need the `endpoint` of your Azure Service resource and a `credential`. The Azure Service client can use Azure Active Directory credentials to authenticate. +You can find the endpoint for your Azure Service resource in the [Azure Portal][azure_portal]. -#### nodejs - client creation and list operations as an example written in TypeScript. +#### Using an Azure Active Directory Credential -##### Install @azure/ms-rest-nodeauth +You can authenticate with Azure Active Directory using the [Azure Identity library][azure_identity]. To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package: -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. ```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" +npm install @azure/identity ``` -##### Sample code +You will also need to register a new AAD application and grant access to Azure Service by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). +Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript const { AzureMachineLearningWorkspaces } = require("@azure/arm-machinelearningservices"); -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new AzureMachineLearningWorkspaces(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); +const { DefaultAzureCredential } = require("@azure/identity"); +const client = new AzureMachineLearningWorkspaces("", new DefaultAzureCredential()); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. +## Key concepts -##### Install @azure/ms-rest-browserauth +### AzureMachineLearningWorkspaces -```bash -npm install @azure/ms-rest-browserauth -``` +`AzureMachineLearningWorkspaces` is the primary interface for developers using the Azure Service client library. Explore the methods on this client object to understand the different features of the Azure Service service that you can access. -##### Sample code - -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-machinelearningservices sample - - - - - - - - +## Troubleshooting + +### Logging + +Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`: + +```javascript +import { setLogLevel } from "@azure/logger"; +setLogLevel("info"); ``` +For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger). + +## Next steps + +Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/machinelearningservices/arm-machinelearningservices/samples) directory for detailed examples on how to use this library. + +## Contributing + +If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code. + ## Related projects -- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js) + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmachinelearningservices%2Farm-machinelearningservices%2FREADME.png) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/machinelearningservices/arm-machinelearningservices/README.png) +[azure_cli]: https://docs.microsoft.com/cli/azure +[azure_sub]: https://azure.microsoft.com/free/ +[azure_sub]: https://azure.microsoft.com/free/ +[azure_portal]: https://portal.azure.com +[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/identity/identity +[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/identity/identity#defaultazurecredential diff --git a/sdk/machinelearningservices/arm-machinelearningservices/_meta.json b/sdk/machinelearningservices/arm-machinelearningservices/_meta.json new file mode 100644 index 000000000000..5c1f4f03fc0f --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/_meta.json @@ -0,0 +1,7 @@ +{ + "commit": "d82e88e57759cbb93a07594d0ada4eaa21453294", + "readme": "specification/machinelearningservices/resource-manager/readme.md", + "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md --use=@autorest/typescript@6.0.0-beta.5", + "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", + "use": "@autorest/typescript@6.0.0-beta.5" +} \ No newline at end of file diff --git a/sdk/machinelearningservices/arm-machinelearningservices/api-extractor.json b/sdk/machinelearningservices/arm-machinelearningservices/api-extractor.json new file mode 100644 index 000000000000..5fb5b21b56f2 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/api-extractor.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "mainEntryPointFilePath": "./esm/index.d.ts", + "docModel": { "enabled": true }, + "apiReport": { "enabled": true, "reportFolder": "./review" }, + "dtsRollup": { + "enabled": true, + "untrimmedFilePath": "", + "publicTrimmedFilePath": "./esm/index.d.ts" + }, + "messages": { + "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "extractorMessageReporting": { + "ae-missing-release-tag": { "logLevel": "none" }, + "ae-unresolved-link": { "logLevel": "none" } + } + } +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/package.json b/sdk/machinelearningservices/arm-machinelearningservices/package.json index 6c9a22e7b32c..6f6d0f6109bb 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/package.json +++ b/sdk/machinelearningservices/arm-machinelearningservices/package.json @@ -1,12 +1,20 @@ { "name": "@azure/arm-machinelearningservices", + "sdk-type": "management", "author": "Microsoft Corporation", - "description": "AzureMachineLearningWorkspaces Library with typescript type definitions for node.js and browser.", - "version": "4.0.0", + "description": "A generated SDK for AzureMachineLearningWorkspaces.", + "version": "30.0.0-beta.1", + "engines": { + "node": ">=12.0.0" + }, "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", - "tslib": "^1.10.0" + "@azure/core-lro": "^2.2.0", + "@azure/abort-controller": "^1.0.0", + "@azure/core-paging": "^1.1.1", + "@azure/core-client": "^1.0.0", + "@azure/core-auth": "^1.3.0", + "@azure/core-rest-pipeline": "^1.1.0", + "tslib": "^2.2.0" }, "keywords": [ "node", @@ -16,15 +24,21 @@ "isomorphic" ], "license": "MIT", - "main": "./dist/arm-machinelearningservices.js", - "module": "./esm/azureMachineLearningWorkspaces.js", - "types": "./esm/azureMachineLearningWorkspaces.d.ts", + "main": "./dist/index.js", + "module": "./esm/index.js", + "types": "./esm/index.d.ts", "devDependencies": { - "typescript": "^3.5.3", - "rollup": "^1.18.0", - "rollup-plugin-node-resolve": "^5.2.0", + "@microsoft/api-extractor": "7.7.11", + "@rollup/plugin-commonjs": "11.0.2", + "@rollup/plugin-json": "^4.0.0", + "@rollup/plugin-multi-entry": "^3.0.0", + "@rollup/plugin-node-resolve": "^8.0.0", + "mkdirp": "^1.0.4", + "rollup": "^1.16.3", "rollup-plugin-sourcemaps": "^0.4.2", - "uglify-js": "^3.6.0" + "rollup-plugin-node-resolve": "^3.4.0", + "typescript": "~4.2.0", + "uglify-js": "^3.4.9" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearningservices/arm-machinelearningservices", "repository": { @@ -46,13 +60,38 @@ "src/**/*.ts", "README.md", "rollup.config.js", - "tsconfig.json" + "tsconfig.json", + "review/*", + "CHANGELOG.md" ], "scripts": { - "build": "tsc && rollup -c rollup.config.js && npm run minify", - "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-machinelearningservices.js.map'\" -o ./dist/arm-machinelearningservices.min.js ./dist/arm-machinelearningservices.js", - "prepack": "npm install && npm run build" + "build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api", + "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "prepack": "npm run build", + "pack": "npm pack 2>&1", + "extract-api": "mkdirp ./review && api-extractor run --local", + "lint": "echo skipped", + "audit": "echo skipped", + "clean": "echo skipped", + "build:node": "echo skipped", + "build:browser": "echo skipped", + "build:test": "echo skipped", + "build:samples": "echo skipped.", + "check-format": "echo skipped", + "execute:samples": "echo skipped", + "format": "echo skipped", + "test": "echo skipped", + "prebuild": "echo skipped", + "test:node": "echo skipped", + "test:browser": "echo skipped", + "unit-test": "echo skipped", + "unit-test:node": "echo skipped", + "unit-test:browser": "echo skipped", + "integration-test:browser": "echo skipped", + "integration-test:node": "echo skipped", + "integration-test": "echo skipped", + "docs": "echo skipped" }, "sideEffects": false, "autoPublish": true -} +} \ No newline at end of file diff --git a/sdk/machinelearningservices/arm-machinelearningservices/review/arm-machinelearningservices.api.md b/sdk/machinelearningservices/arm-machinelearningservices/review/arm-machinelearningservices.api.md new file mode 100644 index 000000000000..386c6affe727 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/review/arm-machinelearningservices.api.md @@ -0,0 +1,4534 @@ +## API Report File for "@azure/arm-machinelearningservices" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import * as coreAuth from '@azure/core-auth'; +import * as coreClient from '@azure/core-client'; +import { PagedAsyncIterableIterator } from '@azure/core-paging'; +import { PollerLike } from '@azure/core-lro'; +import { PollOperationState } from '@azure/core-lro'; + +// @public +export type AccountKeyDatastoreCredentials = DatastoreCredentials & { + credentialsType: "AccountKey"; + secrets?: AccountKeyDatastoreSecrets; +}; + +// @public +export type AccountKeyDatastoreSecrets = DatastoreSecrets & { + secretsType: "AccountKey"; + key?: string; +}; + +// @public +export type Aks = Compute & { + computeType: "AKS"; + properties?: AKSProperties; +}; + +// @public +export type AksComputeSecrets = ComputeSecrets & { + computeType: "AKS"; + userKubeConfig?: string; + adminKubeConfig?: string; + imagePullSecretName?: string; +}; + +// @public +export interface AksNetworkingConfiguration { + dnsServiceIP?: string; + dockerBridgeCidr?: string; + serviceCidr?: string; + subnetId?: string; +} + +// @public +export interface AKSProperties { + agentCount?: number; + agentVmSize?: string; + aksNetworkingConfiguration?: AksNetworkingConfiguration; + clusterFqdn?: string; + clusterPurpose?: ClusterPurpose; + loadBalancerSubnet?: string; + loadBalancerType?: LoadBalancerType; + sslConfiguration?: SslConfiguration; + readonly systemServices?: SystemService[]; +} + +// @public +export type AllocationState = string; + +// @public +export type AmlCompute = Compute & { + computeType: "AmlCompute"; + properties?: AmlComputeProperties; +}; + +// @public +export interface AmlComputeNodeInformation { + readonly nodeId?: string; + readonly nodeState?: NodeState; + readonly port?: number; + readonly privateIpAddress?: string; + readonly publicIpAddress?: string; + readonly runId?: string; +} + +// @public +export type AmlComputeNodesInformation = ComputeNodesInformation & { + computeType: "AmlCompute"; + readonly nodes?: AmlComputeNodeInformation[]; +}; + +// @public +export interface AmlComputeProperties { + readonly allocationState?: AllocationState; + readonly allocationStateTransitionTime?: Date; + readonly currentNodeCount?: number; + enableNodePublicIp?: boolean; + readonly errors?: ErrorResponse[]; + isolatedNetwork?: boolean; + readonly nodeStateCounts?: NodeStateCounts; + osType?: OsType; + remoteLoginPortPublicAccess?: RemoteLoginPortPublicAccess; + scaleSettings?: ScaleSettings; + subnet?: ResourceId; + readonly targetNodeCount?: number; + userAccountCredentials?: UserAccountCredentials; + virtualMachineImage?: VirtualMachineImage; + vmPriority?: VmPriority; + vmSize?: string; +} + +// @public +export type AmlToken = IdentityConfiguration & { + identityType: "AMLToken"; +}; + +// @public +export interface AmlUserFeature { + description?: string; + displayName?: string; + id?: string; +} + +// @public +export type ApplicationSharingPolicy = string; + +// @public +export interface AssetReferenceBase { + referenceType: "DataPath" | "Id" | "OutputPath"; +} + +// @public (undocumented) +export type AssetReferenceBaseUnion = AssetReferenceBase | DataPathAssetReference | IdAssetReference | OutputPathAssetReference; + +// @public +export interface AssignedUser { + objectId: string; + tenantId: string; +} + +// @public +export interface AutoPauseProperties { + // (undocumented) + delayInMinutes?: number; + // (undocumented) + enabled?: boolean; +} + +// @public +export interface AutoScaleProperties { + // (undocumented) + enabled?: boolean; + // (undocumented) + maxNodeCount?: number; + // (undocumented) + minNodeCount?: number; +} + +// @public (undocumented) +export type AutoScaleSettings = OnlineScaleSettings & { + scaleType: "Auto"; + pollingInterval?: string; + targetUtilizationPercentage?: number; +}; + +// @public +export type AzureBlobContents = DatastoreContents & { + contentsType: "AzureBlob"; + accountName: string; + containerName: string; + credentials: DatastoreCredentialsUnion; + endpoint: string; + protocol: string; +}; + +// @public +export type AzureDataLakeGen1Contents = DatastoreContents & { + contentsType: "AzureDataLakeGen1"; + credentials: DatastoreCredentialsUnion; + storeName: string; +}; + +// @public +export type AzureDataLakeGen2Contents = DatastoreContents & { + contentsType: "AzureDataLakeGen2"; + accountName: string; + containerName: string; + credentials: DatastoreCredentialsUnion; + endpoint: string; + protocol: string; +}; + +// @public +export type AzureFileContents = DatastoreContents & { + contentsType: "AzureFile"; + accountName: string; + containerName: string; + credentials: DatastoreCredentialsUnion; + endpoint: string; + protocol: string; +}; + +// @public (undocumented) +export class AzureMachineLearningWorkspaces extends AzureMachineLearningWorkspacesContext { + constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureMachineLearningWorkspacesOptionalParams); + // (undocumented) + batchDeployments: BatchDeployments; + // (undocumented) + batchEndpoints: BatchEndpoints; + // (undocumented) + codeContainers: CodeContainers; + // (undocumented) + codeVersions: CodeVersions; + // (undocumented) + computeOperations: ComputeOperations; + // (undocumented) + dataContainers: DataContainers; + // (undocumented) + datastores: Datastores; + // (undocumented) + dataVersions: DataVersions; + // (undocumented) + environmentContainers: EnvironmentContainers; + // (undocumented) + environmentSpecificationVersions: EnvironmentSpecificationVersions; + // (undocumented) + jobs: Jobs; + // (undocumented) + labelingJobs: LabelingJobs; + // (undocumented) + modelContainers: ModelContainers; + // (undocumented) + modelVersions: ModelVersions; + // (undocumented) + onlineDeployments: OnlineDeployments; + // (undocumented) + onlineEndpoints: OnlineEndpoints; + // (undocumented) + operations: Operations; + // (undocumented) + privateEndpointConnections: PrivateEndpointConnections; + // (undocumented) + privateLinkResources: PrivateLinkResources; + // (undocumented) + quotas: Quotas; + // (undocumented) + usages: Usages; + // (undocumented) + virtualMachineSizes: VirtualMachineSizes; + // (undocumented) + workspaceConnections: WorkspaceConnections; + // (undocumented) + workspaceFeatures: WorkspaceFeatures; + // (undocumented) + workspaces: Workspaces; + // (undocumented) + workspaceSkus: WorkspaceSkus; +} + +// @public (undocumented) +export class AzureMachineLearningWorkspacesContext extends coreClient.ServiceClient { + // (undocumented) + $host: string; + constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureMachineLearningWorkspacesOptionalParams); + // (undocumented) + apiVersion: string; + // (undocumented) + subscriptionId: string; +} + +// @public +export interface AzureMachineLearningWorkspacesOptionalParams extends coreClient.ServiceClientOptions { + $host?: string; + apiVersion?: string; + endpoint?: string; +} + +// @public +export type AzurePostgreSqlContents = DatastoreContents & { + contentsType: "AzurePostgreSql"; + credentials: DatastoreCredentialsUnion; + databaseName: string; + enableSSL?: boolean; + endpoint: string; + portNumber: number; + serverName: string; +}; + +// @public +export type AzureSqlDatabaseContents = DatastoreContents & { + contentsType: "AzureSqlDatabase"; + credentials: DatastoreCredentialsUnion; + databaseName: string; + endpoint: string; + portNumber: number; + serverName: string; +}; + +// @public +export type BanditPolicy = EarlyTerminationPolicy & { + policyType: "Bandit"; + slackAmount?: number; + slackFactor?: number; +}; + +// @public +export interface BatchDeployment { + codeConfiguration?: CodeConfiguration; + compute?: ComputeConfiguration; + description?: string; + environmentId?: string; + environmentVariables?: { + [propertyName: string]: string; + }; + errorThreshold?: number; + loggingLevel?: BatchLoggingLevel; + miniBatchSize?: number; + model?: AssetReferenceBaseUnion; + outputConfiguration?: BatchOutputConfiguration; + partitionKeys?: string[]; + properties?: { + [propertyName: string]: string; + }; + retrySettings?: BatchRetrySettings; +} + +// @public +export interface BatchDeployments { + createOrUpdate(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: BatchDeploymentTrackedResource, options?: BatchDeploymentsCreateOrUpdateOptionalParams): Promise; + delete(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, options?: BatchDeploymentsDeleteOptionalParams): Promise; + get(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, options?: BatchDeploymentsGetOptionalParams): Promise; + list(endpointName: string, resourceGroupName: string, workspaceName: string, options?: BatchDeploymentsListOptionalParams): PagedAsyncIterableIterator; + update(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: PartialBatchDeploymentPartialTrackedResource, options?: BatchDeploymentsUpdateOptionalParams): Promise; +} + +// @public +export interface BatchDeploymentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BatchDeploymentsCreateOrUpdateResponse = BatchDeploymentTrackedResource; + +// @public +export interface BatchDeploymentsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface BatchDeploymentsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BatchDeploymentsGetResponse = BatchDeploymentTrackedResource; + +// @public +export interface BatchDeploymentsListNextOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type BatchDeploymentsListNextResponse = BatchDeploymentTrackedResourceArmPaginatedResult; + +// @public +export interface BatchDeploymentsListOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type BatchDeploymentsListResponse = BatchDeploymentTrackedResourceArmPaginatedResult; + +// @public +export interface BatchDeploymentsUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BatchDeploymentsUpdateResponse = BatchDeploymentTrackedResource; + +// @public (undocumented) +export type BatchDeploymentTrackedResource = TrackedResource & { + identity?: ResourceIdentity; + kind?: string; + properties: BatchDeployment; + readonly systemData?: SystemData; +}; + +// @public +export interface BatchDeploymentTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: BatchDeploymentTrackedResource[]; +} + +// @public +export interface BatchEndpoint { + authMode?: EndpointAuthMode; + description?: string; + keys?: EndpointAuthKeys; + properties?: { + [propertyName: string]: string; + }; + readonly scoringUri?: string; + readonly swaggerUri?: string; + traffic?: { + [propertyName: string]: number; + }; +} + +// @public +export interface BatchEndpoints { + createOrUpdate(endpointName: string, resourceGroupName: string, workspaceName: string, body: BatchEndpointTrackedResource, options?: BatchEndpointsCreateOrUpdateOptionalParams): Promise; + delete(endpointName: string, resourceGroupName: string, workspaceName: string, options?: BatchEndpointsDeleteOptionalParams): Promise; + get(endpointName: string, resourceGroupName: string, workspaceName: string, options?: BatchEndpointsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: BatchEndpointsListOptionalParams): PagedAsyncIterableIterator; + listKeys(endpointName: string, resourceGroupName: string, workspaceName: string, options?: BatchEndpointsListKeysOptionalParams): Promise; + update(endpointName: string, resourceGroupName: string, workspaceName: string, body: PartialBatchEndpointPartialTrackedResource, options?: BatchEndpointsUpdateOptionalParams): Promise; +} + +// @public +export interface BatchEndpointsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BatchEndpointsCreateOrUpdateResponse = BatchEndpointTrackedResource; + +// @public +export interface BatchEndpointsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface BatchEndpointsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BatchEndpointsGetResponse = BatchEndpointTrackedResource; + +// @public +export interface BatchEndpointsListKeysOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BatchEndpointsListKeysResponse = EndpointAuthKeys; + +// @public +export interface BatchEndpointsListNextOptionalParams extends coreClient.OperationOptions { + count?: number; + skip?: string; +} + +// @public +export type BatchEndpointsListNextResponse = BatchEndpointTrackedResourceArmPaginatedResult; + +// @public +export interface BatchEndpointsListOptionalParams extends coreClient.OperationOptions { + count?: number; + skip?: string; +} + +// @public +export type BatchEndpointsListResponse = BatchEndpointTrackedResourceArmPaginatedResult; + +// @public +export interface BatchEndpointsUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BatchEndpointsUpdateResponse = BatchEndpointTrackedResource; + +// @public (undocumented) +export type BatchEndpointTrackedResource = TrackedResource & { + identity?: ResourceIdentity; + kind?: string; + properties: BatchEndpoint; + readonly systemData?: SystemData; +}; + +// @public +export interface BatchEndpointTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: BatchEndpointTrackedResource[]; +} + +// @public +export type BatchLoggingLevel = string; + +// @public +export type BatchOutputAction = string; + +// @public +export interface BatchOutputConfiguration { + appendRowFileName?: string; + outputAction?: BatchOutputAction; +} + +// @public +export interface BatchRetrySettings { + maxRetries?: number; + timeout?: string; +} + +// @public +export type BillingCurrency = string; + +// @public +export type CertificateDatastoreCredentials = DatastoreCredentials & { + credentialsType: "Certificate"; + authorityUrl?: string; + clientId: string; + resourceUri?: string; + secrets?: CertificateDatastoreSecrets; + tenantId: string; + thumbprint: string; +}; + +// @public +export type CertificateDatastoreSecrets = DatastoreSecrets & { + secretsType: "Certificate"; + certificate?: string; +}; + +// @public +export type ClusterPurpose = string; + +// @public +export interface ClusterUpdateParameters { + scaleSettings?: ScaleSettings; +} + +// @public (undocumented) +export type CocoExportSummary = ExportSummary & { + format: "Coco"; + readonly containerName?: string; + readonly snapshotPath?: string; +}; + +// @public +export interface CodeConfiguration { + codeId?: string; + scoringScript: string; +} + +// @public +export interface CodeContainer { + description?: string; + properties?: { + [propertyName: string]: string; + }; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export type CodeContainerResource = Resource & { + properties: CodeContainer; + readonly systemData?: SystemData; +}; + +// @public +export interface CodeContainerResourceArmPaginatedResult { + nextLink?: string; + value?: CodeContainerResource[]; +} + +// @public +export interface CodeContainers { + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: CodeContainerResource, options?: CodeContainersCreateOrUpdateOptionalParams): Promise; + delete(name: string, resourceGroupName: string, workspaceName: string, options?: CodeContainersDeleteOptionalParams): Promise; + get(name: string, resourceGroupName: string, workspaceName: string, options?: CodeContainersGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: CodeContainersListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface CodeContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CodeContainersCreateOrUpdateResponse = CodeContainerResource; + +// @public +export interface CodeContainersDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface CodeContainersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CodeContainersGetResponse = CodeContainerResource; + +// @public +export interface CodeContainersListNextOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type CodeContainersListNextResponse = CodeContainerResourceArmPaginatedResult; + +// @public +export interface CodeContainersListOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type CodeContainersListResponse = CodeContainerResourceArmPaginatedResult; + +// @public +export interface CodeVersion { + datastoreId?: string; + description?: string; + isAnonymous?: boolean; + path: string; + properties?: { + [propertyName: string]: string; + }; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export type CodeVersionResource = Resource & { + properties: CodeVersion; + readonly systemData?: SystemData; +}; + +// @public +export interface CodeVersionResourceArmPaginatedResult { + nextLink?: string; + value?: CodeVersionResource[]; +} + +// @public +export interface CodeVersions { + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: CodeVersionResource, options?: CodeVersionsCreateOrUpdateOptionalParams): Promise; + delete(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: CodeVersionsDeleteOptionalParams): Promise; + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: CodeVersionsGetOptionalParams): Promise; + list(name: string, resourceGroupName: string, workspaceName: string, options?: CodeVersionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface CodeVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CodeVersionsCreateOrUpdateResponse = CodeVersionResource; + +// @public +export interface CodeVersionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface CodeVersionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CodeVersionsGetResponse = CodeVersionResource; + +// @public +export interface CodeVersionsListNextOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type CodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult; + +// @public +export interface CodeVersionsListOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type CodeVersionsListResponse = CodeVersionResourceArmPaginatedResult; + +// @public +export type CommandJob = JobBase & { + jobType: "Command"; + codeId?: string; + command: string; + compute: ComputeConfiguration; + distribution?: DistributionConfigurationUnion; + environmentId?: string; + environmentVariables?: { + [propertyName: string]: string; + }; + experimentName?: string; + identity?: IdentityConfigurationUnion; + inputDataBindings?: { + [propertyName: string]: InputDataBinding; + }; + readonly output?: JobOutput; + outputDataBindings?: { + [propertyName: string]: OutputDataBinding; + }; + readonly parameters?: { + [propertyName: string]: any; + }; + priority?: number; + readonly status?: JobStatus; + timeout?: string; +}; + +// @public (undocumented) +export interface Components1D3SwueSchemasComputeresourceAllof1 { + properties?: ComputeUnion; +} + +// @public +export interface Compute { + computeLocation?: string; + computeType: "AKS" | "AmlCompute" | "ComputeInstance" | "VirtualMachine" | "HDInsight" | "DataFactory" | "Databricks" | "DataLakeAnalytics" | "SynapseSpark"; + readonly createdOn?: Date; + description?: string; + disableLocalAuth?: boolean; + readonly isAttachedCompute?: boolean; + readonly modifiedOn?: Date; + readonly provisioningErrors?: ErrorResponse[]; + readonly provisioningState?: ProvisioningState; + resourceId?: string; +} + +// @public +export interface ComputeConfiguration { + instanceCount?: number; + instanceType?: string; + isLocal?: boolean; + location?: string; + properties?: { + [propertyName: string]: string; + }; + target?: string; +} + +// @public +export interface ComputeCreateOrUpdateHeaders { + azureAsyncOperation?: string; +} + +// @public +export interface ComputeDeleteHeaders { + azureAsyncOperation?: string; + location?: string; +} + +// @public +export type ComputeInstance = Compute & { + computeType: "ComputeInstance"; + properties?: ComputeInstanceProperties; +}; + +// @public +export interface ComputeInstanceApplication { + displayName?: string; + endpointUri?: string; +} + +// @public +export type ComputeInstanceAuthorizationType = string; + +// @public +export interface ComputeInstanceConnectivityEndpoints { + readonly privateIpAddress?: string; + readonly publicIpAddress?: string; +} + +// @public +export interface ComputeInstanceCreatedBy { + readonly userId?: string; + readonly userName?: string; + readonly userOrgId?: string; +} + +// @public +export interface ComputeInstanceLastOperation { + operationName?: OperationName; + operationStatus?: OperationStatus; + operationTime?: Date; +} + +// @public +export interface ComputeInstanceProperties { + readonly applications?: ComputeInstanceApplication[]; + applicationSharingPolicy?: ApplicationSharingPolicy; + computeInstanceAuthorizationType?: ComputeInstanceAuthorizationType; + readonly connectivityEndpoints?: ComputeInstanceConnectivityEndpoints; + readonly createdBy?: ComputeInstanceCreatedBy; + readonly errors?: ErrorResponse[]; + readonly lastOperation?: ComputeInstanceLastOperation; + personalComputeInstanceSettings?: PersonalComputeInstanceSettings; + schedules?: ComputeSchedules; + setupScripts?: SetupScripts; + sshSettings?: ComputeInstanceSshSettings; + readonly state?: ComputeInstanceState; + subnet?: ResourceId; + vmSize?: string; +} + +// @public +export interface ComputeInstanceSshSettings { + adminPublicKey?: string; + readonly adminUserName?: string; + readonly sshPort?: number; + sshPublicAccess?: SshPublicAccess; +} + +// @public +export type ComputeInstanceState = string; + +// @public +export interface ComputeNodesInformation { + computeType: "AmlCompute"; + readonly nextLink?: string; +} + +// @public (undocumented) +export type ComputeNodesInformationUnion = ComputeNodesInformation | AmlComputeNodesInformation; + +// @public +export interface ComputeOperations { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ComputeResource, options?: ComputeOperationsCreateOrUpdateOptionalParams): Promise, ComputeOperationsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ComputeResource, options?: ComputeOperationsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, computeName: string, underlyingResourceAction: UnderlyingResourceAction, options?: ComputeOperationsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, computeName: string, underlyingResourceAction: UnderlyingResourceAction, options?: ComputeOperationsDeleteOptionalParams): Promise; + beginStart(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeOperationsStartOptionalParams): Promise, void>>; + beginStartAndWait(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeOperationsStartOptionalParams): Promise; + beginStop(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeOperationsStopOptionalParams): Promise, void>>; + beginStopAndWait(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeOperationsStopOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ClusterUpdateParameters, options?: ComputeOperationsUpdateOptionalParams): Promise, ComputeOperationsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ClusterUpdateParameters, options?: ComputeOperationsUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeOperationsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: ComputeOperationsListOptionalParams): PagedAsyncIterableIterator; + listKeys(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeOperationsListKeysOptionalParams): Promise; + listNodes(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeOperationsListNodesOptionalParams): PagedAsyncIterableIterator; + restart(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeOperationsRestartOptionalParams): Promise; + updateSchedules(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeOperationsUpdateSchedulesOptionalParams): Promise; +} + +// @public +export interface ComputeOperationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ComputeOperationsCreateOrUpdateResponse = ComputeResource; + +// @public +export interface ComputeOperationsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ComputeOperationsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ComputeOperationsGetResponse = ComputeResource; + +// @public +export interface ComputeOperationsListKeysOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ComputeOperationsListKeysResponse = ComputeSecretsUnion; + +// @public +export interface ComputeOperationsListNextOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type ComputeOperationsListNextResponse = PaginatedComputeResourcesList; + +// @public +export interface ComputeOperationsListNodesNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ComputeOperationsListNodesNextResponse = AmlComputeNodesInformation; + +// @public +export interface ComputeOperationsListNodesOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ComputeOperationsListNodesResponse = AmlComputeNodesInformation; + +// @public +export interface ComputeOperationsListOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type ComputeOperationsListResponse = PaginatedComputeResourcesList; + +// @public +export interface ComputeOperationsRestartOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ComputeOperationsStartOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ComputeOperationsStopOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ComputeOperationsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ComputeOperationsUpdateResponse = ComputeResource; + +// @public +export interface ComputeOperationsUpdateSchedulesOptionalParams extends coreClient.OperationOptions { + parameters?: ComputeSchedules; +} + +// @public +export type ComputePowerAction = string; + +// @public +export type ComputeResource = Resource & Components1D3SwueSchemasComputeresourceAllof1 & { + identity?: Identity; + location?: string; + tags?: { + [propertyName: string]: string; + }; + sku?: Sku; + readonly systemData?: SystemData; +}; + +// @public +export interface ComputeSchedules { + computeStartStop?: ComputeStartStopSchedule[]; +} + +// @public +export interface ComputeSecrets { + computeType: "AKS" | "VirtualMachine" | "Databricks"; +} + +// @public (undocumented) +export type ComputeSecretsUnion = ComputeSecrets | AksComputeSecrets | VirtualMachineSecrets | DatabricksComputeSecrets; + +// @public +export interface ComputeStartStopSchedule { + action?: ComputePowerAction; + cron?: Cron; + readonly id?: string; + readonly provisioningStatus?: ProvisioningStatus; + recurrence?: Recurrence; + status?: ScheduleStatus; + triggerType?: TriggerType; +} + +// @public +export type ComputeType = string; + +// @public (undocumented) +export type ComputeUnion = Compute | Aks | AmlCompute | ComputeInstance | VirtualMachine | HDInsight | DataFactory | Databricks | DataLakeAnalytics | SynapseSpark; + +// @public +export interface ContainerResourceRequirements { + cpu?: number; + cpuLimit?: number; + fpga?: number; + gpu?: number; + memoryInGB?: number; + memoryInGBLimit?: number; +} + +// @public +export type ContainerType = string; + +// @public +export type ContentsType = string; + +// @public (undocumented) +export interface CosmosDbSettings { + collectionsThroughput?: number; +} + +// @public +export type CreatedByType = string; + +// @public +export type CredentialsType = string; + +// @public +export interface Cron { + expression?: string; + startTime?: string; + timeZone?: string; +} + +// @public (undocumented) +export type CsvExportSummary = ExportSummary & { + format: "CSV"; + readonly containerName?: string; + readonly snapshotPath?: string; +}; + +// @public +export type DataBindingMode = string; + +// @public +export type Databricks = Compute & { + computeType: "Databricks"; + properties?: DatabricksProperties; +}; + +// @public +export type DatabricksComputeSecrets = ComputeSecrets & { + computeType: "Databricks"; + databricksAccessToken?: string; +}; + +// @public (undocumented) +export interface DatabricksProperties { + databricksAccessToken?: string; + workspaceUrl?: string; +} + +// @public +export interface DataContainer { + description?: string; + properties?: { + [propertyName: string]: string; + }; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export type DataContainerResource = Resource & { + properties: DataContainer; + readonly systemData?: SystemData; +}; + +// @public +export interface DataContainerResourceArmPaginatedResult { + nextLink?: string; + value?: DataContainerResource[]; +} + +// @public +export interface DataContainers { + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: DataContainerResource, options?: DataContainersCreateOrUpdateOptionalParams): Promise; + delete(name: string, resourceGroupName: string, workspaceName: string, options?: DataContainersDeleteOptionalParams): Promise; + get(name: string, resourceGroupName: string, workspaceName: string, options?: DataContainersGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: DataContainersListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface DataContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataContainersCreateOrUpdateResponse = DataContainerResource; + +// @public +export interface DataContainersDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface DataContainersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataContainersGetResponse = DataContainerResource; + +// @public +export interface DataContainersListNextOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type DataContainersListNextResponse = DataContainerResourceArmPaginatedResult; + +// @public +export interface DataContainersListOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type DataContainersListResponse = DataContainerResourceArmPaginatedResult; + +// @public +export type DataFactory = Compute & { + computeType: "DataFactory"; +}; + +// @public +export type DataLakeAnalytics = Compute & { + computeType: "DataLakeAnalytics"; + properties?: DataLakeAnalyticsProperties; +}; + +// @public (undocumented) +export interface DataLakeAnalyticsProperties { + dataLakeStoreAccountName?: string; +} + +// @public +export type DataPathAssetReference = AssetReferenceBase & { + referenceType: "DataPath"; + datastoreId?: string; + path?: string; +}; + +// @public (undocumented) +export type DatasetExportSummary = ExportSummary & { + format: "Dataset"; + readonly labeledAssetName?: string; +}; + +// @public +export type DatasetType = string; + +// @public +export interface DatastoreContents { + contentsType: "AzureBlob" | "AzureDataLakeGen1" | "AzureDataLakeGen2" | "AzureFile" | "AzurePostgreSql" | "AzureSqlDatabase" | "GlusterFs"; +} + +// @public (undocumented) +export type DatastoreContentsUnion = DatastoreContents | AzureBlobContents | AzureDataLakeGen1Contents | AzureDataLakeGen2Contents | AzureFileContents | AzurePostgreSqlContents | AzureSqlDatabaseContents | GlusterFsContents; + +// @public +export interface DatastoreCredentials { + credentialsType: "AccountKey" | "Certificate" | "None" | "Sas" | "ServicePrincipal" | "SqlAdmin"; +} + +// @public (undocumented) +export type DatastoreCredentialsUnion = DatastoreCredentials | AccountKeyDatastoreCredentials | CertificateDatastoreCredentials | NoneDatastoreCredentials | SasDatastoreCredentials | ServicePrincipalDatastoreCredentials | SqlAdminDatastoreCredentials; + +// @public +export interface DatastoreProperties { + contents: DatastoreContentsUnion; + description?: string; + readonly hasBeenValidated?: boolean; + isDefault?: boolean; + linkedInfo?: LinkedInfo; + properties?: { + [propertyName: string]: string; + }; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export type DatastorePropertiesResource = Resource & { + properties: DatastoreProperties; + readonly systemData?: SystemData; +}; + +// @public +export interface DatastorePropertiesResourceArmPaginatedResult { + nextLink?: string; + value?: DatastorePropertiesResource[]; +} + +// @public +export interface Datastores { + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: DatastorePropertiesResource, options?: DatastoresCreateOrUpdateOptionalParams): Promise; + delete(name: string, resourceGroupName: string, workspaceName: string, options?: DatastoresDeleteOptionalParams): Promise; + get(name: string, resourceGroupName: string, workspaceName: string, options?: DatastoresGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: DatastoresListOptionalParams): PagedAsyncIterableIterator; + listSecrets(name: string, resourceGroupName: string, workspaceName: string, options?: DatastoresListSecretsOptionalParams): Promise; +} + +// @public +export interface DatastoresCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + skipValidation?: boolean; +} + +// @public +export type DatastoresCreateOrUpdateResponse = DatastorePropertiesResource; + +// @public +export interface DatastoresDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface DatastoreSecrets { + secretsType: "AccountKey" | "Certificate" | "None" | "Sas" | "ServicePrincipal" | "SqlAdmin"; +} + +// @public (undocumented) +export type DatastoreSecretsUnion = DatastoreSecrets | AccountKeyDatastoreSecrets | CertificateDatastoreSecrets | NoneDatastoreSecrets | SasDatastoreSecrets | ServicePrincipalDatastoreSecrets | SqlAdminDatastoreSecrets; + +// @public +export interface DatastoresGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatastoresGetResponse = DatastorePropertiesResource; + +// @public +export interface DatastoresListNextOptionalParams extends coreClient.OperationOptions { + count?: number; + isDefault?: boolean; + names?: string[]; + orderBy?: string; + orderByAsc?: boolean; + searchText?: string; + skip?: string; +} + +// @public +export type DatastoresListNextResponse = DatastorePropertiesResourceArmPaginatedResult; + +// @public +export interface DatastoresListOptionalParams extends coreClient.OperationOptions { + count?: number; + isDefault?: boolean; + names?: string[]; + orderBy?: string; + orderByAsc?: boolean; + searchText?: string; + skip?: string; +} + +// @public +export type DatastoresListResponse = DatastorePropertiesResourceArmPaginatedResult; + +// @public +export interface DatastoresListSecretsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatastoresListSecretsResponse = DatastoreSecretsUnion; + +// @public +export interface DataVersion { + datasetType?: DatasetType; + datastoreId?: string; + description?: string; + isAnonymous?: boolean; + path: string; + properties?: { + [propertyName: string]: string; + }; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export type DataVersionResource = Resource & { + properties: DataVersion; + readonly systemData?: SystemData; +}; + +// @public +export interface DataVersionResourceArmPaginatedResult { + nextLink?: string; + value?: DataVersionResource[]; +} + +// @public +export interface DataVersions { + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: DataVersionResource, options?: DataVersionsCreateOrUpdateOptionalParams): Promise; + delete(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: DataVersionsDeleteOptionalParams): Promise; + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: DataVersionsGetOptionalParams): Promise; + list(name: string, resourceGroupName: string, workspaceName: string, options?: DataVersionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface DataVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataVersionsCreateOrUpdateResponse = DataVersionResource; + +// @public +export interface DataVersionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface DataVersionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataVersionsGetResponse = DataVersionResource; + +// @public +export interface DataVersionsListNextOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + tags?: string; + top?: number; +} + +// @public +export type DataVersionsListNextResponse = DataVersionResourceArmPaginatedResult; + +// @public +export interface DataVersionsListOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + tags?: string; + top?: number; +} + +// @public +export type DataVersionsListResponse = DataVersionResourceArmPaginatedResult; + +// @public +export type DaysOfWeek = "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday"; + +// @public (undocumented) +export interface DeploymentLogs { + content?: string; +} + +// @public (undocumented) +export interface DeploymentLogsRequest { + containerType?: ContainerType; + tail?: number; +} + +// @public +export type DeploymentProvisioningState = string; + +// @public +export interface DistributionConfiguration { + distributionType: "Mpi" | "PyTorch" | "TensorFlow"; +} + +// @public (undocumented) +export type DistributionConfigurationUnion = DistributionConfiguration | Mpi | PyTorch | TensorFlow; + +// @public +export type DistributionType = string; + +// @public +export type DockerBuild = DockerSpecification & { + dockerSpecificationType: "Build"; + context?: string; + dockerfile: string; +}; + +// @public +export type DockerImage = DockerSpecification & { + dockerSpecificationType: "Image"; + dockerImageUri: string; +}; + +// @public (undocumented) +export interface DockerImagePlatform { + operatingSystemType?: OperatingSystemType; +} + +// @public +export interface DockerSpecification { + dockerSpecificationType: "Build" | "Image"; + platform?: DockerImagePlatform; +} + +// @public +export type DockerSpecificationType = string; + +// @public (undocumented) +export type DockerSpecificationUnion = DockerSpecification | DockerBuild | DockerImage; + +// @public +export interface EarlyTerminationPolicy { + delayEvaluation?: number; + evaluationInterval?: number; + policyType: "Bandit" | "MedianStopping" | "TruncationSelection"; +} + +// @public +export type EarlyTerminationPolicyType = string; + +// @public (undocumented) +export type EarlyTerminationPolicyUnion = EarlyTerminationPolicy | BanditPolicy | MedianStoppingPolicy | TruncationSelectionPolicy; + +// @public (undocumented) +export interface EncryptionProperty { + identity?: IdentityForCmk; + keyVaultProperties: KeyVaultProperties; + status: EncryptionStatus; +} + +// @public +export type EncryptionStatus = string; + +// @public +export interface EndpointAuthKeys { + primaryKey?: string; + secondaryKey?: string; +} + +// @public +export type EndpointAuthMode = string; + +// @public +export interface EndpointAuthToken { + accessToken?: string; + expiryTimeUtc?: number; + refreshAfterTimeUtc?: number; + tokenType?: string; +} + +// @public +export type EndpointComputeType = string; + +// @public +export type EndpointProvisioningState = string; + +// @public +export interface EnvironmentContainer { + description?: string; + properties?: { + [propertyName: string]: string; + }; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export type EnvironmentContainerResource = Resource & { + properties: EnvironmentContainer; + readonly systemData?: SystemData; +}; + +// @public +export interface EnvironmentContainerResourceArmPaginatedResult { + nextLink?: string; + value?: EnvironmentContainerResource[]; +} + +// @public +export interface EnvironmentContainers { + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: EnvironmentContainerResource, options?: EnvironmentContainersCreateOrUpdateOptionalParams): Promise; + delete(name: string, resourceGroupName: string, workspaceName: string, options?: EnvironmentContainersDeleteOptionalParams): Promise; + get(name: string, resourceGroupName: string, workspaceName: string, options?: EnvironmentContainersGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: EnvironmentContainersListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface EnvironmentContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type EnvironmentContainersCreateOrUpdateResponse = EnvironmentContainerResource; + +// @public +export interface EnvironmentContainersDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface EnvironmentContainersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type EnvironmentContainersGetResponse = EnvironmentContainerResource; + +// @public +export interface EnvironmentContainersListNextOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type EnvironmentContainersListNextResponse = EnvironmentContainerResourceArmPaginatedResult; + +// @public +export interface EnvironmentContainersListOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type EnvironmentContainersListResponse = EnvironmentContainerResourceArmPaginatedResult; + +// @public +export type EnvironmentSpecificationType = string; + +// @public +export interface EnvironmentSpecificationVersion { + condaFile?: string; + description?: string; + docker?: DockerSpecificationUnion; + readonly environmentSpecificationType?: EnvironmentSpecificationType; + inferenceContainerProperties?: InferenceContainerProperties; + isAnonymous?: boolean; + properties?: { + [propertyName: string]: string; + }; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export type EnvironmentSpecificationVersionResource = Resource & { + properties: EnvironmentSpecificationVersion; + readonly systemData?: SystemData; +}; + +// @public +export interface EnvironmentSpecificationVersionResourceArmPaginatedResult { + nextLink?: string; + value?: EnvironmentSpecificationVersionResource[]; +} + +// @public +export interface EnvironmentSpecificationVersions { + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: EnvironmentSpecificationVersionResource, options?: EnvironmentSpecificationVersionsCreateOrUpdateOptionalParams): Promise; + delete(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: EnvironmentSpecificationVersionsDeleteOptionalParams): Promise; + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: EnvironmentSpecificationVersionsGetOptionalParams): Promise; + list(name: string, resourceGroupName: string, workspaceName: string, options?: EnvironmentSpecificationVersionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface EnvironmentSpecificationVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type EnvironmentSpecificationVersionsCreateOrUpdateResponse = EnvironmentSpecificationVersionResource; + +// @public +export interface EnvironmentSpecificationVersionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface EnvironmentSpecificationVersionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type EnvironmentSpecificationVersionsGetResponse = EnvironmentSpecificationVersionResource; + +// @public +export interface EnvironmentSpecificationVersionsListNextOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type EnvironmentSpecificationVersionsListNextResponse = EnvironmentSpecificationVersionResourceArmPaginatedResult; + +// @public +export interface EnvironmentSpecificationVersionsListOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type EnvironmentSpecificationVersionsListResponse = EnvironmentSpecificationVersionResourceArmPaginatedResult; + +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + +// @public +export interface ErrorResponse { + error?: ErrorDetail; +} + +// @public +export interface EstimatedVMPrice { + osType: VMPriceOSType; + retailPrice: number; + vmTier: VMTier; +} + +// @public +export interface EstimatedVMPrices { + billingCurrency: BillingCurrency; + unitOfMeasure: UnitOfMeasure; + values: EstimatedVMPrice[]; +} + +// @public +export type ExportFormatType = string; + +// @public (undocumented) +export interface ExportSummary { + readonly endTimeUtc?: Date; + readonly exportedRowCount?: number; + format: "Coco" | "CSV" | "Dataset"; + readonly labelingJobId?: string; + readonly startTimeUtc?: Date; +} + +// @public (undocumented) +export type ExportSummaryUnion = ExportSummary | CocoExportSummary | CsvExportSummary | DatasetExportSummary; + +// @public (undocumented) +export interface FlavorData { + data?: { + [propertyName: string]: string; + }; +} + +// @public +export type GlusterFsContents = DatastoreContents & { + contentsType: "GlusterFs"; + serverAddress: string; + volumeName: string; +}; + +// @public +export type Goal = string; + +// @public +export type HDInsight = Compute & { + computeType: "HDInsight"; + properties?: HDInsightProperties; +}; + +// @public (undocumented) +export interface HDInsightProperties { + address?: string; + administratorAccount?: VirtualMachineSshCredentials; + sshPort?: number; +} + +// @public +export type IdAssetReference = AssetReferenceBase & { + referenceType: "Id"; + assetId: string; +}; + +// @public +export interface Identity { + readonly principalId?: string; + readonly tenantId?: string; + type?: ResourceIdentityType; + userAssignedIdentities?: { + [propertyName: string]: UserAssignedIdentity; + }; +} + +// @public +export interface IdentityConfiguration { + identityType: "AMLToken" | "Managed"; +} + +// @public +export type IdentityConfigurationType = string; + +// @public (undocumented) +export type IdentityConfigurationUnion = IdentityConfiguration | AmlToken | ManagedIdentity; + +// @public +export interface IdentityForCmk { + userAssignedIdentity?: string; +} + +// @public +export type ImageAnnotationType = string; + +// @public (undocumented) +export interface InferenceContainerProperties { + livenessRoute?: Route; + readinessRoute?: Route; + scoringRoute?: Route; +} + +// @public (undocumented) +export interface InputDataBinding { + dataId?: string; + mode?: DataBindingMode; + pathOnCompute?: string; +} + +// @public +export interface JobBase { + description?: string; + readonly interactionEndpoints?: { + [propertyName: string]: JobEndpoint; + }; + jobType: "Command" | "Sweep"; + properties?: { + [propertyName: string]: string; + }; + readonly provisioningState?: JobProvisioningState; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export type JobBaseResource = Resource & { + properties: JobBaseUnion; + readonly systemData?: SystemData; +}; + +// @public +export interface JobBaseResourceArmPaginatedResult { + nextLink?: string; + value?: JobBaseResource[]; +} + +// @public (undocumented) +export type JobBaseUnion = JobBase | CommandJob | SweepJob; + +// @public +export interface JobEndpoint { + endpoint?: string; + jobEndpointType?: string; + port?: number; + properties?: { + [propertyName: string]: string; + }; +} + +// @public +export interface JobOutput { + readonly datastoreId?: string; + readonly path?: string; +} + +// @public +export type JobProvisioningState = string; + +// @public +export interface Jobs { + beginDelete(id: string, resourceGroupName: string, workspaceName: string, options?: JobsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(id: string, resourceGroupName: string, workspaceName: string, options?: JobsDeleteOptionalParams): Promise; + cancel(id: string, resourceGroupName: string, workspaceName: string, options?: JobsCancelOptionalParams): Promise; + createOrUpdate(id: string, resourceGroupName: string, workspaceName: string, body: JobBaseResource, options?: JobsCreateOrUpdateOptionalParams): Promise; + get(id: string, resourceGroupName: string, workspaceName: string, options?: JobsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: JobsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface JobsCancelOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface JobsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type JobsCreateOrUpdateResponse = JobBaseResource; + +// @public +export interface JobsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface JobsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface JobsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type JobsGetResponse = JobBaseResource; + +// @public +export interface JobsListNextOptionalParams extends coreClient.OperationOptions { + jobType?: string; + skip?: string; + tag?: string; + tags?: string; +} + +// @public +export type JobsListNextResponse = JobBaseResourceArmPaginatedResult; + +// @public +export interface JobsListOptionalParams extends coreClient.OperationOptions { + jobType?: string; + skip?: string; + tag?: string; + tags?: string; +} + +// @public +export type JobsListResponse = JobBaseResourceArmPaginatedResult; + +// @public +export type JobStatus = string; + +// @public +export type JobType = string; + +// @public (undocumented) +export type K8SOnlineDeployment = OnlineDeployment & { + endpointComputeType: "K8S"; + containerResourceRequirements?: ContainerResourceRequirements; +}; + +// @public +export type KeyType = string; + +// @public (undocumented) +export interface KeyVaultProperties { + identityClientId?: string; + keyIdentifier: string; + keyVaultArmId: string; +} + +// @public +export const enum KnownAllocationState { + // (undocumented) + Resizing = "Resizing", + // (undocumented) + Steady = "Steady" +} + +// @public +export const enum KnownApplicationSharingPolicy { + // (undocumented) + Personal = "Personal", + // (undocumented) + Shared = "Shared" +} + +// @public +export const enum KnownBatchLoggingLevel { + // (undocumented) + Debug = "Debug", + // (undocumented) + Info = "Info", + // (undocumented) + Warning = "Warning" +} + +// @public +export const enum KnownBatchOutputAction { + // (undocumented) + AppendRow = "AppendRow", + // (undocumented) + SummaryOnly = "SummaryOnly" +} + +// @public +export const enum KnownBillingCurrency { + // (undocumented) + USD = "USD" +} + +// @public +export const enum KnownClusterPurpose { + // (undocumented) + DenseProd = "DenseProd", + // (undocumented) + DevTest = "DevTest", + // (undocumented) + FastProd = "FastProd" +} + +// @public +export const enum KnownComputeInstanceAuthorizationType { + // (undocumented) + Personal = "personal" +} + +// @public +export const enum KnownComputeInstanceState { + // (undocumented) + CreateFailed = "CreateFailed", + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + JobRunning = "JobRunning", + // (undocumented) + Restarting = "Restarting", + // (undocumented) + Running = "Running", + // (undocumented) + SettingUp = "SettingUp", + // (undocumented) + SetupFailed = "SetupFailed", + // (undocumented) + Starting = "Starting", + // (undocumented) + Stopped = "Stopped", + // (undocumented) + Stopping = "Stopping", + // (undocumented) + Unknown = "Unknown", + // (undocumented) + Unusable = "Unusable", + // (undocumented) + UserSettingUp = "UserSettingUp", + // (undocumented) + UserSetupFailed = "UserSetupFailed" +} + +// @public +export const enum KnownComputePowerAction { + // (undocumented) + Start = "Start", + // (undocumented) + Stop = "Stop" +} + +// @public +export const enum KnownComputeType { + // (undocumented) + AKS = "AKS", + // (undocumented) + AmlCompute = "AmlCompute", + // (undocumented) + ComputeInstance = "ComputeInstance", + // (undocumented) + Databricks = "Databricks", + // (undocumented) + DataFactory = "DataFactory", + // (undocumented) + DataLakeAnalytics = "DataLakeAnalytics", + // (undocumented) + HDInsight = "HDInsight", + // (undocumented) + SynapseSpark = "SynapseSpark", + // (undocumented) + VirtualMachine = "VirtualMachine" +} + +// @public +export const enum KnownContainerType { + // (undocumented) + InferenceServer = "InferenceServer", + // (undocumented) + StorageInitializer = "StorageInitializer" +} + +// @public +export const enum KnownContentsType { + // (undocumented) + AzureBlob = "AzureBlob", + // (undocumented) + AzureDataLakeGen1 = "AzureDataLakeGen1", + // (undocumented) + AzureDataLakeGen2 = "AzureDataLakeGen2", + // (undocumented) + AzureFile = "AzureFile", + // (undocumented) + AzureMySql = "AzureMySql", + // (undocumented) + AzurePostgreSql = "AzurePostgreSql", + // (undocumented) + AzureSqlDatabase = "AzureSqlDatabase", + // (undocumented) + GlusterFs = "GlusterFs" +} + +// @public +export const enum KnownCreatedByType { + // (undocumented) + Application = "Application", + // (undocumented) + Key = "Key", + // (undocumented) + ManagedIdentity = "ManagedIdentity", + // (undocumented) + User = "User" +} + +// @public +export const enum KnownCredentialsType { + // (undocumented) + AccountKey = "AccountKey", + // (undocumented) + Certificate = "Certificate", + // (undocumented) + None = "None", + // (undocumented) + Sas = "Sas", + // (undocumented) + ServicePrincipal = "ServicePrincipal", + // (undocumented) + SqlAdmin = "SqlAdmin" +} + +// @public +export const enum KnownDataBindingMode { + // (undocumented) + Download = "Download", + // (undocumented) + Mount = "Mount", + // (undocumented) + Upload = "Upload" +} + +// @public +export const enum KnownDatasetType { + // (undocumented) + Dataflow = "Dataflow", + // (undocumented) + Simple = "Simple" +} + +// @public +export const enum KnownDeploymentProvisioningState { + // (undocumented) + Canceled = "Canceled", + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Failed = "Failed", + // (undocumented) + Scaling = "Scaling", + // (undocumented) + Succeeded = "Succeeded", + // (undocumented) + Updating = "Updating" +} + +// @public +export const enum KnownDistributionType { + // (undocumented) + Mpi = "Mpi", + // (undocumented) + PyTorch = "PyTorch", + // (undocumented) + TensorFlow = "TensorFlow" +} + +// @public +export const enum KnownDockerSpecificationType { + // (undocumented) + Build = "Build", + // (undocumented) + Image = "Image" +} + +// @public +export const enum KnownEarlyTerminationPolicyType { + // (undocumented) + Bandit = "Bandit", + // (undocumented) + MedianStopping = "MedianStopping", + // (undocumented) + TruncationSelection = "TruncationSelection" +} + +// @public +export const enum KnownEncryptionStatus { + // (undocumented) + Disabled = "Disabled", + // (undocumented) + Enabled = "Enabled" +} + +// @public +export const enum KnownEndpointAuthMode { + // (undocumented) + AADToken = "AADToken", + // (undocumented) + AMLToken = "AMLToken", + // (undocumented) + Key = "Key" +} + +// @public +export const enum KnownEndpointComputeType { + // (undocumented) + AzureMLCompute = "AzureMLCompute", + // (undocumented) + K8S = "K8S", + // (undocumented) + Managed = "Managed" +} + +// @public +export const enum KnownEndpointProvisioningState { + // (undocumented) + Canceled = "Canceled", + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Failed = "Failed", + // (undocumented) + Succeeded = "Succeeded", + // (undocumented) + Updating = "Updating" +} + +// @public +export const enum KnownEnvironmentSpecificationType { + // (undocumented) + Curated = "Curated", + // (undocumented) + UserCreated = "UserCreated" +} + +// @public +export const enum KnownExportFormatType { + // (undocumented) + Coco = "Coco", + // (undocumented) + CSV = "CSV", + // (undocumented) + Dataset = "Dataset" +} + +// @public +export const enum KnownGoal { + // (undocumented) + Maximize = "Maximize", + // (undocumented) + Minimize = "Minimize" +} + +// @public +export const enum KnownIdentityConfigurationType { + // (undocumented) + AMLToken = "AMLToken", + // (undocumented) + Managed = "Managed" +} + +// @public +export const enum KnownImageAnnotationType { + // (undocumented) + BoundingBox = "BoundingBox", + // (undocumented) + Classification = "Classification", + // (undocumented) + InstanceSegmentation = "InstanceSegmentation" +} + +// @public +export const enum KnownJobProvisioningState { + // (undocumented) + Canceled = "Canceled", + // (undocumented) + Failed = "Failed", + // (undocumented) + InProgress = "InProgress", + // (undocumented) + Succeeded = "Succeeded" +} + +// @public +export const enum KnownJobStatus { + // (undocumented) + Canceled = "Canceled", + // (undocumented) + CancelRequested = "CancelRequested", + // (undocumented) + Completed = "Completed", + // (undocumented) + Failed = "Failed", + // (undocumented) + Finalizing = "Finalizing", + // (undocumented) + NotResponding = "NotResponding", + // (undocumented) + NotStarted = "NotStarted", + // (undocumented) + Paused = "Paused", + // (undocumented) + Preparing = "Preparing", + // (undocumented) + Provisioning = "Provisioning", + // (undocumented) + Queued = "Queued", + // (undocumented) + Running = "Running", + // (undocumented) + Starting = "Starting", + // (undocumented) + Unknown = "Unknown" +} + +// @public +export const enum KnownJobType { + // (undocumented) + Command = "Command", + // (undocumented) + Labeling = "Labeling", + // (undocumented) + Sweep = "Sweep" +} + +// @public +export const enum KnownKeyType { + // (undocumented) + Primary = "Primary", + // (undocumented) + Secondary = "Secondary" +} + +// @public +export const enum KnownLoadBalancerType { + // (undocumented) + InternalLoadBalancer = "InternalLoadBalancer", + // (undocumented) + PublicIp = "PublicIp" +} + +// @public +export const enum KnownMediaType { + // (undocumented) + Image = "Image", + // (undocumented) + Text = "Text" +} + +// @public +export const enum KnownNodeState { + // (undocumented) + Idle = "idle", + // (undocumented) + Leaving = "leaving", + // (undocumented) + Preempted = "preempted", + // (undocumented) + Preparing = "preparing", + // (undocumented) + Running = "running", + // (undocumented) + Unusable = "unusable" +} + +// @public +export const enum KnownOperatingSystemType { + // (undocumented) + Linux = "Linux", + // (undocumented) + Windows = "Windows" +} + +// @public +export const enum KnownOperationName { + // (undocumented) + Create = "Create", + // (undocumented) + Delete = "Delete", + // (undocumented) + Reimage = "Reimage", + // (undocumented) + Restart = "Restart", + // (undocumented) + Start = "Start", + // (undocumented) + Stop = "Stop" +} + +// @public +export const enum KnownOperationStatus { + // (undocumented) + CreateFailed = "CreateFailed", + // (undocumented) + DeleteFailed = "DeleteFailed", + // (undocumented) + InProgress = "InProgress", + // (undocumented) + ReimageFailed = "ReimageFailed", + // (undocumented) + RestartFailed = "RestartFailed", + // (undocumented) + StartFailed = "StartFailed", + // (undocumented) + StopFailed = "StopFailed", + // (undocumented) + Succeeded = "Succeeded" +} + +// @public +export const enum KnownOrderString { + // (undocumented) + CreatedAtAsc = "CreatedAtAsc", + // (undocumented) + CreatedAtDesc = "CreatedAtDesc", + // (undocumented) + UpdatedAtAsc = "UpdatedAtAsc", + // (undocumented) + UpdatedAtDesc = "UpdatedAtDesc" +} + +// @public +export const enum KnownOriginType { + // (undocumented) + Synapse = "Synapse" +} + +// @public +export const enum KnownOsType { + // (undocumented) + Linux = "Linux", + // (undocumented) + Windows = "Windows" +} + +// @public +export const enum KnownPrivateEndpointConnectionProvisioningState { + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Failed = "Failed", + // (undocumented) + Succeeded = "Succeeded" +} + +// @public +export const enum KnownPrivateEndpointServiceConnectionStatus { + // (undocumented) + Approved = "Approved", + // (undocumented) + Disconnected = "Disconnected", + // (undocumented) + Pending = "Pending", + // (undocumented) + Rejected = "Rejected", + // (undocumented) + Timeout = "Timeout" +} + +// @public +export const enum KnownProvisioningState { + // (undocumented) + Canceled = "Canceled", + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Failed = "Failed", + // (undocumented) + Succeeded = "Succeeded", + // (undocumented) + Unknown = "Unknown", + // (undocumented) + Updating = "Updating" +} + +// @public +export const enum KnownProvisioningStatus { + // (undocumented) + Completed = "Completed", + // (undocumented) + Failed = "Failed", + // (undocumented) + Provisioning = "Provisioning" +} + +// @public +export const enum KnownQuotaUnit { + // (undocumented) + Count = "Count" +} + +// @public +export const enum KnownReasonCode { + // (undocumented) + NotAvailableForRegion = "NotAvailableForRegion", + // (undocumented) + NotAvailableForSubscription = "NotAvailableForSubscription", + // (undocumented) + NotSpecified = "NotSpecified" +} + +// @public +export const enum KnownRecurrenceFrequency { + // (undocumented) + Day = "Day", + // (undocumented) + Hour = "Hour", + // (undocumented) + Minute = "Minute", + // (undocumented) + Month = "Month", + // (undocumented) + NotSpecified = "NotSpecified", + // (undocumented) + Second = "Second", + // (undocumented) + Week = "Week", + // (undocumented) + Year = "Year" +} + +// @public +export const enum KnownReferenceType { + // (undocumented) + DataPath = "DataPath", + // (undocumented) + Id = "Id", + // (undocumented) + OutputPath = "OutputPath" +} + +// @public +export const enum KnownRemoteLoginPortPublicAccess { + // (undocumented) + Disabled = "Disabled", + // (undocumented) + Enabled = "Enabled", + // (undocumented) + NotSpecified = "NotSpecified" +} + +// @public +export const enum KnownResourceIdentityAssignment { + // (undocumented) + None = "None", + // (undocumented) + SystemAssigned = "SystemAssigned", + // (undocumented) + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", + // (undocumented) + UserAssigned = "UserAssigned" +} + +// @public +export const enum KnownSamplingAlgorithm { + // (undocumented) + Bayesian = "Bayesian", + // (undocumented) + Grid = "Grid", + // (undocumented) + Random = "Random" +} + +// @public +export const enum KnownScaleType { + // (undocumented) + Auto = "Auto", + // (undocumented) + Manual = "Manual" +} + +// @public +export const enum KnownScheduleStatus { + // (undocumented) + Disabled = "Disabled", + // (undocumented) + Enabled = "Enabled" +} + +// @public +export const enum KnownScheduleType { + // (undocumented) + ComputeStartStop = "ComputeStartStop" +} + +// @public +export const enum KnownSecretsType { + // (undocumented) + AccountKey = "AccountKey", + // (undocumented) + Certificate = "Certificate", + // (undocumented) + None = "None", + // (undocumented) + Sas = "Sas", + // (undocumented) + ServicePrincipal = "ServicePrincipal", + // (undocumented) + SqlAdmin = "SqlAdmin" +} + +// @public +export const enum KnownSshPublicAccess { + // (undocumented) + Disabled = "Disabled", + // (undocumented) + Enabled = "Enabled" +} + +// @public +export const enum KnownSslConfigurationStatus { + // (undocumented) + Auto = "Auto", + // (undocumented) + Disabled = "Disabled", + // (undocumented) + Enabled = "Enabled" +} + +// @public +export const enum KnownStatus { + // (undocumented) + Failure = "Failure", + // (undocumented) + InvalidQuotaBelowClusterMinimum = "InvalidQuotaBelowClusterMinimum", + // (undocumented) + InvalidQuotaExceedsSubscriptionLimit = "InvalidQuotaExceedsSubscriptionLimit", + // (undocumented) + InvalidVMFamilyName = "InvalidVMFamilyName", + // (undocumented) + OperationNotEnabledForRegion = "OperationNotEnabledForRegion", + // (undocumented) + OperationNotSupportedForSku = "OperationNotSupportedForSku", + // (undocumented) + Success = "Success", + // (undocumented) + Undefined = "Undefined" +} + +// @public +export const enum KnownStatusMessageLevel { + // (undocumented) + Error = "Error", + // (undocumented) + Information = "Information", + // (undocumented) + Warning = "Warning" +} + +// @public +export const enum KnownTextAnnotationType { + // (undocumented) + Classification = "Classification" +} + +// @public +export const enum KnownTriggerType { + // (undocumented) + Cron = "Cron", + // (undocumented) + Recurrence = "Recurrence" +} + +// @public +export const enum KnownUnderlyingResourceAction { + // (undocumented) + Delete = "Delete", + // (undocumented) + Detach = "Detach" +} + +// @public +export const enum KnownUnitOfMeasure { + // (undocumented) + OneHour = "OneHour" +} + +// @public +export const enum KnownUsageUnit { + // (undocumented) + Count = "Count" +} + +// @public +export const enum KnownValueFormat { + // (undocumented) + Json = "JSON" +} + +// @public +export const enum KnownVMPriceOSType { + // (undocumented) + Linux = "Linux", + // (undocumented) + Windows = "Windows" +} + +// @public +export const enum KnownVmPriority { + // (undocumented) + Dedicated = "Dedicated", + // (undocumented) + LowPriority = "LowPriority" +} + +// @public +export const enum KnownVMTier { + // (undocumented) + LowPriority = "LowPriority", + // (undocumented) + Spot = "Spot", + // (undocumented) + Standard = "Standard" +} + +// @public +export interface LabelCategory { + allowMultiSelect?: boolean; + classes?: { + [propertyName: string]: LabelClass; + }; + displayName?: string; +} + +// @public +export interface LabelClass { + displayName?: string; + subclasses?: { + [propertyName: string]: LabelClass; + }; +} + +// @public +export interface LabelingDatasetConfiguration { + assetName?: string; + datasetVersion?: string; + incrementalDatasetRefreshEnabled?: boolean; +} + +// @public +export interface LabelingJob { + readonly createdTimeUtc?: Date; + datasetConfiguration?: LabelingDatasetConfiguration; + description?: string; + readonly interactionEndpoints?: { + [propertyName: string]: JobEndpoint; + }; + jobInstructions?: LabelingJobInstructions; + jobType: JobType; + labelCategories?: { + [propertyName: string]: LabelCategory; + }; + labelingJobMediaProperties?: LabelingJobMediaPropertiesUnion; + mlAssistConfiguration?: MLAssistConfiguration; + readonly progressMetrics?: ProgressMetrics; + readonly projectId?: string; + properties?: { + [propertyName: string]: string; + }; + readonly provisioningState?: JobProvisioningState; + readonly status?: JobStatus; + readonly statusMessages?: StatusMessage[]; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export type LabelingJobImageProperties = LabelingJobMediaProperties & { + mediaType: "Image"; + annotationType?: ImageAnnotationType; +}; + +// @public +export interface LabelingJobInstructions { + uri?: string; +} + +// @public +export interface LabelingJobMediaProperties { + mediaType: "Image" | "Text"; +} + +// @public (undocumented) +export type LabelingJobMediaPropertiesUnion = LabelingJobMediaProperties | LabelingJobImageProperties | LabelingJobTextProperties; + +// @public +export type LabelingJobResource = Resource & { + properties: LabelingJob; + readonly systemData?: SystemData; +}; + +// @public +export interface LabelingJobResourceArmPaginatedResult { + nextLink?: string; + value?: LabelingJobResource[]; +} + +// @public +export interface LabelingJobs { + beginCreateOrUpdate(id: string, resourceGroupName: string, workspaceName: string, body: LabelingJobResource, options?: LabelingJobsCreateOrUpdateOptionalParams): Promise, LabelingJobsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(id: string, resourceGroupName: string, workspaceName: string, body: LabelingJobResource, options?: LabelingJobsCreateOrUpdateOptionalParams): Promise; + beginExportLabels(id: string, resourceGroupName: string, workspaceName: string, body: ExportSummaryUnion, options?: LabelingJobsExportLabelsOptionalParams): Promise, LabelingJobsExportLabelsResponse>>; + beginExportLabelsAndWait(id: string, resourceGroupName: string, workspaceName: string, body: ExportSummaryUnion, options?: LabelingJobsExportLabelsOptionalParams): Promise; + beginResume(id: string, resourceGroupName: string, workspaceName: string, options?: LabelingJobsResumeOptionalParams): Promise, void>>; + beginResumeAndWait(id: string, resourceGroupName: string, workspaceName: string, options?: LabelingJobsResumeOptionalParams): Promise; + delete(id: string, resourceGroupName: string, workspaceName: string, options?: LabelingJobsDeleteOptionalParams): Promise; + get(id: string, resourceGroupName: string, workspaceName: string, options?: LabelingJobsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: LabelingJobsListOptionalParams): PagedAsyncIterableIterator; + pause(id: string, resourceGroupName: string, workspaceName: string, options?: LabelingJobsPauseOptionalParams): Promise; +} + +// @public +export interface LabelingJobsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface LabelingJobsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type LabelingJobsCreateOrUpdateResponse = LabelingJobResource; + +// @public +export interface LabelingJobsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface LabelingJobsExportLabelsHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface LabelingJobsExportLabelsOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type LabelingJobsExportLabelsResponse = ExportSummaryUnion; + +// @public +export interface LabelingJobsGetOptionalParams extends coreClient.OperationOptions { + includeJobInstructions?: boolean; + includeLabelCategories?: boolean; +} + +// @public +export type LabelingJobsGetResponse = LabelingJobResource; + +// @public +export interface LabelingJobsListNextOptionalParams extends coreClient.OperationOptions { + count?: number; + skip?: string; +} + +// @public +export type LabelingJobsListNextResponse = LabelingJobResourceArmPaginatedResult; + +// @public +export interface LabelingJobsListOptionalParams extends coreClient.OperationOptions { + count?: number; + skip?: string; +} + +// @public +export type LabelingJobsListResponse = LabelingJobResourceArmPaginatedResult; + +// @public +export interface LabelingJobsPauseOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface LabelingJobsResumeHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface LabelingJobsResumeOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type LabelingJobTextProperties = LabelingJobMediaProperties & { + mediaType: "Text"; + annotationType?: TextAnnotationType; +}; + +// @public +export interface LinkedInfo { + linkedId?: string; + linkedResourceName?: string; + origin?: OriginType; +} + +// @public +export interface ListAmlUserFeatureResult { + readonly nextLink?: string; + readonly value?: AmlUserFeature[]; +} + +// @public (undocumented) +export interface ListNotebookKeysResult { + readonly primaryAccessKey?: string; + readonly secondaryAccessKey?: string; +} + +// @public (undocumented) +export interface ListStorageAccountKeysResult { + readonly userStorageKey?: string; +} + +// @public +export interface ListUsagesResult { + readonly nextLink?: string; + readonly value?: Usage[]; +} + +// @public (undocumented) +export interface ListWorkspaceKeysResult { + readonly appInsightsInstrumentationKey?: string; + readonly containerRegistryCredentials?: RegistryListCredentialsResult; + readonly notebookAccessKeys?: ListNotebookKeysResult; + readonly userStorageKey?: string; + readonly userStorageResourceId?: string; +} + +// @public +export interface ListWorkspaceQuotas { + readonly nextLink?: string; + readonly value?: ResourceQuota[]; +} + +// @public +export type LoadBalancerType = string; + +// @public +export type ManagedIdentity = IdentityConfiguration & { + identityType: "Managed"; + clientId?: string; + objectId?: string; + resourceId?: string; +}; + +// @public (undocumented) +export type ManagedOnlineDeployment = OnlineDeployment & { + endpointComputeType: "Managed"; + instanceType?: string; + readinessProbe?: ProbeSettings; +}; + +// @public (undocumented) +export type ManualScaleSettings = OnlineScaleSettings & { + scaleType: "Manual"; + instanceCount?: number; +}; + +// @public +export type MedianStoppingPolicy = EarlyTerminationPolicy & { + policyType: "MedianStopping"; +}; + +// @public +export type MediaType = string; + +// @public +export interface MLAssistConfiguration { + inferencingComputeBinding?: ComputeConfiguration; + mlAssistEnabled?: boolean; + trainingComputeBinding?: ComputeConfiguration; +} + +// @public (undocumented) +export interface ModelContainer { + description?: string; + properties?: { + [propertyName: string]: string; + }; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export type ModelContainerResource = Resource & { + properties: ModelContainer; + readonly systemData?: SystemData; +}; + +// @public +export interface ModelContainerResourceArmPaginatedResult { + nextLink?: string; + value?: ModelContainerResource[]; +} + +// @public +export interface ModelContainers { + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: ModelContainerResource, options?: ModelContainersCreateOrUpdateOptionalParams): Promise; + delete(name: string, resourceGroupName: string, workspaceName: string, options?: ModelContainersDeleteOptionalParams): Promise; + get(name: string, resourceGroupName: string, workspaceName: string, options?: ModelContainersGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: ModelContainersListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ModelContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ModelContainersCreateOrUpdateResponse = ModelContainerResource; + +// @public +export interface ModelContainersDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ModelContainersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ModelContainersGetResponse = ModelContainerResource; + +// @public +export interface ModelContainersListNextOptionalParams extends coreClient.OperationOptions { + count?: number; + skip?: string; +} + +// @public +export type ModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult; + +// @public +export interface ModelContainersListOptionalParams extends coreClient.OperationOptions { + count?: number; + skip?: string; +} + +// @public +export type ModelContainersListResponse = ModelContainerResourceArmPaginatedResult; + +// @public +export interface ModelVersion { + datastoreId?: string; + description?: string; + flavors?: { + [propertyName: string]: FlavorData; + }; + isAnonymous?: boolean; + path: string; + properties?: { + [propertyName: string]: string; + }; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export type ModelVersionResource = Resource & { + properties: ModelVersion; + readonly systemData?: SystemData; +}; + +// @public +export interface ModelVersionResourceArmPaginatedResult { + nextLink?: string; + value?: ModelVersionResource[]; +} + +// @public +export interface ModelVersions { + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: ModelVersionResource, options?: ModelVersionsCreateOrUpdateOptionalParams): Promise; + delete(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: ModelVersionsDeleteOptionalParams): Promise; + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: ModelVersionsGetOptionalParams): Promise; + list(name: string, resourceGroupName: string, workspaceName: string, options?: ModelVersionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ModelVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ModelVersionsCreateOrUpdateResponse = ModelVersionResource; + +// @public +export interface ModelVersionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ModelVersionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ModelVersionsGetResponse = ModelVersionResource; + +// @public +export interface ModelVersionsListNextOptionalParams extends coreClient.OperationOptions { + description?: string; + offset?: number; + orderBy?: string; + properties?: string; + skip?: string; + tags?: string; + top?: number; + version?: string; +} + +// @public +export type ModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult; + +// @public +export interface ModelVersionsListOptionalParams extends coreClient.OperationOptions { + description?: string; + offset?: number; + orderBy?: string; + properties?: string; + skip?: string; + tags?: string; + top?: number; + version?: string; +} + +// @public +export type ModelVersionsListResponse = ModelVersionResourceArmPaginatedResult; + +// @public +export type Mpi = DistributionConfiguration & { + distributionType: "Mpi"; + processCountPerInstance?: number; +}; + +// @public +export type NodeState = string; + +// @public +export interface NodeStateCounts { + readonly idleNodeCount?: number; + readonly leavingNodeCount?: number; + readonly preemptedNodeCount?: number; + readonly preparingNodeCount?: number; + readonly runningNodeCount?: number; + readonly unusableNodeCount?: number; +} + +// @public +export type NoneDatastoreCredentials = DatastoreCredentials & { + credentialsType: "None"; + secrets?: NoneDatastoreSecrets; +}; + +// @public +export type NoneDatastoreSecrets = DatastoreSecrets & { + secretsType: "None"; +}; + +// @public (undocumented) +export interface NotebookAccessTokenResult { + readonly accessToken?: string; + readonly expiresIn?: number; + readonly hostName?: string; + readonly notebookResourceId?: string; + readonly publicDns?: string; + readonly refreshToken?: string; + readonly scope?: string; + readonly tokenType?: string; +} + +// @public (undocumented) +export interface NotebookPreparationError { + // (undocumented) + errorMessage?: string; + // (undocumented) + statusCode?: number; +} + +// @public (undocumented) +export interface NotebookResourceInfo { + // (undocumented) + fqdn?: string; + notebookPreparationError?: NotebookPreparationError; + resourceId?: string; +} + +// @public +export interface Objective { + goal: Goal; + primaryMetric: string; +} + +// @public (undocumented) +export interface OnlineDeployment { + appInsightsEnabled?: boolean; + codeConfiguration?: CodeConfiguration; + description?: string; + endpointComputeType: "K8S" | "Managed"; + environmentId?: string; + environmentVariables?: { + [propertyName: string]: string; + }; + livenessProbe?: ProbeSettings; + model?: AssetReferenceBaseUnion; + properties?: { + [propertyName: string]: string; + }; + readonly provisioningState?: DeploymentProvisioningState; + requestSettings?: OnlineRequestSettings; + scaleSettings?: OnlineScaleSettingsUnion; +} + +// @public +export interface OnlineDeployments { + beginCreateOrUpdate(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: OnlineDeploymentTrackedResource, options?: OnlineDeploymentsCreateOrUpdateOptionalParams): Promise, OnlineDeploymentsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: OnlineDeploymentTrackedResource, options?: OnlineDeploymentsCreateOrUpdateOptionalParams): Promise; + beginDelete(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, options?: OnlineDeploymentsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, options?: OnlineDeploymentsDeleteOptionalParams): Promise; + beginUpdate(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: PartialOnlineDeploymentPartialTrackedResource, options?: OnlineDeploymentsUpdateOptionalParams): Promise, OnlineDeploymentsUpdateResponse>>; + beginUpdateAndWait(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: PartialOnlineDeploymentPartialTrackedResource, options?: OnlineDeploymentsUpdateOptionalParams): Promise; + get(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, options?: OnlineDeploymentsGetOptionalParams): Promise; + getLogs(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: DeploymentLogsRequest, options?: OnlineDeploymentsGetLogsOptionalParams): Promise; + list(endpointName: string, resourceGroupName: string, workspaceName: string, options?: OnlineDeploymentsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface OnlineDeploymentsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface OnlineDeploymentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type OnlineDeploymentsCreateOrUpdateResponse = OnlineDeploymentTrackedResource; + +// @public +export interface OnlineDeploymentsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface OnlineDeploymentsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface OnlineDeploymentsGetLogsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OnlineDeploymentsGetLogsResponse = DeploymentLogs; + +// @public +export interface OnlineDeploymentsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OnlineDeploymentsGetResponse = OnlineDeploymentTrackedResource; + +// @public +export interface OnlineDeploymentsListNextOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type OnlineDeploymentsListNextResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; + +// @public +export interface OnlineDeploymentsListOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type OnlineDeploymentsListResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; + +// @public +export interface OnlineDeploymentsUpdateHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface OnlineDeploymentsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type OnlineDeploymentsUpdateResponse = OnlineDeploymentTrackedResource; + +// @public (undocumented) +export type OnlineDeploymentTrackedResource = TrackedResource & { + identity?: ResourceIdentity; + kind?: string; + properties: OnlineDeploymentUnion; + readonly systemData?: SystemData; +}; + +// @public +export interface OnlineDeploymentTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: OnlineDeploymentTrackedResource[]; +} + +// @public (undocumented) +export type OnlineDeploymentUnion = OnlineDeployment | K8SOnlineDeployment | ManagedOnlineDeployment; + +// @public +export interface OnlineEndpoint { + authMode: EndpointAuthMode; + description?: string; + keys?: EndpointAuthKeys; + properties?: { + [propertyName: string]: string; + }; + readonly provisioningState?: EndpointProvisioningState; + readonly scoringUri?: string; + readonly swaggerUri?: string; + target?: string; + traffic?: { + [propertyName: string]: number; + }; +} + +// @public +export interface OnlineEndpoints { + beginCreateOrUpdate(endpointName: string, resourceGroupName: string, workspaceName: string, body: OnlineEndpointTrackedResource, options?: OnlineEndpointsCreateOrUpdateOptionalParams): Promise, OnlineEndpointsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(endpointName: string, resourceGroupName: string, workspaceName: string, body: OnlineEndpointTrackedResource, options?: OnlineEndpointsCreateOrUpdateOptionalParams): Promise; + beginDelete(endpointName: string, resourceGroupName: string, workspaceName: string, options?: OnlineEndpointsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(endpointName: string, resourceGroupName: string, workspaceName: string, options?: OnlineEndpointsDeleteOptionalParams): Promise; + beginRegenerateKeys(endpointName: string, resourceGroupName: string, workspaceName: string, body: RegenerateEndpointKeysRequest, options?: OnlineEndpointsRegenerateKeysOptionalParams): Promise, void>>; + beginRegenerateKeysAndWait(endpointName: string, resourceGroupName: string, workspaceName: string, body: RegenerateEndpointKeysRequest, options?: OnlineEndpointsRegenerateKeysOptionalParams): Promise; + beginUpdate(endpointName: string, resourceGroupName: string, workspaceName: string, body: PartialOnlineEndpointPartialTrackedResource, options?: OnlineEndpointsUpdateOptionalParams): Promise, OnlineEndpointsUpdateResponse>>; + beginUpdateAndWait(endpointName: string, resourceGroupName: string, workspaceName: string, body: PartialOnlineEndpointPartialTrackedResource, options?: OnlineEndpointsUpdateOptionalParams): Promise; + get(endpointName: string, resourceGroupName: string, workspaceName: string, options?: OnlineEndpointsGetOptionalParams): Promise; + getToken(endpointName: string, resourceGroupName: string, workspaceName: string, options?: OnlineEndpointsGetTokenOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: OnlineEndpointsListOptionalParams): PagedAsyncIterableIterator; + listKeys(endpointName: string, resourceGroupName: string, workspaceName: string, options?: OnlineEndpointsListKeysOptionalParams): Promise; +} + +// @public +export interface OnlineEndpointsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface OnlineEndpointsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type OnlineEndpointsCreateOrUpdateResponse = OnlineEndpointTrackedResource; + +// @public +export interface OnlineEndpointsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface OnlineEndpointsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface OnlineEndpointsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OnlineEndpointsGetResponse = OnlineEndpointTrackedResource; + +// @public +export interface OnlineEndpointsGetTokenOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OnlineEndpointsGetTokenResponse = EndpointAuthToken; + +// @public +export interface OnlineEndpointsListKeysOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OnlineEndpointsListKeysResponse = EndpointAuthKeys; + +// @public +export interface OnlineEndpointsListNextOptionalParams extends coreClient.OperationOptions { + computeType?: EndpointComputeType; + count?: number; + name?: string; + orderBy?: OrderString; + properties?: string; + skip?: string; + tags?: string; +} + +// @public +export type OnlineEndpointsListNextResponse = OnlineEndpointTrackedResourceArmPaginatedResult; + +// @public +export interface OnlineEndpointsListOptionalParams extends coreClient.OperationOptions { + computeType?: EndpointComputeType; + count?: number; + name?: string; + orderBy?: OrderString; + properties?: string; + skip?: string; + tags?: string; +} + +// @public +export type OnlineEndpointsListResponse = OnlineEndpointTrackedResourceArmPaginatedResult; + +// @public +export interface OnlineEndpointsRegenerateKeysHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface OnlineEndpointsRegenerateKeysOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface OnlineEndpointsUpdateHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface OnlineEndpointsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type OnlineEndpointsUpdateResponse = OnlineEndpointTrackedResource; + +// @public (undocumented) +export type OnlineEndpointTrackedResource = TrackedResource & { + identity?: ResourceIdentity; + kind?: string; + properties: OnlineEndpoint; + readonly systemData?: SystemData; +}; + +// @public +export interface OnlineEndpointTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: OnlineEndpointTrackedResource[]; +} + +// @public +export interface OnlineRequestSettings { + maxConcurrentRequestsPerInstance?: number; + maxQueueWait?: string; + requestTimeout?: string; +} + +// @public +export interface OnlineScaleSettings { + maxInstances?: number; + minInstances?: number; + scaleType: "Auto" | "Manual"; +} + +// @public (undocumented) +export type OnlineScaleSettingsUnion = OnlineScaleSettings | AutoScaleSettings | ManualScaleSettings; + +// @public +export type OperatingSystemType = string; + +// @public +export interface Operation { + display?: OperationDisplay; + name?: string; +} + +// @public +export interface OperationDisplay { + description?: string; + operation?: string; + provider?: string; + resource?: string; +} + +// @public +export interface OperationListResult { + value?: Operation[]; +} + +// @public +export type OperationName = string; + +// @public +export interface Operations { + list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface OperationsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OperationsListResponse = OperationListResult; + +// @public +export type OperationStatus = string; + +// @public +export type OrderString = string; + +// @public +export type OriginType = string; + +// @public +export type OsType = string; + +// @public (undocumented) +export interface OutputDataBinding { + datastoreId?: string; + mode?: DataBindingMode; + pathOnCompute?: string; + pathOnDatastore?: string; +} + +// @public +export type OutputPathAssetReference = AssetReferenceBase & { + referenceType: "OutputPath"; + jobId?: string; + path?: string; +}; + +// @public +export interface PaginatedComputeResourcesList { + nextLink?: string; + value?: ComputeResource[]; +} + +// @public +export interface PaginatedWorkspaceConnectionsList { + nextLink?: string; + value?: WorkspaceConnection[]; +} + +// @public (undocumented) +export type PartialAksOnlineDeployment = PartialOnlineDeployment & { + endpointComputeType: "K8S"; + containerResourceRequirements?: ContainerResourceRequirements; +}; + +// @public +export interface PartialBatchDeployment { + description?: string; +} + +// @public +export interface PartialBatchDeploymentPartialTrackedResource { + identity?: ResourceIdentity; + kind?: string; + location?: string; + properties?: PartialBatchDeployment; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export interface PartialBatchEndpoint { + traffic?: { + [propertyName: string]: number; + }; +} + +// @public +export interface PartialBatchEndpointPartialTrackedResource { + identity?: ResourceIdentity; + kind?: string; + location?: string; + properties?: PartialBatchEndpoint; + tags?: { + [propertyName: string]: string; + }; +} + +// @public (undocumented) +export type PartialManagedOnlineDeployment = PartialOnlineDeployment & { + endpointComputeType: "Managed"; + readinessProbe?: ProbeSettings; +}; + +// @public +export interface PartialOnlineDeployment { + appInsightsEnabled?: boolean; + endpointComputeType: "K8S" | "Managed"; + livenessProbe?: ProbeSettings; + requestSettings?: OnlineRequestSettings; + scaleSettings?: OnlineScaleSettingsUnion; +} + +// @public +export interface PartialOnlineDeploymentPartialTrackedResource { + identity?: ResourceIdentity; + kind?: string; + location?: string; + properties?: PartialOnlineDeploymentUnion; + tags?: { + [propertyName: string]: string; + }; +} + +// @public (undocumented) +export type PartialOnlineDeploymentUnion = PartialOnlineDeployment | PartialAksOnlineDeployment | PartialManagedOnlineDeployment; + +// @public +export interface PartialOnlineEndpoint { + traffic?: { + [propertyName: string]: number; + }; +} + +// @public +export interface PartialOnlineEndpointPartialTrackedResource { + identity?: ResourceIdentity; + kind?: string; + location?: string; + properties?: PartialOnlineEndpoint; + tags?: { + [propertyName: string]: string; + }; +} + +// @public (undocumented) +export interface Password { + readonly name?: string; + readonly value?: string; +} + +// @public +export interface PersonalComputeInstanceSettings { + assignedUser?: AssignedUser; +} + +// @public +export interface PrivateEndpoint { + readonly id?: string; + readonly subnetArmId?: string; +} + +// @public +export type PrivateEndpointConnection = Resource & { + identity?: Identity; + location?: string; + tags?: { + [propertyName: string]: string; + }; + sku?: Sku; + readonly systemData?: SystemData; + privateEndpoint?: PrivateEndpoint; + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + readonly provisioningState?: PrivateEndpointConnectionProvisioningState; +}; + +// @public +export interface PrivateEndpointConnectionListResult { + value?: PrivateEndpointConnection[]; +} + +// @public +export type PrivateEndpointConnectionProvisioningState = string; + +// @public +export interface PrivateEndpointConnections { + createOrUpdate(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: PrivateEndpointConnectionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; + +// @public +export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; + +// @public +export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; + +// @public +export type PrivateEndpointServiceConnectionStatus = string; + +// @public +export type PrivateLinkResource = Resource & { + identity?: Identity; + location?: string; + tags?: { + [propertyName: string]: string; + }; + sku?: Sku; + readonly systemData?: SystemData; + readonly groupId?: string; + readonly requiredMembers?: string[]; + requiredZoneNames?: string[]; +}; + +// @public +export interface PrivateLinkResourceListResult { + value?: PrivateLinkResource[]; +} + +// @public +export interface PrivateLinkResources { + list(resourceGroupName: string, workspaceName: string, options?: PrivateLinkResourcesListOptionalParams): Promise; +} + +// @public +export interface PrivateLinkResourcesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; + +// @public +export interface PrivateLinkServiceConnectionState { + actionsRequired?: string; + description?: string; + status?: PrivateEndpointServiceConnectionStatus; +} + +// @public +export interface ProbeSettings { + failureThreshold?: number; + initialDelay?: string; + period?: string; + successThreshold?: number; + timeout?: string; +} + +// @public +export interface ProgressMetrics { + readonly completedDatapointCount?: number; + readonly incrementalDatasetLastRefreshTime?: Date; + readonly skippedDatapointCount?: number; + readonly totalDatapointCount?: number; +} + +// @public +export type ProvisioningState = string; + +// @public +export type ProvisioningStatus = string; + +// @public +export type PyTorch = DistributionConfiguration & { + distributionType: "PyTorch"; + processCount?: number; +}; + +// @public +export interface QuotaBaseProperties { + id?: string; + limit?: number; + type?: string; + unit?: QuotaUnit; +} + +// @public +export interface Quotas { + list(location: string, options?: QuotasListOptionalParams): PagedAsyncIterableIterator; + update(location: string, parameters: QuotaUpdateParameters, options?: QuotasUpdateOptionalParams): Promise; +} + +// @public +export interface QuotasListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type QuotasListNextResponse = ListWorkspaceQuotas; + +// @public +export interface QuotasListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type QuotasListResponse = ListWorkspaceQuotas; + +// @public +export interface QuotasUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult; + +// @public +export type QuotaUnit = string; + +// @public +export interface QuotaUpdateParameters { + location?: string; + value?: QuotaBaseProperties[]; +} + +// @public +export type ReasonCode = string; + +// @public +export interface Recurrence { + frequency?: RecurrenceFrequency; + interval?: number; + schedule?: RecurrenceSchedule; + startTime?: string; + timeZone?: string; +} + +// @public +export type RecurrenceFrequency = string; + +// @public +export interface RecurrenceSchedule { + hours?: number[]; + minutes?: number[]; + weekDays?: DaysOfWeek[]; +} + +// @public +export type ReferenceType = string; + +// @public (undocumented) +export interface RegenerateEndpointKeysRequest { + keyType: KeyType; + keyValue?: string; +} + +// @public (undocumented) +export interface RegistryListCredentialsResult { + readonly location?: string; + // (undocumented) + passwords?: Password[]; + readonly username?: string; +} + +// @public +export type RemoteLoginPortPublicAccess = string; + +// @public +export interface Resource { + readonly id?: string; + readonly name?: string; + readonly type?: string; +} + +// @public +export interface ResourceId { + id: string; +} + +// @public +export interface ResourceIdentity { + readonly principalId?: string; + readonly tenantId?: string; + type?: ResourceIdentityAssignment; + userAssignedIdentities?: { + [propertyName: string]: UserAssignedIdentityMeta; + }; +} + +// @public +export type ResourceIdentityAssignment = string; + +// @public +export type ResourceIdentityType = "SystemAssigned" | "SystemAssigned,UserAssigned" | "UserAssigned" | "None"; + +// @public +export interface ResourceName { + readonly localizedValue?: string; + readonly value?: string; +} + +// @public +export interface ResourceQuota { + readonly amlWorkspaceLocation?: string; + readonly id?: string; + readonly limit?: number; + readonly name?: ResourceName; + readonly type?: string; + readonly unit?: QuotaUnit; +} + +// @public (undocumented) +export interface ResourceSkuLocationInfo { + readonly location?: string; + readonly zoneDetails?: ResourceSkuZoneDetails[]; + readonly zones?: string[]; +} + +// @public +export interface ResourceSkuZoneDetails { + readonly capabilities?: SKUCapability[]; + readonly name?: string[]; +} + +// @public +export interface Restriction { + reasonCode?: ReasonCode; + readonly type?: string; + readonly values?: string[]; +} + +// @public (undocumented) +export interface Route { + path: string; + port: number; +} + +// @public +export type SamplingAlgorithm = string; + +// @public +export type SasDatastoreCredentials = DatastoreCredentials & { + credentialsType: "Sas"; + secrets?: SasDatastoreSecrets; +}; + +// @public +export type SasDatastoreSecrets = DatastoreSecrets & { + secretsType: "Sas"; + sasToken?: string; +}; + +// @public +export interface ScaleSettings { + maxNodeCount: number; + minNodeCount?: number; + nodeIdleTimeBeforeScaleDown?: string; +} + +// @public +export type ScaleType = string; + +// @public +export type ScheduleStatus = string; + +// @public +export type ScheduleType = string; + +// @public +export interface ScriptReference { + scriptArguments?: string; + scriptData?: string; + scriptSource?: string; + timeout?: string; +} + +// @public +export interface ScriptsToExecute { + creationScript?: ScriptReference; + startupScript?: ScriptReference; +} + +// @public +export type SecretsType = string; + +// @public (undocumented) +export interface ServiceManagedResourcesSettings { + cosmosDb?: CosmosDbSettings; +} + +// @public +export interface ServicePrincipalCredentials { + clientId: string; + clientSecret: string; +} + +// @public +export type ServicePrincipalDatastoreCredentials = DatastoreCredentials & { + credentialsType: "ServicePrincipal"; + authorityUrl?: string; + clientId: string; + resourceUri?: string; + secrets?: ServicePrincipalDatastoreSecrets; + tenantId: string; +}; + +// @public +export type ServicePrincipalDatastoreSecrets = DatastoreSecrets & { + secretsType: "ServicePrincipal"; + clientSecret?: string; +}; + +// @public +export interface SetupScripts { + scripts?: ScriptsToExecute; +} + +// @public (undocumented) +export interface SharedPrivateLinkResource { + groupId?: string; + name?: string; + privateLinkResourceId?: string; + requestMessage?: string; + status?: PrivateEndpointServiceConnectionStatus; +} + +// @public +export interface Sku { + name?: string; + tier?: string; +} + +// @public +export interface SKUCapability { + name?: string; + value?: string; +} + +// @public +export interface SkuListResult { + nextLink?: string; + // (undocumented) + value?: WorkspaceSku[]; +} + +// @public +export type SqlAdminDatastoreCredentials = DatastoreCredentials & { + credentialsType: "SqlAdmin"; + secrets?: SqlAdminDatastoreSecrets; + userId: string; +}; + +// @public +export type SqlAdminDatastoreSecrets = DatastoreSecrets & { + secretsType: "SqlAdmin"; + password?: string; +}; + +// @public +export type SshPublicAccess = string; + +// @public +export interface SslConfiguration { + cert?: string; + cname?: string; + key?: string; + leafDomainLabel?: string; + overwriteExistingDomain?: boolean; + status?: SslConfigurationStatus; +} + +// @public +export type SslConfigurationStatus = string; + +// @public +export type Status = string; + +// @public +export interface StatusMessage { + readonly code?: string; + readonly createdTimeUtc?: Date; + readonly level?: StatusMessageLevel; + readonly message?: string; +} + +// @public +export type StatusMessageLevel = string; + +// @public +export type SweepJob = JobBase & { + jobType: "Sweep"; + algorithm: SamplingAlgorithm; + compute: ComputeConfiguration; + earlyTermination?: EarlyTerminationPolicyUnion; + experimentName?: string; + identity?: IdentityConfigurationUnion; + maxConcurrentTrials?: number; + maxTotalTrials?: number; + objective: Objective; + readonly output?: JobOutput; + priority?: number; + searchSpace: { + [propertyName: string]: Record; + }; + readonly status?: JobStatus; + timeout?: string; + trial?: TrialComponent; +}; + +// @public +export type SynapseSpark = Compute & SynapseSparkPoolProperties & { + computeType: "SynapseSpark"; +}; + +// @public +export interface SynapseSparkPoolProperties { + properties?: SynapseSparkPoolPropertiesAutoGenerated; +} + +// @public +export interface SynapseSparkPoolPropertiesAutoGenerated { + autoPauseProperties?: AutoPauseProperties; + autoScaleProperties?: AutoScaleProperties; + nodeCount?: number; + nodeSize?: string; + nodeSizeFamily?: string; + poolName?: string; + resourceGroup?: string; + sparkVersion?: string; + subscriptionId?: string; + workspaceName?: string; +} + +// @public +export interface SystemData { + createdAt?: Date; + createdBy?: string; + createdByType?: CreatedByType; + lastModifiedAt?: Date; + lastModifiedBy?: string; + lastModifiedByType?: CreatedByType; +} + +// @public +export interface SystemService { + readonly publicIpAddress?: string; + readonly systemServiceType?: string; + readonly version?: string; +} + +// @public +export type TensorFlow = DistributionConfiguration & { + distributionType: "TensorFlow"; + parameterServerCount?: number; + workerCount?: number; +}; + +// @public +export type TextAnnotationType = string; + +// @public +export type TrackedResource = Resource & { + tags?: { + [propertyName: string]: string; + }; + location: string; +}; + +// @public +export interface TrialComponent { + codeId?: string; + command: string; + distribution?: DistributionConfigurationUnion; + environmentId?: string; + environmentVariables?: { + [propertyName: string]: string; + }; + inputDataBindings?: { + [propertyName: string]: InputDataBinding; + }; + outputDataBindings?: { + [propertyName: string]: OutputDataBinding; + }; + timeout?: string; +} + +// @public +export type TriggerType = string; + +// @public +export type TruncationSelectionPolicy = EarlyTerminationPolicy & { + policyType: "TruncationSelection"; + truncationPercentage?: number; +}; + +// @public +export type UnderlyingResourceAction = string; + +// @public +export type UnitOfMeasure = string; + +// @public +export interface UpdateWorkspaceQuotas { + readonly id?: string; + limit?: number; + status?: Status; + readonly type?: string; + readonly unit?: QuotaUnit; +} + +// @public +export interface UpdateWorkspaceQuotasResult { + readonly nextLink?: string; + readonly value?: UpdateWorkspaceQuotas[]; +} + +// @public +export interface Usage { + readonly amlWorkspaceLocation?: string; + readonly currentValue?: number; + readonly id?: string; + readonly limit?: number; + readonly name?: UsageName; + readonly type?: string; + readonly unit?: UsageUnit; +} + +// @public +export interface UsageName { + readonly localizedValue?: string; + readonly value?: string; +} + +// @public +export interface Usages { + list(location: string, options?: UsagesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface UsagesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type UsagesListNextResponse = ListUsagesResult; + +// @public +export interface UsagesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type UsagesListResponse = ListUsagesResult; + +// @public +export type UsageUnit = string; + +// @public +export interface UserAccountCredentials { + adminUserName: string; + adminUserPassword?: string; + adminUserSshPublicKey?: string; +} + +// @public +export interface UserAssignedIdentity { + readonly clientId?: string; + readonly principalId?: string; + readonly tenantId?: string; +} + +// @public +export interface UserAssignedIdentityMeta { + clientId?: string; + principalId?: string; +} + +// @public +export type ValueFormat = string; + +// @public +export type VirtualMachine = Compute & { + computeType: "VirtualMachine"; + properties?: VirtualMachineProperties; +}; + +// @public +export interface VirtualMachineImage { + id: string; +} + +// @public (undocumented) +export interface VirtualMachineProperties { + address?: string; + administratorAccount?: VirtualMachineSshCredentials; + isNotebookInstanceCompute?: boolean; + sshPort?: number; + virtualMachineSize?: string; +} + +// @public +export type VirtualMachineSecrets = ComputeSecrets & { + computeType: "VirtualMachine"; + administratorAccount?: VirtualMachineSshCredentials; +}; + +// @public +export interface VirtualMachineSize { + estimatedVMPrices?: EstimatedVMPrices; + readonly family?: string; + readonly gpus?: number; + readonly lowPriorityCapable?: boolean; + readonly maxResourceVolumeMB?: number; + readonly memoryGB?: number; + readonly name?: string; + readonly osVhdSizeMB?: number; + readonly premiumIO?: boolean; + readonly vCPUs?: number; +} + +// @public +export interface VirtualMachineSizeListResult { + value?: VirtualMachineSize[]; +} + +// @public +export interface VirtualMachineSizes { + list(location: string, options?: VirtualMachineSizesListOptionalParams): Promise; +} + +// @public +export interface VirtualMachineSizesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult; + +// @public +export interface VirtualMachineSshCredentials { + password?: string; + privateKeyData?: string; + publicKeyData?: string; + username?: string; +} + +// @public +export type VMPriceOSType = string; + +// @public +export type VmPriority = string; + +// @public +export type VMTier = string; + +// @public +export type Workspace = Resource & { + identity?: Identity; + location?: string; + tags?: { + [propertyName: string]: string; + }; + sku?: Sku; + readonly systemData?: SystemData; + readonly workspaceId?: string; + description?: string; + friendlyName?: string; + keyVault?: string; + applicationInsights?: string; + containerRegistry?: string; + storageAccount?: string; + discoveryUrl?: string; + readonly provisioningState?: ProvisioningState; + encryption?: EncryptionProperty; + hbiWorkspace?: boolean; + readonly serviceProvisionedResourceGroup?: string; + readonly privateLinkCount?: number; + imageBuildCompute?: string; + allowPublicAccessWhenBehindVnet?: boolean; + readonly privateEndpointConnections?: PrivateEndpointConnection[]; + sharedPrivateLinkResources?: SharedPrivateLinkResource[]; + readonly notebookInfo?: NotebookResourceInfo; + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; + primaryUserAssignedIdentity?: string; + readonly tenantId?: string; +}; + +// @public +export interface WorkspaceConnection { + authType?: string; + category?: string; + readonly id?: string; + readonly name?: string; + target?: string; + readonly type?: string; + value?: string; + valueFormat?: ValueFormat; +} + +// @public +export interface WorkspaceConnections { + create(resourceGroupName: string, workspaceName: string, connectionName: string, parameters: WorkspaceConnection, options?: WorkspaceConnectionsCreateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, connectionName: string, options?: WorkspaceConnectionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, connectionName: string, options?: WorkspaceConnectionsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: WorkspaceConnectionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceConnectionsCreateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceConnectionsCreateResponse = WorkspaceConnection; + +// @public +export interface WorkspaceConnectionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceConnectionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceConnectionsGetResponse = WorkspaceConnection; + +// @public +export interface WorkspaceConnectionsListOptionalParams extends coreClient.OperationOptions { + category?: string; + target?: string; +} + +// @public +export type WorkspaceConnectionsListResponse = PaginatedWorkspaceConnectionsList; + +// @public +export interface WorkspaceFeatures { + list(resourceGroupName: string, workspaceName: string, options?: WorkspaceFeaturesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceFeaturesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult; + +// @public +export interface WorkspaceFeaturesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult; + +// @public +export interface WorkspaceListResult { + nextLink?: string; + value?: Workspace[]; +} + +// @public +export interface Workspaces { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise, WorkspacesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, parameters: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise; + // (undocumented) + beginPrepareNotebook(resourceGroupName: string, workspaceName: string, options?: WorkspacesPrepareNotebookOptionalParams): Promise, WorkspacesPrepareNotebookResponse>>; + // (undocumented) + beginPrepareNotebookAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspacesPrepareNotebookOptionalParams): Promise; + beginResyncKeys(resourceGroupName: string, workspaceName: string, options?: WorkspacesResyncKeysOptionalParams): Promise, void>>; + beginResyncKeysAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspacesResyncKeysOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, options?: WorkspacesGetOptionalParams): Promise; + listByResourceGroup(resourceGroupName: string, options?: WorkspacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: WorkspacesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + listKeys(resourceGroupName: string, workspaceName: string, options?: WorkspacesListKeysOptionalParams): Promise; + listNotebookAccessToken(resourceGroupName: string, workspaceName: string, options?: WorkspacesListNotebookAccessTokenOptionalParams): Promise; + // (undocumented) + listNotebookKeys(resourceGroupName: string, workspaceName: string, options?: WorkspacesListNotebookKeysOptionalParams): Promise; + // (undocumented) + listStorageAccountKeys(resourceGroupName: string, workspaceName: string, options?: WorkspacesListStorageAccountKeysOptionalParams): Promise; + update(resourceGroupName: string, workspaceName: string, parameters: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspacesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspacesCreateOrUpdateResponse = Workspace; + +// @public +export interface WorkspacesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface WorkspacesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesGetResponse = Workspace; + +// @public +export interface WorkspaceSku { + readonly capabilities?: SKUCapability[]; + readonly locationInfo?: ResourceSkuLocationInfo[]; + readonly locations?: string[]; + readonly name?: string; + readonly resourceType?: string; + restrictions?: Restriction[]; + readonly tier?: string; +} + +// @public +export interface WorkspaceSkus { + list(options?: WorkspaceSkusListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceSkusListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceSkusListNextResponse = SkuListResult; + +// @public +export interface WorkspaceSkusListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceSkusListResponse = SkuListResult; + +// @public +export interface WorkspacesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult; + +// @public +export interface WorkspacesListByResourceGroupOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type WorkspacesListByResourceGroupResponse = WorkspaceListResult; + +// @public +export interface WorkspacesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult; + +// @public +export interface WorkspacesListBySubscriptionOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type WorkspacesListBySubscriptionResponse = WorkspaceListResult; + +// @public +export interface WorkspacesListKeysOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesListKeysResponse = ListWorkspaceKeysResult; + +// @public +export interface WorkspacesListNotebookAccessTokenOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesListNotebookAccessTokenResponse = NotebookAccessTokenResult; + +// @public +export interface WorkspacesListNotebookKeysOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesListNotebookKeysResponse = ListNotebookKeysResult; + +// @public +export interface WorkspacesListStorageAccountKeysOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesListStorageAccountKeysResponse = ListStorageAccountKeysResult; + +// @public +export interface WorkspacesPrepareNotebookOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspacesPrepareNotebookResponse = NotebookResourceInfo; + +// @public +export interface WorkspacesResyncKeysOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface WorkspacesUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesUpdateResponse = Workspace; + +// @public +export interface WorkspaceUpdateParameters { + description?: string; + friendlyName?: string; + identity?: Identity; + imageBuildCompute?: string; + primaryUserAssignedIdentity?: string; + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; + sku?: Sku; + tags?: { + [propertyName: string]: string; + }; +} + + +// (No @packageDocumentation comment for this package) + +``` diff --git a/sdk/machinelearningservices/arm-machinelearningservices/rollup.config.js b/sdk/machinelearningservices/arm-machinelearningservices/rollup.config.js index 5e0ad24a4ac8..9be1955eb7f1 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/rollup.config.js +++ b/sdk/machinelearningservices/arm-machinelearningservices/rollup.config.js @@ -1,37 +1,188 @@ -import rollup from "rollup"; -import nodeResolve from "rollup-plugin-node-resolve"; -import sourcemaps from "rollup-plugin-sourcemaps"; - -/** - * @type {rollup.RollupFileOptions} - */ -const config = { - input: "./esm/azureMachineLearningWorkspaces.js", - external: [ - "@azure/ms-rest-js", - "@azure/ms-rest-azure-js" - ], - output: { - file: "./dist/arm-machinelearningservices.js", - format: "umd", - name: "Azure.ArmMachinelearningservices", - sourcemap: true, - globals: { - "@azure/ms-rest-js": "msRest", - "@azure/ms-rest-azure-js": "msRestAzure" - }, - banner: `/* +/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */` - }, - plugins: [ - nodeResolve({ mainFields: ['module', 'main'] }), - sourcemaps() - ] + */ + +import nodeResolve from "@rollup/plugin-node-resolve"; +import cjs from "@rollup/plugin-commonjs"; +import sourcemaps from "rollup-plugin-sourcemaps"; +import multiEntry from "@rollup/plugin-multi-entry"; +import json from "@rollup/plugin-json"; + +import nodeBuiltins from "builtin-modules"; + +/** + * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api. + * + * NOTE: this manual configuration is only needed because OpenTelemetry uses an + * __exportStar downleveled helper function to declare its exports which confuses + * rollup's automatic discovery mechanism. + * + * @returns an object reference that can be `...`'d into your cjs() configuration. + */ +export function openTelemetryCommonJs() { + const namedExports = {}; + + for (const key of [ + "@opentelemetry/api", + "@azure/core-tracing/node_modules/@opentelemetry/api" + ]) { + namedExports[key] = [ + "SpanKind", + "TraceFlags", + "getSpan", + "setSpan", + "SpanStatusCode", + "getSpanContext", + "setSpanContext" + ]; + } + + const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"]; + + for (const version of releasedOpenTelemetryVersions) { + namedExports[ + // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path. + `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js` + ] = [ + "SpanKind", + "TraceFlags", + "getSpan", + "setSpan", + "StatusCode", + "CanonicalCode", + "getSpanContext", + "setSpanContext" + ]; + } + + return namedExports; +} + +// #region Warning Handler + +/** + * A function that can determine whether a rollupwarning should be ignored. If + * the function returns `true`, then the warning will not be displayed. + */ + +function ignoreNiseSinonEvalWarnings(warning) { + return ( + warning.code === "EVAL" && + warning.id && + (warning.id.includes("node_modules/nise") || + warning.id.includes("node_modules/sinon")) === true + ); +} + +function ignoreChaiCircularDependencyWarnings(warning) { + return ( + warning.code === "CIRCULAR_DEPENDENCY" && + warning.importer && warning.importer.includes("node_modules/chai") === true + ); +} + +const warningInhibitors = [ + ignoreChaiCircularDependencyWarnings, + ignoreNiseSinonEvalWarnings +]; + +/** + * Construct a warning handler for the shared rollup configuration + * that ignores certain warnings that are not relevant to testing. + */ +function makeOnWarnForTesting() { + return (warning, warn) => { + // If every inhibitor returns false (i.e. no inhibitors), then show the warning + if (warningInhibitors.every((inhib) => !inhib(warning))) { + warn(warning); + } + }; +} + +// #endregion + +function makeBrowserTestConfig() { + const config = { + input: { + include: ["dist-esm/test/**/*.spec.js"], + exclude: ["dist-esm/test/**/node/**"] + }, + output: { + file: `dist-test/index.browser.js`, + format: "umd", + sourcemap: true + }, + preserveSymlinks: false, + plugins: [ + multiEntry({ exports: false }), + nodeResolve({ + mainFields: ["module", "browser"] + }), + cjs({ + namedExports: { + // Chai's strange internal architecture makes it impossible to statically + // analyze its exports. + chai: [ + "version", + "use", + "util", + "config", + "expect", + "should", + "assert" + ], + ...openTelemetryCommonJs() + } + }), + json(), + sourcemaps() + //viz({ filename: "dist-test/browser-stats.html", sourcemap: true }) + ], + onwarn: makeOnWarnForTesting(), + // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0, + // rollup started respecting the "sideEffects" field in package.json. Since + // our package.json sets "sideEffects=false", this also applies to test + // code, which causes all tests to be removed by tree-shaking. + treeshake: false + }; + + return config; +} + +const defaultConfigurationOptions = { + disableBrowserBundle: false }; -export default config; +export function makeConfig(pkg, options) { + options = { + ...defaultConfigurationOptions, + ...(options || {}) + }; + + const baseConfig = { + // Use the package's module field if it has one + input: pkg["module"] || "dist-esm/src/index.js", + external: [ + ...nodeBuiltins, + ...Object.keys(pkg.dependencies), + ...Object.keys(pkg.devDependencies) + ], + output: { file: "dist/index.js", format: "cjs", sourcemap: true }, + preserveSymlinks: false, + plugins: [sourcemaps(), nodeResolve(), cjs()] + }; + + const config = [baseConfig]; + + if (!options.disableBrowserBundle) { + config.push(makeBrowserTestConfig()); + } + + return config; +} + +export default makeConfig(require("./package.json")); diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts index 4cc5d45384af..8604164259d7 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts @@ -3,159 +3,136 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "./models"; -import * as Mappers from "./models/mappers"; -import * as Parameters from "./models/parameters"; -import * as operations from "./operations"; +import * as coreAuth from "@azure/core-auth"; +import { + OperationsImpl, + WorkspacesImpl, + UsagesImpl, + VirtualMachineSizesImpl, + QuotasImpl, + ComputeOperationsImpl, + PrivateEndpointConnectionsImpl, + PrivateLinkResourcesImpl, + WorkspaceConnectionsImpl, + BatchEndpointsImpl, + BatchDeploymentsImpl, + CodeContainersImpl, + CodeVersionsImpl, + DataContainersImpl, + DataVersionsImpl, + DatastoresImpl, + EnvironmentContainersImpl, + EnvironmentSpecificationVersionsImpl, + JobsImpl, + LabelingJobsImpl, + ModelContainersImpl, + ModelVersionsImpl, + OnlineEndpointsImpl, + OnlineDeploymentsImpl, + WorkspaceFeaturesImpl, + WorkspaceSkusImpl +} from "./operations"; +import { + Operations, + Workspaces, + Usages, + VirtualMachineSizes, + Quotas, + ComputeOperations, + PrivateEndpointConnections, + PrivateLinkResources, + WorkspaceConnections, + BatchEndpoints, + BatchDeployments, + CodeContainers, + CodeVersions, + DataContainers, + DataVersions, + Datastores, + EnvironmentContainers, + EnvironmentSpecificationVersions, + Jobs, + LabelingJobs, + ModelContainers, + ModelVersions, + OnlineEndpoints, + OnlineDeployments, + WorkspaceFeatures, + WorkspaceSkus +} from "./operationsInterfaces"; import { AzureMachineLearningWorkspacesContext } from "./azureMachineLearningWorkspacesContext"; +import { AzureMachineLearningWorkspacesOptionalParams } from "./models"; - -class AzureMachineLearningWorkspaces extends AzureMachineLearningWorkspacesContext { - // Operation groups - operations: operations.Operations; - workspaces: operations.Workspaces; - workspaceFeatures: operations.WorkspaceFeatures; - notebooks: operations.Notebooks; - usages: operations.Usages; - virtualMachineSizes: operations.VirtualMachineSizes; - quotas: operations.Quotas; - workspaceConnections: operations.WorkspaceConnections; - machineLearningCompute: operations.MachineLearningCompute; - privateEndpointConnections: operations.PrivateEndpointConnections; - privateLinkResources: operations.PrivateLinkResources; - +export class AzureMachineLearningWorkspaces extends AzureMachineLearningWorkspacesContext { /** * Initializes a new instance of the AzureMachineLearningWorkspaces class. - * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId Azure subscription identifier. - * @param [options] The parameter options + * @param credentials Subscription credentials which uniquely identify client subscription. + * @param subscriptionId The ID of the target subscription. + * @param options The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMachineLearningWorkspacesOptions) { + constructor( + credentials: coreAuth.TokenCredential, + subscriptionId: string, + options?: AzureMachineLearningWorkspacesOptionalParams + ) { super(credentials, subscriptionId, options); - this.operations = new operations.Operations(this); - this.workspaces = new operations.Workspaces(this); - this.workspaceFeatures = new operations.WorkspaceFeatures(this); - this.notebooks = new operations.Notebooks(this); - this.usages = new operations.Usages(this); - this.virtualMachineSizes = new operations.VirtualMachineSizes(this); - this.quotas = new operations.Quotas(this); - this.workspaceConnections = new operations.WorkspaceConnections(this); - this.machineLearningCompute = new operations.MachineLearningCompute(this); - this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); - this.privateLinkResources = new operations.PrivateLinkResources(this); - } - - /** - * Lists all skus with associated features - * @param [options] The optional parameters - * @returns Promise - */ - listSkus(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - listSkus(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - listSkus(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkus(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.sendOperationRequest( - { - options - }, - listSkusOperationSpec, - callback) as Promise; + this.operations = new OperationsImpl(this); + this.workspaces = new WorkspacesImpl(this); + this.usages = new UsagesImpl(this); + this.virtualMachineSizes = new VirtualMachineSizesImpl(this); + this.quotas = new QuotasImpl(this); + this.computeOperations = new ComputeOperationsImpl(this); + this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); + this.privateLinkResources = new PrivateLinkResourcesImpl(this); + this.workspaceConnections = new WorkspaceConnectionsImpl(this); + this.batchEndpoints = new BatchEndpointsImpl(this); + this.batchDeployments = new BatchDeploymentsImpl(this); + this.codeContainers = new CodeContainersImpl(this); + this.codeVersions = new CodeVersionsImpl(this); + this.dataContainers = new DataContainersImpl(this); + this.dataVersions = new DataVersionsImpl(this); + this.datastores = new DatastoresImpl(this); + this.environmentContainers = new EnvironmentContainersImpl(this); + this.environmentSpecificationVersions = new EnvironmentSpecificationVersionsImpl( + this + ); + this.jobs = new JobsImpl(this); + this.labelingJobs = new LabelingJobsImpl(this); + this.modelContainers = new ModelContainersImpl(this); + this.modelVersions = new ModelVersionsImpl(this); + this.onlineEndpoints = new OnlineEndpointsImpl(this); + this.onlineDeployments = new OnlineDeploymentsImpl(this); + this.workspaceFeatures = new WorkspaceFeaturesImpl(this); + this.workspaceSkus = new WorkspaceSkusImpl(this); } - /** - * Lists all skus with associated features - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listSkusNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.sendOperationRequest( - { - nextPageLink, - options - }, - listSkusNextOperationSpec, - callback) as Promise; - } + operations: Operations; + workspaces: Workspaces; + usages: Usages; + virtualMachineSizes: VirtualMachineSizes; + quotas: Quotas; + computeOperations: ComputeOperations; + privateEndpointConnections: PrivateEndpointConnections; + privateLinkResources: PrivateLinkResources; + workspaceConnections: WorkspaceConnections; + batchEndpoints: BatchEndpoints; + batchDeployments: BatchDeployments; + codeContainers: CodeContainers; + codeVersions: CodeVersions; + dataContainers: DataContainers; + dataVersions: DataVersions; + datastores: Datastores; + environmentContainers: EnvironmentContainers; + environmentSpecificationVersions: EnvironmentSpecificationVersions; + jobs: Jobs; + labelingJobs: LabelingJobs; + modelContainers: ModelContainers; + modelVersions: ModelVersions; + onlineEndpoints: OnlineEndpoints; + onlineDeployments: OnlineDeployments; + workspaceFeatures: WorkspaceFeatures; + workspaceSkus: WorkspaceSkus; } - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listSkusOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces/skus", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SkuListResult - }, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; - -const listSkusNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SkuListResult - }, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; - -export { - AzureMachineLearningWorkspaces, - AzureMachineLearningWorkspacesContext, - Models as AzureMachineLearningWorkspacesModels, - Mappers as AzureMachineLearningWorkspacesMappers -}; -export * from "./operations"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts index 5dfaeebdef9f..9273a3966de3 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts @@ -3,59 +3,68 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as Models from "./models"; -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as coreClient from "@azure/core-client"; +import * as coreAuth from "@azure/core-auth"; +import { AzureMachineLearningWorkspacesOptionalParams } from "./models"; -const packageName = "@azure/arm-machinelearningservices"; -const packageVersion = "4.0.0"; - -export class AzureMachineLearningWorkspacesContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; +export class AzureMachineLearningWorkspacesContext extends coreClient.ServiceClient { + $host: string; + apiVersion: string; subscriptionId: string; - apiVersion?: string; /** - * Initializes a new instance of the AzureMachineLearningWorkspaces class. - * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId Azure subscription identifier. - * @param [options] The parameter options + * Initializes a new instance of the AzureMachineLearningWorkspacesContext class. + * @param credentials Subscription credentials which uniquely identify client subscription. + * @param subscriptionId The ID of the target subscription. + * @param options The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMachineLearningWorkspacesOptions) { - if (credentials == undefined) { - throw new Error('\'credentials\' cannot be null.'); + constructor( + credentials: coreAuth.TokenCredential, + subscriptionId: string, + options?: AzureMachineLearningWorkspacesOptionalParams + ) { + if (credentials === undefined) { + throw new Error("'credentials' cannot be null"); } - if (subscriptionId == undefined) { - throw new Error('\'subscriptionId\' cannot be null.'); + if (subscriptionId === undefined) { + throw new Error("'subscriptionId' cannot be null"); } + // Initializing default values for options if (!options) { options = {}; } - if(!options.userAgent) { - const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); - options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; - } + const defaults: AzureMachineLearningWorkspacesOptionalParams = { + requestContentType: "application/json; charset=utf-8", + credential: credentials + }; - super(credentials, options); + const packageDetails = `azsdk-js-arm-machinelearningservices/30.0.0-beta.1`; + const userAgentPrefix = + options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` + : `${packageDetails}`; - this.apiVersion = '2020-08-01'; - this.acceptLanguage = 'en-US'; - this.longRunningOperationRetryTimeout = 30; - this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; - this.requestContentType = "application/json; charset=utf-8"; - this.credentials = credentials; + if (!options.credentialScopes) { + options.credentialScopes = ["https://management.azure.com/.default"]; + } + const optionsWithDefaults = { + ...defaults, + ...options, + userAgentOptions: { + userAgentPrefix + }, + baseUri: options.endpoint || "https://management.azure.com" + }; + super(optionsWithDefaults); + // Parameter assignments this.subscriptionId = subscriptionId; - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { - this.acceptLanguage = options.acceptLanguage; - } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { - this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; - } + // Assigning values to Constant parameters + this.$host = options.$host || "https://management.azure.com"; + this.apiVersion = options.apiVersion || "2021-03-01-preview"; } } diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/index.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/index.ts new file mode 100644 index 000000000000..0a5be98e7249 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/index.ts @@ -0,0 +1,13 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +/// +export * from "./models"; +export { AzureMachineLearningWorkspaces } from "./azureMachineLearningWorkspaces"; +export { AzureMachineLearningWorkspacesContext } from "./azureMachineLearningWorkspacesContext"; +export * from "./operationsInterfaces"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/lro/azureAsyncPolling.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/azureAsyncPolling.ts new file mode 100644 index 000000000000..0d63c54f6026 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/azureAsyncPolling.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { FullOperationResponse } from "@azure/core-client"; +import { FinalStateVia, LROResult } from "./models"; +import { failureStates, LROState, successStates } from "./stateMachine"; + +function getResponseStatus(rawResponse: FullOperationResponse): string { + const { status } = + rawResponse.parsedBody ?? + (rawResponse.bodyAsText ? JSON.parse(rawResponse.bodyAsText) : {}); + return status?.toLowerCase() ?? "succeeded"; +} + +function isAzureAsyncPollingDone(rawResponse: FullOperationResponse) { + const state = getResponseStatus(rawResponse); + if (failureStates.includes(state)) { + throw new Error(`Operation status: ${state}`); + } + return successStates.includes(state); +} + +export function processAzureAsyncOperationResult( + restrieveResource: (path?: string) => Promise>, + resourceLocation?: string, + finalStateVia?: FinalStateVia +): ( + rawResponse: FullOperationResponse, + flatResponse: TResult +) => LROState { + return ( + rawResponse: FullOperationResponse, + flatResponse: TResult + ): LROState => { + if (isAzureAsyncPollingDone(rawResponse)) { + if (resourceLocation === undefined) { + return { rawResponse, flatResponse, done: true }; + } else { + return { + rawResponse, + flatResponse, + done: false, + next: async () => { + async function sendFinalRequest(): Promise< + LROResult | undefined + > { + switch (finalStateVia) { + case "original-uri": + return restrieveResource(); + case "azure-async-operation": + return Promise.resolve(undefined); + case "location": + default: + return restrieveResource(resourceLocation); + } + } + const finalResponse = await sendFinalRequest(); + return { + ...(finalResponse ?? { + rawResponse, + flatResponse + }), + done: true + }; + } + }; + } + } + return { + rawResponse, + flatResponse, + done: false + }; + }; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/lro/bodyPolling.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/bodyPolling.ts new file mode 100644 index 000000000000..269d8e6799a1 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/bodyPolling.ts @@ -0,0 +1,45 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { FullOperationResponse } from "@azure/core-client"; +import { failureStates, LROState, successStates } from "./stateMachine"; + +function getProvisioningState(rawResponse: FullOperationResponse): string { + const { properties, provisioningState } = + rawResponse.parsedBody ?? + (rawResponse.bodyAsText ? JSON.parse(rawResponse.bodyAsText) : {}); + const state: string | undefined = + properties?.provisioningState ?? provisioningState; + return state?.toLowerCase() ?? "succeeded"; +} + +export function isBodyPollingDone(rawResponse: FullOperationResponse) { + const state = getProvisioningState(rawResponse); + if (failureStates.includes(state)) { + throw new Error(`Provisioning state: ${state}`); + } + return successStates.includes(state); +} + +/** + * Creates a polling strategy based on BodyPolling which uses the provisioning state + * from the result to determine the current operation state + */ +export function processBodyPollingOperationResult( + rawResponse: FullOperationResponse, + flatResponse: TResult +): LROState { + return { + rawResponse, + flatResponse, + done: isBodyPollingDone(rawResponse) + }; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/usagesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/index.ts similarity index 67% rename from sdk/machinelearningservices/arm-machinelearningservices/src/models/usagesMappers.ts rename to sdk/machinelearningservices/arm-machinelearningservices/src/lro/index.ts index 31551b41586f..85c2187669e7 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/usagesMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/index.ts @@ -6,10 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export { - discriminators, - CloudError, - ListUsagesResult, - Usage, - UsageName -} from "../models/mappers"; +export { shouldDeserializeLRO } from "./requestUtils"; +export { LROPoller } from "./lroPoller"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/lro/locationPolling.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/locationPolling.ts new file mode 100644 index 000000000000..6fef61938419 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/locationPolling.ts @@ -0,0 +1,32 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { FullOperationResponse } from "@azure/core-client"; +import { LROState } from "./stateMachine"; + +function isLocationPollingDone(rawResponse: FullOperationResponse) { + const code = rawResponse.status; + if (![202, 200].includes(code)) { + throw new Error(`Operation failed`); + } + return code !== 202; +} + +export function processLocationPollingOperationResult( + rawResponse: FullOperationResponse, + flatResponse: TResult +): LROState { + return { + rawResponse, + flatResponse, + done: isLocationPollingDone(rawResponse) + }; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/lro/lroPoller.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/lroPoller.ts new file mode 100644 index 000000000000..cd1cd64fe813 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/lroPoller.ts @@ -0,0 +1,66 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { Poller, PollOperationState } from "@azure/core-lro"; +import { OperationArguments, OperationSpec } from "@azure/core-client"; +import { FinalStateVia, SendOperationFn } from "./models"; +import { GenericPollOperation } from "./operation"; + +export interface LROPollerOptions { + /** + * Defines how much time the poller is going to wait before making a new request to the service. + */ + intervalInMs?: number; + /** + * A serialized poller which can be used to resume an existing paused Long-Running-Operation. + */ + resumeFrom?: string; +} + +export class LROPoller extends Poller< + PollOperationState, + TResult +> { + private intervalInMs: number; + + constructor( + { intervalInMs = 2000, resumeFrom }: LROPollerOptions, + initialOperationArguments: OperationArguments, + initialOperationSpec: OperationSpec, + sendOperation: SendOperationFn, + finalStateVia?: FinalStateVia + ) { + const state: PollOperationState = resumeFrom + ? JSON.parse(resumeFrom).state + : {}; + + const operation = new GenericPollOperation( + state, + initialOperationArguments, + initialOperationSpec, + sendOperation, + finalStateVia + ); + super(operation); + + this.intervalInMs = intervalInMs; + operation.setPollerConfig(this as any); + } + + /** + * The method used by the poller to wait before attempting to update its operation. + */ + delay(): Promise { + return new Promise((resolve) => + setTimeout(() => resolve(), this.intervalInMs) + ); + } +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/lro/models.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/models.ts new file mode 100644 index 000000000000..a4a5a5abd6c2 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/models.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + FullOperationResponse, + OperationArguments, + OperationSpec +} from "@azure/core-client"; +import { PollOperationState } from "@azure/core-lro"; + +export type FinalStateVia = + | "azure-async-operation" + | "location" + | "original-uri"; + +export interface LROResult { + flatResponse: T; + rawResponse: FullOperationResponse; +} + +export type LROMode = "AzureAsync" | "Location" | "Body"; + +export interface LROConfig { + mode?: LROMode; + resourceLocation?: string; +} + +export type SendOperationFn = ( + args: OperationArguments, + spec: OperationSpec +) => Promise>; + +/** + * Type of a polling operation state that can actually be resumed. + */ +export type ResumablePollOperationState = PollOperationState & { + initialRawResponse?: FullOperationResponse; + config?: LROConfig; + pollingURL?: string; +}; + +export interface PollerConfig { + intervalInMs: number; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/lro/operation.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/operation.ts new file mode 100644 index 000000000000..801d03e7203a --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/operation.ts @@ -0,0 +1,132 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { AbortSignalLike } from "@azure/abort-controller"; +import { OperationArguments, OperationSpec } from "@azure/core-client"; +import { PollOperation, PollOperationState } from "@azure/core-lro"; +import { + FinalStateVia, + PollerConfig, + ResumablePollOperationState, + SendOperationFn +} from "./models"; +import { getPollingURL } from "./requestUtils"; +import { createGetLROState, initializeState, LROState } from "./stateMachine"; + +export class GenericPollOperation + implements PollOperation, TResult> { + private getLROState?: ( + pollingURL: string, + pollerConfig: PollerConfig + ) => Promise>; + private pollerConfig?: PollerConfig; + constructor( + public state: PollOperationState, + private initialOperationArguments: OperationArguments, + private initialOperationSpec: OperationSpec, + private sendOperation: SendOperationFn, + private finalStateVia?: FinalStateVia + ) {} + + public setPollerConfig(pollerConfig: PollerConfig) { + this.pollerConfig = pollerConfig; + } + + /** + * General update function for LROPoller, the general process is as follows + * 1. Check initial operation result to determine the strategy to use + * - Strategies: Location, Azure-AsyncOperation, Original Uri + * 2. Check if the operation result has a terminal state + * - Terminal state will be determined by each strategy + * 2.1 If it is terminal state Check if a final GET request is required, if so + * send final GET request and return result from operation. If no final GET + * is required, just return the result from operation. + * - Determining what to call for final request is responsibility of each strategy + * 2.2 If it is not terminal state, call the polling operation and go to step 1 + * - Determining what to call for polling is responsibility of each strategy + * - Strategies will always use the latest URI for polling if provided otherwise + * the last known one + */ + async update(options?: { + abortSignal?: AbortSignalLike | undefined; + fireProgress?: ((state: PollOperationState) => void) | undefined; + }): Promise, TResult>> { + const state = this.state as ResumablePollOperationState; + const { onResponse, ...restOptions } = + this.initialOperationArguments.options || {}; + if (!state.isStarted) { + await this.sendOperation( + { + ...this.initialOperationArguments, + options: { + ...restOptions, + onResponse: initializeState( + state, + this.initialOperationSpec, + onResponse + ) + } + }, + this.initialOperationSpec + ); + } + + if (!state.isCompleted) { + if (this.getLROState === undefined) { + if (state.config === undefined) { + throw new Error("Bad state: LRO mode is undefined"); + } + this.getLROState = createGetLROState( + this.sendOperation, + this.initialOperationArguments, + this.initialOperationSpec, + state.config, + this.finalStateVia + ); + } + if (state.pollingURL === undefined) { + throw new Error("Bad state: polling URL is undefined"); + } + const currentState = await this.getLROState( + state.pollingURL, + this.pollerConfig! + ); + if (currentState.done) { + state.result = currentState.flatResponse; + state.isCompleted = true; + } else { + this.getLROState = currentState.next ?? this.getLROState; + state.pollingURL = getPollingURL( + currentState.rawResponse, + state.pollingURL + ); + } + } + if (options?.fireProgress !== undefined) { + options.fireProgress(state); + } + return this; + } + + async cancel(): Promise, TResult>> { + this.state.isCancelled = true; + return this; + } + + /** + * Serializes the Poller operation. + */ + public toString(): string { + return JSON.stringify({ + state: this.state + }); + } +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/lro/passthrough.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/passthrough.ts new file mode 100644 index 000000000000..64c10380c1b2 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/passthrough.ts @@ -0,0 +1,24 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { FullOperationResponse } from "@azure/core-client"; +import { LROState } from "./stateMachine"; + +export function processPassthroughOperationResult( + rawResponse: FullOperationResponse, + flatResponse: TResult +): LROState { + return { + rawResponse, + flatResponse, + done: true + }; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/lro/pollingMethod.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/pollingMethod.ts new file mode 100644 index 000000000000..cb6482bbdea9 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/pollingMethod.ts @@ -0,0 +1,91 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + OperationArguments, + OperationSpec, + OperationResponseMap +} from "@azure/core-client"; +import { LROMode, LROResult, SendOperationFn } from "./models"; + +export function createPollingMethod( + sendOperationFn: SendOperationFn, + args: OperationArguments, + spec: OperationSpec, + mode?: LROMode +): (path?: string) => Promise> { + /** + * Polling calls will always return a status object i.e. {"status": "success"} + * these intermediate responses are not described in the swagger so we need to + * pass custom mappers at runtime. + * This function replaces all the existing mappers to be able to deserialize a status object + * @param responses Original set of responses defined in the operation + */ + function getCompositeMappers(responses: { + [responseCode: string]: OperationResponseMap; + }): { + [responseCode: string]: OperationResponseMap; + } { + return Object.keys(responses).reduce((acc, statusCode) => { + return { + ...acc, + [statusCode]: { + ...responses[statusCode], + bodyMapper: { + type: { + name: "Composite", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" + } + } + } + } + } + } + }; + }, {} as { [responseCode: string]: OperationResponseMap }); + } + // Make sure we don't send any body to the get request + const { requestBody, responses, ...restSpec } = spec; + if (mode === "AzureAsync") { + return async (path?: string) => { + return sendOperationFn(args, { + ...restSpec, + responses: getCompositeMappers(responses), + httpMethod: "GET", + ...(path && { path }) + }); + }; + } + return async (path?: string) => { + return sendOperationFn(args, { + ...restSpec, + responses: responses, + httpMethod: "GET", + ...(path && { path }) + }); + }; +} + +export function createRetrieveAzureAsyncResource( + sendOperationFn: SendOperationFn, + args: OperationArguments, + spec: OperationSpec +): (path?: string) => Promise> { + const updatedArgs = { ...args }; + if (updatedArgs.options) { + (updatedArgs.options as any).shouldDeserialize = true; + } + return createPollingMethod(sendOperationFn, updatedArgs, spec); +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/lro/requestUtils.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/requestUtils.ts new file mode 100644 index 000000000000..9162f6633905 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/requestUtils.ts @@ -0,0 +1,194 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { FullOperationResponse, OperationSpec } from "@azure/core-client"; +import { LROConfig } from "./models"; +import { terminalStates } from "./stateMachine"; + +/** + * We need to selectively deserialize our responses, only deserializing if we + * are in a final LRO response, not deserializing any polling non-terminal responses + */ +export function shouldDeserializeLRO(finalStateVia?: string) { + let initialOperationInfo: LROResponseInfo | undefined; + let isInitialRequest = true; + + return (response: FullOperationResponse) => { + if (response.status < 200 || response.status >= 300) { + return true; + } + + if (!initialOperationInfo) { + initialOperationInfo = getLROData(response); + } else { + isInitialRequest = false; + } + + if ( + initialOperationInfo.azureAsyncOperation || + initialOperationInfo.operationLocation + ) { + return ( + !isInitialRequest && + isAsyncOperationFinalResponse( + response, + initialOperationInfo, + finalStateVia + ) + ); + } + + if (initialOperationInfo.location) { + return isLocationFinalResponse(response); + } + + if (initialOperationInfo.requestMethod === "PUT") { + return isBodyPollingFinalResponse(response); + } + + return true; + }; +} + +function isAsyncOperationFinalResponse( + response: FullOperationResponse, + initialOperationInfo: LROResponseInfo, + finalStateVia?: string +): boolean { + const status: string = response.parsedBody?.status || "Succeeded"; + if (!terminalStates.includes(status.toLowerCase())) { + return false; + } + + if (initialOperationInfo.requestMethod === "DELETE") { + return true; + } + + if ( + initialOperationInfo.requestMethod === "PUT" && + finalStateVia && + finalStateVia.toLowerCase() === "azure-asyncoperation" + ) { + return true; + } + + if ( + initialOperationInfo.requestMethod !== "PUT" && + !initialOperationInfo.location + ) { + return true; + } + + return false; +} + +function isLocationFinalResponse(response: FullOperationResponse): boolean { + return response.status !== 202; +} + +function isBodyPollingFinalResponse(response: FullOperationResponse): boolean { + const provisioningState: string = + response.parsedBody?.properties?.provisioningState || "Succeeded"; + + if (terminalStates.includes(provisioningState.toLowerCase())) { + return true; + } + + return false; +} + +interface LROResponseInfo { + requestMethod: string; + azureAsyncOperation?: string; + operationLocation?: string; + location?: string; +} + +function getLROData(result: FullOperationResponse): LROResponseInfo { + return { + azureAsyncOperation: result.headers.get("azure-asyncoperation"), + operationLocation: result.headers.get("operation-location"), + location: result.headers.get("location"), + requestMethod: result.request.method + }; +} + +/** + * Detects where the continuation token is and returns it. Notice that azure-asyncoperation + * must be checked first before the other location headers because there are scenarios + * where both azure-asyncoperation and location could be present in the same response but + * azure-asyncoperation should be the one to use for polling. + */ +export function getPollingURL( + rawResponse: FullOperationResponse, + defaultPath: string +): string { + return ( + getAzureAsyncoperation(rawResponse) ?? + getLocation(rawResponse) ?? + getOperationLocation(rawResponse) ?? + defaultPath + ); +} + +function getLocation(rawResponse: FullOperationResponse): string | undefined { + return rawResponse.headers?.get("location"); +} + +function getOperationLocation( + rawResponse: FullOperationResponse +): string | undefined { + return rawResponse.headers?.get("operation-location"); +} + +function getAzureAsyncoperation( + rawResponse: FullOperationResponse +): string | undefined { + return rawResponse.headers?.get("azure-asyncoperation"); +} + +export function inferLROMode( + spec: OperationSpec, + rawResponse: FullOperationResponse +): LROConfig { + const requestMethod = spec.httpMethod; + if (getAzureAsyncoperation(rawResponse) !== undefined) { + return { + mode: "AzureAsync", + resourceLocation: + requestMethod === "PUT" + ? spec.path + : requestMethod === "POST" + ? getLocation(rawResponse) + : undefined + }; + } else if ( + getLocation(rawResponse) !== undefined || + getOperationLocation(rawResponse) !== undefined + ) { + return { + mode: "Location" + }; + } else if (["PUT", "PATCH"].includes(requestMethod)) { + return { + mode: "Body" + }; + } + return {}; +} + +export function getSpecPath(spec: OperationSpec): string { + if (spec.path) { + return spec.path; + } else { + throw Error("Bad spec: request path is not found!"); + } +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/lro/stateMachine.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/stateMachine.ts new file mode 100644 index 000000000000..b2a69b554601 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/lro/stateMachine.ts @@ -0,0 +1,216 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + FullOperationResponse, + OperationArguments, + OperationSpec, + RawResponseCallback +} from "@azure/core-client"; +import { processAzureAsyncOperationResult } from "./azureAsyncPolling"; +import { + isBodyPollingDone, + processBodyPollingOperationResult +} from "./bodyPolling"; +import { processLocationPollingOperationResult } from "./locationPolling"; +import { + FinalStateVia, + LROConfig, + LROResult, + PollerConfig, + ResumablePollOperationState, + SendOperationFn +} from "./models"; +import { processPassthroughOperationResult } from "./passthrough"; +import { + createPollingMethod, + createRetrieveAzureAsyncResource +} from "./pollingMethod"; +import { getPollingURL, getSpecPath, inferLROMode } from "./requestUtils"; + +export const successStates = ["succeeded"]; +export const failureStates = ["failed", "canceled", "cancelled"]; +export const terminalStates = successStates.concat(failureStates); + +/** + * The type of a terminal state of an LRO. + */ +interface LROTerminalState extends LROResult { + /** + * Whether the operation has finished. + */ + done: true; +} + +/** + * The type of an in-progress state of an LRO. + */ +interface LROInProgressState extends LROResult { + /** + * Whether the operation has finished. + */ + done: false; + /** + * The request to be sent next if it is different from the standard polling one. + * Notice that it will disregard any polling URLs provided to it. + */ + next?: () => Promise>; +} + +/** + * The type of an LRO state which is a tagged union of terminal and in-progress states. + */ +export type LROState = LROTerminalState | LROInProgressState; + +/** + * creates a stepping function that maps an LRO state to another. + */ +function createTransition( + sendOperationFn: SendOperationFn, + args: OperationArguments, + spec: OperationSpec, + config: LROConfig, + finalStateVia?: FinalStateVia +): ( + rawResponse: FullOperationResponse, + flatResponse: TResult +) => LROState { + switch (config.mode) { + case "AzureAsync": { + return processAzureAsyncOperationResult( + createRetrieveAzureAsyncResource(sendOperationFn, args, spec), + config.resourceLocation, + finalStateVia + ); + } + case "Location": { + return processLocationPollingOperationResult; + } + case "Body": { + return processBodyPollingOperationResult; + } + default: { + return processPassthroughOperationResult; + } + } +} + +/** + * Creates a polling operation that returns a LRO state. + */ +export function createGetLROState( + sendOperationFn: SendOperationFn, + args: OperationArguments, + spec: OperationSpec, + config: LROConfig, + finalStateVia?: FinalStateVia +): ( + pollingURL: string, + pollerConfig: PollerConfig +) => Promise> { + const step = createTransition( + sendOperationFn, + args, + spec, + config, + finalStateVia + ); + const customerCallback = args?.options?.onResponse; + let response: LROState | undefined = undefined; + let retryAfter: string | undefined = undefined; + const poll = createPollingMethod( + sendOperationFn, + { + ...args, + options: { + ...args.options, + onResponse: ( + rawResponse: FullOperationResponse, + flatResponse: unknown + ): void => { + response = step(rawResponse, flatResponse as TResult); + retryAfter = rawResponse.headers.get("Retry-After"); + if (response.done) { + customerCallback?.(rawResponse, flatResponse); + } + } + } + }, + spec, + config.mode + ); + return async ( + path: string, + pollerConfig: PollerConfig + ): Promise> => { + await poll(path); + if (retryAfter !== undefined) { + const retryAfterInMs = parseInt(retryAfter); + pollerConfig.intervalInMs = isNaN(retryAfterInMs) + ? calculatePollingIntervalFromDate( + new Date(retryAfter), + pollerConfig.intervalInMs + ) + : retryAfterInMs; + } + return response!; + }; +} + +function calculatePollingIntervalFromDate( + retryAfterDate: Date, + defaultIntervalInMs: number +): number { + const timeNow = Math.floor(new Date().getTime()); + const retryAfterTime = retryAfterDate.getTime(); + if (timeNow < retryAfterTime) { + return retryAfterTime - timeNow; + } + return defaultIntervalInMs; +} + +/** + * Creates a callback to be used to initialize the polling operation state. + * @param state of the polling operation + * @param operationSpec of the LRO + * @param callback callback to be called when the operation is done + * @returns callback that initializes the state of the polling operation + */ +export function initializeState( + state: ResumablePollOperationState, + operationSpec: OperationSpec, + callback?: RawResponseCallback +): (rawResponse: FullOperationResponse, flatResponse: unknown) => void { + return (rawResponse: FullOperationResponse, flatResponse: unknown) => { + state.initialRawResponse = rawResponse; + state.isStarted = true; + state.pollingURL = getPollingURL( + state.initialRawResponse, + getSpecPath(operationSpec) + ); + state.config = inferLROMode(operationSpec, state.initialRawResponse); + /** short circuit polling if body polling is done in the initial request */ + if ( + state.config.mode === undefined || + (state.config.mode === "Body" && + isBodyPollingDone(state.initialRawResponse)) + ) { + state.result = flatResponse as TResult; + state.isCompleted = true; + /** + * We need to check if the LRO operation is finished inside the + * call back so that we can call the customer-provided callback + * on that result. + */ + callback?.(rawResponse, flatResponse); + } + }; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts index 77ada3593b7f..22685f97dc7c 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts @@ -6,3324 +6,6205 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; -import * as msRest from "@azure/ms-rest-js"; +import * as coreClient from "@azure/core-client"; + +export type ComputeUnion = + | Compute + | Aks + | AmlCompute + | ComputeInstance + | VirtualMachine + | HDInsight + | DataFactory + | Databricks + | DataLakeAnalytics + | SynapseSpark; +export type ComputeNodesInformationUnion = + | ComputeNodesInformation + | AmlComputeNodesInformation; +export type ComputeSecretsUnion = + | ComputeSecrets + | AksComputeSecrets + | VirtualMachineSecrets + | DatabricksComputeSecrets; +export type AssetReferenceBaseUnion = + | AssetReferenceBase + | DataPathAssetReference + | IdAssetReference + | OutputPathAssetReference; +export type DatastoreContentsUnion = + | DatastoreContents + | AzureBlobContents + | AzureDataLakeGen1Contents + | AzureDataLakeGen2Contents + | AzureFileContents + | AzurePostgreSqlContents + | AzureSqlDatabaseContents + | GlusterFsContents; +export type DatastoreSecretsUnion = + | DatastoreSecrets + | AccountKeyDatastoreSecrets + | CertificateDatastoreSecrets + | NoneDatastoreSecrets + | SasDatastoreSecrets + | ServicePrincipalDatastoreSecrets + | SqlAdminDatastoreSecrets; +export type DockerSpecificationUnion = + | DockerSpecification + | DockerBuild + | DockerImage; +export type JobBaseUnion = JobBase | CommandJob | SweepJob; +export type LabelingJobMediaPropertiesUnion = + | LabelingJobMediaProperties + | LabelingJobImageProperties + | LabelingJobTextProperties; +export type ExportSummaryUnion = + | ExportSummary + | CocoExportSummary + | CsvExportSummary + | DatasetExportSummary; +export type OnlineDeploymentUnion = + | OnlineDeployment + | K8SOnlineDeployment + | ManagedOnlineDeployment; +export type OnlineScaleSettingsUnion = + | OnlineScaleSettings + | AutoScaleSettings + | ManualScaleSettings; +export type PartialOnlineDeploymentUnion = + | PartialOnlineDeployment + | PartialAksOnlineDeployment + | PartialManagedOnlineDeployment; +export type DatastoreCredentialsUnion = + | DatastoreCredentials + | AccountKeyDatastoreCredentials + | CertificateDatastoreCredentials + | NoneDatastoreCredentials + | SasDatastoreCredentials + | ServicePrincipalDatastoreCredentials + | SqlAdminDatastoreCredentials; +export type IdentityConfigurationUnion = + | IdentityConfiguration + | AmlToken + | ManagedIdentity; +export type EarlyTerminationPolicyUnion = + | EarlyTerminationPolicy + | BanditPolicy + | MedianStoppingPolicy + | TruncationSelectionPolicy; +export type DistributionConfigurationUnion = + | DistributionConfiguration + | Mpi + | PyTorch + | TensorFlow; + +/** An array of operations supported by the resource provider. */ +export interface OperationListResult { + /** List of AML workspace operations supported by the AML workspace resource provider. */ + value?: Operation[]; +} -export { BaseResource, CloudError }; +/** Azure Machine Learning workspace REST API operation */ +export interface Operation { + /** Operation name: {provider}/{resource}/{operation} */ + name?: string; + /** Display name of operation */ + display?: OperationDisplay; +} -/** - * Display name of operation - */ +/** Display name of operation */ export interface OperationDisplay { - /** - * The resource provider name: Microsoft.MachineLearningExperimentation - */ + /** The resource provider name: Microsoft.MachineLearningExperimentation */ provider?: string; + /** The resource on which the operation is performed. */ + resource?: string; + /** The operation that users can perform. */ + operation?: string; + /** The description for the operation. */ + description?: string; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { /** - * The resource on which the operation is performed. + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - resource?: string; + readonly code?: string; /** - * The operation that users can perform. + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - operation?: string; + readonly message?: string; /** - * The description for the operation. + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - description?: string; -} - -/** - * Azure Machine Learning workspace REST API operation - */ -export interface Operation { + readonly target?: string; /** - * Operation name: {provider}/{resource}/{operation} + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - name?: string; + readonly details?: ErrorDetail[]; /** - * Display name of operation + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - display?: OperationDisplay; -} - -/** - * An interface representing NotebookListCredentialsResult. - */ -export interface NotebookListCredentialsResult { - primaryAccessKey?: string; - secondaryAccessKey?: string; -} - -/** - * An interface representing NotebookPreparationError. - */ -export interface NotebookPreparationError { - errorMessage?: string; - statusCode?: number; + readonly additionalInfo?: ErrorAdditionalInfo[]; } -/** - * An interface representing NotebookResourceInfo. - */ -export interface NotebookResourceInfo { - fqdn?: string; +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { /** - * the data plane resourceId that used to initialize notebook component + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - resourceId?: string; + readonly type?: string; /** - * The error that occurs when preparing notebook. + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - notebookPreparationError?: NotebookPreparationError; + readonly info?: Record; } -/** - * An interface representing KeyVaultProperties. - */ -export interface KeyVaultProperties { +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { /** - * The ArmId of the keyVault where the customer owned encryption key is present. + * 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. */ - keyVaultArmId: string; + readonly id?: string; /** - * Key vault uri to access the encryption key. + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. */ - keyIdentifier: string; + readonly name?: string; /** - * For future use - The client id of the identity which will be used to access key vault. + * 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. */ - identityClientId?: string; + readonly type?: string; } -/** - * An interface representing EncryptionProperty. - */ export interface EncryptionProperty { - /** - * Indicates whether or not the encryption is enabled for the workspace. Possible values include: - * 'Enabled', 'Disabled' - */ + /** Indicates whether or not the encryption is enabled for the workspace. */ status: EncryptionStatus; - /** - * Customer Key vault properties. - */ + /** The identity that will be used to access the key vault for encryption at rest. */ + identity?: IdentityForCmk; + /** Customer Key vault properties. */ keyVaultProperties: KeyVaultProperties; } -/** - * The Private Endpoint resource. - */ +/** Identity that will be used to access key vault for encryption at rest */ +export interface IdentityForCmk { + /** The ArmId of the user assigned identity that will be used to access the customer managed key vault */ + userAssignedIdentity?: string; +} + +export interface KeyVaultProperties { + /** The ArmId of the keyVault where the customer owned encryption key is present. */ + keyVaultArmId: string; + /** Key vault uri to access the encryption key. */ + keyIdentifier: string; + /** For future use - The client id of the identity which will be used to access key vault. */ + identityClientId?: string; +} + +/** The Private Endpoint resource. */ export interface PrivateEndpoint { /** * The ARM identifier for Private Endpoint - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; + /** + * The ARM identifier for Subnet resource that private endpoint links to + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly subnetArmId?: string; } -/** - * A collection of information about the state of the connection between service consumer and - * provider. - */ +/** A collection of information about the state of the connection between service consumer and provider. */ export interface PrivateLinkServiceConnectionState { - /** - * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the - * service. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected', 'Timeout' - */ + /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ status?: PrivateEndpointServiceConnectionStatus; - /** - * The reason for approval/rejection of the connection. - */ + /** 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. - */ + /** A message indicating if changes on the service provider require any updates on the consumer. */ actionsRequired?: string; } -/** - * The Private Endpoint Connection resource. - */ -export interface PrivateEndpointConnection extends BaseResource { - /** - * ResourceId of the private endpoint connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; +/** Identity for the resource. */ +export interface Identity { /** - * Friendly name of the private endpoint connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The principal ID of resource identity. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly principalId?: string; /** - * Resource type of private endpoint connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The tenant ID of resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly tenantId?: string; + /** The identity type. */ + type?: ResourceIdentityType; + /** The user assigned identities associated with the resource. */ + userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity }; +} + +/** User Assigned Identity */ +export interface UserAssignedIdentity { /** - * The resource of private end point. + * The principal ID of the user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - privateEndpoint?: PrivateEndpoint; + readonly principalId?: string; /** - * A collection of information about the state of the connection between service consumer and - * provider. + * The tenant ID of the user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - privateLinkServiceConnectionState: PrivateLinkServiceConnectionState; + readonly tenantId?: string; /** - * The provisioning state of the private endpoint connection resource. Possible values include: - * 'Succeeded', 'Creating', 'Deleting', 'Failed' + * The clientId(aka appId) of the user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - provisioningState?: PrivateEndpointConnectionProvisioningState; + readonly clientId?: string; +} + +/** Sku of the resource */ +export interface Sku { + /** Name of the sku */ + name?: string; + /** Tier of the sku like Basic or Enterprise */ + tier?: string; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; } -/** - * An interface representing SharedPrivateLinkResource. - */ export interface SharedPrivateLinkResource { - /** - * Unique name of the private link. - */ + /** Unique name of the private link. */ name?: string; - /** - * The resource id that private link links to. - */ + /** The resource id that private link links to. */ privateLinkResourceId?: string; - /** - * The private link resource group id. - */ + /** The private link resource group id. */ groupId?: string; + /** Request message. */ + requestMessage?: string; + /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ + status?: PrivateEndpointServiceConnectionStatus; +} + +export interface NotebookResourceInfo { + fqdn?: string; + /** the data plane resourceId that used to initialize notebook component */ + resourceId?: string; + /** The error that occurs when preparing notebook. */ + notebookPreparationError?: NotebookPreparationError; +} + +export interface NotebookPreparationError { + errorMessage?: string; + statusCode?: number; +} + +export interface ServiceManagedResourcesSettings { + /** The settings for the service managed cosmosdb account. */ + cosmosDb?: CosmosDbSettings; +} + +export interface CosmosDbSettings { + /** The throughput of the collections in cosmosdb database */ + collectionsThroughput?: number; +} + +/** The parameters for updating a machine learning workspace. */ +export interface WorkspaceUpdateParameters { + /** The resource tags for the machine learning workspace. */ + tags?: { [propertyName: string]: string }; + /** The sku of the workspace. */ + sku?: Sku; + /** The identity of the resource. */ + identity?: Identity; + /** The description of this workspace. */ + description?: string; + /** The friendly name for this workspace. */ + friendlyName?: string; + /** The compute name for image build */ + imageBuildCompute?: string; + /** The service managed resource settings. */ + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; + /** The user assigned identity resource id that represents the workspace identity. */ + primaryUserAssignedIdentity?: string; +} + +/** 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; +} + +export interface ListWorkspaceKeysResult { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly userStorageKey?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly userStorageResourceId?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly appInsightsInstrumentationKey?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly containerRegistryCredentials?: RegistryListCredentialsResult; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly notebookAccessKeys?: ListNotebookKeysResult; +} + +export interface RegistryListCredentialsResult { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly location?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly username?: string; + passwords?: Password[]; +} + +export interface Password { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly name?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly value?: string; +} + +export interface ListNotebookKeysResult { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly primaryAccessKey?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly secondaryAccessKey?: string; +} + +/** The List Usages operation response. */ +export interface ListUsagesResult { /** - * Request message. + * The list of AML resource usages. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - requestMessage?: string; + readonly value?: Usage[]; /** - * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the - * service. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected', 'Timeout' + * 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. */ - status?: PrivateEndpointServiceConnectionStatus; + readonly nextLink?: string; } -/** - * Azure Resource Manager resource envelope. - */ -export interface Resource extends BaseResource { +/** 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.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; /** - * Specifies the name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Region of the AML workspace in the id. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly amlWorkspaceLocation?: string; /** - * The identity of the resource. + * Specifies the resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - identity?: Identity; + readonly type?: string; /** - * Specifies the location of the resource. + * An enum describing the unit of usage measurement. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - location?: string; + readonly unit?: UsageUnit; /** - * Specifies the type of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The current usage of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly currentValue?: number; /** - * Contains resource tags defined as key/value pairs. + * The maximum permitted usage of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - tags?: { [propertyName: string]: string }; + readonly limit?: number; /** - * The sku of the workspace. + * The name of the type of usage. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sku?: Sku; + readonly name?: UsageName; } -/** - * An object that represents a machine learning workspace. - */ -export interface Workspace extends Resource { - /** - * The immutable id associated with this workspace. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly workspaceId?: string; +/** The Usage Names. */ +export interface UsageName { /** - * The description of this workspace. + * The name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - description?: string; + readonly value?: string; /** - * The friendly name for this workspace. This name in mutable + * The localized name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - friendlyName?: string; + readonly localizedValue?: string; +} + +/** The List Virtual Machine size operation response. */ +export interface VirtualMachineSizeListResult { + /** The list of virtual machine sizes supported by AmlCompute. */ + value?: VirtualMachineSize[]; +} + +/** Describes the properties of a VM size. */ +export interface VirtualMachineSize { /** - * The creation time of the machine learning workspace in ISO8601 format. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The name of the virtual machine size. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; + readonly name?: string; /** - * ARM id of the key vault associated with this workspace. This cannot be changed once the - * workspace has been created + * The family name of the virtual machine size. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - keyVault?: string; + readonly family?: string; /** - * ARM id of the application insights associated with this workspace. This cannot be changed once - * the workspace has been created + * 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. */ - applicationInsights?: string; + readonly vCPUs?: number; /** - * ARM id of the container registry associated with this workspace. This cannot be changed once - * the workspace has been created + * 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. */ - containerRegistry?: string; + readonly gpus?: number; /** - * ARM id of the storage account associated with this workspace. This cannot be changed once the - * workspace has been created + * 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. */ - storageAccount?: string; + readonly osVhdSizeMB?: number; /** - * Url for the discovery service to identify regional endpoints for machine learning - * experimentation services + * 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. */ - discoveryUrl?: string; + readonly maxResourceVolumeMB?: number; /** - * The current deployment state of workspace resource. The provisioningState is to indicate - * states for resource provisioning. Possible values include: 'Unknown', 'Updating', 'Creating', - * 'Deleting', 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The 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 provisioningState?: ProvisioningState; + readonly memoryGB?: number; /** - * The encryption settings of Azure ML workspace. + * Specifies if the virtual machine size supports low priority VMs. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - encryption?: EncryptionProperty; + readonly lowPriorityCapable?: boolean; /** - * The flag to signal HBI data in the workspace and reduce diagnostic data collected by the - * service. Default value: false. + * Specifies if the virtual machine size supports premium IO. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - hbiWorkspace?: boolean; + readonly premiumIO?: boolean; + /** The estimated price information for using a VM. */ + estimatedVMPrices?: EstimatedVMPrices; +} + +/** The estimated price info for using a VM. */ +export interface EstimatedVMPrices { + /** Three lettered code specifying the currency of the VM price. Example: USD */ + billingCurrency: BillingCurrency; + /** The unit of time measurement for the specified VM price. Example: OneHour */ + unitOfMeasure: UnitOfMeasure; + /** The list of estimated prices for using a VM of a particular OS type, tier, etc. */ + values: EstimatedVMPrice[]; +} + +/** The estimated price info for using a VM of a particular OS type, tier, etc. */ +export interface EstimatedVMPrice { + /** The price charged for using the VM. */ + retailPrice: number; + /** Operating system type used by the VM. */ + osType: VMPriceOSType; + /** The type of the VM. */ + vmTier: VMTier; +} + +/** Quota update parameters. */ +export interface QuotaUpdateParameters { + /** The list for update quota. */ + value?: QuotaBaseProperties[]; + /** Region of workspace quota to be updated. */ + location?: string; +} + +/** The properties for Quota update or retrieval. */ +export interface QuotaBaseProperties { + /** Specifies the resource ID. */ + id?: string; + /** Specifies the resource type. */ + type?: string; + /** The maximum permitted quota of the resource. */ + limit?: number; + /** An enum describing the unit of quota measurement. */ + unit?: QuotaUnit; +} + +/** The result of update workspace quota. */ +export interface UpdateWorkspaceQuotasResult { /** - * The name of the managed resource group created by workspace RP in customer subscription if the - * workspace is CMK workspace - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The list of workspace quota update result. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serviceProvisionedResourceGroup?: string; + readonly value?: UpdateWorkspaceQuotas[]; /** - * Count of private connections in the workspace - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The URI to fetch the next page of workspace quota 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 privateLinkCount?: number; - /** - * The compute name for image build - */ - imageBuildCompute?: string; - /** - * The flag to indicate whether to allow public access when behind VNet. Default value: false. - */ - allowPublicAccessWhenBehindVnet?: boolean; + readonly nextLink?: string; +} + +/** The properties for update Quota response. */ +export interface UpdateWorkspaceQuotas { /** - * The list of private endpoint connections in the workspace. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointConnections?: PrivateEndpointConnection[]; + readonly id?: string; /** - * The list of shared private link resources in this workspace. + * Specifies the resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sharedPrivateLinkResources?: SharedPrivateLinkResource[]; + readonly type?: string; + /** The maximum permitted quota of the resource. */ + limit?: number; /** - * The notebook info of Azure ML workspace. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * An enum describing the unit of quota measurement. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly notebookInfo?: NotebookResourceInfo; + readonly unit?: QuotaUnit; + /** Status of update workspace quota. */ + status?: Status; } -/** - * Sku of the resource - */ -export interface Sku { +/** The List WorkspaceQuotasByVMFamily operation response. */ +export interface ListWorkspaceQuotas { /** - * Name of the sku + * The list of Workspace Quotas by VM Family + * NOTE: This property will not be serialized. It can only be populated by the server. */ - name?: string; + readonly value?: ResourceQuota[]; /** - * Tier of the sku like Basic or Enterprise + * 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. */ - tier?: string; + readonly nextLink?: 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 quota assigned to a resource. */ +export interface ResourceQuota { /** - * The sku of the workspace. + * Specifies the resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sku?: Sku; + readonly id?: string; /** - * The description of this workspace. + * Region of the AML workspace in the id. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - description?: string; + readonly amlWorkspaceLocation?: string; /** - * The friendly name for this workspace. + * Specifies the resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - friendlyName?: string; -} - -/** - * Features enabled for a workspace - */ -export interface AmlUserFeature { + readonly type?: string; /** - * Specifies the feature ID + * Name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - id?: string; + readonly name?: ResourceName; /** - * Specifies the feature name + * The maximum permitted quota of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - displayName?: string; + readonly limit?: number; /** - * Describes the feature for user experience + * An enum describing the unit of quota measurement. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - description?: string; + readonly unit?: QuotaUnit; } -/** - * The Usage Names. - */ -export interface UsageName { +/** The Resource Name. */ +export interface ResourceName { /** * The name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly localizedValue?: 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; +/** 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; +} + +export interface Components1D3SwueSchemasComputeresourceAllof1 { + /** Compute properties */ + properties?: ComputeUnion; +} + +/** Machine Learning compute object. */ +export interface Compute { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: + | "AKS" + | "AmlCompute" + | "ComputeInstance" + | "VirtualMachine" + | "HDInsight" + | "DataFactory" + | "Databricks" + | "DataLakeAnalytics" + | "SynapseSpark"; + /** Location for the underlying compute */ + computeLocation?: string; /** - * Specifies the resource type. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly provisioningState?: ProvisioningState; + /** The description of the Machine Learning compute. */ + description?: string; /** - * An enum describing the unit of usage measurement. Possible values include: 'Count' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The time at which the compute was created. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: UsageUnit; + readonly createdOn?: Date; /** - * The current usage of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The time at which the compute was last modified. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentValue?: number; + readonly modifiedOn?: Date; + /** ARM resource id of the underlying compute */ + resourceId?: string; /** - * The maximum permitted usage of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Errors during provisioning + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly provisioningErrors?: ErrorResponse[]; /** - * The name of the type of usage. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: UsageName; + readonly isAttachedCompute?: boolean; + /** Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. */ + disableLocalAuth?: boolean; } -/** - * The estimated price info for using a VM of a particular OS type, tier, etc. - */ -export interface EstimatedVMPrice { - /** - * Retail price. The price charged for using the VM. - */ - retailPrice: number; - /** - * OS type. Operating system type used by the VM. Possible values include: 'Linux', 'Windows' - */ - osType: VMPriceOSType; - /** - * VM tier. The type of the VM. Possible values include: 'Standard', 'LowPriority', 'Spot' - */ - vmTier: VMTier; +/** AmlCompute update parameters. */ +export interface ClusterUpdateParameters { + /** Desired scale settings for the amlCompute. */ + scaleSettings?: ScaleSettings; } -/** - * The estimated price info for using a VM. - */ -export interface EstimatedVMPrices { - /** - * List of estimated VM prices. The list of estimated prices for using a VM of a particular OS - * type, tier, etc. - */ - values: EstimatedVMPrice[]; +/** 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; } -/** - * Describes the properties of a VM size. - */ -export interface VirtualMachineSize { - /** - * Virtual Machine size name. The name of the virtual machine size. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Virtual Machine family name. The family name of the virtual machine size. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly family?: string; - /** - * Number of vPUs. The number of vCPUs supported by the virtual machine size. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly vCPUs?: number; - /** - * Number of gPUs. The number of gPUs supported by the virtual machine size. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly gpus?: number; +/** Compute nodes information related to a Machine Learning compute. Might differ for every type of compute. */ +export interface ComputeNodesInformation { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "AmlCompute"; /** - * OS VHD Disk size. The OS VHD disk size, in MB, allowed by the virtual machine size. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The continuation token. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly osVhdSizeMB?: number; + readonly nextLink?: string; +} + +/** Compute node information related to a AmlCompute. */ +export interface AmlComputeNodeInformation { /** - * Resource volume size. The resource volume size, in MB, allowed by the virtual machine size. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * ID of the compute node. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxResourceVolumeMB?: number; + readonly nodeId?: string; /** - * Memory size. The amount of memory, in GB, supported by the virtual machine size. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Private IP address of the compute node. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly memoryGB?: number; + readonly privateIpAddress?: string; /** - * Low priority capable. Specifies if the virtual machine size supports low priority VMs. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Public IP address of the compute node. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lowPriorityCapable?: boolean; + readonly publicIpAddress?: string; /** - * Premium IO supported. Specifies if the virtual machine size supports premium IO. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * SSH port number of the node. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly premiumIO?: boolean; + readonly port?: number; /** - * Estimated VM prices. The estimated price information for using a VM. + * 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. */ - estimatedVMPrices?: EstimatedVMPrices; + readonly nodeState?: NodeState; /** - * Supported Compute Types. Specifies the compute types supported by the virtual machine size. + * 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. */ - supportedComputeTypes?: string[]; + readonly runId?: string; } -/** - * The List Virtual Machine size operation response. - */ -export interface VirtualMachineSizeListResult { - /** - * The list of virtual machine sizes supported by AmlCompute. - */ - amlCompute?: VirtualMachineSize[]; +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; } -/** - * The properties for Quota update or retrieval. - */ -export interface QuotaBaseProperties { - /** - * Specifies the resource ID. - */ - id?: string; - /** - * Specifies the resource type. - */ - type?: string; - /** - * Limit. The maximum permitted quota of the resource. - */ - limit?: number; - /** - * An enum describing the unit of quota measurement. Possible values include: 'Count' - */ - unit?: QuotaUnit; +/** 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"; } -/** - * Quota update parameters. - */ -export interface QuotaUpdateParameters { - /** - * The list for update quota. - */ - value?: QuotaBaseProperties[]; +/** 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[]; } -/** - * The properties for update Quota response. - */ -export interface UpdateWorkspaceQuotas { +/** Compute start stop schedule properties */ +export interface ComputeStartStopSchedule { /** - * Specifies the resource ID. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Schedule 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 current deployment state of schedule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatus?: ProvisioningStatus; + /** The schedule status. */ + status?: ScheduleStatus; + /** The schedule trigger type. */ + triggerType?: TriggerType; + /** The compute power action. */ + action?: ComputePowerAction; + /** The workflow trigger recurrence for ComputeStartStop schedule type. */ + recurrence?: Recurrence; + /** The workflow trigger cron for ComputeStartStop schedule type. */ + cron?: Cron; +} + +/** The workflow trigger recurrence for ComputeStartStop schedule type. */ +export interface Recurrence { + /** The recurrence frequency. */ + frequency?: RecurrenceFrequency; + /** The interval. */ + interval?: number; + /** The start time. */ + startTime?: string; + /** The time zone. */ + timeZone?: string; + /** The recurrence schedule */ + schedule?: RecurrenceSchedule; +} + +/** The recurrence schedule */ +export interface RecurrenceSchedule { + /** The minutes. */ + minutes?: number[]; + /** The hours. */ + hours?: number[]; + /** The days of the week. */ + weekDays?: DaysOfWeek[]; +} + +/** The workflow trigger cron for ComputeStartStop schedule type. */ +export interface Cron { + /** The start time. */ + startTime?: string; + /** The time zone. */ + timeZone?: string; + /** The cron expression. */ + expression?: 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; +} + +/** Paginated list of Workspace connection objects. */ +export interface PaginatedWorkspaceConnectionsList { + /** An array of Workspace connection objects. */ + value?: WorkspaceConnection[]; + /** A continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; +} + +/** Workspace connection. */ +export interface WorkspaceConnection { /** - * Limit. The maximum permitted quota of the resource. + * ResourceId of the workspace connection. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - limit?: number; + readonly id?: string; /** - * An enum describing the unit of quota measurement. Possible values include: 'Count' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Friendly name of the workspace connection. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: QuotaUnit; + readonly name?: string; /** - * Update Workspace Quota Status. Status of update workspace quota. Possible values include: - * 'Undefined', 'Success', 'Failure', 'InvalidQuotaBelowClusterMinimum', - * 'InvalidQuotaExceedsSubscriptionLimit', 'InvalidVMFamilyName', 'OperationNotSupportedForSku', - * 'OperationNotEnabledForRegion' + * Resource type of workspace connection. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - status?: Status; + readonly type?: string; + /** Category of the workspace connection. */ + category?: string; + /** Target of the workspace connection. */ + target?: string; + /** Authorization type of the workspace connection. */ + authType?: string; + /** Value details of the workspace connection. */ + value?: string; + /** format for the workspace connection value */ + valueFormat?: ValueFormat; } -/** - * The result of update workspace quota. - */ -export interface UpdateWorkspaceQuotasResult { - /** - * 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; +/** 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?: BatchEndpointTrackedResource[]; } -/** - * The Resource Name. - */ -export interface ResourceName { +/** Service identity associated with a resource. */ +export interface ResourceIdentity { /** - * The name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Client ID that is used when authenticating. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: string; + readonly principalId?: string; /** - * The localized name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * AAD Tenant where this identity lives. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly localizedValue?: string; + readonly tenantId?: string; + /** Defines values for a ResourceIdentity's type. */ + type?: ResourceIdentityAssignment; + /** Dictionary of the user assigned identities, key is ARM resource ID of the UAI. */ + userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentityMeta }; } -/** - * 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; - /** - * Specifies the resource type. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; +/** User assigned identities associated with a resource. */ +export interface UserAssignedIdentityMeta { + /** Aka application ID, a unique identifier generated by Azure AD that is tied to an application and service principal during its initial provisioning. */ + clientId?: string; + /** The object ID of the service principal object for your managed identity that is used to grant role-based access to an Azure resource. */ + principalId?: string; +} + +/** Batch endpoint configuration. */ +export interface BatchEndpoint { + /** Enum to determine endpoint authentication mode. */ + authMode?: EndpointAuthMode; + /** Description of the inference endpoint. */ + description?: string; /** - * Name of the resource. - * **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 name?: ResourceName; + keys?: EndpointAuthKeys; + /** Property dictionary. Properties can be added, but not removed or altered. */ + properties?: { [propertyName: string]: string }; /** - * Limit. The maximum permitted quota of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Endpoint URI. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly scoringUri?: string; /** - * An enum describing the unit of quota measurement. Possible values include: 'Count' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Endpoint Swagger URI. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: QuotaUnit; + readonly swaggerUri?: string; + /** Traffic rules on how the traffic will be routed across deployments. */ + traffic?: { [propertyName: string]: number }; } -/** - * An interface representing IdentityUserAssignedIdentitiesValue. - */ -export interface IdentityUserAssignedIdentitiesValue { - /** - * The principal id of user assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly principalId?: string; - /** - * The client id of user assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly clientId?: string; +/** Keys for endpoint authentication. */ +export interface EndpointAuthKeys { + /** The primary key. */ + primaryKey?: string; + /** The secondary key. */ + secondaryKey?: string; } -/** - * Identity for the resource. - */ -export interface Identity { - /** - * The principal ID of resource identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly principalId?: string; - /** - * The tenant ID of resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly tenantId?: string; - /** - * The identity type. Possible values include: 'SystemAssigned', 'UserAssigned', - * 'SystemAssigned,UserAssigned', 'None' - */ - type: ResourceIdentityType; - /** - * The list of user identities associated with resource. The user identity dictionary key - * references will be ARM resource ids in the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - */ - userAssignedIdentities?: { [propertyName: string]: IdentityUserAssignedIdentitiesValue }; +/** Strictly used in update requests. */ +export interface PartialBatchEndpointPartialTrackedResource { + /** Service identity associated with a resource. */ + identity?: ResourceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** The geo-location where the resource lives. */ + location?: string; + /** Additional attributes of the entity. */ + properties?: PartialBatchEndpoint; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; } -/** - * Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet. - */ -export interface ResourceId extends BaseResource { - /** - * The ID of the resource - */ - id: string; +/** Mutable Batch endpoint configuration */ +export interface PartialBatchEndpoint { + /** Traffic rules on how the traffic will be routed across deployments. */ + traffic?: { [propertyName: string]: number }; } -/** - * An interface representing Password. - */ -export interface Password { - /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly value?: string; +/** 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?: BatchDeploymentTrackedResource[]; } -/** - * An interface representing RegistryListCredentialsResult. - */ -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[]; +/** Batch inference settings per deployment. */ +export interface BatchDeployment { + /** Code configuration for the endpoint deployment. */ + codeConfiguration?: CodeConfiguration; + /** Configuration for compute binding. */ + compute?: ComputeConfiguration; + /** Description of the endpoint deployment. */ + description?: string; + /** ARM resource ID of the environment specification for the endpoint deployment. */ + environmentId?: string; + /** Environment variables configuration for the deployment. */ + environmentVariables?: { [propertyName: string]: string }; + /** + * Error threshold, if the error count for the entire input goes above this value, + * the batch inference will be aborted. Range is [-1, int.MaxValue]. + * For FileDataset, this value is the count of file failures. + * For TabularDataset, this value is the count of record failures. + * If set to -1 (the lower bound), all failures during batch inference will be ignored. + */ + errorThreshold?: number; + /** Logging level for batch inference operation. */ + loggingLevel?: BatchLoggingLevel; + /** + * Size of the mini-batch passed to each batch invocation. + * For FileDataset, this is the number of files per mini-batch. + * For TabularDataset, this is the size of the records in bytes, per mini-batch. + */ + miniBatchSize?: number; + /** Reference to the model asset for the endpoint deployment. */ + model?: AssetReferenceBaseUnion; + /** Output configuration for the batch inference operation. */ + outputConfiguration?: BatchOutputConfiguration; + /** Partition keys list used for Named partitioning. */ + partitionKeys?: string[]; + /** Property dictionary. Properties can be added, but not removed or altered. */ + properties?: { [propertyName: string]: string }; + /** Retry Settings for the batch inference operation. */ + retrySettings?: BatchRetrySettings; } -/** - * An interface representing ListWorkspaceKeysResult. - */ -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; - notebookAccessKeys?: NotebookListCredentialsResult; +/** Configuration for a scoring code asset. */ +export interface CodeConfiguration { + /** ARM resource ID of the code asset. */ + codeId?: string; + /** The script to execute on startup. eg. "score.py" */ + scoringScript: string; } -/** - * Error detail information. - */ -export interface ErrorDetail { - /** - * Error code. - */ - code: string; - /** - * Error message. - */ - message: string; +/** Configuration for compute binding. */ +export interface ComputeConfiguration { + /** Number of instances or nodes. */ + instanceCount?: number; + /** SKU type to run on. */ + instanceType?: string; + /** Set to true for jobs running on local compute. */ + isLocal?: boolean; + /** Location for virtual cluster run. */ + location?: string; + /** Additional properties. */ + properties?: { [propertyName: string]: string }; + /** ARM resource ID of the compute resource. */ + target?: string; } -/** - * Error response information. - */ -export interface ErrorResponse { - /** - * Error code. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly code?: string; - /** - * Error message. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly message?: string; +/** Base definition for asset references. */ +export interface AssetReferenceBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + referenceType: "DataPath" | "Id" | "OutputPath"; +} + +/** Batch inference output configuration. */ +export interface BatchOutputConfiguration { + /** Customized output file name for append_row output action. */ + appendRowFileName?: string; + /** Indicates how the output will be organized. */ + outputAction?: BatchOutputAction; +} + +/** 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; +} + +/** Strictly used in update requests. */ +export interface PartialBatchDeploymentPartialTrackedResource { + /** Service identity associated with a resource. */ + identity?: ResourceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** The geo-location where the resource lives. */ + location?: string; + /** Additional attributes of the entity. */ + properties?: PartialBatchDeployment; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; +} + +/** Mutable batch inference settings per deployment. */ +export interface PartialBatchDeployment { + /** Description of the endpoint deployment. */ + description?: string; +} + +/** A paginated list of CodeContainer entities. */ +export interface CodeContainerResourceArmPaginatedResult { + /** The link to the next page of CodeContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type CodeContainer. */ + value?: CodeContainerResource[]; +} + +/** Container for code asset versions. */ +export interface CodeContainer { + /** The asset description text. */ + description?: string; + /** The asset property dictionary. */ + properties?: { [propertyName: string]: string }; + /** Tag dictionary. Tags can be added, removed, and updated. */ + tags?: { [propertyName: string]: string }; +} + +/** A paginated list of CodeVersion entities. */ +export interface CodeVersionResourceArmPaginatedResult { + /** The link to the next page of CodeVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type CodeVersion. */ + value?: CodeVersionResource[]; +} + +/** Code asset version details. */ +export interface CodeVersion { + /** ARM resource ID of the datastore where the asset is located. */ + datastoreId?: string; + /** The asset description text. */ + description?: string; + /** If the name version are system generated (anonymous registration). */ + isAnonymous?: boolean; + /** The path of the file/directory in the datastore. */ + path: string; + /** The asset property dictionary. */ + properties?: { [propertyName: string]: string }; + /** Tag dictionary. Tags can be added, removed, and updated. */ + tags?: { [propertyName: string]: 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?: DataContainerResource[]; +} + +/** Container for data asset versions. */ +export interface DataContainer { + /** The asset description text. */ + description?: string; + /** The asset property dictionary. */ + properties?: { [propertyName: string]: string }; + /** Tag dictionary. Tags can be added, removed, and updated. */ + tags?: { [propertyName: string]: string }; +} + +/** A paginated list of DataVersion entities. */ +export interface DataVersionResourceArmPaginatedResult { + /** The link to the next page of DataVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type DataVersion. */ + value?: DataVersionResource[]; +} + +/** Data asset version details. */ +export interface DataVersion { + /** The Format of dataset. */ + datasetType?: DatasetType; + /** ARM resource ID of the datastore where the asset is located. */ + datastoreId?: string; + /** The asset description text. */ + description?: string; + /** If the name version are system generated (anonymous registration). */ + isAnonymous?: boolean; + /** The path of the file/directory in the datastore. */ + path: string; + /** The asset property dictionary. */ + properties?: { [propertyName: string]: string }; + /** Tag dictionary. Tags can be added, removed, and updated. */ + tags?: { [propertyName: string]: string }; +} + +/** A paginated list of DatastoreProperties entities. */ +export interface DatastorePropertiesResourceArmPaginatedResult { + /** The link to the next page of DatastoreProperties objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type DatastoreProperties. */ + value?: DatastorePropertiesResource[]; +} + +/** Datastore definition. */ +export interface DatastoreProperties { + /** Reference to the datastore storage contents. */ + contents: DatastoreContentsUnion; + /** The asset description text. */ + description?: string; /** - * An array of error detail objects. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly details?: ErrorDetail[]; + * Whether the service has validated access to the datastore with the provided credentials. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly hasBeenValidated?: boolean; + /** Whether this datastore is the default for the workspace. */ + isDefault?: boolean; + /** Information about the datastore origin, if linked. */ + linkedInfo?: LinkedInfo; + /** The asset property dictionary. */ + properties?: { [propertyName: string]: string }; + /** Tag dictionary. Tags can be added, removed, and updated. */ + tags?: { [propertyName: string]: string }; +} + +/** Base definition for datastore contents configuration. */ +export interface DatastoreContents { + /** Polymorphic discriminator, which specifies the different types this object can be */ + contentsType: + | "AzureBlob" + | "AzureDataLakeGen1" + | "AzureDataLakeGen2" + | "AzureFile" + | "AzurePostgreSql" + | "AzureSqlDatabase" + | "GlusterFs"; +} + +/** Information about a datastore origin, if linked. */ +export interface LinkedInfo { + /** Linked service ID. */ + linkedId?: string; + /** Linked service resource name. */ + linkedResourceName?: string; + /** Type of the linked service. */ + origin?: OriginType; +} + +/** Base definition for datastore secrets. */ +export interface DatastoreSecrets { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: + | "AccountKey" + | "Certificate" + | "None" + | "Sas" + | "ServicePrincipal" + | "SqlAdmin"; +} + +/** 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?: EnvironmentContainerResource[]; +} + +/** Container for environment specification versions. */ +export interface EnvironmentContainer { + /** The asset description text. */ + description?: string; + /** The asset property dictionary. */ + properties?: { [propertyName: string]: string }; + /** Tag dictionary. Tags can be added, removed, and updated. */ + tags?: { [propertyName: string]: string }; +} + +/** A paginated list of EnvironmentSpecificationVersion entities. */ +export interface EnvironmentSpecificationVersionResourceArmPaginatedResult { + /** The link to the next page of EnvironmentSpecificationVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type EnvironmentSpecificationVersion. */ + value?: EnvironmentSpecificationVersionResource[]; } /** - * Wrapper for error response to follow ARM guidelines. + * Environment specification version details. + * */ -export interface MachineLearningServiceError { +export interface EnvironmentSpecificationVersion { /** - * The error response. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Standard configuration file used by Conda that lets you install any kind of package, including Python, R, and C/C++ packages. + * */ - readonly error?: ErrorResponse; + condaFile?: string; + /** The asset description text. */ + description?: string; + /** Configuration settings for Docker. */ + docker?: DockerSpecificationUnion; + /** + * Environment specification is either user managed or curated by the Azure ML service + * + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly environmentSpecificationType?: EnvironmentSpecificationType; + /** Defines configuration specific to inference. */ + inferenceContainerProperties?: InferenceContainerProperties; + /** If the name version are system generated (anonymous registration). */ + isAnonymous?: boolean; + /** The asset property dictionary. */ + properties?: { [propertyName: string]: string }; + /** Tag dictionary. Tags can be added, removed, and updated. */ + tags?: { [propertyName: string]: string }; } -/** - * Contains the possible cases for Compute. - */ -export type ComputeUnion = Compute | AKS | AmlCompute | ComputeInstance | VirtualMachine | HDInsight | DataFactory | Databricks | DataLakeAnalytics; +/** Configuration settings for Docker */ +export interface DockerSpecification { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dockerSpecificationType: "Build" | "Image"; + /** The platform information of the docker image. */ + platform?: DockerImagePlatform; +} -/** - * Machine Learning compute object. - */ -export interface Compute { +export interface DockerImagePlatform { + /** The OS type the Environment. */ + operatingSystemType?: OperatingSystemType; +} + +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 { + /** The path for the route. */ + path: string; + /** The port for the route. */ + port: number; +} + +/** A paginated list of JobBase entities. */ +export interface JobBaseResourceArmPaginatedResult { + /** The link to the next page of JobBase objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type JobBase. */ + value?: JobBaseResource[]; +} + +/** Base definition for a job. */ +export interface JobBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobType: "Command" | "Sweep"; + /** The asset description text. */ + description?: string; /** - * Polymorphic Discriminator + * List of JobEndpoints. + * For local jobs, a job endpoint will have an endpoint value of FileStreamObject. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - computeType: "Compute"; + readonly interactionEndpoints?: { [propertyName: string]: JobEndpoint }; + /** The asset property dictionary. */ + properties?: { [propertyName: string]: string }; /** - * Location for the underlying compute + * Specifies the job provisioning state. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - computeLocation?: string; + readonly provisioningState?: JobProvisioningState; + /** Tag dictionary. Tags can be added, removed, and updated. */ + tags?: { [propertyName: string]: string }; +} + +/** Job endpoint definition */ +export interface JobEndpoint { + /** Url for endpoint. */ + endpoint?: string; + /** Endpoint type. */ + jobEndpointType?: string; + /** Port for endpoint. */ + port?: number; + /** Additional properties to set on the endpoint. */ + properties?: { [propertyName: string]: string }; +} + +/** A paginated list of LabelingJob entities. */ +export interface LabelingJobResourceArmPaginatedResult { + /** The link to the next page of LabelingJob objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type LabelingJob. */ + value?: LabelingJobResource[]; +} + +/** Labeling job definition */ +export interface LabelingJob { /** - * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, - * Succeeded, and Failed. Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', - * 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Created time of the job in UTC timezone. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly createdTimeUtc?: Date; + /** Configuration of dataset used in the job. */ + datasetConfiguration?: LabelingDatasetConfiguration; + /** The asset description text. */ + description?: string; /** - * The description of the Machine Learning compute. + * List of JobEndpoints. + * For local jobs, a job endpoint will have an endpoint value of FileStreamObject. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - description?: string; + readonly interactionEndpoints?: { [propertyName: string]: JobEndpoint }; + /** Labeling instructions of the job. */ + jobInstructions?: LabelingJobInstructions; + /** Specifies the type of job. This field should always be set to "Labeling". */ + jobType: JobType; + /** Label categories of the job. */ + labelCategories?: { [propertyName: string]: LabelCategory }; + /** Media type specific properties in the job. */ + labelingJobMediaProperties?: LabelingJobMediaPropertiesUnion; + /** Configuration of MLAssist feature in the job. */ + mlAssistConfiguration?: MLAssistConfiguration; /** - * The date and time when the compute was created. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Progress metrics of the job. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdOn?: Date; + readonly progressMetrics?: ProgressMetrics; /** - * The date and time when the compute was last modified. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Internal id of the job(Previously called project). + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly modifiedOn?: Date; + readonly projectId?: string; + /** The asset property dictionary. */ + properties?: { [propertyName: string]: string }; /** - * ARM resource id of the underlying compute + * Specifies the labeling job provisioning state. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - resourceId?: string; + readonly provisioningState?: JobProvisioningState; /** - * Errors during provisioning - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Status of the job. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningErrors?: MachineLearningServiceError[]; + readonly status?: JobStatus; /** - * 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.** + * Status messages of the job. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isAttachedCompute?: boolean; + readonly statusMessages?: StatusMessage[]; + /** Tag dictionary. Tags can be added, removed, and updated. */ + tags?: { [propertyName: string]: string }; } -/** - * Machine Learning compute object wrapped into ARM resource envelope. - */ -export interface ComputeResource extends Resource { - /** - * Compute properties - */ - properties?: ComputeUnion; +/** Labeling dataset configuration definition */ +export interface LabelingDatasetConfiguration { + /** Name of the data asset to perform labeling. */ + assetName?: string; + /** AML dataset version. */ + datasetVersion?: string; + /** Indicates whether to enable incremental dataset refresh. */ + incrementalDatasetRefreshEnabled?: boolean; } -/** - * A system service running on a compute. - */ -export interface SystemService { +/** Instructions for labeling job */ +export interface LabelingJobInstructions { + /** The link to a page with detailed labeling instructions for labelers. */ + uri?: string; +} + +/** Label category definition */ +export interface LabelCategory { + /** Indicates whether it is allowed to select multiple classes in this category. */ + allowMultiSelect?: boolean; + /** Dictionary of label classes in this category. */ + classes?: { [propertyName: string]: LabelClass }; + /** Display name of the label category. */ + displayName?: string; +} + +/** Label class definition */ +export interface LabelClass { + /** Display name of the label class. */ + displayName?: string; + /** Dictionary of subclasses of the label class. */ + subclasses?: { [propertyName: string]: LabelClass }; +} + +/** Properties of a labeling job */ +export interface LabelingJobMediaProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mediaType: "Image" | "Text"; +} + +/** Labeling MLAssist configuration definition */ +export interface MLAssistConfiguration { + /** AML compute binding used in inferencing. */ + inferencingComputeBinding?: ComputeConfiguration; + /** Indicates whether MLAssist feature is enabled. */ + mlAssistEnabled?: boolean; + /** AML compute binding used in training. */ + trainingComputeBinding?: ComputeConfiguration; +} + +/** Progress metrics definition */ +export interface ProgressMetrics { /** - * The type of this system service. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The completed datapoint count. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemServiceType?: string; + readonly completedDatapointCount?: number; /** - * Public IP address - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The time of last successful incremental dataset refresh in UTC. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly publicIpAddress?: string; + readonly incrementalDatasetLastRefreshTime?: Date; /** - * The version for this type. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The skipped datapoint count. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly version?: string; + readonly skippedDatapointCount?: number; + /** + * The total datapoint count. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly totalDatapointCount?: number; } -/** - * The ssl configuration for scoring - */ -export interface SslConfiguration { +/** Active message associated with project */ +export interface StatusMessage { /** - * Enable or disable ssl for scoring. Possible values include: 'Disabled', 'Enabled' + * Service-defined message code. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - status?: Status1; + readonly code?: string; /** - * Cert data + * Time in UTC at which the message was created. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - cert?: string; + readonly createdTimeUtc?: Date; /** - * Key data + * Severity level of message. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - key?: string; + readonly level?: StatusMessageLevel; /** - * CNAME of the cert + * A human-readable representation of the message code. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - cname?: string; + readonly message?: string; } -/** - * Advance configuration for AKS networking - */ -export interface AksNetworkingConfiguration { +export interface ExportSummary { + /** Polymorphic discriminator, which specifies the different types this object can be */ + format: "Coco" | "CSV" | "Dataset"; /** - * Virtual network subnet resource ID the compute nodes belong to + * The time when the export was completed. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - subnetId?: string; + readonly endTimeUtc?: Date; /** - * A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with - * any Subnet IP ranges. + * The total number of labeled datapoints exported. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - serviceCidr?: string; + readonly exportedRowCount?: number; /** - * An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service - * address range specified in serviceCidr. + * Name and identifier of the job containing exported labels. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - dnsServiceIP?: string; + readonly labelingJobId?: 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. + * The time when the export was requested. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - dockerBridgeCidr?: string; + readonly startTimeUtc?: Date; } -/** - * AKS properties - */ -export interface AKSProperties { - /** - * Cluster full qualified domain name - */ - clusterFqdn?: string; +/** A paginated list of ModelContainer entities. */ +export interface ModelContainerResourceArmPaginatedResult { + /** The link to the next page of ModelContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type ModelContainer. */ + value?: ModelContainerResource[]; +} + +export interface ModelContainer { + /** The asset description text. */ + description?: string; + /** The asset property dictionary. */ + properties?: { [propertyName: string]: string }; + /** Tag dictionary. Tags can be added, removed, and updated. */ + tags?: { [propertyName: string]: string }; +} + +/** 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?: ModelVersionResource[]; +} + +/** Model asset version details. */ +export interface ModelVersion { + /** ARM resource ID of the datastore where the asset is located. */ + datastoreId?: string; + /** The asset description text. */ + description?: string; + /** Mapping of model flavors to their properties. */ + flavors?: { [propertyName: string]: FlavorData }; + /** If the name version are system generated (anonymous registration). */ + isAnonymous?: boolean; + /** The path of the file/directory in the datastore. */ + path: string; + /** The asset property dictionary. */ + properties?: { [propertyName: string]: string }; + /** Tag dictionary. Tags can be added, removed, and updated. */ + tags?: { [propertyName: string]: string }; +} + +export interface FlavorData { + /** Model flavor-specific data. */ + data?: { [propertyName: string]: 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?: OnlineEndpointTrackedResource[]; +} + +/** Online endpoint configuration */ +export interface OnlineEndpoint { + /** Inference endpoint authentication mode type */ + authMode: EndpointAuthMode; + /** Description of the inference endpoint. */ + description?: string; /** - * System services - * **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 systemServices?: SystemService[]; + keys?: EndpointAuthKeys; + /** Property dictionary. Properties can be added, but not removed or altered. */ + properties?: { [propertyName: string]: string }; /** - * Number of agents + * State of endpoint provisioning. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - agentCount?: number; + readonly provisioningState?: EndpointProvisioningState; /** - * Agent virtual machine size + * Endpoint URI. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - agentVMSize?: string; + readonly scoringUri?: string; /** - * SSL configuration + * Endpoint Swagger URI. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sslConfiguration?: SslConfiguration; + readonly swaggerUri?: string; /** - * AKS networking configuration for vnet + * ARM resource ID of the compute if it exists. + * optional */ - aksNetworkingConfiguration?: AksNetworkingConfiguration; + target?: string; + /** Traffic rules on how the traffic will be routed across deployments. */ + traffic?: { [propertyName: string]: number }; } -/** - * A Machine Learning compute based on AKS. - */ -export interface AKS { - /** - * Polymorphic Discriminator - */ - computeType: "AKS"; - /** - * Location for the underlying compute - */ - computeLocation?: string; - /** - * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, - * Succeeded, and Failed. Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', - * 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: ProvisioningState; - /** - * The description of the Machine Learning compute. - */ +/** Strictly used in update requests. */ +export interface PartialOnlineEndpointPartialTrackedResource { + /** Service identity associated with a resource. */ + identity?: ResourceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** The geo-location where the resource lives. */ + location?: string; + /** Additional attributes of the entity. */ + properties?: PartialOnlineEndpoint; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; +} + +/** Mutable online endpoint configuration */ +export interface PartialOnlineEndpoint { + /** Traffic rules on how the traffic will be routed across deployments. */ + traffic?: { [propertyName: string]: number }; +} + +/** 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?: OnlineDeploymentTrackedResource[]; +} + +export interface OnlineDeployment { + /** Polymorphic discriminator, which specifies the different types this object can be */ + endpointComputeType: "K8S" | "Managed"; + /** If true, enables Application Insights logging. */ + appInsightsEnabled?: boolean; + /** Code configuration for the endpoint deployment. */ + codeConfiguration?: CodeConfiguration; + /** Description of the endpoint deployment. */ description?: string; + /** ARM resource ID of the environment specification for the endpoint deployment. */ + environmentId?: string; + /** Environment variables configuration for the deployment. */ + environmentVariables?: { [propertyName: string]: string }; + /** Deployment container liveness/readiness probe configuration. */ + livenessProbe?: ProbeSettings; + /** Reference to the model asset for the endpoint deployment. */ + model?: AssetReferenceBaseUnion; + /** Property dictionary. Properties can be added, but not removed or altered. */ + properties?: { [propertyName: string]: 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; + /** Online deployment scoring requests configuration. */ + requestSettings?: OnlineRequestSettings; + /** Online deployment scaling configuration. */ + scaleSettings?: OnlineScaleSettingsUnion; +} + +/** 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; +} + +/** Online deployment scoring requests configuration. */ +export interface OnlineRequestSettings { + /** The number of requests allowed to queue at once for this deployment. */ + maxConcurrentRequestsPerInstance?: number; + /** The maximum queue wait time in ISO 8601 format. Supports millisecond precision. */ + maxQueueWait?: string; + /** The request timeout in ISO 8601 format. Supports millisecond precision. */ + requestTimeout?: string; +} + +/** Online deployment scaling configuration. */ +export interface OnlineScaleSettings { + /** Polymorphic discriminator, which specifies the different types this object can be */ + scaleType: "Auto" | "Manual"; + /** Maximum number of instances for this deployment. */ + maxInstances?: number; + /** Minimum number of instances for this deployment. */ + minInstances?: number; +} + +/** Strictly used in update requests. */ +export interface PartialOnlineDeploymentPartialTrackedResource { + /** Service identity associated with a resource. */ + identity?: ResourceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** The geo-location where the resource lives. */ + location?: string; + /** Additional attributes of the entity. */ + properties?: PartialOnlineDeploymentUnion; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; +} + +/** Mutable online deployment configuration */ +export interface PartialOnlineDeployment { + /** Polymorphic discriminator, which specifies the different types this object can be */ + endpointComputeType: "K8S" | "Managed"; + /** Whether AppInsights telemetry is enabled for this online deployment. */ + appInsightsEnabled?: boolean; + /** Deployment container liveness/readiness probe configuration. */ + livenessProbe?: ProbeSettings; + /** Online deployment scoring requests configuration. */ + requestSettings?: OnlineRequestSettings; + /** Online deployment scaling configuration. */ + scaleSettings?: OnlineScaleSettingsUnion; +} + +export interface DeploymentLogsRequest { + /** The type of container to retrieve logs from. */ + containerType?: ContainerType; + /** The maximum number of lines to tail. */ + tail?: number; +} + +export interface DeploymentLogs { + /** The retrieved online deployment logs. */ + content?: string; +} + +export interface RegenerateEndpointKeysRequest { + /** 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. */ + accessToken?: string; + /** Access token expiry time (UTC). */ + expiryTimeUtc?: number; + /** Refresh access token after time (UTC). */ + refreshAfterTimeUtc?: number; + /** Access token type. */ + tokenType?: string; +} + +/** The List Aml user feature operation response. */ +export interface ListAmlUserFeatureResult { /** - * The date and time when the compute was created. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The list of AML user facing features. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdOn?: Date; + readonly value?: AmlUserFeature[]; /** - * The date and time when the compute was last modified. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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 modifiedOn?: Date; + readonly nextLink?: string; +} + +/** Features enabled for a workspace */ +export interface AmlUserFeature { + /** Specifies the feature ID */ + id?: string; + /** Specifies the feature name */ + displayName?: string; + /** Describes the feature for user experience */ + description?: string; +} + +/** List of skus with features */ +export interface SkuListResult { + value?: WorkspaceSku[]; + /** The URI to fetch the next page of Workspace Skus. Call ListNext() with this URI to fetch the next page of Workspace Skus */ + nextLink?: string; +} + +/** Describes Workspace Sku details and features */ +export interface WorkspaceSku { /** - * ARM resource id of the underlying compute + * The set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). + * NOTE: This property will not be serialized. It can only be populated by the server. */ - resourceId?: string; + readonly locations?: string[]; /** - * Errors during provisioning - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A list of locations and availability zones in those locations where the SKU is available. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningErrors?: MachineLearningServiceError[]; + readonly locationInfo?: ResourceSkuLocationInfo[]; /** - * 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.** + * Sku Tier like Basic or Enterprise + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isAttachedCompute?: boolean; + readonly tier?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly resourceType?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly name?: string; /** - * AKS properties + * List of features/user capabilities associated with the sku + * NOTE: This property will not be serialized. It can only be populated by the server. */ - properties?: AKSProperties; + readonly capabilities?: SKUCapability[]; + /** The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. */ + restrictions?: Restriction[]; } -/** - * scale settings for AML Compute - */ -export interface ScaleSettings { +export interface ResourceSkuLocationInfo { /** - * Max number of nodes to use + * Location of the SKU + * NOTE: This property will not be serialized. It can only be populated by the server. */ - maxNodeCount: number; + readonly location?: string; /** - * Min number of nodes to use. Default value: 0. + * List of availability zones where the SKU is supported. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - minNodeCount?: number; + readonly zones?: string[]; /** - * Node Idle Time before scaling down amlCompute + * Details of capabilities available to a SKU in specific zones. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - nodeIdleTimeBeforeScaleDown?: string; + readonly zoneDetails?: ResourceSkuZoneDetails[]; } -/** - * Settings for user account that gets created on each on the nodes of a compute. - */ -export interface UserAccountCredentials { - /** - * User name. Name of the administrator user account which can be used to SSH to nodes. - */ - adminUserName: string; +/** Describes The zonal capabilities of a SKU. */ +export interface ResourceSkuZoneDetails { /** - * SSH public key. SSH public key of the administrator user account. + * The set of zones that the SKU is available in with the specified capabilities. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - adminUserSshPublicKey?: string; + readonly name?: string[]; /** - * Password. Password of the administrator user account. + * A list of capabilities that are available for the SKU in the specified list of zones. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - adminUserPassword?: string; + readonly capabilities?: SKUCapability[]; } -/** - * Counts of various compute node states on the amlCompute. - */ -export interface NodeStateCounts { +/** Features/user capabilities associated with the sku */ +export interface SKUCapability { + /** Capability/Feature ID */ + name?: string; + /** Details about the feature/capability */ + value?: string; +} + +/** The restriction because of which SKU cannot be used. */ +export interface Restriction { /** - * Idle node count. Number of compute nodes in idle state. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The type of restrictions. As of now only possible value for this is location. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly idleNodeCount?: number; + readonly type?: string; /** - * Running node count. Number of compute nodes which are running jobs. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly runningNodeCount?: number; + readonly values?: string[]; + /** The reason for the restriction. */ + reasonCode?: ReasonCode; +} + +/** Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet. */ +export interface ResourceId { + /** The ID of the resource */ + id: string; +} + +/** AKS properties */ +export interface AKSProperties { + /** Cluster full qualified domain name */ + clusterFqdn?: string; /** - * Preparing node count. Number of compute nodes which are being prepared. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * System services + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly preparingNodeCount?: number; + readonly systemServices?: SystemService[]; + /** Number of agents */ + agentCount?: number; + /** Agent virtual machine size */ + agentVmSize?: string; + /** Intended usage of the cluster */ + clusterPurpose?: ClusterPurpose; + /** SSL configuration */ + sslConfiguration?: SslConfiguration; + /** AKS networking configuration for vnet */ + aksNetworkingConfiguration?: AksNetworkingConfiguration; + /** Load Balancer Type */ + loadBalancerType?: LoadBalancerType; + /** Load Balancer Subnet */ + loadBalancerSubnet?: string; +} + +/** A system service running on a compute. */ +export interface SystemService { /** - * Unusable node count. Number of compute nodes which are in unusable state. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The type of this system service. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unusableNodeCount?: number; + readonly systemServiceType?: string; /** - * Leaving node count. Number of compute nodes which are leaving the amlCompute. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Public IP address + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly leavingNodeCount?: number; + readonly publicIpAddress?: string; /** - * Preempted node count. Number of compute nodes which are in preempted state. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The version for this type. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly preemptedNodeCount?: number; + readonly version?: string; } -/** - * AML Compute properties - */ +/** The ssl configuration for scoring */ +export interface SslConfiguration { + /** Enable or disable ssl for scoring */ + status?: SslConfigurationStatus; + /** Cert data */ + cert?: string; + /** Key data */ + key?: string; + /** CNAME of the cert */ + cname?: string; + /** Leaf domain label of public endpoint */ + leafDomainLabel?: string; + /** Indicates whether to overwrite existing domain label. */ + overwriteExistingDomain?: boolean; +} + +/** Advance configuration for AKS networking */ +export interface AksNetworkingConfiguration { + /** Virtual network subnet resource ID the compute nodes belong to */ + subnetId?: string; + /** A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges. */ + serviceCidr?: string; + /** An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr. */ + dnsServiceIP?: string; + /** A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any Subnet IP ranges or the Kubernetes service address range. */ + dockerBridgeCidr?: string; +} + +/** AML Compute properties */ export interface AmlComputeProperties { - /** - * Virtual Machine Size - */ + /** Compute OS Type */ + osType?: OsType; + /** Virtual Machine Size */ vmSize?: string; - /** - * Virtual Machine priority. Possible values include: 'Dedicated', 'LowPriority' - */ + /** Virtual Machine priority */ vmPriority?: VmPriority; - /** - * Scale settings for AML Compute - */ + /** Virtual Machine image for AML Compute - windows only */ + virtualMachineImage?: VirtualMachineImage; + /** Network is isolated or not */ + isolatedNetwork?: boolean; + /** Scale settings for AML Compute */ scaleSettings?: ScaleSettings; - /** - * User account credentials. Credentials for an administrator user account that will be created - * on each compute node. - */ + /** Credentials for an administrator user account that will be created on each compute node. */ userAccountCredentials?: UserAccountCredentials; - /** - * Subnet. Virtual network subnet resource ID the compute nodes belong to. - */ + /** Virtual network subnet resource ID the compute nodes belong to. */ subnet?: ResourceId; - /** - * Close remote Login Access Port. State of the public SSH port. Possible values are: Disabled - - * Indicates that the public ssh port is closed on all nodes of the cluster. Enabled - Indicates - * that the public ssh port is open on all nodes of the cluster. NotSpecified - Indicates that - * the public ssh port is closed on all nodes of the cluster if VNet is defined, else is open all - * public nodes. It can be default only during cluster creation time, after creation it will be - * either enabled or disabled. Possible values include: 'Enabled', 'Disabled', 'NotSpecified'. - * Default value: 'NotSpecified'. - */ + /** 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. Allocation state of the compute. Possible values are: steady - Indicates - * that the compute is not resizing. There are no changes to the number of compute nodes in the - * compute in progress. A compute enters this state when it is created and when no operations are - * being performed on the compute to change the number of compute nodes. resizing - Indicates - * that the compute is resizing; that is, compute nodes are being added to or removed from the - * compute. Possible values include: 'Steady', 'Resizing' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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; /** - * Allocation state transition time. The time at which the compute entered its current allocation - * state. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The time at which the compute entered its current allocation state. + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly allocationStateTransitionTime?: Date; /** - * Errors. Collection of errors encountered by various compute nodes during node setup. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Collection of errors encountered by various compute nodes during node setup. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errors?: MachineLearningServiceError[]; + readonly errors?: ErrorResponse[]; /** - * Current node count. The number of compute nodes currently assigned to the compute. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The number of compute nodes currently assigned to the compute. + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentNodeCount?: number; /** - * Target node count. The target number of compute nodes for the compute. If the allocationState - * is resizing, this property denotes the target node count for the ongoing resize operation. If - * the allocationState is steady, this property denotes the target node count for the previous - * resize operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The target number of compute nodes for the compute. If the allocationState is resizing, this property denotes the target node count for the ongoing resize operation. If the allocationState is steady, this property denotes the target node count for the previous resize operation. + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly targetNodeCount?: number; /** - * Node state counts. Counts of various node states on the compute. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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; } -/** - * An Azure Machine Learning compute. - */ -export interface AmlCompute { +/** Virtual Machine image for Windows AML Compute */ +export interface VirtualMachineImage { + /** Virtual Machine image path */ + id: string; +} + +/** Settings for user account that gets created on each on the nodes of a compute. */ +export interface UserAccountCredentials { + /** Name of the administrator user account which can be used to SSH to nodes. */ + adminUserName: string; + /** SSH public key of the administrator user account. */ + adminUserSshPublicKey?: string; + /** Password of the administrator user account. */ + adminUserPassword?: string; +} + +/** Counts of various compute node states on the amlCompute. */ +export interface NodeStateCounts { /** - * Polymorphic Discriminator + * Number of compute nodes in idle state. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - computeType: "AmlCompute"; + readonly idleNodeCount?: number; /** - * Location for the underlying compute + * Number of compute nodes which are running jobs. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - computeLocation?: string; + readonly runningNodeCount?: number; /** - * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, - * Succeeded, and Failed. Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', - * 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Number of compute nodes which are being prepared. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly preparingNodeCount?: number; /** - * The description of the Machine Learning compute. + * Number of compute nodes which are in unusable state. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - description?: string; + readonly unusableNodeCount?: number; /** - * The date and time when the compute was created. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Number of compute nodes which are leaving the amlCompute. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdOn?: Date; + readonly leavingNodeCount?: number; /** - * The date and time when the compute was last modified. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Number of compute nodes which are in preempted state. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly modifiedOn?: Date; + readonly preemptedNodeCount?: number; +} + +/** Compute Instance properties */ +export interface ComputeInstanceProperties { + /** Virtual Machine Size */ + vmSize?: string; + /** Virtual network subnet resource ID the compute nodes belong to. */ + subnet?: ResourceId; + /** Policy for sharing applications on this compute instance among users of parent workspace. If Personal, only the creator can access applications on this compute instance. When Shared, any workspace user can access applications on this instance depending on his/her assigned role. */ + applicationSharingPolicy?: ApplicationSharingPolicy; + /** Specifies policy and settings for SSH access. */ + sshSettings?: ComputeInstanceSshSettings; /** - * ARM resource id of the underlying compute + * Describes all connectivity endpoints available for this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - resourceId?: string; + readonly connectivityEndpoints?: ComputeInstanceConnectivityEndpoints; /** - * Errors during provisioning - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Describes available applications and their endpoints on this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningErrors?: MachineLearningServiceError[]; + readonly applications?: ComputeInstanceApplication[]; /** - * Indicating whether the compute was provisioned by user and brought from outside if true, or - * machine learning service provisioned it if false. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Describes information on user who created this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isAttachedCompute?: boolean; + readonly createdBy?: ComputeInstanceCreatedBy; /** - * AML Compute properties + * Collection of errors encountered on this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - properties?: AmlComputeProperties; + 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 compute instance. */ + schedules?: ComputeSchedules; } -/** - * Specifies policy and settings for SSH access. - */ +/** Specifies policy and settings for SSH access. */ export interface ComputeInstanceSshSettings { - /** - * Access policy for SSH. State of the public SSH port. Possible values are: Disabled - Indicates - * that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh - * port is open and accessible according to the VNet/subnet policy if applicable. Possible values - * include: 'Enabled', 'Disabled'. Default value: 'Disabled'. - */ + /** 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.** + * 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.** + * 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. - */ + /** Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs. */ adminPublicKey?: string; } -/** - * Defines all connectivity endpoints and properties for a ComputeInstance. - */ +/** 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.** + * 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.** + * Private IP Address of this ComputeInstance (local to the VNET in which the compute instance is deployed). + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateIpAddress?: string; } -/** - * Defines an Aml Instance application and its connectivity endpoint URI. - */ +/** Defines an Aml Instance application and its connectivity endpoint URI. */ export interface ComputeInstanceApplication { - /** - * Name of the ComputeInstance application. - */ + /** Name of the ComputeInstance application. */ displayName?: string; - /** - * Application' endpoint URI. - */ + /** Application' endpoint URI. */ endpointUri?: string; } -/** - * Describes information on user who created this ComputeInstance. - */ +/** 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.** + * 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.** + * 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.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly userId?: string; } -/** - * The last operation on ComputeInstance. - */ +/** Settings for a personal compute instance. */ +export interface PersonalComputeInstanceSettings { + /** A user explicitly assigned to a personal compute instance. */ + assignedUser?: AssignedUser; +} + +/** A user that can be assigned to a compute instance. */ +export interface AssignedUser { + /** User’s AAD Object Id. */ + objectId: string; + /** User’s AAD Tenant Id. */ + tenantId: string; +} + +/** Details of customized scripts to execute for setting up the cluster. */ +export interface SetupScripts { + /** Customized setup scripts */ + scripts?: ScriptsToExecute; +} + +/** 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; +} + +/** Script reference */ +export interface ScriptReference { + /** The storage source of the script: inline, workspace. */ + scriptSource?: string; + /** The location of scripts in the mounted volume. */ + scriptData?: string; + /** Optional command line arguments passed to the script to run. */ + scriptArguments?: string; + /** Optional time period passed to timeout command. */ + timeout?: string; +} + +/** The last operation on ComputeInstance. */ export interface ComputeInstanceLastOperation { - /** - * Name of the last operation. Possible values include: 'Create', 'Start', 'Stop', 'Restart', - * 'Reimage', 'Delete' - */ + /** Name of the last operation. */ operationName?: OperationName; - /** - * Time of the last operation. - */ + /** Time of the last operation. */ operationTime?: Date; - /** - * Operation status. Possible values include: 'InProgress', 'Succeeded', 'CreateFailed', - * 'StartFailed', 'StopFailed', 'RestartFailed', 'ReimageFailed', 'DeleteFailed' - */ + /** Operation status. */ operationStatus?: OperationStatus; } -/** - * Compute Instance properties - */ -export interface ComputeInstanceProperties { - /** - * Virtual Machine Size - */ - vmSize?: string; - /** - * Subnet. Virtual network subnet resource ID the compute nodes belong to. - */ - subnet?: ResourceId; - /** - * Sharing policy for applications on this compute instance. Policy for sharing applications on - * this compute instance among users of parent workspace. If Personal, only the creator can - * access applications on this compute instance. When Shared, any workspace user can access - * applications on this instance depending on his/her assigned role. Possible values include: - * 'Personal', 'Shared'. Default value: 'Shared'. - */ - applicationSharingPolicy?: ApplicationSharingPolicy; - /** - * Specifies policy and settings for SSH access. - */ - sshSettings?: ComputeInstanceSshSettings; +export interface VirtualMachineProperties { + /** Virtual Machine size */ + virtualMachineSize?: string; + /** Port open for ssh connections. */ + sshPort?: number; + /** Public IP address of the virtual machine. */ + address?: string; + /** Admin credentials for virtual machine */ + administratorAccount?: VirtualMachineSshCredentials; + /** Indicates whether this compute will be used for running notebooks. */ + isNotebookInstanceCompute?: boolean; +} + +/** Admin credentials for virtual machine */ +export interface VirtualMachineSshCredentials { + /** Username of admin account */ + username?: string; + /** Password of admin account */ + password?: string; + /** Public key data */ + publicKeyData?: string; + /** Private key data */ + privateKeyData?: string; +} + +export interface 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 DatabricksProperties { + /** Databricks access token */ + databricksAccessToken?: string; + /** Workspace Url */ + workspaceUrl?: string; +} + +export interface DataLakeAnalyticsProperties { + /** DataLake Store Account Name */ + dataLakeStoreAccountName?: string; +} + +/** Properties specific to Synapse Spark pools. */ +export interface SynapseSparkPoolProperties { + /** AKS properties */ + properties?: SynapseSparkPoolPropertiesAutoGenerated; +} + +/** AKS properties */ +export interface SynapseSparkPoolPropertiesAutoGenerated { + /** 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; +} + +/** Service principal credentials. */ +export interface ServicePrincipalCredentials { + /** Client Id */ + clientId: string; + /** Client secret */ + clientSecret: string; +} + +/** The resource requirements for the container (cpu and memory). */ +export interface ContainerResourceRequirements { /** - * Describes all connectivity endpoints available for this ComputeInstance. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The minimum amount of CPU cores to be used by the container. More info: + * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ */ - readonly connectivityEndpoints?: ComputeInstanceConnectivityEndpoints; + cpu?: number; /** - * Describes available applications and their endpoints on this ComputeInstance. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The maximum amount of CPU cores allowed to be used by the container. More info: + * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ */ - readonly applications?: ComputeInstanceApplication[]; + cpuLimit?: number; /** - * Describes information on user who created this ComputeInstance. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The minimum amount of memory (in GB) to be used by the container. More info: + * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ */ - readonly createdBy?: ComputeInstanceCreatedBy; + memoryInGB?: number; /** - * Errors. Collection of errors encountered on this ComputeInstance. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The maximum amount of memory (in GB) allowed to be used by the container. More info: + * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ */ - readonly errors?: MachineLearningServiceError[]; + memoryInGBLimit?: number; + /** The number of GPU cores in the container. */ + gpu?: number; + /** The number of FPGA PCIE devices exposed to the container. Must be multiple of 2. */ + fpga?: number; +} + +/** 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" + | "SqlAdmin"; +} + +/** Base definition for identity configuration. */ +export interface IdentityConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + identityType: "AMLToken" | "Managed"; +} + +/** Early termination policies enable canceling poor-performing runs before they complete. */ +export interface EarlyTerminationPolicy { + /** Polymorphic discriminator, which specifies the different types this object can be */ + policyType: "Bandit" | "MedianStopping" | "TruncationSelection"; + /** Number of intervals by which to delay the first evaluation. */ + delayEvaluation?: number; + /** Interval (number of runs) between policy evaluations. */ + evaluationInterval?: number; +} + +/** 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 InputDataBinding { + /** ARM resource ID of the registered dataVersion. */ + dataId?: string; + /** Mechanism for accessing the data artifact. */ + mode?: DataBindingMode; + /** Location of data inside the container process. */ + pathOnCompute?: string; +} + +/** Job output definition container information on where to find job output/logs. */ +export interface JobOutput { /** - * The current state of this ComputeInstance. Possible values include: 'Creating', - * 'CreateFailed', 'Deleting', 'Running', 'Restarting', 'JobRunning', 'SettingUp', 'SetupFailed', - * 'Starting', 'Stopped', 'Stopping', 'UserSettingUp', 'UserSetupFailed', 'Unknown', 'Unusable' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * ARM ID of the datastore where the job logs and artifacts are stored, or null for the default container ("azureml") in the workspace's storage account. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: ComputeInstanceState; + readonly datastoreId?: string; /** - * The last operation on ComputeInstance. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Path within the datastore to the job logs and artifacts. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastOperation?: ComputeInstanceLastOperation; + readonly path?: string; } -/** - * An Azure Machine Learning compute instance. - */ -export interface ComputeInstance { +export interface OutputDataBinding { + /** ARM resource ID of the datastore where the data output will be stored. */ + datastoreId?: string; + /** Mechanism for data movement to datastore. */ + mode?: DataBindingMode; + /** Location of data inside the container process. */ + pathOnCompute?: string; + /** Path within the datastore to the data. */ + pathOnDatastore?: string; +} + +/** Optimization objective. */ +export interface Objective { + /** Defines supported metric goals for hyperparameter tuning */ + goal: Goal; + /** Name of the metric to optimize. */ + primaryMetric: string; +} + +/** Trial component definition. */ +export interface TrialComponent { + /** ARM resource ID of the code asset. */ + codeId?: string; + /** 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; + /** The ARM resource ID of the Environment specification for the job. */ + environmentId?: string; + /** Environment variables included in the job. */ + environmentVariables?: { [propertyName: string]: string }; + /** Mapping of input data bindings used in the job. */ + inputDataBindings?: { [propertyName: string]: InputDataBinding }; + /** Mapping of output data bindings used in the job. */ + outputDataBindings?: { [propertyName: string]: OutputDataBinding }; + /** + * The max run duration in ISO 8601 format, after which the trial component will be cancelled. + * Only supports duration with precision as low as Seconds. + */ + timeout?: string; +} + +/** The Private Endpoint Connection resource. */ +export type PrivateEndpointConnection = Resource & { + /** The identity of the resource. */ + identity?: Identity; + /** Specifies the location of the resource. */ + location?: string; + /** Contains resource tags defined as key/value pairs. */ + tags?: { [propertyName: string]: string }; + /** The sku of the workspace. */ + sku?: Sku; /** - * Polymorphic Discriminator + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - computeType: "ComputeInstance"; + readonly systemData?: SystemData; + /** The resource of private end point. */ + privateEndpoint?: PrivateEndpoint; + /** A collection of information about the state of the connection between service consumer and provider. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; /** - * Location for the underlying compute + * The provisioning state of the private endpoint connection resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - computeLocation?: string; + readonly provisioningState?: PrivateEndpointConnectionProvisioningState; +}; + +/** An object that represents a machine learning workspace. */ +export type Workspace = Resource & { + /** The identity of the resource. */ + identity?: Identity; + /** Specifies the location of the resource. */ + location?: string; + /** Contains resource tags defined as key/value pairs. */ + tags?: { [propertyName: string]: string }; + /** The sku of the workspace. */ + sku?: Sku; /** - * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, - * Succeeded, and Failed. Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', - * 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly systemData?: SystemData; /** - * The description of the Machine Learning compute. + * 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. This cannot be changed once the workspace has been created */ + applicationInsights?: string; + /** ARM id of the container registry associated with this workspace. This cannot be changed once the workspace has been created */ + containerRegistry?: string; + /** ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created */ + storageAccount?: string; + /** Url for the discovery service to identify regional endpoints for machine learning experimentation services */ + discoveryUrl?: string; /** - * The date and time when the compute was created. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdOn?: Date; + readonly provisioningState?: ProvisioningState; + /** The encryption settings of Azure ML workspace. */ + encryption?: EncryptionProperty; + /** The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service */ + hbiWorkspace?: boolean; /** - * The date and time when the compute was last modified. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly modifiedOn?: Date; + readonly serviceProvisionedResourceGroup?: string; /** - * ARM resource id of the underlying compute + * Count of private connections in the workspace + * NOTE: This property will not be serialized. It can only be populated by the server. */ - resourceId?: string; + readonly privateLinkCount?: number; + /** The compute name for image build */ + imageBuildCompute?: string; + /** The flag to indicate whether to allow public access when behind VNet. */ + allowPublicAccessWhenBehindVnet?: boolean; /** - * Errors during provisioning - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The list of private endpoint connections in the workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningErrors?: MachineLearningServiceError[]; + readonly privateEndpointConnections?: PrivateEndpointConnection[]; + /** The list of shared private link resources in this workspace. */ + sharedPrivateLinkResources?: SharedPrivateLinkResource[]; /** - * 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.** + * The notebook info of Azure ML workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isAttachedCompute?: boolean; + readonly notebookInfo?: NotebookResourceInfo; + /** The service managed resource settings. */ + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; + /** The user assigned identity resource id that represents the workspace identity. */ + primaryUserAssignedIdentity?: string; /** - * Compute Instance properties + * The tenant id associated with this workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - properties?: ComputeInstanceProperties; -} + readonly tenantId?: string; +}; -/** - * Admin credentials for virtual machine - */ -export interface VirtualMachineSshCredentials { - /** - * Username of admin account - */ - username?: string; +/** Machine Learning compute object wrapped into ARM resource envelope. */ +export type ComputeResource = Resource & + Components1D3SwueSchemasComputeresourceAllof1 & { + /** The identity of the resource. */ + identity?: Identity; + /** Specifies the location of the resource. */ + location?: string; + /** Contains resource tags defined as key/value pairs. */ + tags?: { [propertyName: string]: string }; + /** The sku of the workspace. */ + sku?: Sku; + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + }; + +/** A private link resource */ +export type PrivateLinkResource = Resource & { + /** The identity of the resource. */ + identity?: Identity; + /** Specifies the location of the resource. */ + location?: string; + /** Contains resource tags defined as key/value pairs. */ + tags?: { [propertyName: string]: string }; + /** The sku of the workspace. */ + sku?: Sku; /** - * Password of admin account + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - password?: string; + readonly systemData?: SystemData; /** - * Public key data + * The private link resource group id. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - publicKeyData?: string; + readonly groupId?: string; /** - * Private key data + * The private link resource required member names. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - privateKeyData?: string; -} + readonly requiredMembers?: string[]; + /** The private link resource Private link DNS zone name. */ + requiredZoneNames?: string[]; +}; -/** - * An interface representing VirtualMachineProperties. - */ -export interface VirtualMachineProperties { +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export type TrackedResource = Resource & { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The geo-location where the resource lives */ + location: string; +}; + +/** Azure Resource Manager resource envelope. */ +export type CodeContainerResource = Resource & { + /** Additional attributes of the entity. */ + properties: CodeContainer; /** - * Virtual Machine size + * System data associated with resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. */ - virtualMachineSize?: string; + readonly systemData?: SystemData; +}; + +/** Azure Resource Manager resource envelope. */ +export type CodeVersionResource = Resource & { + /** Additional attributes of the entity. */ + properties: CodeVersion; /** - * Port open for ssh connections. + * System data associated with resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sshPort?: number; + readonly systemData?: SystemData; +}; + +/** Azure Resource Manager resource envelope. */ +export type DataContainerResource = Resource & { + /** Additional attributes of the entity. */ + properties: DataContainer; /** - * Public IP address of the virtual machine. + * System data associated with resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. */ - address?: string; + readonly systemData?: SystemData; +}; + +/** Azure Resource Manager resource envelope. */ +export type DataVersionResource = Resource & { + /** Additional attributes of the entity. */ + properties: DataVersion; /** - * Admin credentials for virtual machine + * System data associated with resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. */ - administratorAccount?: VirtualMachineSshCredentials; -} + readonly systemData?: SystemData; +}; -/** - * A Machine Learning compute based on Azure Virtual Machines. - */ -export interface VirtualMachine { +/** Azure Resource Manager resource envelope. */ +export type DatastorePropertiesResource = Resource & { + /** Additional attributes of the entity. */ + properties: DatastoreProperties; /** - * Polymorphic Discriminator + * System data associated with resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. */ - computeType: "VirtualMachine"; + readonly systemData?: SystemData; +}; + +/** Azure Resource Manager resource envelope. */ +export type EnvironmentContainerResource = Resource & { + /** Additional attributes of the entity. */ + properties: EnvironmentContainer; /** - * Location for the underlying compute + * System data associated with resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. */ - computeLocation?: string; + readonly systemData?: SystemData; +}; + +/** Azure Resource Manager resource envelope. */ +export type EnvironmentSpecificationVersionResource = Resource & { + /** Additional attributes of the entity. */ + properties: EnvironmentSpecificationVersion; /** - * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, - * Succeeded, and Failed. Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', - * 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * System data associated with resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly systemData?: SystemData; +}; + +/** Azure Resource Manager resource envelope. */ +export type JobBaseResource = Resource & { + /** Additional attributes of the entity. */ + properties: JobBaseUnion; /** - * The description of the Machine Learning compute. + * System data associated with resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. */ - description?: string; + readonly systemData?: SystemData; +}; + +/** Azure Resource Manager resource envelope. */ +export type LabelingJobResource = Resource & { + /** Additional attributes of the entity. */ + properties: LabelingJob; /** - * The date and time when the compute was created. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * System data associated with resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdOn?: Date; + readonly systemData?: SystemData; +}; + +/** Azure Resource Manager resource envelope. */ +export type ModelContainerResource = Resource & { + /** Additional attributes of the entity. */ + properties: ModelContainer; /** - * The date and time when the compute was last modified. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * System data associated with resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly modifiedOn?: Date; + readonly systemData?: SystemData; +}; + +/** Azure Resource Manager resource envelope. */ +export type ModelVersionResource = Resource & { + /** Additional attributes of the entity. */ + properties: ModelVersion; /** - * ARM resource id of the underlying compute + * System data associated with resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. */ - resourceId?: string; - /** - * Errors during provisioning - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningErrors?: MachineLearningServiceError[]; + readonly systemData?: SystemData; +}; + +/** A Machine Learning compute based on AKS. */ +export type Aks = Compute & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "AKS"; + /** AKS properties */ + properties?: AKSProperties; +}; + +/** An Azure Machine Learning compute. */ +export type AmlCompute = Compute & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "AmlCompute"; + /** AML Compute properties */ + properties?: AmlComputeProperties; +}; + +/** An Azure Machine Learning compute instance. */ +export type ComputeInstance = Compute & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "ComputeInstance"; + /** Compute Instance properties */ + properties?: ComputeInstanceProperties; +}; + +/** A Machine Learning compute based on Azure Virtual Machines. */ +export type VirtualMachine = Compute & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "VirtualMachine"; + properties?: VirtualMachineProperties; +}; + +/** A HDInsight compute. */ +export type HDInsight = Compute & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "HDInsight"; + properties?: HDInsightProperties; +}; + +/** A DataFactory compute. */ +export type DataFactory = Compute & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "DataFactory"; +}; + +/** A DataFactory compute. */ +export type Databricks = Compute & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "Databricks"; + properties?: DatabricksProperties; +}; + +/** A DataLakeAnalytics compute. */ +export type DataLakeAnalytics = Compute & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "DataLakeAnalytics"; + properties?: DataLakeAnalyticsProperties; +}; + +/** A SynapseSpark compute. */ +export type SynapseSpark = Compute & + SynapseSparkPoolProperties & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "SynapseSpark"; + }; + +/** Compute node information related to a AmlCompute. */ +export type AmlComputeNodesInformation = ComputeNodesInformation & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "AmlCompute"; /** - * 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.** + * The collection of returned AmlCompute nodes details. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isAttachedCompute?: boolean; - properties?: VirtualMachineProperties; -} + readonly nodes?: AmlComputeNodeInformation[]; +}; -/** - * An interface representing HDInsightProperties. - */ -export interface HDInsightProperties { +/** Secrets related to a Machine Learning compute based on AKS. */ +export type AksComputeSecrets = ComputeSecrets & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "AKS"; + /** Content of kubeconfig file that can be used to connect to the Kubernetes cluster. */ + userKubeConfig?: string; + /** Content of kubeconfig file that can be used to connect to the Kubernetes cluster. */ + adminKubeConfig?: string; + /** Image registry pull secret. */ + imagePullSecretName?: string; +}; + +/** Secrets related to a Machine Learning compute based on AKS. */ +export type VirtualMachineSecrets = ComputeSecrets & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "VirtualMachine"; + /** Admin credentials for virtual machine. */ + administratorAccount?: VirtualMachineSshCredentials; +}; + +/** Secrets related to a Machine Learning compute based on Databricks. */ +export type DatabricksComputeSecrets = ComputeSecrets & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "Databricks"; + /** access token for databricks account. */ + databricksAccessToken?: string; +}; + +/** Reference to an asset via its path in a datastore. */ +export type DataPathAssetReference = AssetReferenceBase & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + referenceType: "DataPath"; + /** ARM resource ID of the datastore where the asset is located. */ + datastoreId?: string; + /** The path of the file/directory in the datastore. */ + path?: string; +}; + +/** Reference to an asset via its ARM resource ID. */ +export type IdAssetReference = AssetReferenceBase & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + referenceType: "Id"; + /** ARM resource ID of the asset. */ + assetId: string; +}; + +/** Reference to an asset via its path in a job output. */ +export type OutputPathAssetReference = AssetReferenceBase & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + referenceType: "OutputPath"; + /** ARM resource ID of the job. */ + jobId?: string; + /** The path of the file/directory in the job output. */ + path?: string; +}; + +/** Azure Blob datastore configuration. */ +export type AzureBlobContents = DatastoreContents & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + contentsType: "AzureBlob"; + /** Storage account name. */ + accountName: string; + /** Storage account container name. */ + containerName: string; + /** Account credentials. */ + credentials: DatastoreCredentialsUnion; + /** Azure cloud endpoint for the storage account. */ + endpoint: string; + /** Protocol used to communicate with the storage account. */ + protocol: string; +}; + +/** Azure Data Lake Gen1 datastore configuration. */ +export type AzureDataLakeGen1Contents = DatastoreContents & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + contentsType: "AzureDataLakeGen1"; + /** Account credentials. */ + credentials: DatastoreCredentialsUnion; + /** Azure Data Lake store name. */ + storeName: string; +}; + +/** Azure Data Lake Gen2 datastore configuration. */ +export type AzureDataLakeGen2Contents = DatastoreContents & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + contentsType: "AzureDataLakeGen2"; + /** Storage account name. */ + accountName: string; + /** Storage account container name. */ + containerName: string; + /** Account credentials. */ + credentials: DatastoreCredentialsUnion; + /** Azure cloud endpoint for the storage account. */ + endpoint: string; + /** Protocol used to communicate with the storage account. */ + protocol: string; +}; + +/** Azure File datastore configuration. */ +export type AzureFileContents = DatastoreContents & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + contentsType: "AzureFile"; + /** Storage account name. */ + accountName: string; + /** Storage account container name. */ + containerName: string; + /** Account credentials. */ + credentials: DatastoreCredentialsUnion; + /** Azure cloud endpoint for the storage account. */ + endpoint: string; + /** Protocol used to communicate with the storage account. */ + protocol: string; +}; + +/** Azure Postgre SQL datastore configuration. */ +export type AzurePostgreSqlContents = DatastoreContents & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + contentsType: "AzurePostgreSql"; + /** Account credentials. */ + credentials: DatastoreCredentialsUnion; + /** Azure SQL database name. */ + databaseName: string; + /** Whether the Azure PostgreSQL server requires SSL. */ + enableSSL?: boolean; + /** Azure cloud endpoint for the database. */ + endpoint: string; + /** Azure SQL server port. */ + portNumber: number; + /** Azure SQL server name. */ + serverName: string; +}; + +/** Azure SQL Database datastore configuration. */ +export type AzureSqlDatabaseContents = DatastoreContents & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + contentsType: "AzureSqlDatabase"; + /** Account credentials. */ + credentials: DatastoreCredentialsUnion; + /** Azure SQL database name. */ + databaseName: string; + /** Azure cloud endpoint for the database. */ + endpoint: string; + /** Azure SQL server port. */ + portNumber: number; + /** Azure SQL server name. */ + serverName: string; +}; + +/** GlusterFs datastore configuration. */ +export type GlusterFsContents = DatastoreContents & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + contentsType: "GlusterFs"; + /** GlusterFS server address (can be the IP address or server name). */ + serverAddress: string; + /** GlusterFS volume name. */ + volumeName: string; +}; + +/** Datastore account key secrets. */ +export type AccountKeyDatastoreSecrets = DatastoreSecrets & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: "AccountKey"; + /** Storage account key. */ + key?: string; +}; + +/** Datastore certificate secrets. */ +export type CertificateDatastoreSecrets = DatastoreSecrets & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: "Certificate"; + /** Service principal certificate. */ + certificate?: string; +}; + +/** Empty/none datastore secret. */ +export type NoneDatastoreSecrets = DatastoreSecrets & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: "None"; +}; + +/** Datastore SAS secrets. */ +export type SasDatastoreSecrets = DatastoreSecrets & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: "Sas"; + /** Storage container SAS token. */ + sasToken?: string; +}; + +/** Datastore Service Principal secrets. */ +export type ServicePrincipalDatastoreSecrets = DatastoreSecrets & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: "ServicePrincipal"; + /** Service principal secret. */ + clientSecret?: string; +}; + +/** Datastore SQL Admin secrets. */ +export type SqlAdminDatastoreSecrets = DatastoreSecrets & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: "SqlAdmin"; + /** SQL database password. */ + password?: string; +}; + +/** Class to represent configuration settings for Docker Build */ +export type DockerBuild = DockerSpecification & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dockerSpecificationType: "Build"; /** - * Port open for ssh connections on the master node of the cluster. + * Path to a snapshot of the Docker Context. This property is only valid if Dockerfile is specified. + * The path is relative to the asset path which must contain a single Blob URI value. + * */ - sshPort?: number; + context?: string; /** - * Public IP address of the master node of the cluster. + * Docker command line instructions to assemble an image. + * */ - address?: string; + dockerfile: string; +}; + +/** Class to represent configuration settings for Docker Build */ +export type DockerImage = DockerSpecification & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dockerSpecificationType: "Image"; /** - * Admin credentials for master node of the cluster + * Image name of a custom base image. + * */ - administratorAccount?: VirtualMachineSshCredentials; -} + dockerImageUri: string; +}; -/** - * A HDInsight compute. - */ -export interface HDInsight { +/** Command job definition. */ +export type CommandJob = JobBase & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobType: "Command"; + /** ARM resource ID of the code asset. */ + codeId?: string; + /** The command to execute on startup of the job. eg. "python train.py" */ + command: string; + /** Compute binding for the job. */ + compute: ComputeConfiguration; + /** Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. */ + distribution?: DistributionConfigurationUnion; + /** The ARM resource ID of the Environment specification for the job. */ + environmentId?: string; + /** Environment variables included in the job. */ + environmentVariables?: { [propertyName: string]: string }; + /** The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. */ + experimentName?: string; + /** + * Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, or null. + * Defaults to AmlToken if null. + */ + identity?: IdentityConfigurationUnion; + /** Mapping of input data bindings used in the job. */ + inputDataBindings?: { [propertyName: string]: InputDataBinding }; + /** + * Location of the job output logs and artifacts. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly output?: JobOutput; + /** Mapping of output data bindings used in the job. */ + outputDataBindings?: { [propertyName: string]: OutputDataBinding }; + /** + * Input parameters. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly parameters?: { [propertyName: string]: any }; + /** + * Job priority for scheduling policy. Only applies to AMLCompute. + * Private preview feature and only available to users on the allow list. + */ + priority?: number; + /** + * Status of the job. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: JobStatus; + /** 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; +}; + +/** Sweep job definition. */ +export type SweepJob = JobBase & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobType: "Sweep"; + /** Type of the hyperparameter sampling algorithms */ + algorithm: SamplingAlgorithm; + /** Compute binding for the job. */ + compute: ComputeConfiguration; + /** Early termination policies enable canceling poor-performing runs before they complete. */ + earlyTermination?: EarlyTerminationPolicyUnion; + /** The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. */ + experimentName?: string; + /** + * Identity configuration. If set, this should be one of AmlToken, ManagedIdentity or null. + * Defaults to AmlToken if null. + */ + identity?: IdentityConfigurationUnion; + /** An upper bound on the number of trials performed in parallel. */ + maxConcurrentTrials?: number; + /** An upper bound on the number of trials to perform. */ + maxTotalTrials?: number; + /** Optimization objective. */ + objective: Objective; + /** + * Location of the job output logs and artifacts. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly output?: JobOutput; + /** + * Job priority for scheduling policy. Only applies to AMLCompute. + * Private preview feature and only available to users on the allow list. + */ + priority?: number; + /** A dictionary containing each parameter and its distribution. The dictionary key is the name of the parameter */ + searchSpace: { [propertyName: string]: Record }; + /** + * The status of a job. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: JobStatus; + /** The total timeout in ISO 8601 format. Only supports duration with precision as low as Minutes. */ + timeout?: string; + /** Trial component definition. */ + trial?: TrialComponent; +}; + +/** Properties of a labeling job for image data */ +export type LabelingJobImageProperties = LabelingJobMediaProperties & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mediaType: "Image"; + /** Annotation type of image labeling job. */ + annotationType?: ImageAnnotationType; +}; + +/** Properties of a labeling job for text data */ +export type LabelingJobTextProperties = LabelingJobMediaProperties & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mediaType: "Text"; + /** Annotation type of text labeling job. */ + annotationType?: TextAnnotationType; +}; + +export type CocoExportSummary = ExportSummary & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + format: "Coco"; /** - * Polymorphic Discriminator + * The container name to which the labels will be exported. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - computeType: "HDInsight"; + readonly containerName?: string; /** - * Location for the underlying compute + * The output path where the labels will be exported. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - computeLocation?: string; + readonly snapshotPath?: string; +}; + +export type CsvExportSummary = ExportSummary & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + format: "CSV"; /** - * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, - * Succeeded, and Failed. Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', - * 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The container name to which the labels will be exported. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly containerName?: string; /** - * The description of the Machine Learning compute. + * The output path where the labels will be exported. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - description?: string; + readonly snapshotPath?: string; +}; + +export type DatasetExportSummary = ExportSummary & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + format: "Dataset"; /** - * The date and time when the compute was created. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The unique name of the labeled data asset. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdOn?: Date; + readonly labeledAssetName?: string; +}; + +export type K8SOnlineDeployment = OnlineDeployment & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + endpointComputeType: "K8S"; + /** Resource requirements for each container instance within an online deployment. */ + containerResourceRequirements?: ContainerResourceRequirements; +}; + +export type ManagedOnlineDeployment = OnlineDeployment & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + endpointComputeType: "Managed"; + /** Compute instance type. */ + instanceType?: string; + /** Deployment container liveness/readiness probe configuration. */ + readinessProbe?: ProbeSettings; +}; + +export type AutoScaleSettings = OnlineScaleSettings & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + scaleType: "Auto"; + /** The polling interval in ISO 8691 format. Only supports duration with precision as low as Seconds. */ + pollingInterval?: string; + /** Target CPU usage for the autoscaler. */ + targetUtilizationPercentage?: number; +}; + +export type ManualScaleSettings = OnlineScaleSettings & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + scaleType: "Manual"; + /** Fixed number of instances for this deployment. */ + instanceCount?: number; +}; + +export type PartialAksOnlineDeployment = PartialOnlineDeployment & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + endpointComputeType: "K8S"; + /** Resource requirements for each container instance within an online deployment. */ + containerResourceRequirements?: ContainerResourceRequirements; +}; + +export type PartialManagedOnlineDeployment = PartialOnlineDeployment & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + endpointComputeType: "Managed"; + /** Deployment container liveness/readiness probe configuration. */ + readinessProbe?: ProbeSettings; +}; + +/** Account key datastore credentials configuration. */ +export type AccountKeyDatastoreCredentials = DatastoreCredentials & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialsType: "AccountKey"; + /** Storage account secrets. */ + secrets?: AccountKeyDatastoreSecrets; +}; + +/** Certificate datastore credentials configuration. */ +export type CertificateDatastoreCredentials = DatastoreCredentials & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialsType: "Certificate"; + /** Authority URL used for authentication. */ + authorityUrl?: string; + /** Service principal client ID. */ + clientId: string; + /** Resource the service principal has access to. */ + resourceUri?: string; + /** Service principal secrets. */ + secrets?: CertificateDatastoreSecrets; + /** ID of the tenant to which the service principal belongs. */ + tenantId: string; + /** Thumbprint of the certificate used for authentication. */ + thumbprint: string; +}; + +/** Empty/none datastore credentials. */ +export type NoneDatastoreCredentials = DatastoreCredentials & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialsType: "None"; + /** Empty/none datastore secret. */ + secrets?: NoneDatastoreSecrets; +}; + +/** SAS datastore credentials configuration. */ +export type SasDatastoreCredentials = DatastoreCredentials & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialsType: "Sas"; + /** Storage container secrets. */ + secrets?: SasDatastoreSecrets; +}; + +/** Service Principal datastore credentials configuration. */ +export type ServicePrincipalDatastoreCredentials = DatastoreCredentials & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialsType: "ServicePrincipal"; + /** Authority URL used for authentication. */ + authorityUrl?: string; + /** Service principal client ID. */ + clientId: string; + /** Resource the service principal has access to. */ + resourceUri?: string; + /** Service principal secrets. */ + secrets?: ServicePrincipalDatastoreSecrets; + /** ID of the tenant to which the service principal belongs. */ + tenantId: string; +}; + +/** SQL Admin datastore credentials configuration. */ +export type SqlAdminDatastoreCredentials = DatastoreCredentials & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialsType: "SqlAdmin"; + /** SQL database secrets. */ + secrets?: SqlAdminDatastoreSecrets; + /** SQL database user name. */ + userId: string; +}; + +/** AML Token identity configuration. */ +export type AmlToken = IdentityConfiguration & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + identityType: "AMLToken"; +}; + +/** Managed identity configuration. */ +export type ManagedIdentity = IdentityConfiguration & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + identityType: "Managed"; + /** Specifies a user-assigned identity by client ID. For system-assigned, do not set this field. */ + clientId?: string; + /** Specifies a user-assigned identity by object ID. For system-assigned, do not set this field. */ + objectId?: string; + /** Specifies a user-assigned identity by ARM resource ID. For system-assigned, do not set this field. */ + resourceId?: string; +}; + +/** Defines an early termination policy based on slack criteria, and a frequency and delay interval for evaluation. */ +export type BanditPolicy = EarlyTerminationPolicy & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + policyType: "Bandit"; + /** Absolute distance allowed from the best performing run. */ + slackAmount?: number; + /** Ratio of the allowed distance from the best performing run. */ + slackFactor?: number; +}; + +/** Defines an early termination policy based on running averages of the primary metric of all runs. */ +export type MedianStoppingPolicy = EarlyTerminationPolicy & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + policyType: "MedianStopping"; +}; + +/** Defines an early termination policy that cancels a given percentage of runs at each evaluation interval. */ +export type TruncationSelectionPolicy = EarlyTerminationPolicy & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + policyType: "TruncationSelection"; + /** The percentage of runs to cancel at each evaluation interval. */ + truncationPercentage?: number; +}; + +/** MPI distribution configuration. */ +export type Mpi = DistributionConfiguration & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + distributionType: "Mpi"; + /** Number of processes per MPI node. */ + processCountPerInstance?: number; +}; + +/** PyTorch distribution configuration. */ +export type PyTorch = DistributionConfiguration & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + distributionType: "PyTorch"; + /** Total process count for the distributed job. */ + processCount?: number; +}; + +/** TensorFlow distribution configuration. */ +export type TensorFlow = DistributionConfiguration & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + distributionType: "TensorFlow"; + /** Number of parameter server tasks. */ + parameterServerCount?: number; + /** Number of workers. Overwrites the node count in compute binding. */ + workerCount?: number; +}; + +export type BatchEndpointTrackedResource = TrackedResource & { + /** Service identity associated with a resource. */ + identity?: ResourceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** Additional attributes of the entity. */ + properties: BatchEndpoint; /** - * The date and time when the compute was last modified. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * System data associated with resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly modifiedOn?: Date; + readonly systemData?: SystemData; +}; + +export type BatchDeploymentTrackedResource = TrackedResource & { + /** Service identity associated with a resource. */ + identity?: ResourceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** Additional attributes of the entity. */ + properties: BatchDeployment; /** - * ARM resource id of the underlying compute + * System data associated with resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. */ - resourceId?: string; + readonly systemData?: SystemData; +}; + +export type OnlineEndpointTrackedResource = TrackedResource & { + /** Service identity associated with a resource. */ + identity?: ResourceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** Additional attributes of the entity. */ + properties: OnlineEndpoint; /** - * Errors during provisioning - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * System data associated with resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningErrors?: MachineLearningServiceError[]; + readonly systemData?: SystemData; +}; + +export type OnlineDeploymentTrackedResource = TrackedResource & { + /** Service identity associated with a resource. */ + identity?: ResourceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** Additional attributes of the entity. */ + properties: OnlineDeploymentUnion; /** - * 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.** + * System data associated with resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isAttachedCompute?: boolean; - properties?: HDInsightProperties; + readonly systemData?: SystemData; +}; + +/** Defines headers for Compute_createOrUpdate operation. */ +export interface ComputeCreateOrUpdateHeaders { + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for Compute_delete operation. */ +export interface ComputeDeleteHeaders { + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; +} + +/** Defines headers for Jobs_delete operation. */ +export interface JobsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for LabelingJobs_createOrUpdate operation. */ +export interface LabelingJobsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for LabelingJobs_exportLabels operation. */ +export interface LabelingJobsExportLabelsHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for LabelingJobs_resume operation. */ +export interface LabelingJobsResumeHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineEndpoints_delete operation. */ +export interface OnlineEndpointsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineEndpoints_update operation. */ +export interface OnlineEndpointsUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineEndpoints_createOrUpdate operation. */ +export interface OnlineEndpointsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for OnlineEndpoints_regenerateKeys operation. */ +export interface OnlineEndpointsRegenerateKeysHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineDeployments_delete operation. */ +export interface OnlineDeploymentsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineDeployments_update operation. */ +export interface OnlineDeploymentsUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineDeployments_createOrUpdate operation. */ +export interface OnlineDeploymentsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Known values of {@link ProvisioningState} that the service accepts. */ +export const enum KnownProvisioningState { + Unknown = "Unknown", + Updating = "Updating", + Creating = "Creating", + Deleting = "Deleting", + Succeeded = "Succeeded", + Failed = "Failed", + Canceled = "Canceled" } /** - * A DataFactory compute. + * Defines values for ProvisioningState. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unknown** \ + * **Updating** \ + * **Creating** \ + * **Deleting** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** + */ +export type ProvisioningState = string; + +/** Known values of {@link EncryptionStatus} that the service accepts. */ +export const enum KnownEncryptionStatus { + Enabled = "Enabled", + Disabled = "Disabled" +} + +/** + * Defines values for EncryptionStatus. \ + * {@link KnownEncryptionStatus} can be used interchangeably with EncryptionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** */ -export interface DataFactory { - /** - * Polymorphic Discriminator - */ - computeType: "DataFactory"; - /** - * Location for the underlying compute - */ - computeLocation?: string; - /** - * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, - * Succeeded, and Failed. Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', - * 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: ProvisioningState; - /** - * The description of the Machine Learning compute. - */ - description?: string; - /** - * The date and time when the compute was created. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly createdOn?: Date; - /** - * The date and time when the compute was last modified. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly modifiedOn?: Date; - /** - * ARM resource id of the underlying compute - */ - resourceId?: string; - /** - * Errors during provisioning - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningErrors?: MachineLearningServiceError[]; - /** - * Indicating whether the compute was provisioned by user and brought from outside if true, or - * machine learning service provisioned it if false. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isAttachedCompute?: boolean; +export type EncryptionStatus = string; + +/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ +export const enum KnownPrivateEndpointServiceConnectionStatus { + Pending = "Pending", + Approved = "Approved", + Rejected = "Rejected", + Disconnected = "Disconnected", + Timeout = "Timeout" } /** - * An interface representing DatabricksProperties. + * Defines values for PrivateEndpointServiceConnectionStatus. \ + * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Pending** \ + * **Approved** \ + * **Rejected** \ + * **Disconnected** \ + * **Timeout** + */ +export type PrivateEndpointServiceConnectionStatus = string; + +/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ +export const enum KnownPrivateEndpointConnectionProvisioningState { + Succeeded = "Succeeded", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed" +} + +/** + * Defines values for PrivateEndpointConnectionProvisioningState. \ + * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Creating** \ + * **Deleting** \ + * **Failed** */ -export interface DatabricksProperties { - /** - * Databricks access token - */ - databricksAccessToken?: string; +export type PrivateEndpointConnectionProvisioningState = string; + +/** Known values of {@link CreatedByType} that the service accepts. */ +export const enum KnownCreatedByType { + User = "User", + Application = "Application", + ManagedIdentity = "ManagedIdentity", + Key = "Key" } /** - * A DataFactory compute. + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** */ -export interface Databricks { - /** - * Polymorphic Discriminator - */ - computeType: "Databricks"; - /** - * Location for the underlying compute - */ - computeLocation?: string; - /** - * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, - * Succeeded, and Failed. Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', - * 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: ProvisioningState; - /** - * The description of the Machine Learning compute. - */ - description?: string; - /** - * The date and time when the compute was created. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly createdOn?: Date; - /** - * The date and time when the compute was last modified. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly modifiedOn?: Date; - /** - * ARM resource id of the underlying compute - */ - resourceId?: string; - /** - * Errors during provisioning - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningErrors?: MachineLearningServiceError[]; - /** - * Indicating whether the compute was provisioned by user and brought from outside if true, or - * machine learning service provisioned it if false. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isAttachedCompute?: boolean; - properties?: DatabricksProperties; +export type CreatedByType = string; + +/** Known values of {@link UsageUnit} that the service accepts. */ +export const enum KnownUsageUnit { + Count = "Count" +} + +/** + * Defines values for UsageUnit. \ + * {@link KnownUsageUnit} can be used interchangeably with UsageUnit, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Count** + */ +export type UsageUnit = string; + +/** Known values of {@link BillingCurrency} that the service accepts. */ +export const enum KnownBillingCurrency { + USD = "USD" +} + +/** + * Defines values for BillingCurrency. \ + * {@link KnownBillingCurrency} can be used interchangeably with BillingCurrency, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **USD** + */ +export type BillingCurrency = string; + +/** Known values of {@link UnitOfMeasure} that the service accepts. */ +export const enum KnownUnitOfMeasure { + OneHour = "OneHour" +} + +/** + * Defines values for UnitOfMeasure. \ + * {@link KnownUnitOfMeasure} can be used interchangeably with UnitOfMeasure, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **OneHour** + */ +export type UnitOfMeasure = string; + +/** Known values of {@link VMPriceOSType} that the service accepts. */ +export const enum KnownVMPriceOSType { + Linux = "Linux", + Windows = "Windows" +} + +/** + * Defines values for VMPriceOSType. \ + * {@link KnownVMPriceOSType} can be used interchangeably with VMPriceOSType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Linux** \ + * **Windows** + */ +export type VMPriceOSType = string; + +/** Known values of {@link VMTier} that the service accepts. */ +export const enum KnownVMTier { + Standard = "Standard", + LowPriority = "LowPriority", + Spot = "Spot" +} + +/** + * Defines values for VMTier. \ + * {@link KnownVMTier} can be used interchangeably with VMTier, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Standard** \ + * **LowPriority** \ + * **Spot** + */ +export type VMTier = string; + +/** Known values of {@link QuotaUnit} that the service accepts. */ +export const enum KnownQuotaUnit { + Count = "Count" +} + +/** + * Defines values for QuotaUnit. \ + * {@link KnownQuotaUnit} can be used interchangeably with QuotaUnit, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Count** + */ +export type QuotaUnit = string; + +/** Known values of {@link Status} that the service accepts. */ +export const enum KnownStatus { + Undefined = "Undefined", + Success = "Success", + Failure = "Failure", + InvalidQuotaBelowClusterMinimum = "InvalidQuotaBelowClusterMinimum", + InvalidQuotaExceedsSubscriptionLimit = "InvalidQuotaExceedsSubscriptionLimit", + InvalidVMFamilyName = "InvalidVMFamilyName", + OperationNotSupportedForSku = "OperationNotSupportedForSku", + OperationNotEnabledForRegion = "OperationNotEnabledForRegion" } /** - * An interface representing DataLakeAnalyticsProperties. - */ -export interface DataLakeAnalyticsProperties { - /** - * DataLake Store Account Name - */ - dataLakeStoreAccountName?: string; + * Defines values for Status. \ + * {@link KnownStatus} can be used interchangeably with Status, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Undefined** \ + * **Success** \ + * **Failure** \ + * **InvalidQuotaBelowClusterMinimum** \ + * **InvalidQuotaExceedsSubscriptionLimit** \ + * **InvalidVMFamilyName** \ + * **OperationNotSupportedForSku** \ + * **OperationNotEnabledForRegion** + */ +export type Status = string; + +/** Known values of {@link ComputeType} that the service accepts. */ +export const enum KnownComputeType { + AKS = "AKS", + AmlCompute = "AmlCompute", + ComputeInstance = "ComputeInstance", + DataFactory = "DataFactory", + VirtualMachine = "VirtualMachine", + HDInsight = "HDInsight", + Databricks = "Databricks", + DataLakeAnalytics = "DataLakeAnalytics", + SynapseSpark = "SynapseSpark" } /** - * A DataLakeAnalytics compute. - */ -export interface DataLakeAnalytics { - /** - * Polymorphic Discriminator - */ - computeType: "DataLakeAnalytics"; - /** - * Location for the underlying compute - */ - computeLocation?: string; - /** - * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, - * Succeeded, and Failed. Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', - * 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: ProvisioningState; - /** - * The description of the Machine Learning compute. - */ - description?: string; - /** - * The date and time when the compute was created. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly createdOn?: Date; - /** - * The date and time when the compute was last modified. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly modifiedOn?: Date; - /** - * ARM resource id of the underlying compute - */ - resourceId?: string; - /** - * Errors during provisioning - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningErrors?: MachineLearningServiceError[]; - /** - * Indicating whether the compute was provisioned by user and brought from outside if true, or - * machine learning service provisioned it if false. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isAttachedCompute?: boolean; - properties?: DataLakeAnalyticsProperties; + * Defines values for ComputeType. \ + * {@link KnownComputeType} can be used interchangeably with ComputeType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AKS** \ + * **AmlCompute** \ + * **ComputeInstance** \ + * **DataFactory** \ + * **VirtualMachine** \ + * **HDInsight** \ + * **Databricks** \ + * **DataLakeAnalytics** \ + * **SynapseSpark** + */ +export type ComputeType = string; + +/** Known values of {@link UnderlyingResourceAction} that the service accepts. */ +export const enum KnownUnderlyingResourceAction { + Delete = "Delete", + Detach = "Detach" } /** - * Service principal credentials. + * Defines values for UnderlyingResourceAction. \ + * {@link KnownUnderlyingResourceAction} can be used interchangeably with UnderlyingResourceAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Delete** \ + * **Detach** */ -export interface ServicePrincipalCredentials { - /** - * Client Id - */ - clientId: string; - /** - * Client secret - */ - clientSecret: string; +export type UnderlyingResourceAction = string; + +/** Known values of {@link NodeState} that the service accepts. */ +export const enum KnownNodeState { + Idle = "idle", + Running = "running", + Preparing = "preparing", + Unusable = "unusable", + Leaving = "leaving", + Preempted = "preempted" } /** - * AmlCompute update parameters. - */ -export interface ClusterUpdateParameters { - /** - * Scale settings. Desired scale settings for the amlCompute. - */ - scaleSettings?: ScaleSettings; + * Defines values for NodeState. \ + * {@link KnownNodeState} can be used interchangeably with NodeState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **idle** \ + * **running** \ + * **preparing** \ + * **unusable** \ + * **leaving** \ + * **preempted** + */ +export type NodeState = string; + +/** Known values of {@link ProvisioningStatus} that the service accepts. */ +export const enum KnownProvisioningStatus { + Completed = "Completed", + Provisioning = "Provisioning", + Failed = "Failed" } /** - * Contains the possible cases for ComputeNodesInformation. + * Defines values for ProvisioningStatus. \ + * {@link KnownProvisioningStatus} can be used interchangeably with ProvisioningStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Completed** \ + * **Provisioning** \ + * **Failed** */ -export type ComputeNodesInformationUnion = ComputeNodesInformation | AmlComputeNodesInformation; +export type ProvisioningStatus = string; + +/** Known values of {@link ScheduleStatus} that the service accepts. */ +export const enum KnownScheduleStatus { + Enabled = "Enabled", + Disabled = "Disabled" +} /** - * Compute nodes information related to a Machine Learning compute. Might differ for every type of - * compute. + * Defines values for ScheduleStatus. \ + * {@link KnownScheduleStatus} can be used interchangeably with ScheduleStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** */ -export interface ComputeNodesInformation { - /** - * Polymorphic Discriminator - */ - computeType: "ComputeNodesInformation"; - /** - * The continuation token. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; +export type ScheduleStatus = string; + +/** Known values of {@link TriggerType} that the service accepts. */ +export const enum KnownTriggerType { + Recurrence = "Recurrence", + Cron = "Cron" } /** - * Compute node information related to a AmlCompute. + * Defines values for TriggerType. \ + * {@link KnownTriggerType} can be used interchangeably with TriggerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Recurrence** \ + * **Cron** */ -export interface AmlComputeNodeInformation { - /** - * Node ID. ID of the compute node. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nodeId?: string; - /** - * Private IP address. Private IP address of the compute node. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly privateIpAddress?: string; - /** - * Public IP address. Public IP address of the compute node. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly publicIpAddress?: string; - /** - * Port. SSH port number of the node. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly port?: number; - /** - * State of the compute node. Values are idle, running, preparing, unusable, leaving and - * preempted. Possible values include: 'idle', 'running', 'preparing', 'unusable', 'leaving', - * 'preempted' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nodeState?: NodeState; - /** - * Run ID. ID of the Experiment running on the node, if any else null. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly runId?: string; +export type TriggerType = string; + +/** Known values of {@link ComputePowerAction} that the service accepts. */ +export const enum KnownComputePowerAction { + Start = "Start", + Stop = "Stop" } /** - * Compute node information related to a AmlCompute. - */ -export interface AmlComputeNodesInformation { - /** - * Polymorphic Discriminator - */ - computeType: "AmlCompute"; - /** - * The continuation token. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; - /** - * The collection of returned AmlCompute nodes details. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nodes?: AmlComputeNodeInformation[]; + * Defines values for ComputePowerAction. \ + * {@link KnownComputePowerAction} can be used interchangeably with ComputePowerAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Start** \ + * **Stop** + */ +export type ComputePowerAction = string; + +/** Known values of {@link RecurrenceFrequency} that the service accepts. */ +export const enum KnownRecurrenceFrequency { + NotSpecified = "NotSpecified", + Second = "Second", + Minute = "Minute", + Hour = "Hour", + Day = "Day", + Week = "Week", + Month = "Month", + Year = "Year" } /** - * Contains the possible cases for ComputeSecrets. - */ -export type ComputeSecretsUnion = ComputeSecrets | AksComputeSecrets | VirtualMachineSecrets | DatabricksComputeSecrets; + * 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 + * **NotSpecified** \ + * **Second** \ + * **Minute** \ + * **Hour** \ + * **Day** \ + * **Week** \ + * **Month** \ + * **Year** + */ +export type RecurrenceFrequency = string; + +/** Known values of {@link ValueFormat} that the service accepts. */ +export const enum KnownValueFormat { + Json = "JSON" +} /** - * Secrets related to a Machine Learning compute. Might differ for every type of compute. + * 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 interface ComputeSecrets { - /** - * Polymorphic Discriminator - */ - computeType: "ComputeSecrets"; +export type ValueFormat = string; + +/** Known values of {@link ResourceIdentityAssignment} that the service accepts. */ +export const enum KnownResourceIdentityAssignment { + SystemAssigned = "SystemAssigned", + UserAssigned = "UserAssigned", + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", + None = "None" } /** - * Secrets related to a Machine Learning compute based on AKS. + * Defines values for ResourceIdentityAssignment. \ + * {@link KnownResourceIdentityAssignment} can be used interchangeably with ResourceIdentityAssignment, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SystemAssigned** \ + * **UserAssigned** \ + * **SystemAssigned,UserAssigned** \ + * **None** */ -export interface AksComputeSecrets { - /** - * Polymorphic Discriminator - */ - computeType: "AKS"; - /** - * Content of kubeconfig file that can be used to connect to the Kubernetes cluster. - */ - userKubeConfig?: string; - /** - * Content of kubeconfig file that can be used to connect to the Kubernetes cluster. - */ - adminKubeConfig?: string; - /** - * Image registry pull secret. - */ - imagePullSecretName?: string; +export type ResourceIdentityAssignment = string; + +/** Known values of {@link EndpointAuthMode} that the service accepts. */ +export const enum KnownEndpointAuthMode { + AMLToken = "AMLToken", + Key = "Key", + AADToken = "AADToken" } /** - * Secrets related to a Machine Learning compute based on AKS. + * Defines values for EndpointAuthMode. \ + * {@link KnownEndpointAuthMode} can be used interchangeably with EndpointAuthMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AMLToken** \ + * **Key** \ + * **AADToken** */ -export interface VirtualMachineSecrets { - /** - * Polymorphic Discriminator - */ - computeType: "VirtualMachine"; - /** - * Admin credentials for virtual machine. - */ - administratorAccount?: VirtualMachineSshCredentials; +export type EndpointAuthMode = string; + +/** Known values of {@link BatchLoggingLevel} that the service accepts. */ +export const enum KnownBatchLoggingLevel { + Info = "Info", + Warning = "Warning", + Debug = "Debug" } /** - * Secrets related to a Machine Learning compute based on Databricks. + * 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 interface DatabricksComputeSecrets { - /** - * Polymorphic Discriminator - */ - computeType: "Databricks"; - /** - * access token for databricks account. - */ - databricksAccessToken?: string; +export type BatchLoggingLevel = string; + +/** Known values of {@link ReferenceType} that the service accepts. */ +export const enum KnownReferenceType { + Id = "Id", + DataPath = "DataPath", + OutputPath = "OutputPath" } /** - * Features/user capabilities associated with the sku + * 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 interface SKUCapability { - /** - * Capability/Feature ID - */ - name?: string; - /** - * Details about the feature/capability - */ - value?: string; +export type ReferenceType = string; + +/** Known values of {@link BatchOutputAction} that the service accepts. */ +export const enum KnownBatchOutputAction { + SummaryOnly = "SummaryOnly", + AppendRow = "AppendRow" } /** - * Describes The zonal capabilities of a SKU. + * 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 interface ResourceSkuZoneDetails { - /** - * The set of zones that the SKU is available in with the specified capabilities. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string[]; - /** - * A list of capabilities that are available for the SKU in the specified list of zones. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly capabilities?: SKUCapability[]; +export type BatchOutputAction = string; + +/** Known values of {@link DatasetType} that the service accepts. */ +export const enum KnownDatasetType { + Simple = "Simple", + Dataflow = "Dataflow" } /** - * An interface representing ResourceSkuLocationInfo. - */ -export interface ResourceSkuLocationInfo { - /** - * Location of the SKU - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly location?: string; - /** - * List of availability zones where the SKU is supported. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly zones?: string[]; - /** - * Details of capabilities available to a SKU in specific zones. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly zoneDetails?: ResourceSkuZoneDetails[]; + * Defines values for DatasetType. \ + * {@link KnownDatasetType} can be used interchangeably with DatasetType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Simple** \ + * **Dataflow** + */ +export type DatasetType = string; + +/** Known values of {@link ContentsType} that the service accepts. */ +export const enum KnownContentsType { + AzureBlob = "AzureBlob", + AzureDataLakeGen1 = "AzureDataLakeGen1", + AzureDataLakeGen2 = "AzureDataLakeGen2", + AzureFile = "AzureFile", + AzureMySql = "AzureMySql", + AzurePostgreSql = "AzurePostgreSql", + AzureSqlDatabase = "AzureSqlDatabase", + GlusterFs = "GlusterFs" } /** - * The restriction because of which SKU cannot be used. - */ -export interface Restriction { - /** - * The type of restrictions. As of now only possible value for this is location. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * The value of restrictions. If the restriction type is set to location. This would be different - * locations where the SKU is restricted. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly values?: string[]; - /** - * The reason for the restriction. Possible values include: 'NotSpecified', - * 'NotAvailableForRegion', 'NotAvailableForSubscription' - */ - reasonCode?: ReasonCode; + * Defines values for ContentsType. \ + * {@link KnownContentsType} can be used interchangeably with ContentsType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AzureBlob** \ + * **AzureDataLakeGen1** \ + * **AzureDataLakeGen2** \ + * **AzureFile** \ + * **AzureMySql** \ + * **AzurePostgreSql** \ + * **AzureSqlDatabase** \ + * **GlusterFs** + */ +export type ContentsType = string; + +/** Known values of {@link OriginType} that the service accepts. */ +export const enum KnownOriginType { + Synapse = "Synapse" } /** - * Describes Workspace Sku details and features + * Defines values for OriginType. \ + * {@link KnownOriginType} can be used interchangeably with OriginType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Synapse** */ -export interface SkuSettings { - /** - * The set of locations that the SKU is available. This will be supported and registered Azure - * Geo Regions (e.g. West US, East US, Southeast Asia, etc.). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly locations?: string[]; - /** - * A list of locations and availability zones in those locations where the SKU is available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly locationInfo?: ResourceSkuLocationInfo[]; - /** - * Sku Tier like Basic or Enterprise - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly tier?: string; - /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly resourceType?: string; - /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * List of features/user capabilities associated with the sku - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly capabilities?: SKUCapability[]; - /** - * The restrictions because of which SKU cannot be used. This is empty if there are no - * restrictions. - */ - restrictions?: Restriction[]; +export type OriginType = string; + +/** Known values of {@link SecretsType} that the service accepts. */ +export const enum KnownSecretsType { + AccountKey = "AccountKey", + Certificate = "Certificate", + None = "None", + Sas = "Sas", + ServicePrincipal = "ServicePrincipal", + SqlAdmin = "SqlAdmin" } /** - * AML workspace sku information + * Defines values for SecretsType. \ + * {@link KnownSecretsType} can be used interchangeably with SecretsType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AccountKey** \ + * **Certificate** \ + * **None** \ + * **Sas** \ + * **ServicePrincipal** \ + * **SqlAdmin** */ -export interface WorkspaceSku { - /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly resourceType?: string; - /** - * The list of workspace sku settings - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly skus?: SkuSettings[]; +export type SecretsType = string; + +/** Known values of {@link DockerSpecificationType} that the service accepts. */ +export const enum KnownDockerSpecificationType { + Build = "Build", + Image = "Image" } /** - * A private link resource + * Defines values for DockerSpecificationType. \ + * {@link KnownDockerSpecificationType} can be used interchangeably with DockerSpecificationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Build** \ + * **Image** */ -export interface PrivateLinkResource extends Resource { - /** - * The private link resource group id. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly groupId?: string; - /** - * The private link resource required member names. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly requiredMembers?: string[]; - /** - * The private link resource Private link DNS zone name. - */ - requiredZoneNames?: string[]; +export type DockerSpecificationType = string; + +/** Known values of {@link OperatingSystemType} that the service accepts. */ +export const enum KnownOperatingSystemType { + Linux = "Linux", + Windows = "Windows" } /** - * A list of private link resources + * Defines values for OperatingSystemType. \ + * {@link KnownOperatingSystemType} can be used interchangeably with OperatingSystemType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Linux** \ + * **Windows** */ -export interface PrivateLinkResourceListResult { - /** - * Array of private link resources - */ - value?: PrivateLinkResource[]; +export type OperatingSystemType = string; + +/** Known values of {@link EnvironmentSpecificationType} that the service accepts. */ +export const enum KnownEnvironmentSpecificationType { + Curated = "Curated", + UserCreated = "UserCreated" } /** - * Workspace connection. + * Defines values for EnvironmentSpecificationType. \ + * {@link KnownEnvironmentSpecificationType} can be used interchangeably with EnvironmentSpecificationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Curated** \ + * **UserCreated** */ -export interface WorkspaceConnection extends BaseResource { - /** - * ResourceId of the workspace connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * Friendly name of the workspace connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Resource type of workspace connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * Category of the workspace connection. - */ - category?: string; - /** - * Target of the workspace connection. - */ - target?: string; - /** - * Authorization type of the workspace connection. - */ - authType?: string; - /** - * Value details of the workspace connection. - */ - value?: string; +export type EnvironmentSpecificationType = string; + +/** Known values of {@link JobType} that the service accepts. */ +export const enum KnownJobType { + Command = "Command", + Sweep = "Sweep", + Labeling = "Labeling" } /** - * object used for creating workspace connection. + * 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 + * **Command** \ + * **Sweep** \ + * **Labeling** */ -export interface WorkspaceConnectionDto { - /** - * Friendly name of the workspace connection - */ - name?: string; - /** - * Category of the workspace connection. - */ - category?: string; - /** - * Target of the workspace connection. - */ - target?: string; - /** - * Authorization type of the workspace connection. - */ - authType?: string; - /** - * Value details of the workspace connection. - */ - value?: string; +export type JobType = string; + +/** Known values of {@link JobProvisioningState} that the service accepts. */ +export const enum KnownJobProvisioningState { + Succeeded = "Succeeded", + Failed = "Failed", + Canceled = "Canceled", + InProgress = "InProgress" } /** - * Optional Parameters. + * Defines values for JobProvisioningState. \ + * {@link KnownJobProvisioningState} can be used interchangeably with JobProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **InProgress** */ -export interface WorkspacesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { - /** - * Continuation token for pagination. - */ - skiptoken?: string; +export type JobProvisioningState = string; + +/** Known values of {@link MediaType} that the service accepts. */ +export const enum KnownMediaType { + Image = "Image", + Text = "Text" +} + +/** + * Defines values for MediaType. \ + * {@link KnownMediaType} can be used interchangeably with MediaType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Image** \ + * **Text** + */ +export type MediaType = string; + +/** Known values of {@link JobStatus} that the service accepts. */ +export const enum KnownJobStatus { + NotStarted = "NotStarted", + Starting = "Starting", + Provisioning = "Provisioning", + Preparing = "Preparing", + Queued = "Queued", + Running = "Running", + Finalizing = "Finalizing", + CancelRequested = "CancelRequested", + Completed = "Completed", + Failed = "Failed", + Canceled = "Canceled", + NotResponding = "NotResponding", + Paused = "Paused", + Unknown = "Unknown" +} + +/** + * Defines values for JobStatus. \ + * {@link KnownJobStatus} can be used interchangeably with JobStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotStarted** \ + * **Starting** \ + * **Provisioning** \ + * **Preparing** \ + * **Queued** \ + * **Running** \ + * **Finalizing** \ + * **CancelRequested** \ + * **Completed** \ + * **Failed** \ + * **Canceled** \ + * **NotResponding** \ + * **Paused** \ + * **Unknown** + */ +export type JobStatus = string; + +/** Known values of {@link StatusMessageLevel} that the service accepts. */ +export const enum KnownStatusMessageLevel { + Error = "Error", + Information = "Information", + Warning = "Warning" } /** - * Optional Parameters. + * Defines values for StatusMessageLevel. \ + * {@link KnownStatusMessageLevel} can be used interchangeably with StatusMessageLevel, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Error** \ + * **Information** \ + * **Warning** */ -export interface WorkspacesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { - /** - * Continuation token for pagination. - */ - skiptoken?: string; +export type StatusMessageLevel = string; + +/** Known values of {@link ExportFormatType} that the service accepts. */ +export const enum KnownExportFormatType { + Dataset = "Dataset", + Coco = "Coco", + CSV = "CSV" } /** - * Optional Parameters. + * Defines values for ExportFormatType. \ + * {@link KnownExportFormatType} can be used interchangeably with ExportFormatType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Dataset** \ + * **Coco** \ + * **CSV** */ -export interface WorkspacesListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Continuation token for pagination. - */ - skiptoken?: string; +export type ExportFormatType = string; + +/** Known values of {@link EndpointComputeType} that the service accepts. */ +export const enum KnownEndpointComputeType { + Managed = "Managed", + K8S = "K8S", + AzureMLCompute = "AzureMLCompute" } /** - * Optional Parameters. + * Defines values for EndpointComputeType. \ + * {@link KnownEndpointComputeType} can be used interchangeably with EndpointComputeType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Managed** \ + * **K8S** \ + * **AzureMLCompute** */ -export interface WorkspacesListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Continuation token for pagination. - */ - skiptoken?: string; +export type EndpointComputeType = string; + +/** Known values of {@link OrderString} that the service accepts. */ +export const enum KnownOrderString { + CreatedAtDesc = "CreatedAtDesc", + CreatedAtAsc = "CreatedAtAsc", + UpdatedAtDesc = "UpdatedAtDesc", + UpdatedAtAsc = "UpdatedAtAsc" +} + +/** + * Defines values for OrderString. \ + * {@link KnownOrderString} can be used interchangeably with OrderString, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CreatedAtDesc** \ + * **CreatedAtAsc** \ + * **UpdatedAtDesc** \ + * **UpdatedAtAsc** + */ +export type OrderString = string; + +/** Known values of {@link EndpointProvisioningState} that the service accepts. */ +export const enum KnownEndpointProvisioningState { + Creating = "Creating", + Deleting = "Deleting", + Succeeded = "Succeeded", + Failed = "Failed", + Updating = "Updating", + Canceled = "Canceled" +} + +/** + * Defines values for EndpointProvisioningState. \ + * {@link KnownEndpointProvisioningState} can be used interchangeably with EndpointProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Deleting** \ + * **Succeeded** \ + * **Failed** \ + * **Updating** \ + * **Canceled** + */ +export type EndpointProvisioningState = string; + +/** Known values of {@link DeploymentProvisioningState} that the service accepts. */ +export const enum KnownDeploymentProvisioningState { + Creating = "Creating", + Deleting = "Deleting", + Scaling = "Scaling", + Updating = "Updating", + Succeeded = "Succeeded", + Failed = "Failed", + Canceled = "Canceled" } /** - * Optional Parameters. + * 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 ScaleType} that the service accepts. */ +export const enum KnownScaleType { + Auto = "Auto", + Manual = "Manual" +} + +/** + * 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 + * **Auto** \ + * **Manual** */ -export interface VirtualMachineSizesListOptionalParams extends msRest.RequestOptionsBase { - /** - * Type of compute to filter by. - */ - computeType?: string; - /** - * Specifies whether to return recommended vm sizes or all vm sizes - */ - recommended?: boolean; +export type ScaleType = string; + +/** Known values of {@link ContainerType} that the service accepts. */ +export const enum KnownContainerType { + StorageInitializer = "StorageInitializer", + InferenceServer = "InferenceServer" } /** - * Optional Parameters. + * Defines values for ContainerType. \ + * {@link KnownContainerType} can be used interchangeably with ContainerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **StorageInitializer** \ + * **InferenceServer** */ -export interface WorkspaceConnectionsListOptionalParams extends msRest.RequestOptionsBase { - /** - * Target of the workspace connection. - */ - target?: string; - /** - * Category of the workspace connection. - */ - category?: string; +export type ContainerType = string; + +/** Known values of {@link KeyType} that the service accepts. */ +export const enum KnownKeyType { + Primary = "Primary", + Secondary = "Secondary" } /** - * Optional Parameters. + * Defines values for KeyType. \ + * {@link KnownKeyType} can be used interchangeably with KeyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Primary** \ + * **Secondary** */ -export interface MachineLearningComputeListByWorkspaceOptionalParams extends msRest.RequestOptionsBase { - /** - * Continuation token for pagination. - */ - skiptoken?: string; +export type KeyType = string; + +/** Known values of {@link ReasonCode} that the service accepts. */ +export const enum KnownReasonCode { + NotSpecified = "NotSpecified", + NotAvailableForRegion = "NotAvailableForRegion", + NotAvailableForSubscription = "NotAvailableForSubscription" } /** - * Optional Parameters. + * Defines values for ReasonCode. \ + * {@link KnownReasonCode} can be used interchangeably with ReasonCode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotSpecified** \ + * **NotAvailableForRegion** \ + * **NotAvailableForSubscription** */ -export interface MachineLearningComputeListByWorkspaceNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Continuation token for pagination. - */ - skiptoken?: string; +export type ReasonCode = string; + +/** Known values of {@link ClusterPurpose} that the service accepts. */ +export const enum KnownClusterPurpose { + FastProd = "FastProd", + DenseProd = "DenseProd", + DevTest = "DevTest" } /** - * An interface representing AzureMachineLearningWorkspacesOptions. + * Defines values for ClusterPurpose. \ + * {@link KnownClusterPurpose} can be used interchangeably with ClusterPurpose, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **FastProd** \ + * **DenseProd** \ + * **DevTest** */ -export interface AzureMachineLearningWorkspacesOptions extends AzureServiceClientOptions { - baseUri?: string; +export type ClusterPurpose = string; + +/** Known values of {@link SslConfigurationStatus} that the service accepts. */ +export const enum KnownSslConfigurationStatus { + Disabled = "Disabled", + Enabled = "Enabled", + Auto = "Auto" } /** - * Defines headers for CreateOrUpdate operation. + * Defines values for SslConfigurationStatus. \ + * {@link KnownSslConfigurationStatus} can be used interchangeably with SslConfigurationStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** \ + * **Auto** */ -export interface MachineLearningComputeCreateOrUpdateHeaders { - /** - * URI to poll for asynchronous operation status. - */ - azureAsyncOperation: string; +export type SslConfigurationStatus = string; + +/** Known values of {@link LoadBalancerType} that the service accepts. */ +export const enum KnownLoadBalancerType { + PublicIp = "PublicIp", + InternalLoadBalancer = "InternalLoadBalancer" } /** - * Defines headers for Delete operation. + * Defines values for LoadBalancerType. \ + * {@link KnownLoadBalancerType} can be used interchangeably with LoadBalancerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PublicIp** \ + * **InternalLoadBalancer** */ -export interface MachineLearningComputeDeleteHeaders { - /** - * URI to poll for asynchronous operation status. - */ - azureAsyncOperation: string; - /** - * URI to poll for asynchronous operation result. - */ - location: string; +export type LoadBalancerType = string; + +/** Known values of {@link OsType} that the service accepts. */ +export const enum KnownOsType { + Linux = "Linux", + Windows = "Windows" } /** - * @interface - * An array of operations supported by the resource provider. - * @extends Array + * Defines values for OsType. \ + * {@link KnownOsType} can be used interchangeably with OsType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Linux** \ + * **Windows** */ -export interface OperationListResult extends Array { +export type OsType = string; + +/** Known values of {@link VmPriority} that the service accepts. */ +export const enum KnownVmPriority { + Dedicated = "Dedicated", + LowPriority = "LowPriority" } /** - * @interface - * The result of a request to list machine learning workspaces. - * @extends Array + * Defines values for VmPriority. \ + * {@link KnownVmPriority} can be used interchangeably with VmPriority, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Dedicated** \ + * **LowPriority** */ -export interface WorkspaceListResult extends Array { - /** - * The URI that can be used to request the next list of machine learning workspaces. - */ - nextLink?: string; +export type VmPriority = string; + +/** Known values of {@link RemoteLoginPortPublicAccess} that the service accepts. */ +export const enum KnownRemoteLoginPortPublicAccess { + Enabled = "Enabled", + Disabled = "Disabled", + NotSpecified = "NotSpecified" } /** - * @interface - * The List Aml user feature operation response. - * @extends Array + * Defines values for RemoteLoginPortPublicAccess. \ + * {@link KnownRemoteLoginPortPublicAccess} can be used interchangeably with RemoteLoginPortPublicAccess, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** \ + * **NotSpecified** */ -export interface ListAmlUserFeatureResult extends Array { - /** - * The URI to fetch the next page of AML user features information. Call ListNext() with this to - * fetch the next page of AML user features information. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; +export type RemoteLoginPortPublicAccess = string; + +/** Known values of {@link AllocationState} that the service accepts. */ +export const enum KnownAllocationState { + Steady = "Steady", + Resizing = "Resizing" } /** - * @interface - * The List Usages operation response. - * @extends Array + * Defines values for AllocationState. \ + * {@link KnownAllocationState} can be used interchangeably with AllocationState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Steady** \ + * **Resizing** */ -export interface ListUsagesResult extends Array { - /** - * The URI to fetch the next page of AML resource usage information. Call ListNext() with this to - * fetch the next page of AML resource usage information. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; +export type AllocationState = string; + +/** Known values of {@link ApplicationSharingPolicy} that the service accepts. */ +export const enum KnownApplicationSharingPolicy { + Personal = "Personal", + Shared = "Shared" } /** - * @interface - * The List WorkspaceQuotasByVMFamily operation response. - * @extends Array + * Defines values for ApplicationSharingPolicy. \ + * {@link KnownApplicationSharingPolicy} can be used interchangeably with ApplicationSharingPolicy, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Personal** \ + * **Shared** */ -export interface ListWorkspaceQuotas extends Array { - /** - * The URI to fetch the next page of workspace quota information by VM Family. Call ListNext() - * with this to fetch the next page of Workspace Quota information. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; +export type ApplicationSharingPolicy = string; + +/** Known values of {@link SshPublicAccess} that the service accepts. */ +export const enum KnownSshPublicAccess { + Enabled = "Enabled", + Disabled = "Disabled" } /** - * @interface - * Paginated list of Workspace connection objects. - * @extends Array + * Defines values for SshPublicAccess. \ + * {@link KnownSshPublicAccess} can be used interchangeably with SshPublicAccess, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type SshPublicAccess = string; + +/** Known values of {@link ComputeInstanceState} that the service accepts. */ +export const enum KnownComputeInstanceState { + Creating = "Creating", + CreateFailed = "CreateFailed", + Deleting = "Deleting", + Running = "Running", + Restarting = "Restarting", + JobRunning = "JobRunning", + SettingUp = "SettingUp", + SetupFailed = "SetupFailed", + Starting = "Starting", + Stopped = "Stopped", + Stopping = "Stopping", + UserSettingUp = "UserSettingUp", + UserSetupFailed = "UserSetupFailed", + Unknown = "Unknown", + Unusable = "Unusable" +} + +/** + * Defines values for ComputeInstanceState. \ + * {@link KnownComputeInstanceState} can be used interchangeably with ComputeInstanceState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **CreateFailed** \ + * **Deleting** \ + * **Running** \ + * **Restarting** \ + * **JobRunning** \ + * **SettingUp** \ + * **SetupFailed** \ + * **Starting** \ + * **Stopped** \ + * **Stopping** \ + * **UserSettingUp** \ + * **UserSetupFailed** \ + * **Unknown** \ + * **Unusable** + */ +export type ComputeInstanceState = string; + +/** Known values of {@link ComputeInstanceAuthorizationType} that the service accepts. */ +export const enum KnownComputeInstanceAuthorizationType { + Personal = "personal" +} + +/** + * Defines values for ComputeInstanceAuthorizationType. \ + * {@link KnownComputeInstanceAuthorizationType} can be used interchangeably with ComputeInstanceAuthorizationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **personal** */ -export interface PaginatedWorkspaceConnectionsList extends Array { - /** - * A continuation link (absolute URI) to the next page of results in the list. - */ - nextLink?: string; +export type ComputeInstanceAuthorizationType = string; + +/** Known values of {@link OperationName} that the service accepts. */ +export const enum KnownOperationName { + Create = "Create", + Start = "Start", + Stop = "Stop", + Restart = "Restart", + Reimage = "Reimage", + Delete = "Delete" +} + +/** + * Defines values for OperationName. \ + * {@link KnownOperationName} can be used interchangeably with OperationName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Create** \ + * **Start** \ + * **Stop** \ + * **Restart** \ + * **Reimage** \ + * **Delete** + */ +export type OperationName = string; + +/** Known values of {@link OperationStatus} that the service accepts. */ +export const enum KnownOperationStatus { + InProgress = "InProgress", + Succeeded = "Succeeded", + CreateFailed = "CreateFailed", + StartFailed = "StartFailed", + StopFailed = "StopFailed", + RestartFailed = "RestartFailed", + ReimageFailed = "ReimageFailed", + DeleteFailed = "DeleteFailed" +} + +/** + * Defines values for OperationStatus. \ + * {@link KnownOperationStatus} can be used interchangeably with OperationStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **InProgress** \ + * **Succeeded** \ + * **CreateFailed** \ + * **StartFailed** \ + * **StopFailed** \ + * **RestartFailed** \ + * **ReimageFailed** \ + * **DeleteFailed** + */ +export type OperationStatus = string; + +/** Known values of {@link CredentialsType} that the service accepts. */ +export const enum KnownCredentialsType { + AccountKey = "AccountKey", + Certificate = "Certificate", + None = "None", + Sas = "Sas", + ServicePrincipal = "ServicePrincipal", + SqlAdmin = "SqlAdmin" } /** - * @interface - * Paginated list of Machine Learning compute objects wrapped in ARM resource envelope. - * @extends Array + * Defines values for CredentialsType. \ + * {@link KnownCredentialsType} can be used interchangeably with CredentialsType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AccountKey** \ + * **Certificate** \ + * **None** \ + * **Sas** \ + * **ServicePrincipal** \ + * **SqlAdmin** */ -export interface PaginatedComputeResourcesList extends Array { - /** - * A continuation link (absolute URI) to the next page of results in the list. - */ - nextLink?: string; +export type CredentialsType = string; + +/** Known values of {@link IdentityConfigurationType} that the service accepts. */ +export const enum KnownIdentityConfigurationType { + Managed = "Managed", + AMLToken = "AMLToken" } /** - * @interface - * List of skus with features - * @extends Array + * 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** */ -export interface SkuListResult extends Array { - /** - * The URI to fetch the next page of Workspace Skus. Call ListNext() with this URI to fetch the - * next page of Workspace Skus - */ - nextLink?: string; +export type IdentityConfigurationType = string; + +/** Known values of {@link EarlyTerminationPolicyType} that the service accepts. */ +export const enum KnownEarlyTerminationPolicyType { + Bandit = "Bandit", + MedianStopping = "MedianStopping", + TruncationSelection = "TruncationSelection" } /** - * Defines values for ProvisioningState. - * Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', 'Succeeded', 'Failed', - * 'Canceled' - * @readonly - * @enum {string} + * Defines values for EarlyTerminationPolicyType. \ + * {@link KnownEarlyTerminationPolicyType} can be used interchangeably with EarlyTerminationPolicyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Bandit** \ + * **MedianStopping** \ + * **TruncationSelection** */ -export type ProvisioningState = 'Unknown' | 'Updating' | 'Creating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled'; +export type EarlyTerminationPolicyType = string; + +/** Known values of {@link DistributionType} that the service accepts. */ +export const enum KnownDistributionType { + PyTorch = "PyTorch", + TensorFlow = "TensorFlow", + Mpi = "Mpi" +} /** - * Defines values for EncryptionStatus. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Defines values for DistributionType. \ + * {@link KnownDistributionType} can be used interchangeably with DistributionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PyTorch** \ + * **TensorFlow** \ + * **Mpi** */ -export type EncryptionStatus = 'Enabled' | 'Disabled'; +export type DistributionType = string; + +/** Known values of {@link DataBindingMode} that the service accepts. */ +export const enum KnownDataBindingMode { + Mount = "Mount", + Download = "Download", + Upload = "Upload" +} /** - * Defines values for PrivateEndpointServiceConnectionStatus. - * Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected', 'Timeout' - * @readonly - * @enum {string} + * Defines values for DataBindingMode. \ + * {@link KnownDataBindingMode} can be used interchangeably with DataBindingMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Mount** \ + * **Download** \ + * **Upload** */ -export type PrivateEndpointServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected' | 'Timeout'; +export type DataBindingMode = string; + +/** Known values of {@link ImageAnnotationType} that the service accepts. */ +export const enum KnownImageAnnotationType { + Classification = "Classification", + BoundingBox = "BoundingBox", + InstanceSegmentation = "InstanceSegmentation" +} /** - * Defines values for PrivateEndpointConnectionProvisioningState. - * Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Failed' - * @readonly - * @enum {string} + * Defines values for ImageAnnotationType. \ + * {@link KnownImageAnnotationType} can be used interchangeably with ImageAnnotationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Classification** \ + * **BoundingBox** \ + * **InstanceSegmentation** */ -export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed'; +export type ImageAnnotationType = string; + +/** Known values of {@link TextAnnotationType} that the service accepts. */ +export const enum KnownTextAnnotationType { + Classification = "Classification" +} /** - * Defines values for UsageUnit. - * Possible values include: 'Count' - * @readonly - * @enum {string} + * Defines values for TextAnnotationType. \ + * {@link KnownTextAnnotationType} can be used interchangeably with TextAnnotationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Classification** */ -export type UsageUnit = 'Count'; +export type TextAnnotationType = string; + +/** Known values of {@link Goal} that the service accepts. */ +export const enum KnownGoal { + Minimize = "Minimize", + Maximize = "Maximize" +} /** - * Defines values for VMPriceOSType. - * Possible values include: 'Linux', 'Windows' - * @readonly - * @enum {string} + * Defines values for Goal. \ + * {@link KnownGoal} can be used interchangeably with Goal, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Minimize** \ + * **Maximize** */ -export type VMPriceOSType = 'Linux' | 'Windows'; +export type Goal = string; + +/** Known values of {@link SamplingAlgorithm} that the service accepts. */ +export const enum KnownSamplingAlgorithm { + Grid = "Grid", + Random = "Random", + Bayesian = "Bayesian" +} /** - * Defines values for VMTier. - * Possible values include: 'Standard', 'LowPriority', 'Spot' - * @readonly - * @enum {string} + * Defines values for SamplingAlgorithm. \ + * {@link KnownSamplingAlgorithm} can be used interchangeably with SamplingAlgorithm, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Grid** \ + * **Random** \ + * **Bayesian** */ -export type VMTier = 'Standard' | 'LowPriority' | 'Spot'; +export type SamplingAlgorithm = string; + +/** Known values of {@link ScheduleType} that the service accepts. */ +export const enum KnownScheduleType { + ComputeStartStop = "ComputeStartStop" +} + +/** + * Defines values for ScheduleType. \ + * {@link KnownScheduleType} can be used interchangeably with ScheduleType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ComputeStartStop** + */ +export type ScheduleType = string; +/** Defines values for ResourceIdentityType. */ +export type ResourceIdentityType = + | "SystemAssigned" + | "SystemAssigned,UserAssigned" + | "UserAssigned" + | "None"; +/** Defines values for DaysOfWeek. */ +export type DaysOfWeek = + | "Sunday" + | "Monday" + | "Tuesday" + | "Wednesday" + | "Thursday" + | "Friday" + | "Saturday"; + +/** 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 { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface WorkspacesUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type WorkspacesUpdateResponse = Workspace; + +/** Optional parameters. */ +export interface WorkspacesListByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the listByResourceGroup operation. */ +export type WorkspacesListByResourceGroupResponse = WorkspaceListResult; + +/** 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; +} + +/** 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 WorkspacesListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult; + +/** Optional parameters. */ +export interface WorkspacesListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult; + +/** Optional parameters. */ +export interface UsagesListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type UsagesListResponse = ListUsagesResult; + +/** Optional parameters. */ +export interface UsagesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type UsagesListNextResponse = ListUsagesResult; + +/** Optional parameters. */ +export interface VirtualMachineSizesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult; + +/** Optional parameters. */ +export interface QuotasUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult; + +/** Optional parameters. */ +export interface QuotasListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type QuotasListResponse = ListWorkspaceQuotas; + +/** Optional parameters. */ +export interface QuotasListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type QuotasListNextResponse = ListWorkspaceQuotas; + +/** Optional parameters. */ +export interface ComputeOperationsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the list operation. */ +export type ComputeOperationsListResponse = PaginatedComputeResourcesList; + +/** Optional parameters. */ +export interface ComputeOperationsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ComputeOperationsGetResponse = ComputeResource; + +/** Optional parameters. */ +export interface ComputeOperationsCreateOrUpdateOptionalParams + 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 ComputeOperationsCreateOrUpdateResponse = ComputeResource; + +/** Optional parameters. */ +export interface ComputeOperationsUpdateOptionalParams + 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 ComputeOperationsUpdateResponse = ComputeResource; + +/** Optional parameters. */ +export interface ComputeOperationsDeleteOptionalParams + 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 ComputeOperationsListNodesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNodes operation. */ +export type ComputeOperationsListNodesResponse = AmlComputeNodesInformation; + +/** Optional parameters. */ +export interface ComputeOperationsListKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listKeys operation. */ +export type ComputeOperationsListKeysResponse = ComputeSecretsUnion; + +/** Optional parameters. */ +export interface ComputeOperationsStartOptionalParams + 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 ComputeOperationsStopOptionalParams + 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 ComputeOperationsRestartOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ComputeOperationsUpdateSchedulesOptionalParams + extends coreClient.OperationOptions { + /** The object for updating schedules of specified ComputeInstance. */ + parameters?: ComputeSchedules; +} + +/** Optional parameters. */ +export interface ComputeOperationsListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the listNext operation. */ +export type ComputeOperationsListNextResponse = PaginatedComputeResourcesList; + +/** Optional parameters. */ +export interface ComputeOperationsListNodesNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNodesNext operation. */ +export type ComputeOperationsListNodesNextResponse = AmlComputeNodesInformation; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface PrivateLinkResourcesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; + +/** Optional parameters. */ +export interface WorkspaceConnectionsListOptionalParams + extends coreClient.OperationOptions { + /** Target of the workspace connection. */ + target?: string; + /** Category of the workspace connection. */ + category?: string; +} + +/** Contains response data for the list operation. */ +export type WorkspaceConnectionsListResponse = PaginatedWorkspaceConnectionsList; + +/** Optional parameters. */ +export interface WorkspaceConnectionsCreateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the create operation. */ +export type WorkspaceConnectionsCreateResponse = WorkspaceConnection; + +/** Optional parameters. */ +export interface WorkspaceConnectionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type WorkspaceConnectionsGetResponse = WorkspaceConnection; + +/** Optional parameters. */ +export interface WorkspaceConnectionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface BatchEndpointsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Number of endpoints to be retrieved in a page of results. */ + count?: number; +} + +/** Contains response data for the list operation. */ +export type BatchEndpointsListResponse = BatchEndpointTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface BatchEndpointsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface BatchEndpointsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type BatchEndpointsGetResponse = BatchEndpointTrackedResource; + +/** Optional parameters. */ +export interface BatchEndpointsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type BatchEndpointsUpdateResponse = BatchEndpointTrackedResource; + +/** Optional parameters. */ +export interface BatchEndpointsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type BatchEndpointsCreateOrUpdateResponse = BatchEndpointTrackedResource; + +/** Optional parameters. */ +export interface BatchEndpointsListKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listKeys operation. */ +export type BatchEndpointsListKeysResponse = EndpointAuthKeys; + +/** Optional parameters. */ +export interface BatchEndpointsListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Number of endpoints to be retrieved in a page of results. */ + count?: number; +} + +/** Contains response data for the listNext operation. */ +export type BatchEndpointsListNextResponse = BatchEndpointTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface BatchDeploymentsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Top of list. */ + top?: number; +} + +/** Contains response data for the list operation. */ +export type BatchDeploymentsListResponse = BatchDeploymentTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface BatchDeploymentsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface BatchDeploymentsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type BatchDeploymentsGetResponse = BatchDeploymentTrackedResource; + +/** Optional parameters. */ +export interface BatchDeploymentsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type BatchDeploymentsUpdateResponse = BatchDeploymentTrackedResource; + +/** Optional parameters. */ +export interface BatchDeploymentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type BatchDeploymentsCreateOrUpdateResponse = BatchDeploymentTrackedResource; + +/** Optional parameters. */ +export interface BatchDeploymentsListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Top of list. */ + top?: number; +} + +/** Contains response data for the listNext operation. */ +export type BatchDeploymentsListNextResponse = BatchDeploymentTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface CodeContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the list operation. */ +export type CodeContainersListResponse = CodeContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface CodeContainersDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface CodeContainersGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CodeContainersGetResponse = CodeContainerResource; + +/** Optional parameters. */ +export interface CodeContainersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type CodeContainersCreateOrUpdateResponse = CodeContainerResource; + +/** Optional parameters. */ +export interface CodeContainersListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the listNext operation. */ +export type CodeContainersListNextResponse = CodeContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface CodeVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; +} + +/** Contains response data for the list operation. */ +export type CodeVersionsListResponse = CodeVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface CodeVersionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface CodeVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CodeVersionsGetResponse = CodeVersionResource; + +/** Optional parameters. */ +export interface CodeVersionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type CodeVersionsCreateOrUpdateResponse = CodeVersionResource; + +/** Optional parameters. */ +export interface CodeVersionsListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; +} + +/** Contains response data for the listNext operation. */ +export type CodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface DataContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the list operation. */ +export type DataContainersListResponse = DataContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface DataContainersDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DataContainersGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for QuotaUnit. - * Possible values include: 'Count' - * @readonly - * @enum {string} - */ -export type QuotaUnit = 'Count'; +/** Contains response data for the get operation. */ +export type DataContainersGetResponse = DataContainerResource; -/** - * Defines values for Status. - * Possible values include: 'Undefined', 'Success', 'Failure', 'InvalidQuotaBelowClusterMinimum', - * 'InvalidQuotaExceedsSubscriptionLimit', 'InvalidVMFamilyName', 'OperationNotSupportedForSku', - * 'OperationNotEnabledForRegion' - * @readonly - * @enum {string} - */ -export type Status = 'Undefined' | 'Success' | 'Failure' | 'InvalidQuotaBelowClusterMinimum' | 'InvalidQuotaExceedsSubscriptionLimit' | 'InvalidVMFamilyName' | 'OperationNotSupportedForSku' | 'OperationNotEnabledForRegion'; +/** Optional parameters. */ +export interface DataContainersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for ResourceIdentityType. - * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' - * @readonly - * @enum {string} - */ -export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned,UserAssigned' | 'None'; +/** Contains response data for the createOrUpdate operation. */ +export type DataContainersCreateOrUpdateResponse = DataContainerResource; -/** - * Defines values for VmPriority. - * Possible values include: 'Dedicated', 'LowPriority' - * @readonly - * @enum {string} - */ -export type VmPriority = 'Dedicated' | 'LowPriority'; +/** Optional parameters. */ +export interface DataContainersListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} -/** - * Defines values for RemoteLoginPortPublicAccess. - * Possible values include: 'Enabled', 'Disabled', 'NotSpecified' - * @readonly - * @enum {string} - */ -export type RemoteLoginPortPublicAccess = 'Enabled' | 'Disabled' | 'NotSpecified'; +/** Contains response data for the listNext operation. */ +export type DataContainersListNextResponse = DataContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface DataVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; +} -/** - * Defines values for AllocationState. - * Possible values include: 'Steady', 'Resizing' - * @readonly - * @enum {string} - */ -export type AllocationState = 'Steady' | 'Resizing'; +/** Contains response data for the list operation. */ +export type DataVersionsListResponse = DataVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface DataVersionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DataVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DataVersionsGetResponse = DataVersionResource; + +/** Optional parameters. */ +export interface DataVersionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DataVersionsCreateOrUpdateResponse = DataVersionResource; + +/** Optional parameters. */ +export interface DataVersionsListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; +} -/** - * Defines values for ApplicationSharingPolicy. - * Possible values include: 'Personal', 'Shared' - * @readonly - * @enum {string} - */ -export type ApplicationSharingPolicy = 'Personal' | 'Shared'; +/** Contains response data for the listNext operation. */ +export type DataVersionsListNextResponse = DataVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface DatastoresListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Maximum number of results to return. */ + count?: number; + /** Filter down to the workspace default datastore. */ + isDefault?: boolean; + /** Names of datastores to return. */ + names?: string[]; + /** Text to search for in the datastore names. */ + searchText?: string; + /** Order by property (createdtime | modifiedtime | name). */ + orderBy?: string; + /** Order by property in ascending order. */ + orderByAsc?: boolean; +} -/** - * Defines values for SshPublicAccess. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type SshPublicAccess = 'Enabled' | 'Disabled'; +/** Contains response data for the list operation. */ +export type DatastoresListResponse = DatastorePropertiesResourceArmPaginatedResult; -/** - * Defines values for ComputeInstanceState. - * Possible values include: 'Creating', 'CreateFailed', 'Deleting', 'Running', 'Restarting', - * 'JobRunning', 'SettingUp', 'SetupFailed', 'Starting', 'Stopped', 'Stopping', 'UserSettingUp', - * 'UserSetupFailed', 'Unknown', 'Unusable' - * @readonly - * @enum {string} - */ -export type ComputeInstanceState = 'Creating' | 'CreateFailed' | 'Deleting' | 'Running' | 'Restarting' | 'JobRunning' | 'SettingUp' | 'SetupFailed' | 'Starting' | 'Stopped' | 'Stopping' | 'UserSettingUp' | 'UserSetupFailed' | 'Unknown' | 'Unusable'; +/** Optional parameters. */ +export interface DatastoresDeleteOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for OperationName. - * Possible values include: 'Create', 'Start', 'Stop', 'Restart', 'Reimage', 'Delete' - * @readonly - * @enum {string} - */ -export type OperationName = 'Create' | 'Start' | 'Stop' | 'Restart' | 'Reimage' | 'Delete'; +/** Optional parameters. */ +export interface DatastoresGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for OperationStatus. - * Possible values include: 'InProgress', 'Succeeded', 'CreateFailed', 'StartFailed', 'StopFailed', - * 'RestartFailed', 'ReimageFailed', 'DeleteFailed' - * @readonly - * @enum {string} - */ -export type OperationStatus = 'InProgress' | 'Succeeded' | 'CreateFailed' | 'StartFailed' | 'StopFailed' | 'RestartFailed' | 'ReimageFailed' | 'DeleteFailed'; +/** Contains response data for the get operation. */ +export type DatastoresGetResponse = DatastorePropertiesResource; -/** - * Defines values for NodeState. - * Possible values include: 'idle', 'running', 'preparing', 'unusable', 'leaving', 'preempted' - * @readonly - * @enum {string} - */ -export type NodeState = 'idle' | 'running' | 'preparing' | 'unusable' | 'leaving' | 'preempted'; +/** Optional parameters. */ +export interface DatastoresCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Flag to skip validation. */ + skipValidation?: boolean; +} -/** - * Defines values for ComputeType. - * Possible values include: 'AKS', 'AmlCompute', 'ComputeInstance', 'DataFactory', - * 'VirtualMachine', 'HDInsight', 'Databricks', 'DataLakeAnalytics' - * @readonly - * @enum {string} - */ -export type ComputeType = 'AKS' | 'AmlCompute' | 'ComputeInstance' | 'DataFactory' | 'VirtualMachine' | 'HDInsight' | 'Databricks' | 'DataLakeAnalytics'; +/** Contains response data for the createOrUpdate operation. */ +export type DatastoresCreateOrUpdateResponse = DatastorePropertiesResource; + +/** Optional parameters. */ +export interface DatastoresListSecretsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSecrets operation. */ +export type DatastoresListSecretsResponse = DatastoreSecretsUnion; + +/** Optional parameters. */ +export interface DatastoresListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Maximum number of results to return. */ + count?: number; + /** Filter down to the workspace default datastore. */ + isDefault?: boolean; + /** Names of datastores to return. */ + names?: string[]; + /** Text to search for in the datastore names. */ + searchText?: string; + /** Order by property (createdtime | modifiedtime | name). */ + orderBy?: string; + /** Order by property in ascending order. */ + orderByAsc?: boolean; +} -/** - * Defines values for ReasonCode. - * Possible values include: 'NotSpecified', 'NotAvailableForRegion', 'NotAvailableForSubscription' - * @readonly - * @enum {string} - */ -export type ReasonCode = 'NotSpecified' | 'NotAvailableForRegion' | 'NotAvailableForSubscription'; +/** Contains response data for the listNext operation. */ +export type DatastoresListNextResponse = DatastorePropertiesResourceArmPaginatedResult; -/** - * Defines values for UnderlyingResourceAction. - * Possible values include: 'Delete', 'Detach' - * @readonly - * @enum {string} - */ -export type UnderlyingResourceAction = 'Delete' | 'Detach'; +/** Optional parameters. */ +export interface EnvironmentContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} -/** - * Defines values for Status1. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} - */ -export type Status1 = 'Disabled' | 'Enabled'; +/** Contains response data for the list operation. */ +export type EnvironmentContainersListResponse = EnvironmentContainerResourceArmPaginatedResult; -/** - * Contains response data for the list operation. - */ -export type OperationsListResponse = OperationListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface EnvironmentContainersDeleteOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationListResult; - }; -}; +/** Optional parameters. */ +export interface EnvironmentContainersGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type WorkspacesGetResponse = Workspace & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type EnvironmentContainersGetResponse = EnvironmentContainerResource; - /** - * The response body as parsed JSON or XML - */ - parsedBody: Workspace; - }; -}; +/** Optional parameters. */ +export interface EnvironmentContainersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the createOrUpdate operation. - */ -export type WorkspacesCreateOrUpdateResponse = Workspace & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the createOrUpdate operation. */ +export type EnvironmentContainersCreateOrUpdateResponse = EnvironmentContainerResource; - /** - * The response body as parsed JSON or XML - */ - parsedBody: Workspace; - }; -}; +/** Optional parameters. */ +export interface EnvironmentContainersListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} -/** - * Contains response data for the update operation. - */ -export type WorkspacesUpdateResponse = Workspace & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type EnvironmentContainersListNextResponse = EnvironmentContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface EnvironmentSpecificationVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: Workspace; - }; -}; +/** Contains response data for the list operation. */ +export type EnvironmentSpecificationVersionsListResponse = EnvironmentSpecificationVersionResourceArmPaginatedResult; -/** - * Contains response data for the listByResourceGroup operation. - */ -export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface EnvironmentSpecificationVersionsDeleteOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceListResult; - }; -}; +/** Optional parameters. */ +export interface EnvironmentSpecificationVersionsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listKeys operation. - */ -export type WorkspacesListKeysResponse = ListWorkspaceKeysResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type EnvironmentSpecificationVersionsGetResponse = EnvironmentSpecificationVersionResource; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListWorkspaceKeysResult; - }; -}; +/** Optional parameters. */ +export interface EnvironmentSpecificationVersionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listBySubscription operation. - */ -export type WorkspacesListBySubscriptionResponse = WorkspaceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the createOrUpdate operation. */ +export type EnvironmentSpecificationVersionsCreateOrUpdateResponse = EnvironmentSpecificationVersionResource; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceListResult; - }; -}; +/** Optional parameters. */ +export interface EnvironmentSpecificationVersionsListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; +} -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type WorkspacesBeginCreateOrUpdateResponse = Workspace & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type EnvironmentSpecificationVersionsListNextResponse = EnvironmentSpecificationVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface JobsListOptionalParams extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Type of job to be returned. */ + jobType?: string; + /** Tags for job to be returned. */ + tags?: string; + /** Jobs returned will have this tag key. */ + tag?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: Workspace; - }; -}; +/** Contains response data for the list operation. */ +export type JobsListResponse = JobBaseResourceArmPaginatedResult; -/** - * Contains response data for the listByResourceGroupNext operation. - */ -export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface JobsDeleteOptionalParams extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceListResult; - }; -}; +/** Optional parameters. */ +export interface JobsGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type JobsGetResponse = JobBaseResource; + +/** Optional parameters. */ +export interface JobsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type JobsCreateOrUpdateResponse = JobBaseResource; + +/** Optional parameters. */ +export interface JobsCancelOptionalParams extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface JobsListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Type of job to be returned. */ + jobType?: string; + /** Tags for job to be returned. */ + tags?: string; + /** Jobs returned will have this tag key. */ + tag?: string; +} -/** - * Contains response data for the listBySubscriptionNext operation. - */ -export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type JobsListNextResponse = JobBaseResourceArmPaginatedResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceListResult; - }; -}; +/** Optional parameters. */ +export interface LabelingJobsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Number of labeling jobs to return. */ + count?: number; +} -/** - * Contains response data for the list operation. - */ -export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the list operation. */ +export type LabelingJobsListResponse = LabelingJobResourceArmPaginatedResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListAmlUserFeatureResult; - }; -}; +/** Optional parameters. */ +export interface LabelingJobsDeleteOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listNext operation. - */ -export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface LabelingJobsGetOptionalParams + extends coreClient.OperationOptions { + /** Boolean value to indicate whether to include JobInstructions in response. */ + includeJobInstructions?: boolean; + /** Boolean value to indicate Whether to include LabelCategories in response. */ + includeLabelCategories?: boolean; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListAmlUserFeatureResult; - }; -}; +/** Contains response data for the get operation. */ +export type LabelingJobsGetResponse = LabelingJobResource; -/** - * Contains response data for the prepare operation. - */ -export type NotebooksPrepareResponse = NotebookResourceInfo & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface LabelingJobsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: NotebookResourceInfo; - }; -}; +/** Contains response data for the createOrUpdate operation. */ +export type LabelingJobsCreateOrUpdateResponse = LabelingJobResource; -/** - * Contains response data for the beginPrepare operation. - */ -export type NotebooksBeginPrepareResponse = NotebookResourceInfo & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface LabelingJobsExportLabelsOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: NotebookResourceInfo; - }; -}; +/** Contains response data for the exportLabels operation. */ +export type LabelingJobsExportLabelsResponse = ExportSummaryUnion; -/** - * Contains response data for the list operation. - */ -export type UsagesListResponse = ListUsagesResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface LabelingJobsPauseOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListUsagesResult; - }; -}; +/** Optional parameters. */ +export interface LabelingJobsResumeOptionalParams + 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 listNext operation. - */ -export type UsagesListNextResponse = ListUsagesResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface LabelingJobsListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Number of labeling jobs to return. */ + count?: number; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListUsagesResult; - }; -}; +/** Contains response data for the listNext operation. */ +export type LabelingJobsListNextResponse = LabelingJobResourceArmPaginatedResult; -/** - * Contains response data for the list operation. - */ -export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface ModelContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Maximum number of results to return. */ + count?: number; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualMachineSizeListResult; - }; -}; +/** Contains response data for the list operation. */ +export type ModelContainersListResponse = ModelContainerResourceArmPaginatedResult; -/** - * Contains response data for the update operation. - */ -export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface ModelContainersDeleteOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: UpdateWorkspaceQuotasResult; - }; -}; +/** Optional parameters. */ +export interface ModelContainersGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the list operation. - */ -export type QuotasListResponse = ListWorkspaceQuotas & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type ModelContainersGetResponse = ModelContainerResource; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListWorkspaceQuotas; - }; -}; +/** Optional parameters. */ +export interface ModelContainersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listNext operation. - */ -export type QuotasListNextResponse = ListWorkspaceQuotas & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the createOrUpdate operation. */ +export type ModelContainersCreateOrUpdateResponse = ModelContainerResource; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListWorkspaceQuotas; - }; -}; +/** Optional parameters. */ +export interface ModelContainersListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Maximum number of results to return. */ + count?: number; +} -/** - * Contains response data for the list operation. - */ -export type WorkspaceConnectionsListResponse = PaginatedWorkspaceConnectionsList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type ModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface ModelVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; + /** Model version. */ + version?: string; + /** Model description. */ + description?: string; + /** Number of initial results to skip. */ + offset?: number; + /** Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2 */ + properties?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: PaginatedWorkspaceConnectionsList; - }; -}; +/** Contains response data for the list operation. */ +export type ModelVersionsListResponse = ModelVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface ModelVersionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ModelVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ModelVersionsGetResponse = ModelVersionResource; + +/** Optional parameters. */ +export interface ModelVersionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type ModelVersionsCreateOrUpdateResponse = ModelVersionResource; + +/** Optional parameters. */ +export interface ModelVersionsListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; + /** Model version. */ + version?: string; + /** Model description. */ + description?: string; + /** Number of initial results to skip. */ + offset?: number; + /** Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2 */ + properties?: string; +} -/** - * Contains response data for the create operation. - */ -export type WorkspaceConnectionsCreateResponse = WorkspaceConnection & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type ModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface OnlineEndpointsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Number of endpoints to be retrieved in a page of results. */ + count?: number; + /** A set of tags with which to filter the returned models. It is a comma separated string of tags key or tags key=value. Example: tagKey1,tagKey2,tagKey3=value3 . */ + tags?: string; + /** A set of properties with which to filter the returned models. It is a comma separated string of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 . */ + properties?: string; + /** Name of the endpoint. */ + name?: string; + /** EndpointComputeType to be filtered by. */ + computeType?: EndpointComputeType; + /** The option to order the response. */ + orderBy?: OrderString; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceConnection; - }; -}; +/** Contains response data for the list operation. */ +export type OnlineEndpointsListResponse = OnlineEndpointTrackedResourceArmPaginatedResult; -/** - * Contains response data for the get operation. - */ -export type WorkspaceConnectionsGetResponse = WorkspaceConnection & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface OnlineEndpointsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceConnection; - }; -}; +/** Optional parameters. */ +export interface OnlineEndpointsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listByWorkspace operation. - */ -export type MachineLearningComputeListByWorkspaceResponse = PaginatedComputeResourcesList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type OnlineEndpointsGetResponse = OnlineEndpointTrackedResource; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PaginatedComputeResourcesList; - }; -}; +/** Optional parameters. */ +export interface OnlineEndpointsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the get operation. - */ -export type MachineLearningComputeGetResponse = ComputeResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the update operation. */ +export type OnlineEndpointsUpdateResponse = OnlineEndpointTrackedResource; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ComputeResource; - }; -}; +/** Optional parameters. */ +export interface OnlineEndpointsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the createOrUpdate operation. - */ -export type MachineLearningComputeCreateOrUpdateResponse = ComputeResource & MachineLearningComputeCreateOrUpdateHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: MachineLearningComputeCreateOrUpdateHeaders; +/** Contains response data for the createOrUpdate operation. */ +export type OnlineEndpointsCreateOrUpdateResponse = OnlineEndpointTrackedResource; - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface OnlineEndpointsListKeysOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ComputeResource; - }; -}; +/** Contains response data for the listKeys operation. */ +export type OnlineEndpointsListKeysResponse = EndpointAuthKeys; -/** - * Contains response data for the update operation. - */ -export type MachineLearningComputeUpdateResponse = ComputeResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface OnlineEndpointsRegenerateKeysOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ComputeResource; - }; -}; +/** Optional parameters. */ +export interface OnlineEndpointsGetTokenOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getToken operation. */ +export type OnlineEndpointsGetTokenResponse = EndpointAuthToken; + +/** Optional parameters. */ +export interface OnlineEndpointsListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Number of endpoints to be retrieved in a page of results. */ + count?: number; + /** A set of tags with which to filter the returned models. It is a comma separated string of tags key or tags key=value. Example: tagKey1,tagKey2,tagKey3=value3 . */ + tags?: string; + /** A set of properties with which to filter the returned models. It is a comma separated string of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 . */ + properties?: string; + /** Name of the endpoint. */ + name?: string; + /** EndpointComputeType to be filtered by. */ + computeType?: EndpointComputeType; + /** The option to order the response. */ + orderBy?: OrderString; +} -/** - * Contains response data for the deleteMethod operation. - */ -export type MachineLearningComputeDeleteResponse = MachineLearningComputeDeleteHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: MachineLearningComputeDeleteHeaders; - }; -}; +/** Contains response data for the listNext operation. */ +export type OnlineEndpointsListNextResponse = OnlineEndpointTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface OnlineDeploymentsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Top of list. */ + top?: number; +} -/** - * Contains response data for the listNodes operation. - */ -export type MachineLearningComputeListNodesResponse = AmlComputeNodesInformation & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the list operation. */ +export type OnlineDeploymentsListResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: AmlComputeNodesInformation; - }; -}; +/** Optional parameters. */ +export interface OnlineDeploymentsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the listKeys operation. - */ -export type MachineLearningComputeListKeysResponse = ComputeSecretsUnion & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface OnlineDeploymentsGetOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ComputeSecretsUnion; - }; -}; +/** Contains response data for the get operation. */ +export type OnlineDeploymentsGetResponse = OnlineDeploymentTrackedResource; -/** - * Contains response data for the beginUpdate operation. - */ -export type MachineLearningComputeBeginUpdateResponse = ComputeResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface OnlineDeploymentsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ComputeResource; - }; -}; +/** Contains response data for the update operation. */ +export type OnlineDeploymentsUpdateResponse = OnlineDeploymentTrackedResource; -/** - * Contains response data for the listByWorkspaceNext operation. - */ -export type MachineLearningComputeListByWorkspaceNextResponse = PaginatedComputeResourcesList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface OnlineDeploymentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: PaginatedComputeResourcesList; - }; -}; +/** Contains response data for the createOrUpdate operation. */ +export type OnlineDeploymentsCreateOrUpdateResponse = OnlineDeploymentTrackedResource; + +/** Optional parameters. */ +export interface OnlineDeploymentsGetLogsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getLogs operation. */ +export type OnlineDeploymentsGetLogsResponse = DeploymentLogs; + +/** Optional parameters. */ +export interface OnlineDeploymentsListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Top of list. */ + top?: number; +} -/** - * Contains response data for the listSkus operation. - */ -export type ListSkusResponse = SkuListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type OnlineDeploymentsListNextResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SkuListResult; - }; -}; +/** Optional parameters. */ +export interface WorkspaceFeaturesListOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listSkusNext operation. - */ -export type ListSkusNextResponse = SkuListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the list operation. */ +export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SkuListResult; - }; -}; +/** Optional parameters. */ +export interface WorkspaceFeaturesListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateEndpointConnection; - }; -}; +/** Optional parameters. */ +export interface WorkspaceSkusListOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the put operation. - */ -export type PrivateEndpointConnectionsPutResponse = PrivateEndpointConnection & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the list operation. */ +export type WorkspaceSkusListResponse = SkuListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateEndpointConnection; - }; -}; +/** Optional parameters. */ +export interface WorkspaceSkusListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listByWorkspace operation. - */ -export type PrivateLinkResourcesListByWorkspaceResponse = PrivateLinkResourceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type WorkspaceSkusListNextResponse = SkuListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateLinkResourceListResult; - }; -}; +/** Optional parameters. */ +export interface AzureMachineLearningWorkspacesOptionalParams + extends coreClient.ServiceClientOptions { + /** server parameter */ + $host?: string; + /** Api Version */ + apiVersion?: string; + /** Overrides client endpoint. */ + endpoint?: string; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts deleted file mode 100644 index 456a73c75208..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AKS, - AksComputeSecrets, - AksNetworkingConfiguration, - AKSProperties, - AmlCompute, - AmlComputeNodeInformation, - AmlComputeNodesInformation, - AmlComputeProperties, - BaseResource, - ClusterUpdateParameters, - Compute, - ComputeInstance, - ComputeInstanceApplication, - ComputeInstanceConnectivityEndpoints, - ComputeInstanceCreatedBy, - ComputeInstanceLastOperation, - ComputeInstanceProperties, - ComputeInstanceSshSettings, - ComputeNodesInformation, - ComputeResource, - ComputeSecrets, - Databricks, - DatabricksComputeSecrets, - DatabricksProperties, - DataFactory, - DataLakeAnalytics, - DataLakeAnalyticsProperties, - EncryptionProperty, - ErrorDetail, - ErrorResponse, - HDInsight, - HDInsightProperties, - Identity, - IdentityUserAssignedIdentitiesValue, - KeyVaultProperties, - MachineLearningComputeCreateOrUpdateHeaders, - MachineLearningComputeDeleteHeaders, - MachineLearningServiceError, - NodeStateCounts, - NotebookPreparationError, - NotebookResourceInfo, - PaginatedComputeResourcesList, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateLinkResource, - PrivateLinkServiceConnectionState, - Resource, - ResourceId, - ScaleSettings, - SharedPrivateLinkResource, - Sku, - SslConfiguration, - SystemService, - UserAccountCredentials, - VirtualMachine, - VirtualMachineProperties, - VirtualMachineSecrets, - VirtualMachineSshCredentials, - Workspace, - WorkspaceConnection -} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts index 122cb25e5b8b..c2f14dae13bb 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts @@ -6,14 +6,52 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; -import * as msRest from "@azure/ms-rest-js"; +import * as coreClient from "@azure/core-client"; -export const CloudError = CloudErrorMapper; -export const BaseResource = BaseResourceMapper; +export const OperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } + } + } + } +}; + +export const Operation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + } + } + } +}; -export const OperationDisplay: msRest.CompositeMapper = { - serializedName: "Operation_display", +export const OperationDisplay: coreClient.CompositeMapper = { type: { name: "Composite", className: "OperationDisplay", @@ -46,124 +84,169 @@ export const OperationDisplay: msRest.CompositeMapper = { } }; -export const Operation: msRest.CompositeMapper = { - serializedName: "Operation", +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Operation", + className: "ErrorResponse", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - display: { - serializedName: "display", + error: { + serializedName: "error", type: { name: "Composite", - className: "OperationDisplay" + className: "ErrorDetail" } } } } }; -export const NotebookListCredentialsResult: msRest.CompositeMapper = { - serializedName: "NotebookListCredentialsResult", +export const ErrorDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotebookListCredentialsResult", + className: "ErrorDetail", modelProperties: { - primaryAccessKey: { - serializedName: "primaryAccessKey", + code: { + serializedName: "code", + readOnly: true, type: { name: "String" } }, - secondaryAccessKey: { - serializedName: "secondaryAccessKey", + message: { + serializedName: "message", + readOnly: true, type: { name: "String" } + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String" + } + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } } } } }; -export const NotebookPreparationError: msRest.CompositeMapper = { - serializedName: "NotebookPreparationError", +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotebookPreparationError", + className: "ErrorAdditionalInfo", modelProperties: { - errorMessage: { - serializedName: "errorMessage", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - statusCode: { - serializedName: "statusCode", + info: { + serializedName: "info", + readOnly: true, type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const NotebookResourceInfo: msRest.CompositeMapper = { - serializedName: "NotebookResourceInfo", +export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotebookResourceInfo", + className: "Resource", modelProperties: { - fqdn: { - serializedName: "fqdn", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - resourceId: { - serializedName: "resourceId", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - notebookPreparationError: { - serializedName: "notebookPreparationError", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Composite", - className: "NotebookPreparationError" + name: "String" } } } } }; -export const KeyVaultProperties: msRest.CompositeMapper = { - serializedName: "KeyVaultProperties", +export const EncryptionProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyVaultProperties", + className: "EncryptionProperty", modelProperties: { - keyVaultArmId: { + status: { + serializedName: "status", required: true, - serializedName: "keyVaultArmId", type: { name: "String" } }, - keyIdentifier: { - required: true, - serializedName: "keyIdentifier", + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "IdentityForCmk" } }, - identityClientId: { - serializedName: "identityClientId", + keyVaultProperties: { + serializedName: "keyVaultProperties", + type: { + name: "Composite", + className: "KeyVaultProperties" + } + } + } + } +}; + +export const IdentityForCmk: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IdentityForCmk", + modelProperties: { + userAssignedIdentity: { + serializedName: "userAssignedIdentity", type: { name: "String" } @@ -172,40 +255,50 @@ export const KeyVaultProperties: msRest.CompositeMapper = { } }; -export const EncryptionProperty: msRest.CompositeMapper = { - serializedName: "EncryptionProperty", +export const KeyVaultProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionProperty", + className: "KeyVaultProperties", modelProperties: { - status: { + keyVaultArmId: { + serializedName: "keyVaultArmId", required: true, - serializedName: "status", type: { name: "String" } }, - keyVaultProperties: { + keyIdentifier: { + serializedName: "keyIdentifier", required: true, - serializedName: "keyVaultProperties", type: { - name: "Composite", - className: "KeyVaultProperties" + name: "String" + } + }, + identityClientId: { + serializedName: "identityClientId", + type: { + name: "String" } } } } }; -export const PrivateEndpoint: msRest.CompositeMapper = { - serializedName: "PrivateEndpoint", +export const PrivateEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", className: "PrivateEndpoint", modelProperties: { id: { - readOnly: true, serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + subnetArmId: { + serializedName: "subnetArmId", + readOnly: true, type: { name: "String" } @@ -214,8 +307,7 @@ export const PrivateEndpoint: msRest.CompositeMapper = { } }; -export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { - serializedName: "PrivateLinkServiceConnectionState", +export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { type: { name: "Composite", className: "PrivateLinkServiceConnectionState", @@ -242,90 +334,93 @@ export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { } }; -export const PrivateEndpointConnection: msRest.CompositeMapper = { - serializedName: "PrivateEndpointConnection", +export const Identity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "Identity", modelProperties: { - id: { + principalId: { + serializedName: "principalId", readOnly: true, - serializedName: "id", type: { name: "String" } }, - name: { + tenantId: { + serializedName: "tenantId", readOnly: true, - serializedName: "name", type: { name: "String" } }, type: { - readOnly: true, serializedName: "type", type: { - name: "String" - } - }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpoint" - } - }, - privateLinkServiceConnectionState: { - required: true, - serializedName: "properties.privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" + name: "Enum", + allowedValues: [ + "SystemAssigned", + "SystemAssigned,UserAssigned", + "UserAssigned", + "None" + ] } }, - provisioningState: { - serializedName: "properties.provisioningState", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Composite", className: "UserAssignedIdentity" } + } } } } } }; -export const SharedPrivateLinkResource: msRest.CompositeMapper = { - serializedName: "SharedPrivateLinkResource", +export const UserAssignedIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedPrivateLinkResource", + className: "UserAssignedIdentity", modelProperties: { - name: { - serializedName: "name", + principalId: { + serializedName: "principalId", + readOnly: true, type: { name: "String" } }, - privateLinkResourceId: { - serializedName: "properties.privateLinkResourceId", + tenantId: { + serializedName: "tenantId", + readOnly: true, type: { name: "String" } }, - groupId: { - serializedName: "properties.groupId", + clientId: { + serializedName: "clientId", + readOnly: true, type: { name: "String" } - }, - requestMessage: { - serializedName: "properties.requestMessage", + } + } + } +}; + +export const Sku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Sku", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - status: { - serializedName: "properties.status", + tier: { + serializedName: "tier", type: { name: "String" } @@ -334,240 +429,171 @@ export const SharedPrivateLinkResource: msRest.CompositeMapper = { } }; -export const Resource: msRest.CompositeMapper = { - serializedName: "Resource", +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Resource", + className: "SystemData", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", + createdByType: { + serializedName: "createdByType", type: { name: "String" } }, - identity: { - serializedName: "identity", + createdAt: { + serializedName: "createdAt", type: { - name: "Composite", - className: "Identity" + name: "DateTime" } }, - location: { - serializedName: "location", + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - type: { - readOnly: true, - serializedName: "type", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String" } }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - sku: { - serializedName: "sku", + lastModifiedAt: { + serializedName: "lastModifiedAt", type: { - name: "Composite", - className: "Sku" + name: "DateTime" } } } } }; -export const Workspace: msRest.CompositeMapper = { - serializedName: "Workspace", +export const SharedPrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Workspace", + className: "SharedPrivateLinkResource", modelProperties: { - ...Resource.type.modelProperties, - workspaceId: { - readOnly: true, - serializedName: "properties.workspaceId", - type: { - name: "String" - } - }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - }, - friendlyName: { - serializedName: "properties.friendlyName", + name: { + serializedName: "name", type: { name: "String" } }, - creationTime: { - readOnly: true, - serializedName: "properties.creationTime", - type: { - name: "DateTime" - } - }, - keyVault: { - serializedName: "properties.keyVault", + privateLinkResourceId: { + serializedName: "properties.privateLinkResourceId", type: { name: "String" } }, - applicationInsights: { - serializedName: "properties.applicationInsights", + groupId: { + serializedName: "properties.groupId", type: { name: "String" } }, - containerRegistry: { - serializedName: "properties.containerRegistry", + requestMessage: { + serializedName: "properties.requestMessage", type: { name: "String" } }, - storageAccount: { - serializedName: "properties.storageAccount", + status: { + serializedName: "properties.status", type: { name: "String" } - }, - discoveryUrl: { - serializedName: "properties.discoveryUrl", + } + } + } +}; + +export const NotebookResourceInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NotebookResourceInfo", + modelProperties: { + fqdn: { + serializedName: "fqdn", type: { name: "String" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + resourceId: { + serializedName: "resourceId", type: { name: "String" } }, - encryption: { - serializedName: "properties.encryption", + notebookPreparationError: { + serializedName: "notebookPreparationError", type: { name: "Composite", - className: "EncryptionProperty" - } - }, - hbiWorkspace: { - serializedName: "properties.hbiWorkspace", - defaultValue: false, - type: { - name: "Boolean" + className: "NotebookPreparationError" } - }, - serviceProvisionedResourceGroup: { - readOnly: true, - serializedName: "properties.serviceProvisionedResourceGroup", + } + } + } +}; + +export const NotebookPreparationError: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NotebookPreparationError", + modelProperties: { + errorMessage: { + serializedName: "errorMessage", type: { name: "String" } }, - privateLinkCount: { - readOnly: true, - serializedName: "properties.privateLinkCount", + statusCode: { + serializedName: "statusCode", type: { name: "Number" } - }, - imageBuildCompute: { - serializedName: "properties.imageBuildCompute", - type: { - name: "String" - } - }, - allowPublicAccessWhenBehindVnet: { - serializedName: "properties.allowPublicAccessWhenBehindVnet", - defaultValue: false, - type: { - name: "Boolean" - } - }, - privateEndpointConnections: { - readOnly: true, - serializedName: "properties.privateEndpointConnections", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } - } - }, - sharedPrivateLinkResources: { - serializedName: "properties.sharedPrivateLinkResources", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharedPrivateLinkResource" - } - } - } - }, - notebookInfo: { - readOnly: true, - serializedName: "properties.notebookInfo", + } + } + } +}; + +export const ServiceManagedResourcesSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceManagedResourcesSettings", + modelProperties: { + cosmosDb: { + serializedName: "cosmosDb", type: { name: "Composite", - className: "NotebookResourceInfo" + className: "CosmosDbSettings" } } } } }; -export const Sku: msRest.CompositeMapper = { - serializedName: "Sku", +export const CosmosDbSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Sku", + className: "CosmosDbSettings", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - tier: { - serializedName: "tier", + collectionsThroughput: { + serializedName: "collectionsThroughput", type: { - name: "String" + name: "Number" } } } } }; -export const WorkspaceUpdateParameters: msRest.CompositeMapper = { - serializedName: "WorkspaceUpdateParameters", +export const WorkspaceUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", className: "WorkspaceUpdateParameters", @@ -576,11 +602,7 @@ export const WorkspaceUpdateParameters: msRest.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { - type: { - name: "String" - } - } + value: { type: { name: "String" } } } }, sku: { @@ -590,6 +612,13 @@ export const WorkspaceUpdateParameters: msRest.CompositeMapper = { className: "Sku" } }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, description: { serializedName: "properties.description", type: { @@ -601,31 +630,22 @@ export const WorkspaceUpdateParameters: msRest.CompositeMapper = { type: { name: "String" } - } - } - } -}; - -export const AmlUserFeature: msRest.CompositeMapper = { - serializedName: "AmlUserFeature", - type: { - name: "Composite", - className: "AmlUserFeature", - modelProperties: { - id: { - serializedName: "id", + }, + imageBuildCompute: { + serializedName: "properties.imageBuildCompute", type: { name: "String" } }, - displayName: { - serializedName: "displayName", + serviceManagedResourcesSettings: { + serializedName: "properties.serviceManagedResourcesSettings", type: { - name: "String" + name: "Composite", + className: "ServiceManagedResourcesSettings" } }, - description: { - serializedName: "description", + primaryUserAssignedIdentity: { + serializedName: "properties.primaryUserAssignedIdentity", type: { name: "String" } @@ -634,22 +654,25 @@ export const AmlUserFeature: msRest.CompositeMapper = { } }; -export const UsageName: msRest.CompositeMapper = { - serializedName: "UsageName", +export const WorkspaceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsageName", + className: "WorkspaceListResult", modelProperties: { value: { - readOnly: true, serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Workspace" + } + } } }, - localizedValue: { - readOnly: true, - serializedName: "localizedValue", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -658,123 +681,77 @@ export const UsageName: msRest.CompositeMapper = { } }; -export const Usage: msRest.CompositeMapper = { - serializedName: "Usage", +export const ListWorkspaceKeysResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Usage", + className: "ListWorkspaceKeysResult", modelProperties: { - id: { + userStorageKey: { + serializedName: "userStorageKey", readOnly: true, - serializedName: "id", type: { name: "String" } }, - type: { + userStorageResourceId: { + serializedName: "userStorageResourceId", readOnly: true, - serializedName: "type", type: { name: "String" } }, - unit: { + appInsightsInstrumentationKey: { + serializedName: "appInsightsInstrumentationKey", readOnly: true, - serializedName: "unit", type: { name: "String" } }, - currentValue: { - readOnly: true, - serializedName: "currentValue", - type: { - name: "Number" - } - }, - limit: { - readOnly: true, - serializedName: "limit", - type: { - name: "Number" - } - }, - name: { - readOnly: true, - serializedName: "name", + containerRegistryCredentials: { + serializedName: "containerRegistryCredentials", type: { name: "Composite", - className: "UsageName" - } - } - } - } -}; - -export const EstimatedVMPrice: msRest.CompositeMapper = { - serializedName: "EstimatedVMPrice", - type: { - name: "Composite", - className: "EstimatedVMPrice", - modelProperties: { - retailPrice: { - required: true, - serializedName: "retailPrice", - type: { - name: "Number" - } - }, - osType: { - required: true, - serializedName: "osType", - type: { - name: "String" + className: "RegistryListCredentialsResult" } }, - vmTier: { - required: true, - serializedName: "vmTier", + notebookAccessKeys: { + serializedName: "notebookAccessKeys", type: { - name: "String" + name: "Composite", + className: "ListNotebookKeysResult" } } } } }; -export const EstimatedVMPrices: msRest.CompositeMapper = { - serializedName: "EstimatedVMPrices", +export const RegistryListCredentialsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EstimatedVMPrices", + className: "RegistryListCredentialsResult", modelProperties: { - billingCurrency: { - required: true, - isConstant: true, - serializedName: "billingCurrency", - defaultValue: 'USD', + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, - unitOfMeasure: { - required: true, - isConstant: true, - serializedName: "unitOfMeasure", - defaultValue: 'OneHour', + username: { + serializedName: "username", + readOnly: true, type: { name: "String" } }, - values: { - required: true, - serializedName: "values", + passwords: { + serializedName: "passwords", type: { name: "Sequence", element: { type: { name: "Composite", - className: "EstimatedVMPrice" + className: "Password" } } } @@ -783,210 +760,154 @@ export const EstimatedVMPrices: msRest.CompositeMapper = { } }; -export const VirtualMachineSize: msRest.CompositeMapper = { - serializedName: "VirtualMachineSize", +export const Password: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSize", + className: "Password", modelProperties: { name: { - readOnly: true, serializedName: "name", - type: { - name: "String" - } - }, - family: { readOnly: true, - serializedName: "family", type: { name: "String" } }, - vCPUs: { - readOnly: true, - serializedName: "vCPUs", - type: { - name: "Number" - } - }, - gpus: { - readOnly: true, - serializedName: "gpus", - type: { - name: "Number" - } - }, - osVhdSizeMB: { - readOnly: true, - serializedName: "osVhdSizeMB", - type: { - name: "Number" - } - }, - maxResourceVolumeMB: { - readOnly: true, - serializedName: "maxResourceVolumeMB", - type: { - name: "Number" - } - }, - memoryGB: { + value: { + serializedName: "value", readOnly: true, - serializedName: "memoryGB", type: { - name: "Number" + name: "String" } - }, - lowPriorityCapable: { + } + } + } +}; + +export const ListNotebookKeysResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListNotebookKeysResult", + modelProperties: { + primaryAccessKey: { + serializedName: "primaryAccessKey", readOnly: true, - serializedName: "lowPriorityCapable", type: { - name: "Boolean" + name: "String" } }, - premiumIO: { + secondaryAccessKey: { + serializedName: "secondaryAccessKey", readOnly: true, - serializedName: "premiumIO", - type: { - name: "Boolean" - } - }, - estimatedVMPrices: { - serializedName: "estimatedVMPrices", - type: { - name: "Composite", - className: "EstimatedVMPrices" - } - }, - supportedComputeTypes: { - serializedName: "supportedComputeTypes", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const VirtualMachineSizeListResult: msRest.CompositeMapper = { - serializedName: "VirtualMachineSizeListResult", +export const ListUsagesResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSizeListResult", + className: "ListUsagesResult", modelProperties: { - amlCompute: { - serializedName: "amlCompute", + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineSize" + className: "Usage" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const QuotaBaseProperties: msRest.CompositeMapper = { - serializedName: "QuotaBaseProperties", +export const Usage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QuotaBaseProperties", + className: "Usage", modelProperties: { id: { serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + amlWorkspaceLocation: { + serializedName: "amlWorkspaceLocation", + readOnly: true, type: { name: "String" } }, type: { serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + readOnly: true, type: { name: "String" } }, + currentValue: { + serializedName: "currentValue", + readOnly: true, + type: { + name: "Number" + } + }, limit: { serializedName: "limit", + readOnly: true, type: { name: "Number" } }, - unit: { - serializedName: "unit", + name: { + serializedName: "name", type: { - name: "String" + name: "Composite", + className: "UsageName" } } } } }; -export const QuotaUpdateParameters: msRest.CompositeMapper = { - serializedName: "QuotaUpdateParameters", +export const UsageName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QuotaUpdateParameters", + className: "UsageName", modelProperties: { value: { serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "QuotaBaseProperties" - } - } - } - } - } - } -}; - -export const UpdateWorkspaceQuotas: msRest.CompositeMapper = { - serializedName: "UpdateWorkspaceQuotas", - type: { - name: "Composite", - className: "UpdateWorkspaceQuotas", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - type: { readOnly: true, - serializedName: "type", type: { name: "String" } }, - limit: { - serializedName: "limit", - type: { - name: "Number" - } - }, - unit: { + localizedValue: { + serializedName: "localizedValue", readOnly: true, - serializedName: "unit", - type: { - name: "String" - } - }, - status: { - serializedName: "status", type: { name: "String" } @@ -995,171 +916,134 @@ export const UpdateWorkspaceQuotas: msRest.CompositeMapper = { } }; -export const UpdateWorkspaceQuotasResult: msRest.CompositeMapper = { - serializedName: "UpdateWorkspaceQuotasResult", +export const VirtualMachineSizeListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateWorkspaceQuotasResult", + className: "VirtualMachineSizeListResult", modelProperties: { value: { - readOnly: true, serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "UpdateWorkspaceQuotas" + className: "VirtualMachineSize" } } } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const ResourceName: msRest.CompositeMapper = { - serializedName: "ResourceName", +export const VirtualMachineSize: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceName", + className: "VirtualMachineSize", modelProperties: { - value: { + name: { + serializedName: "name", readOnly: true, - serializedName: "value", type: { name: "String" } }, - localizedValue: { + family: { + serializedName: "family", readOnly: true, - serializedName: "localizedValue", type: { name: "String" } - } - } - } -}; - -export const ResourceQuota: msRest.CompositeMapper = { - serializedName: "ResourceQuota", - type: { - name: "Composite", - className: "ResourceQuota", - modelProperties: { - id: { + }, + vCPUs: { + serializedName: "vCPUs", readOnly: true, - serializedName: "id", type: { - name: "String" + name: "Number" } }, - type: { + gpus: { + serializedName: "gpus", readOnly: true, - serializedName: "type", type: { - name: "String" + name: "Number" } }, - name: { + osVhdSizeMB: { + serializedName: "osVhdSizeMB", readOnly: true, - serializedName: "name", type: { - name: "Composite", - className: "ResourceName" + name: "Number" } }, - limit: { + maxResourceVolumeMB: { + serializedName: "maxResourceVolumeMB", readOnly: true, - serializedName: "limit", type: { name: "Number" } }, - unit: { + memoryGB: { + serializedName: "memoryGB", readOnly: true, - serializedName: "unit", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const IdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { - serializedName: "Identity_userAssignedIdentitiesValue", - type: { - name: "Composite", - className: "IdentityUserAssignedIdentitiesValue", - modelProperties: { - principalId: { + }, + lowPriorityCapable: { + serializedName: "lowPriorityCapable", readOnly: true, - serializedName: "principalId", type: { - name: "String" + name: "Boolean" } }, - clientId: { + premiumIO: { + serializedName: "premiumIO", readOnly: true, - serializedName: "clientId", type: { - name: "String" + name: "Boolean" + } + }, + estimatedVMPrices: { + serializedName: "estimatedVMPrices", + type: { + name: "Composite", + className: "EstimatedVMPrices" } } } } }; -export const Identity: msRest.CompositeMapper = { - serializedName: "Identity", +export const EstimatedVMPrices: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Identity", + className: "EstimatedVMPrices", modelProperties: { - principalId: { - readOnly: true, - serializedName: "principalId", + billingCurrency: { + serializedName: "billingCurrency", + required: true, type: { name: "String" } }, - tenantId: { - readOnly: true, - serializedName: "tenantId", + unitOfMeasure: { + serializedName: "unitOfMeasure", + required: true, type: { name: "String" } }, - type: { + values: { + serializedName: "values", required: true, - serializedName: "type", - type: { - name: "Enum", - allowedValues: [ - "SystemAssigned", - "UserAssigned", - "SystemAssigned,UserAssigned", - "None" - ] - } - }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { name: "Composite", - className: "IdentityUserAssignedIdentitiesValue" + className: "EstimatedVMPrice" } } } @@ -1168,15 +1052,28 @@ export const Identity: msRest.CompositeMapper = { } }; -export const ResourceId: msRest.CompositeMapper = { - serializedName: "ResourceId", +export const EstimatedVMPrice: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceId", + className: "EstimatedVMPrice", modelProperties: { - id: { + retailPrice: { + serializedName: "retailPrice", + required: true, + type: { + name: "Number" + } + }, + osType: { + serializedName: "osType", + required: true, + type: { + name: "String" + } + }, + vmTier: { + serializedName: "vmTier", required: true, - serializedName: "id", type: { name: "String" } @@ -1185,22 +1082,25 @@ export const ResourceId: msRest.CompositeMapper = { } }; -export const Password: msRest.CompositeMapper = { - serializedName: "Password", +export const QuotaUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Password", + className: "QuotaUpdateParameters", modelProperties: { - name: { - readOnly: true, - serializedName: "name", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QuotaBaseProperties" + } + } } }, - value: { - readOnly: true, - serializedName: "value", + location: { + serializedName: "location", type: { name: "String" } @@ -1209,104 +1109,131 @@ export const Password: msRest.CompositeMapper = { } }; -export const RegistryListCredentialsResult: msRest.CompositeMapper = { - serializedName: "RegistryListCredentialsResult", +export const QuotaBaseProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegistryListCredentialsResult", + className: "QuotaBaseProperties", modelProperties: { - location: { - readOnly: true, - serializedName: "location", + id: { + serializedName: "id", type: { name: "String" } }, - username: { - readOnly: true, - serializedName: "username", + type: { + serializedName: "type", type: { name: "String" } }, - passwords: { - serializedName: "passwords", + limit: { + serializedName: "limit", + type: { + name: "Number" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + } + } + } +}; + +export const UpdateWorkspaceQuotasResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateWorkspaceQuotasResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Password" + className: "UpdateWorkspaceQuotas" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const ListWorkspaceKeysResult: msRest.CompositeMapper = { - serializedName: "ListWorkspaceKeysResult", +export const UpdateWorkspaceQuotas: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListWorkspaceKeysResult", + className: "UpdateWorkspaceQuotas", modelProperties: { - userStorageKey: { + id: { + serializedName: "id", readOnly: true, - serializedName: "userStorageKey", type: { name: "String" } }, - userStorageResourceId: { + type: { + serializedName: "type", readOnly: true, - serializedName: "userStorageResourceId", type: { name: "String" } }, - appInsightsInstrumentationKey: { - readOnly: true, - serializedName: "appInsightsInstrumentationKey", + limit: { + serializedName: "limit", type: { - name: "String" + name: "Number" } }, - containerRegistryCredentials: { + unit: { + serializedName: "unit", readOnly: true, - serializedName: "containerRegistryCredentials", type: { - name: "Composite", - className: "RegistryListCredentialsResult" + name: "String" } }, - notebookAccessKeys: { - serializedName: "notebookAccessKeys", + status: { + serializedName: "status", type: { - name: "Composite", - className: "NotebookListCredentialsResult" + name: "String" } } } } }; -export const ErrorDetail: msRest.CompositeMapper = { - serializedName: "ErrorDetail", +export const ListWorkspaceQuotas: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorDetail", + className: "ListWorkspaceQuotas", modelProperties: { - code: { - required: true, - serializedName: "code", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceQuota" + } + } } }, - message: { - required: true, - serializedName: "message", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -1315,72 +1242,140 @@ export const ErrorDetail: msRest.CompositeMapper = { } }; -export const ErrorResponse: msRest.CompositeMapper = { - serializedName: "ErrorResponse", +export const ResourceQuota: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorResponse", + className: "ResourceQuota", modelProperties: { - code: { + id: { + serializedName: "id", readOnly: true, - serializedName: "code", type: { name: "String" } }, - message: { + amlWorkspaceLocation: { + serializedName: "amlWorkspaceLocation", readOnly: true, - serializedName: "message", type: { name: "String" } }, - details: { + type: { + serializedName: "type", readOnly: true, - serializedName: "details", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetail" + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "Composite", + className: "ResourceName" + } + }, + limit: { + serializedName: "limit", + readOnly: true, + type: { + name: "Number" + } + }, + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ResourceName: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceName", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "String" + } + }, + localizedValue: { + serializedName: "localizedValue", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PaginatedComputeResourcesList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PaginatedComputeResourcesList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeResource" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const MachineLearningServiceError: msRest.CompositeMapper = { - serializedName: "MachineLearningServiceError", +export const Components1D3SwueSchemasComputeresourceAllof1: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MachineLearningServiceError", + className: "Components1D3SwueSchemasComputeresourceAllof1", modelProperties: { - error: { - readOnly: true, - serializedName: "error", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "ErrorResponse" + className: "Compute" } } } } }; -export const Compute: msRest.CompositeMapper = { - serializedName: "Compute", +export const Compute: coreClient.CompositeMapper = { type: { name: "Composite", + className: "Compute", + uberParent: "Compute", polymorphicDiscriminator: { serializedName: "computeType", clientName: "computeType" }, - uberParent: "Compute", - className: "Compute", modelProperties: { + computeType: { + serializedName: "computeType", + required: true, + type: { + name: "String" + } + }, computeLocation: { serializedName: "computeLocation", type: { @@ -1388,8 +1383,8 @@ export const Compute: msRest.CompositeMapper = { } }, provisioningState: { - readOnly: true, serializedName: "provisioningState", + readOnly: true, type: { name: "String" } @@ -1401,15 +1396,15 @@ export const Compute: msRest.CompositeMapper = { } }, createdOn: { - readOnly: true, serializedName: "createdOn", + readOnly: true, type: { name: "DateTime" } }, modifiedOn: { - readOnly: true, serializedName: "modifiedOn", + readOnly: true, type: { name: "DateTime" } @@ -1421,111 +1416,99 @@ export const Compute: msRest.CompositeMapper = { } }, provisioningErrors: { - readOnly: true, serializedName: "provisioningErrors", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MachineLearningServiceError" + className: "ErrorResponse" } } } }, isAttachedCompute: { - readOnly: true, serializedName: "isAttachedCompute", + readOnly: true, type: { name: "Boolean" } }, - computeType: { - required: true, - serializedName: "computeType", + disableLocalAuth: { + serializedName: "disableLocalAuth", type: { - name: "String" + name: "Boolean" } } } } }; -export const ComputeResource: msRest.CompositeMapper = { - serializedName: "ComputeResource", +export const ClusterUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeResource", + className: "ClusterUpdateParameters", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + scaleSettings: { + serializedName: "properties.scaleSettings", type: { name: "Composite", - className: "Compute" + className: "ScaleSettings" } } } } }; -export const SystemService: msRest.CompositeMapper = { - serializedName: "SystemService", +export const ScaleSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemService", + className: "ScaleSettings", modelProperties: { - systemServiceType: { - readOnly: true, - serializedName: "systemServiceType", + maxNodeCount: { + serializedName: "maxNodeCount", + required: true, type: { - name: "String" + name: "Number" } }, - publicIpAddress: { - readOnly: true, - serializedName: "publicIpAddress", + minNodeCount: { + serializedName: "minNodeCount", type: { - name: "String" + name: "Number" } }, - version: { - readOnly: true, - serializedName: "version", + nodeIdleTimeBeforeScaleDown: { + serializedName: "nodeIdleTimeBeforeScaleDown", type: { - name: "String" + name: "TimeSpan" } } } } }; -export const SslConfiguration: msRest.CompositeMapper = { - serializedName: "SslConfiguration", +export const ComputeNodesInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SslConfiguration", + className: "ComputeNodesInformation", + uberParent: "ComputeNodesInformation", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, modelProperties: { - status: { - serializedName: "status", - type: { - name: "String" - } - }, - cert: { - serializedName: "cert", - type: { - name: "String" - } - }, - key: { - serializedName: "key", + computeType: { + serializedName: "computeType", + required: true, type: { name: "String" } }, - cname: { - serializedName: "cname", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -1534,41 +1517,50 @@ export const SslConfiguration: msRest.CompositeMapper = { } }; -export const AksNetworkingConfiguration: msRest.CompositeMapper = { - serializedName: "AksNetworkingConfiguration", +export const AmlComputeNodeInformation: coreClient.CompositeMapper = { + serializedName: "AmlCompute", type: { name: "Composite", - className: "AksNetworkingConfiguration", + className: "AmlComputeNodeInformation", modelProperties: { - subnetId: { - serializedName: "subnetId", + nodeId: { + serializedName: "nodeId", + readOnly: true, type: { name: "String" } }, - serviceCidr: { - serializedName: "serviceCidr", - constraints: { - Pattern: /^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/ - }, + privateIpAddress: { + serializedName: "privateIpAddress", + readOnly: true, type: { name: "String" } }, - dnsServiceIP: { - serializedName: "dnsServiceIP", - constraints: { - Pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/ - }, + publicIpAddress: { + serializedName: "publicIpAddress", + readOnly: true, type: { name: "String" } }, - dockerBridgeCidr: { - serializedName: "dockerBridgeCidr", - constraints: { - Pattern: /^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/ - }, + port: { + serializedName: "port", + readOnly: true, + type: { + name: "Number" + } + }, + nodeState: { + serializedName: "nodeState", + readOnly: true, + type: { + name: "String" + } + }, + runId: { + serializedName: "runId", + readOnly: true, type: { name: "String" } @@ -1577,343 +1569,336 @@ export const AksNetworkingConfiguration: msRest.CompositeMapper = { } }; -export const AKSProperties: msRest.CompositeMapper = { - serializedName: "AKS_properties", +export const NotebookAccessTokenResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AKSProperties", + className: "NotebookAccessTokenResult", modelProperties: { - clusterFqdn: { - serializedName: "clusterFqdn", + notebookResourceId: { + serializedName: "notebookResourceId", + readOnly: true, type: { name: "String" } }, - systemServices: { + hostName: { + serializedName: "hostName", readOnly: true, - serializedName: "systemServices", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SystemService" - } - } + name: "String" } }, - agentCount: { - serializedName: "agentCount", - constraints: { - InclusiveMinimum: 1 - }, + publicDns: { + serializedName: "publicDns", + readOnly: true, type: { - name: "Number" + name: "String" } }, - agentVMSize: { - serializedName: "agentVMSize", + accessToken: { + serializedName: "accessToken", + readOnly: true, type: { name: "String" } }, - sslConfiguration: { - serializedName: "sslConfiguration", + tokenType: { + serializedName: "tokenType", + readOnly: true, type: { - name: "Composite", - className: "SslConfiguration" + name: "String" } }, - aksNetworkingConfiguration: { - serializedName: "aksNetworkingConfiguration", + expiresIn: { + serializedName: "expiresIn", + readOnly: true, type: { - name: "Composite", - className: "AksNetworkingConfiguration" + name: "Number" + } + }, + refreshToken: { + serializedName: "refreshToken", + readOnly: true, + type: { + name: "String" + } + }, + scope: { + serializedName: "scope", + readOnly: true, + type: { + name: "String" } } } } }; -export const AKS: msRest.CompositeMapper = { - serializedName: "AKS", +export const ComputeSecrets: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "AKS", - modelProperties: { - ...Compute.type.modelProperties, - properties: { - serializedName: "properties", + className: "ComputeSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, + modelProperties: { + computeType: { + serializedName: "computeType", + required: true, type: { - name: "Composite", - className: "AKSProperties" + name: "String" } } } } }; -export const ScaleSettings: msRest.CompositeMapper = { - serializedName: "ScaleSettings", +export const ComputeSchedules: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScaleSettings", + className: "ComputeSchedules", modelProperties: { - maxNodeCount: { - required: true, - serializedName: "maxNodeCount", - type: { - name: "Number" - } - }, - minNodeCount: { - serializedName: "minNodeCount", - defaultValue: 0, + computeStartStop: { + serializedName: "computeStartStop", type: { - name: "Number" - } - }, - nodeIdleTimeBeforeScaleDown: { - serializedName: "nodeIdleTimeBeforeScaleDown", - type: { - name: "TimeSpan" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeStartStopSchedule" + } + } } } } } }; -export const UserAccountCredentials: msRest.CompositeMapper = { - serializedName: "UserAccountCredentials", +export const ComputeStartStopSchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserAccountCredentials", + className: "ComputeStartStopSchedule", modelProperties: { - adminUserName: { - required: true, - serializedName: "adminUserName", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - adminUserSshPublicKey: { - serializedName: "adminUserSshPublicKey", + provisioningStatus: { + serializedName: "provisioningStatus", + readOnly: true, type: { name: "String" } }, - adminUserPassword: { - serializedName: "adminUserPassword", + status: { + serializedName: "status", type: { name: "String" } - } - } - } -}; - -export const NodeStateCounts: msRest.CompositeMapper = { - serializedName: "NodeStateCounts", - type: { - name: "Composite", - className: "NodeStateCounts", - modelProperties: { - idleNodeCount: { - readOnly: true, - serializedName: "idleNodeCount", - type: { - name: "Number" - } - }, - runningNodeCount: { - readOnly: true, - serializedName: "runningNodeCount", - type: { - name: "Number" - } }, - preparingNodeCount: { - readOnly: true, - serializedName: "preparingNodeCount", + triggerType: { + serializedName: "triggerType", type: { - name: "Number" + name: "String" } }, - unusableNodeCount: { - readOnly: true, - serializedName: "unusableNodeCount", + action: { + serializedName: "action", type: { - name: "Number" + name: "String" } }, - leavingNodeCount: { - readOnly: true, - serializedName: "leavingNodeCount", + recurrence: { + serializedName: "recurrence", type: { - name: "Number" + name: "Composite", + className: "Recurrence" } }, - preemptedNodeCount: { - readOnly: true, - serializedName: "preemptedNodeCount", + cron: { + serializedName: "cron", type: { - name: "Number" + name: "Composite", + className: "Cron" } } } } }; -export const AmlComputeProperties: msRest.CompositeMapper = { - serializedName: "AmlCompute_properties", +export const Recurrence: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeProperties", + className: "Recurrence", modelProperties: { - vmSize: { - serializedName: "vmSize", + frequency: { + serializedName: "frequency", type: { name: "String" } }, - vmPriority: { - serializedName: "vmPriority", + interval: { + serializedName: "interval", type: { - name: "String" + name: "Number" } }, - scaleSettings: { - serializedName: "scaleSettings", + startTime: { + serializedName: "startTime", type: { - name: "Composite", - className: "ScaleSettings" + name: "String" } }, - userAccountCredentials: { - serializedName: "userAccountCredentials", + timeZone: { + serializedName: "timeZone", type: { - name: "Composite", - className: "UserAccountCredentials" + name: "String" } }, - subnet: { - serializedName: "subnet", + schedule: { + serializedName: "schedule", type: { name: "Composite", - className: "ResourceId" - } - }, - remoteLoginPortPublicAccess: { - serializedName: "remoteLoginPortPublicAccess", - defaultValue: 'NotSpecified', - type: { - name: "String" + className: "RecurrenceSchedule" } - }, - allocationState: { - readOnly: true, - serializedName: "allocationState", + } + } + } +}; + +export const RecurrenceSchedule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RecurrenceSchedule", + modelProperties: { + minutes: { + serializedName: "minutes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Number" + } + } } }, - allocationStateTransitionTime: { - readOnly: true, - serializedName: "allocationStateTransitionTime", + hours: { + serializedName: "hours", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Number" + } + } } }, - errors: { - readOnly: true, - serializedName: "errors", + weekDays: { + serializedName: "weekDays", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "MachineLearningServiceError" + name: "Enum", + allowedValues: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ] } } } - }, - currentNodeCount: { - readOnly: true, - serializedName: "currentNodeCount", + } + } + } +}; + +export const Cron: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Cron", + modelProperties: { + startTime: { + serializedName: "startTime", type: { - name: "Number" + name: "String" } }, - targetNodeCount: { - readOnly: true, - serializedName: "targetNodeCount", + timeZone: { + serializedName: "timeZone", type: { - name: "Number" + name: "String" } }, - nodeStateCounts: { - readOnly: true, - serializedName: "nodeStateCounts", + expression: { + serializedName: "expression", type: { - name: "Composite", - className: "NodeStateCounts" + name: "String" } } } } }; -export const AmlCompute: msRest.CompositeMapper = { - serializedName: "AmlCompute", +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "AmlCompute", + className: "PrivateEndpointConnectionListResult", modelProperties: { - ...Compute.type.modelProperties, - properties: { - serializedName: "properties", + value: { + serializedName: "value", type: { - name: "Composite", - className: "AmlComputeProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } } } } } }; -export const ComputeInstanceSshSettings: msRest.CompositeMapper = { - serializedName: "ComputeInstanceSshSettings", +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceSshSettings", + className: "PrivateLinkResourceListResult", modelProperties: { - sshPublicAccess: { - serializedName: "sshPublicAccess", - defaultValue: 'Disabled', - type: { - name: "String" - } - }, - adminUserName: { - readOnly: true, - serializedName: "adminUserName", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } } - }, - sshPort: { + } + } + } +}; + +export const ListStorageAccountKeysResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListStorageAccountKeysResult", + modelProperties: { + userStorageKey: { + serializedName: "userStorageKey", readOnly: true, - serializedName: "sshPort", - type: { - name: "Number" - } - }, - adminPublicKey: { - serializedName: "adminPublicKey", type: { name: "String" } @@ -1922,22 +1907,25 @@ export const ComputeInstanceSshSettings: msRest.CompositeMapper = { } }; -export const ComputeInstanceConnectivityEndpoints: msRest.CompositeMapper = { - serializedName: "ComputeInstanceConnectivityEndpoints", +export const PaginatedWorkspaceConnectionsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceConnectivityEndpoints", + className: "PaginatedWorkspaceConnectionsList", modelProperties: { - publicIpAddress: { - readOnly: true, - serializedName: "publicIpAddress", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceConnection" + } + } } }, - privateIpAddress: { - readOnly: true, - serializedName: "privateIpAddress", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -1946,79 +1934,58 @@ export const ComputeInstanceConnectivityEndpoints: msRest.CompositeMapper = { } }; -export const ComputeInstanceApplication: msRest.CompositeMapper = { - serializedName: "ComputeInstanceApplication", +export const WorkspaceConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceApplication", + className: "WorkspaceConnection", modelProperties: { - displayName: { - serializedName: "displayName", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - endpointUri: { - serializedName: "endpointUri", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ComputeInstanceCreatedBy: msRest.CompositeMapper = { - serializedName: "ComputeInstanceCreatedBy", - type: { - name: "Composite", - className: "ComputeInstanceCreatedBy", - modelProperties: { - userName: { + }, + type: { + serializedName: "type", readOnly: true, - serializedName: "userName", type: { name: "String" } }, - userOrgId: { - readOnly: true, - serializedName: "userOrgId", + category: { + serializedName: "properties.category", type: { name: "String" } }, - userId: { - readOnly: true, - serializedName: "userId", + target: { + serializedName: "properties.target", type: { name: "String" } - } - } - } -}; - -export const ComputeInstanceLastOperation: msRest.CompositeMapper = { - serializedName: "ComputeInstanceLastOperation", - type: { - name: "Composite", - className: "ComputeInstanceLastOperation", - modelProperties: { - operationName: { - serializedName: "operationName", + }, + authType: { + serializedName: "properties.authType", type: { name: "String" } }, - operationTime: { - serializedName: "operationTime", + value: { + serializedName: "properties.value", type: { - name: "DateTime" + name: "String" } }, - operationStatus: { - serializedName: "operationStatus", + valueFormat: { + serializedName: "properties.valueFormat", type: { name: "String" } @@ -2027,315 +1994,371 @@ export const ComputeInstanceLastOperation: msRest.CompositeMapper = { } }; -export const ComputeInstanceProperties: msRest.CompositeMapper = { - serializedName: "ComputeInstance_properties", +export const BatchEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceProperties", + className: "BatchEndpointTrackedResourceArmPaginatedResult", modelProperties: { - vmSize: { - serializedName: "vmSize", - type: { - name: "String" - } - }, - subnet: { - serializedName: "subnet", - type: { - name: "Composite", - className: "ResourceId" - } - }, - applicationSharingPolicy: { - serializedName: "applicationSharingPolicy", - defaultValue: 'Shared', + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - sshSettings: { - serializedName: "sshSettings", - type: { - name: "Composite", - className: "ComputeInstanceSshSettings" - } - }, - connectivityEndpoints: { - readOnly: true, - serializedName: "connectivityEndpoints", - type: { - name: "Composite", - className: "ComputeInstanceConnectivityEndpoints" - } - }, - applications: { - readOnly: true, - serializedName: "applications", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ComputeInstanceApplication" + className: "BatchEndpointTrackedResource" } } } - }, - createdBy: { + } + } + } +}; + +export const ResourceIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", readOnly: true, - serializedName: "createdBy", type: { - name: "Composite", - className: "ComputeInstanceCreatedBy" + name: "String" } }, - errors: { + tenantId: { + serializedName: "tenantId", readOnly: true, - serializedName: "errors", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MachineLearningServiceError" - } - } + name: "String" } }, - state: { - readOnly: true, - serializedName: "state", + type: { + serializedName: "type", type: { name: "String" } }, - lastOperation: { - readOnly: true, - serializedName: "lastOperation", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "Composite", - className: "ComputeInstanceLastOperation" + name: "Dictionary", + value: { + type: { name: "Composite", className: "UserAssignedIdentityMeta" } + } } } } } }; -export const ComputeInstance: msRest.CompositeMapper = { - serializedName: "ComputeInstance", +export const UserAssignedIdentityMeta: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "ComputeInstance", + className: "UserAssignedIdentityMeta", modelProperties: { - ...Compute.type.modelProperties, - properties: { - serializedName: "properties", + clientId: { + serializedName: "clientId", type: { - name: "Composite", - className: "ComputeInstanceProperties" + name: "String" + } + }, + principalId: { + serializedName: "principalId", + type: { + name: "String" } } } } }; -export const VirtualMachineSshCredentials: msRest.CompositeMapper = { - serializedName: "VirtualMachineSshCredentials", +export const BatchEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSshCredentials", + className: "BatchEndpoint", modelProperties: { - username: { - serializedName: "username", + authMode: { + serializedName: "authMode", type: { name: "String" } }, - password: { - serializedName: "password", + description: { + serializedName: "description", type: { name: "String" } }, - publicKeyData: { - serializedName: "publicKeyData", + keys: { + serializedName: "keys", type: { - name: "String" + name: "Composite", + className: "EndpointAuthKeys" } }, - privateKeyData: { - serializedName: "privateKeyData", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineProperties: msRest.CompositeMapper = { - serializedName: "VirtualMachine_properties", - type: { - name: "Composite", - className: "VirtualMachineProperties", - modelProperties: { - virtualMachineSize: { - serializedName: "virtualMachineSize", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - sshPort: { - serializedName: "sshPort", + scoringUri: { + serializedName: "scoringUri", + readOnly: true, type: { - name: "Number" + name: "String" } }, - address: { - serializedName: "address", + swaggerUri: { + serializedName: "swaggerUri", + readOnly: true, type: { name: "String" } }, - administratorAccount: { - serializedName: "administratorAccount", + traffic: { + serializedName: "traffic", type: { - name: "Composite", - className: "VirtualMachineSshCredentials" + name: "Dictionary", + value: { type: { name: "Number" } } } } } } }; -export const VirtualMachine: msRest.CompositeMapper = { - serializedName: "VirtualMachine", +export const EndpointAuthKeys: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "VirtualMachine", + className: "EndpointAuthKeys", modelProperties: { - ...Compute.type.modelProperties, - properties: { - serializedName: "properties", + primaryKey: { + serializedName: "primaryKey", type: { - name: "Composite", - className: "VirtualMachineProperties" + name: "String" + } + }, + secondaryKey: { + serializedName: "secondaryKey", + type: { + name: "String" } } } } }; -export const HDInsightProperties: msRest.CompositeMapper = { - serializedName: "HDInsight_properties", +export const PartialBatchEndpointPartialTrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HDInsightProperties", + className: "PartialBatchEndpointPartialTrackedResource", modelProperties: { - sshPort: { - serializedName: "sshPort", + identity: { + serializedName: "identity", type: { - name: "Number" + name: "Composite", + className: "ResourceIdentity" } }, - address: { - serializedName: "address", + kind: { + serializedName: "kind", type: { name: "String" } }, - administratorAccount: { - serializedName: "administratorAccount", + location: { + serializedName: "location", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", type: { name: "Composite", - className: "VirtualMachineSshCredentials" + className: "PartialBatchEndpoint" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const HDInsight: msRest.CompositeMapper = { - serializedName: "HDInsight", +export const PartialBatchEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "HDInsight", + className: "PartialBatchEndpoint", modelProperties: { - ...Compute.type.modelProperties, - properties: { - serializedName: "properties", + traffic: { + serializedName: "traffic", type: { - name: "Composite", - className: "HDInsightProperties" + name: "Dictionary", + value: { type: { name: "Number" } } } } } } }; -export const DataFactory: msRest.CompositeMapper = { - serializedName: "DataFactory", +export const BatchDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "DataFactory", + className: "BatchDeploymentTrackedResourceArmPaginatedResult", modelProperties: { - ...Compute.type.modelProperties - } - } -}; - -export const DatabricksProperties: msRest.CompositeMapper = { - serializedName: "Databricks_properties", - type: { - name: "Composite", - className: "DatabricksProperties", - modelProperties: { - databricksAccessToken: { - serializedName: "databricksAccessToken", + nextLink: { + serializedName: "nextLink", type: { name: "String" } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BatchDeploymentTrackedResource" + } + } + } } } } }; -export const Databricks: msRest.CompositeMapper = { - serializedName: "Databricks", +export const BatchDeployment: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "Databricks", + className: "BatchDeployment", modelProperties: { - ...Compute.type.modelProperties, + codeConfiguration: { + serializedName: "codeConfiguration", + type: { + name: "Composite", + className: "CodeConfiguration" + } + }, + compute: { + serializedName: "compute", + type: { + name: "Composite", + className: "ComputeConfiguration" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + environmentId: { + serializedName: "environmentId", + type: { + name: "String" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + errorThreshold: { + serializedName: "errorThreshold", + type: { + name: "Number" + } + }, + loggingLevel: { + serializedName: "loggingLevel", + type: { + name: "String" + } + }, + miniBatchSize: { + serializedName: "miniBatchSize", + type: { + name: "Number" + } + }, + model: { + serializedName: "model", + type: { + name: "Composite", + className: "AssetReferenceBase" + } + }, + outputConfiguration: { + serializedName: "outputConfiguration", + type: { + name: "Composite", + className: "BatchOutputConfiguration" + } + }, + partitionKeys: { + serializedName: "partitionKeys", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, properties: { serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + retrySettings: { + serializedName: "retrySettings", type: { name: "Composite", - className: "DatabricksProperties" + className: "BatchRetrySettings" } } } } }; -export const DataLakeAnalyticsProperties: msRest.CompositeMapper = { - serializedName: "DataLakeAnalytics_properties", +export const CodeConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataLakeAnalyticsProperties", + className: "CodeConfiguration", modelProperties: { - dataLakeStoreAccountName: { - serializedName: "dataLakeStoreAccountName", + codeId: { + serializedName: "codeId", + type: { + name: "String" + } + }, + scoringScript: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "scoringScript", + required: true, type: { name: "String" } @@ -2344,42 +2367,65 @@ export const DataLakeAnalyticsProperties: msRest.CompositeMapper = { } }; -export const DataLakeAnalytics: msRest.CompositeMapper = { - serializedName: "DataLakeAnalytics", +export const ComputeConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "DataLakeAnalytics", + className: "ComputeConfiguration", modelProperties: { - ...Compute.type.modelProperties, + instanceCount: { + serializedName: "instanceCount", + type: { + name: "Number" + } + }, + instanceType: { + serializedName: "instanceType", + type: { + name: "String" + } + }, + isLocal: { + serializedName: "isLocal", + type: { + name: "Boolean" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, properties: { serializedName: "properties", type: { - name: "Composite", - className: "DataLakeAnalyticsProperties" + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + target: { + serializedName: "target", + type: { + name: "String" } } } } }; -export const ServicePrincipalCredentials: msRest.CompositeMapper = { - serializedName: "ServicePrincipalCredentials", +export const AssetReferenceBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServicePrincipalCredentials", + className: "AssetReferenceBase", + uberParent: "AssetReferenceBase", + polymorphicDiscriminator: { + serializedName: "referenceType", + clientName: "referenceType" + }, modelProperties: { - clientId: { - required: true, - serializedName: "clientId", - type: { - name: "String" - } - }, - clientSecret: { + referenceType: { + serializedName: "referenceType", required: true, - serializedName: "clientSecret", type: { name: "String" } @@ -2388,96 +2434,97 @@ export const ServicePrincipalCredentials: msRest.CompositeMapper = { } }; -export const ClusterUpdateParameters: msRest.CompositeMapper = { - serializedName: "ClusterUpdateParameters", +export const BatchOutputConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterUpdateParameters", + className: "BatchOutputConfiguration", modelProperties: { - scaleSettings: { - serializedName: "properties.scaleSettings", + appendRowFileName: { + serializedName: "appendRowFileName", type: { - name: "Composite", - className: "ScaleSettings" + name: "String" + } + }, + outputAction: { + serializedName: "outputAction", + type: { + name: "String" } } } } }; -export const ComputeNodesInformation: msRest.CompositeMapper = { - serializedName: "ComputeNodesInformation", +export const BatchRetrySettings: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "computeType", - clientName: "computeType" - }, - uberParent: "ComputeNodesInformation", - className: "ComputeNodesInformation", + className: "BatchRetrySettings", modelProperties: { - nextLink: { - readOnly: true, - serializedName: "nextLink", + maxRetries: { + serializedName: "maxRetries", type: { - name: "String" + name: "Number" } }, - computeType: { - required: true, - serializedName: "computeType", + timeout: { + serializedName: "timeout", type: { - name: "String" + name: "TimeSpan" } } } } }; -export const AmlComputeNodeInformation: msRest.CompositeMapper = { - serializedName: "AmlCompute", +export const PartialBatchDeploymentPartialTrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeNodeInformation", + className: "PartialBatchDeploymentPartialTrackedResource", modelProperties: { - nodeId: { - readOnly: true, - serializedName: "nodeId", + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "ResourceIdentity" } }, - privateIpAddress: { - readOnly: true, - serializedName: "privateIpAddress", + kind: { + serializedName: "kind", type: { name: "String" } }, - publicIpAddress: { - readOnly: true, - serializedName: "publicIpAddress", + location: { + serializedName: "location", type: { name: "String" } }, - port: { - readOnly: true, - serializedName: "port", + properties: { + serializedName: "properties", type: { - name: "Number" + name: "Composite", + className: "PartialBatchDeployment" } }, - nodeState: { - readOnly: true, - serializedName: "nodeState", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } - }, - runId: { - readOnly: true, - serializedName: "runId", + } + } + } +}; + +export const PartialBatchDeployment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialBatchDeployment", + modelProperties: { + description: { + serializedName: "description", type: { name: "String" } @@ -2486,24 +2533,25 @@ export const AmlComputeNodeInformation: msRest.CompositeMapper = { } }; -export const AmlComputeNodesInformation: msRest.CompositeMapper = { - serializedName: "AmlCompute", +export const CodeContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: ComputeNodesInformation.type.polymorphicDiscriminator, - uberParent: "ComputeNodesInformation", - className: "AmlComputeNodesInformation", + className: "CodeContainerResourceArmPaginatedResult", modelProperties: { - ...ComputeNodesInformation.type.modelProperties, - nodes: { - readOnly: true, - serializedName: "nodes", + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AmlComputeNodeInformation" + className: "CodeContainerResource" } } } @@ -2512,147 +2560,132 @@ export const AmlComputeNodesInformation: msRest.CompositeMapper = { } }; -export const ComputeSecrets: msRest.CompositeMapper = { - serializedName: "ComputeSecrets", +export const CodeContainer: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "computeType", - clientName: "computeType" - }, - uberParent: "ComputeSecrets", - className: "ComputeSecrets", + className: "CodeContainer", modelProperties: { - computeType: { - required: true, - serializedName: "computeType", + description: { + serializedName: "description", type: { name: "String" } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } }; -export const AksComputeSecrets: msRest.CompositeMapper = { - serializedName: "AKS", +export const CodeVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, - uberParent: "ComputeSecrets", - className: "AksComputeSecrets", + className: "CodeVersionResourceArmPaginatedResult", modelProperties: { - ...ComputeSecrets.type.modelProperties, - userKubeConfig: { - serializedName: "userKubeConfig", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - adminKubeConfig: { - serializedName: "adminKubeConfig", - type: { - name: "String" - } - }, - imagePullSecretName: { - serializedName: "imagePullSecretName", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CodeVersionResource" + } + } } } } } }; -export const VirtualMachineSecrets: msRest.CompositeMapper = { - serializedName: "VirtualMachine", +export const CodeVersion: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, - uberParent: "ComputeSecrets", - className: "VirtualMachineSecrets", + className: "CodeVersion", modelProperties: { - ...ComputeSecrets.type.modelProperties, - administratorAccount: { - serializedName: "administratorAccount", + datastoreId: { + serializedName: "datastoreId", type: { - name: "Composite", - className: "VirtualMachineSshCredentials" + name: "String" } - } - } - } -}; - -export const DatabricksComputeSecrets: msRest.CompositeMapper = { - serializedName: "Databricks", - type: { - name: "Composite", - polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, - uberParent: "ComputeSecrets", - className: "DatabricksComputeSecrets", - modelProperties: { - ...ComputeSecrets.type.modelProperties, - databricksAccessToken: { - serializedName: "databricksAccessToken", + }, + description: { + serializedName: "description", type: { name: "String" } - } - } - } -}; - -export const SKUCapability: msRest.CompositeMapper = { - serializedName: "SKUCapability", - type: { - name: "Composite", - className: "SKUCapability", - modelProperties: { - name: { - serializedName: "name", + }, + isAnonymous: { + serializedName: "isAnonymous", type: { - name: "String" + name: "Boolean" } }, - value: { - serializedName: "value", + path: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "path", + required: true, type: { name: "String" } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } }; -export const ResourceSkuZoneDetails: msRest.CompositeMapper = { - serializedName: "ResourceSkuZoneDetails", +export const DataContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuZoneDetails", + className: "DataContainerResourceArmPaginatedResult", modelProperties: { - name: { - readOnly: true, - serializedName: "name", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - capabilities: { - readOnly: true, - serializedName: "capabilities", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SKUCapability" + className: "DataContainerResource" } } } @@ -2661,186 +2694,138 @@ export const ResourceSkuZoneDetails: msRest.CompositeMapper = { } }; -export const ResourceSkuLocationInfo: msRest.CompositeMapper = { - serializedName: "ResourceSkuLocationInfo", +export const DataContainer: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuLocationInfo", + className: "DataContainer", modelProperties: { - location: { - readOnly: true, - serializedName: "location", + description: { + serializedName: "description", type: { name: "String" } }, - zones: { - readOnly: true, - serializedName: "zones", + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } }, - zoneDetails: { - readOnly: true, - serializedName: "zoneDetails", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuZoneDetails" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const Restriction: msRest.CompositeMapper = { - serializedName: "Restriction", +export const DataVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Restriction", + className: "DataVersionResourceArmPaginatedResult", modelProperties: { - type: { - readOnly: true, - serializedName: "type", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - values: { - readOnly: true, - serializedName: "values", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "DataVersionResource" } } } - }, - reasonCode: { - serializedName: "reasonCode", - type: { - name: "String" - } } } } }; -export const SkuSettings: msRest.CompositeMapper = { - serializedName: "SkuSettings", +export const DataVersion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SkuSettings", + className: "DataVersion", modelProperties: { - locations: { - readOnly: true, - serializedName: "locations", + datasetType: { + serializedName: "datasetType", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - locationInfo: { - readOnly: true, - serializedName: "locationInfo", + datastoreId: { + serializedName: "datastoreId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuLocationInfo" - } - } + name: "String" } }, - tier: { - readOnly: true, - serializedName: "tier", + description: { + serializedName: "description", type: { name: "String" } }, - resourceType: { - readOnly: true, - serializedName: "resourceType", + isAnonymous: { + serializedName: "isAnonymous", type: { - name: "String" + name: "Boolean" } }, - name: { - readOnly: true, - serializedName: "name", + path: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "path", + required: true, type: { name: "String" } }, - capabilities: { - readOnly: true, - serializedName: "capabilities", + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SKUCapability" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } }, - restrictions: { - serializedName: "restrictions", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Restriction" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const WorkspaceSku: msRest.CompositeMapper = { - serializedName: "WorkspaceSku", +export const DatastorePropertiesResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceSku", + className: "DatastorePropertiesResourceArmPaginatedResult", modelProperties: { - resourceType: { - readOnly: true, - serializedName: "resourceType", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - skus: { - readOnly: true, - serializedName: "skus", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SkuSettings" + className: "DatastorePropertiesResource" } } } @@ -2849,61 +2834,206 @@ export const WorkspaceSku: msRest.CompositeMapper = { } }; -export const PrivateLinkResource: msRest.CompositeMapper = { - serializedName: "PrivateLinkResource", +export const DatastoreProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResource", + className: "DatastoreProperties", modelProperties: { - ...Resource.type.modelProperties, - groupId: { - readOnly: true, - serializedName: "properties.groupId", + contents: { + serializedName: "contents", + type: { + name: "Composite", + className: "DatastoreContents" + } + }, + description: { + serializedName: "description", type: { name: "String" } }, - requiredMembers: { + hasBeenValidated: { + serializedName: "hasBeenValidated", readOnly: true, - serializedName: "properties.requiredMembers", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", + isDefault: { + serializedName: "isDefault", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } - } - } - } -}; - -export const PrivateLinkResourceListResult: msRest.CompositeMapper = { - serializedName: "PrivateLinkResourceListResult", - type: { - name: "Composite", - className: "PrivateLinkResourceListResult", - modelProperties: { - value: { - serializedName: "value", + }, + linkedInfo: { + serializedName: "linkedInfo", type: { - name: "Sequence", - element: { + name: "Composite", + className: "LinkedInfo" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const DatastoreContents: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatastoreContents", + uberParent: "DatastoreContents", + polymorphicDiscriminator: { + serializedName: "contentsType", + clientName: "contentsType" + }, + modelProperties: { + contentsType: { + serializedName: "contentsType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const LinkedInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LinkedInfo", + modelProperties: { + linkedId: { + serializedName: "linkedId", + type: { + name: "String" + } + }, + linkedResourceName: { + serializedName: "linkedResourceName", + type: { + name: "String" + } + }, + origin: { + serializedName: "origin", + type: { + name: "String" + } + } + } + } +}; + +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 EnvironmentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentContainerResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { type: { name: "Composite", - className: "PrivateLinkResource" + className: "EnvironmentContainerResource" + } + } + } + } + } + } +}; + +export const EnvironmentContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentContainer", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const EnvironmentSpecificationVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentSpecificationVersionResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentSpecificationVersionResource" } } } @@ -2912,107 +3042,5715 @@ export const PrivateLinkResourceListResult: msRest.CompositeMapper = { } }; -export const WorkspaceConnection: msRest.CompositeMapper = { - serializedName: "WorkspaceConnection", +export const EnvironmentSpecificationVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentSpecificationVersion", + modelProperties: { + condaFile: { + serializedName: "condaFile", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + docker: { + serializedName: "docker", + type: { + name: "Composite", + className: "DockerSpecification" + } + }, + environmentSpecificationType: { + serializedName: "environmentSpecificationType", + readOnly: true, + type: { + name: "String" + } + }, + inferenceContainerProperties: { + serializedName: "inferenceContainerProperties", + type: { + name: "Composite", + className: "InferenceContainerProperties" + } + }, + isAnonymous: { + serializedName: "isAnonymous", + type: { + name: "Boolean" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const DockerSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DockerSpecification", + uberParent: "DockerSpecification", + polymorphicDiscriminator: { + serializedName: "dockerSpecificationType", + clientName: "dockerSpecificationType" + }, + modelProperties: { + dockerSpecificationType: { + serializedName: "dockerSpecificationType", + required: true, + type: { + name: "String" + } + }, + platform: { + serializedName: "platform", + type: { + name: "Composite", + className: "DockerImagePlatform" + } + } + } + } +}; + +export const DockerImagePlatform: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DockerImagePlatform", + modelProperties: { + operatingSystemType: { + serializedName: "operatingSystemType", + type: { + name: "String" + } + } + } + } +}; + +export const InferenceContainerProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InferenceContainerProperties", + modelProperties: { + livenessRoute: { + serializedName: "livenessRoute", + type: { + name: "Composite", + className: "Route" + } + }, + readinessRoute: { + serializedName: "readinessRoute", + type: { + name: "Composite", + className: "Route" + } + }, + scoringRoute: { + serializedName: "scoringRoute", + type: { + name: "Composite", + className: "Route" + } + } + } + } +}; + +export const Route: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Route", + modelProperties: { + path: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "path", + required: true, + type: { + name: "String" + } + }, + port: { + serializedName: "port", + required: true, + type: { + name: "Number" + } + } + } + } +}; + +export const JobBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobBaseResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JobBaseResource" + } + } + } + } + } + } +}; + +export const JobBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobBase", + uberParent: "JobBase", + polymorphicDiscriminator: { + serializedName: "jobType", + clientName: "jobType" + }, + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + interactionEndpoints: { + serializedName: "interactionEndpoints", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobEndpoint" } } + } + }, + jobType: { + serializedName: "jobType", + required: true, + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const JobEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobEndpoint", + modelProperties: { + endpoint: { + serializedName: "endpoint", + type: { + name: "String" + } + }, + jobEndpointType: { + serializedName: "jobEndpointType", + type: { + name: "String" + } + }, + port: { + serializedName: "port", + type: { + name: "Number" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const LabelingJobResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelingJobResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LabelingJobResource" + } + } + } + } + } + } +}; + +export const LabelingJob: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelingJob", + modelProperties: { + createdTimeUtc: { + serializedName: "createdTimeUtc", + readOnly: true, + type: { + name: "DateTime" + } + }, + datasetConfiguration: { + serializedName: "datasetConfiguration", + type: { + name: "Composite", + className: "LabelingDatasetConfiguration" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + interactionEndpoints: { + serializedName: "interactionEndpoints", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobEndpoint" } } + } + }, + jobInstructions: { + serializedName: "jobInstructions", + type: { + name: "Composite", + className: "LabelingJobInstructions" + } + }, + jobType: { + serializedName: "jobType", + required: true, + type: { + name: "String" + } + }, + labelCategories: { + serializedName: "labelCategories", + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "LabelCategory" } } + } + }, + labelingJobMediaProperties: { + serializedName: "labelingJobMediaProperties", + type: { + name: "Composite", + className: "LabelingJobMediaProperties" + } + }, + mlAssistConfiguration: { + serializedName: "mlAssistConfiguration", + type: { + name: "Composite", + className: "MLAssistConfiguration" + } + }, + progressMetrics: { + serializedName: "progressMetrics", + type: { + name: "Composite", + className: "ProgressMetrics" + } + }, + projectId: { + serializedName: "projectId", + readOnly: true, + type: { + name: "Uuid" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String" + } + }, + statusMessages: { + serializedName: "statusMessages", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StatusMessage" + } + } + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const LabelingDatasetConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelingDatasetConfiguration", + modelProperties: { + assetName: { + serializedName: "assetName", + type: { + name: "String" + } + }, + datasetVersion: { + serializedName: "datasetVersion", + type: { + name: "String" + } + }, + incrementalDatasetRefreshEnabled: { + serializedName: "incrementalDatasetRefreshEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const LabelingJobInstructions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelingJobInstructions", + modelProperties: { + uri: { + serializedName: "uri", + type: { + name: "String" + } + } + } + } +}; + +export const LabelCategory: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelCategory", + modelProperties: { + allowMultiSelect: { + serializedName: "allowMultiSelect", + type: { + name: "Boolean" + } + }, + classes: { + serializedName: "classes", + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "LabelClass" } } + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + } + } + } +}; + +export const LabelClass: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelClass", + modelProperties: { + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + subclasses: { + serializedName: "subclasses", + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "LabelClass" } } + } + } + } + } +}; + +export const LabelingJobMediaProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelingJobMediaProperties", + uberParent: "LabelingJobMediaProperties", + polymorphicDiscriminator: { + serializedName: "mediaType", + clientName: "mediaType" + }, + modelProperties: { + mediaType: { + serializedName: "mediaType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const MLAssistConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MLAssistConfiguration", + modelProperties: { + inferencingComputeBinding: { + serializedName: "inferencingComputeBinding", + type: { + name: "Composite", + className: "ComputeConfiguration" + } + }, + mlAssistEnabled: { + serializedName: "mlAssistEnabled", + type: { + name: "Boolean" + } + }, + trainingComputeBinding: { + serializedName: "trainingComputeBinding", + type: { + name: "Composite", + className: "ComputeConfiguration" + } + } + } + } +}; + +export const ProgressMetrics: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProgressMetrics", + modelProperties: { + completedDatapointCount: { + serializedName: "completedDatapointCount", + readOnly: true, + type: { + name: "Number" + } + }, + incrementalDatasetLastRefreshTime: { + serializedName: "incrementalDatasetLastRefreshTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + skippedDatapointCount: { + serializedName: "skippedDatapointCount", + readOnly: true, + type: { + name: "Number" + } + }, + totalDatapointCount: { + serializedName: "totalDatapointCount", + readOnly: true, + type: { + name: "Number" + } + } + } + } +}; + +export const StatusMessage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StatusMessage", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String" + } + }, + createdTimeUtc: { + serializedName: "createdTimeUtc", + readOnly: true, + type: { + name: "DateTime" + } + }, + level: { + serializedName: "level", + readOnly: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ExportSummary: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExportSummary", + uberParent: "ExportSummary", + polymorphicDiscriminator: { + serializedName: "format", + clientName: "format" + }, + modelProperties: { + endTimeUtc: { + serializedName: "endTimeUtc", + readOnly: true, + type: { + name: "DateTime" + } + }, + exportedRowCount: { + serializedName: "exportedRowCount", + readOnly: true, + type: { + name: "Number" + } + }, + format: { + serializedName: "format", + required: true, + type: { + name: "String" + } + }, + labelingJobId: { + serializedName: "labelingJobId", + readOnly: true, + type: { + name: "String" + } + }, + startTimeUtc: { + serializedName: "startTimeUtc", + readOnly: true, + type: { + name: "DateTime" + } + } + } + } +}; + +export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelContainerResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ModelContainerResource" + } + } + } + } + } + } +}; + +export const ModelContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelContainer", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const ModelVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelVersionResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ModelVersionResource" + } + } + } + } + } + } +}; + +export const ModelVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelVersion", + modelProperties: { + datastoreId: { + serializedName: "datastoreId", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + flavors: { + serializedName: "flavors", + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "FlavorData" } } + } + }, + isAnonymous: { + serializedName: "isAnonymous", + type: { + name: "Boolean" + } + }, + path: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "path", + required: true, + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const FlavorData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FlavorData", + modelProperties: { + data: { + serializedName: "data", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const OnlineEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineEndpointTrackedResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OnlineEndpointTrackedResource" + } + } + } + } + } + } +}; + +export const OnlineEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineEndpoint", + modelProperties: { + authMode: { + serializedName: "authMode", + required: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + keys: { + serializedName: "keys", + type: { + name: "Composite", + className: "EndpointAuthKeys" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + scoringUri: { + serializedName: "scoringUri", + readOnly: true, + type: { + name: "String" + } + }, + swaggerUri: { + serializedName: "swaggerUri", + readOnly: true, + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, + traffic: { + serializedName: "traffic", + type: { + name: "Dictionary", + value: { type: { name: "Number" } } + } + } + } + } +}; + +export const PartialOnlineEndpointPartialTrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialOnlineEndpointPartialTrackedResource", + modelProperties: { + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "PartialOnlineEndpoint" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const PartialOnlineEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialOnlineEndpoint", + modelProperties: { + traffic: { + serializedName: "traffic", + type: { + name: "Dictionary", + value: { type: { name: "Number" } } + } + } + } + } +}; + +export const OnlineDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineDeploymentTrackedResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OnlineDeploymentTrackedResource" + } + } + } + } + } + } +}; + +export const OnlineDeployment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineDeployment", + uberParent: "OnlineDeployment", + polymorphicDiscriminator: { + serializedName: "endpointComputeType", + clientName: "endpointComputeType" + }, + modelProperties: { + appInsightsEnabled: { + serializedName: "appInsightsEnabled", + type: { + name: "Boolean" + } + }, + codeConfiguration: { + serializedName: "codeConfiguration", + type: { + name: "Composite", + className: "CodeConfiguration" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + endpointComputeType: { + serializedName: "endpointComputeType", + required: true, + type: { + name: "String" + } + }, + environmentId: { + serializedName: "environmentId", + type: { + name: "String" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + livenessProbe: { + serializedName: "livenessProbe", + type: { + name: "Composite", + className: "ProbeSettings" + } + }, + model: { + serializedName: "model", + type: { + name: "Composite", + className: "AssetReferenceBase" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + requestSettings: { + serializedName: "requestSettings", + type: { + name: "Composite", + className: "OnlineRequestSettings" + } + }, + scaleSettings: { + serializedName: "scaleSettings", + type: { + name: "Composite", + className: "OnlineScaleSettings" + } + } + } + } +}; + +export const ProbeSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProbeSettings", + modelProperties: { + failureThreshold: { + serializedName: "failureThreshold", + type: { + name: "Number" + } + }, + initialDelay: { + serializedName: "initialDelay", + type: { + name: "TimeSpan" + } + }, + period: { + serializedName: "period", + type: { + name: "TimeSpan" + } + }, + successThreshold: { + serializedName: "successThreshold", + type: { + name: "Number" + } + }, + timeout: { + serializedName: "timeout", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const OnlineRequestSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineRequestSettings", + modelProperties: { + maxConcurrentRequestsPerInstance: { + serializedName: "maxConcurrentRequestsPerInstance", + type: { + name: "Number" + } + }, + maxQueueWait: { + serializedName: "maxQueueWait", + type: { + name: "TimeSpan" + } + }, + requestTimeout: { + serializedName: "requestTimeout", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const OnlineScaleSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineScaleSettings", + uberParent: "OnlineScaleSettings", + polymorphicDiscriminator: { + serializedName: "scaleType", + clientName: "scaleType" + }, + modelProperties: { + maxInstances: { + serializedName: "maxInstances", + type: { + name: "Number" + } + }, + minInstances: { + serializedName: "minInstances", + type: { + name: "Number" + } + }, + scaleType: { + serializedName: "scaleType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const PartialOnlineDeploymentPartialTrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialOnlineDeploymentPartialTrackedResource", + modelProperties: { + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "PartialOnlineDeployment" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const PartialOnlineDeployment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialOnlineDeployment", + uberParent: "PartialOnlineDeployment", + polymorphicDiscriminator: { + serializedName: "endpointComputeType", + clientName: "endpointComputeType" + }, + modelProperties: { + appInsightsEnabled: { + serializedName: "appInsightsEnabled", + type: { + name: "Boolean" + } + }, + endpointComputeType: { + serializedName: "endpointComputeType", + required: true, + type: { + name: "String" + } + }, + livenessProbe: { + serializedName: "livenessProbe", + type: { + name: "Composite", + className: "ProbeSettings" + } + }, + requestSettings: { + serializedName: "requestSettings", + type: { + name: "Composite", + className: "OnlineRequestSettings" + } + }, + scaleSettings: { + serializedName: "scaleSettings", + type: { + name: "Composite", + className: "OnlineScaleSettings" + } + } + } + } +}; + +export const DeploymentLogsRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeploymentLogsRequest", + modelProperties: { + containerType: { + serializedName: "containerType", + type: { + name: "String" + } + }, + tail: { + serializedName: "tail", + type: { + name: "Number" + } + } + } + } +}; + +export const DeploymentLogs: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeploymentLogs", + modelProperties: { + content: { + serializedName: "content", + type: { + name: "String" + } + } + } + } +}; + +export const RegenerateEndpointKeysRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegenerateEndpointKeysRequest", + modelProperties: { + keyType: { + serializedName: "keyType", + required: true, + type: { + name: "String" + } + }, + keyValue: { + serializedName: "keyValue", + type: { + name: "String" + } + } + } + } +}; + +export const EndpointAuthToken: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointAuthToken", + modelProperties: { + accessToken: { + serializedName: "accessToken", + type: { + name: "String" + } + }, + expiryTimeUtc: { + serializedName: "expiryTimeUtc", + type: { + name: "Number" + } + }, + refreshAfterTimeUtc: { + serializedName: "refreshAfterTimeUtc", + type: { + name: "Number" + } + }, + tokenType: { + serializedName: "tokenType", + type: { + name: "String" + } + } + } + } +}; + +export const ListAmlUserFeatureResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListAmlUserFeatureResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AmlUserFeature" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const AmlUserFeature: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlUserFeature", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const SkuListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SkuListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceSku" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceSku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceSku", + modelProperties: { + locations: { + serializedName: "locations", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + locationInfo: { + serializedName: "locationInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuLocationInfo" + } + } + } + }, + tier: { + serializedName: "tier", + readOnly: true, + type: { + name: "String" + } + }, + resourceType: { + serializedName: "resourceType", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + capabilities: { + serializedName: "capabilities", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SKUCapability" + } + } + } + }, + restrictions: { + serializedName: "restrictions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Restriction" + } + } + } + } + } + } +}; + +export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuLocationInfo", + modelProperties: { + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, + zones: { + serializedName: "zones", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + zoneDetails: { + serializedName: "zoneDetails", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuZoneDetails" + } + } + } + } + } + } +}; + +export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuZoneDetails", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + capabilities: { + serializedName: "capabilities", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SKUCapability" + } + } + } + } + } + } +}; + +export const SKUCapability: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SKUCapability", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const Restriction: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Restriction", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + values: { + serializedName: "values", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + reasonCode: { + serializedName: "reasonCode", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceId: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceId", + modelProperties: { + id: { + serializedName: "id", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const AKSProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AKSProperties", + modelProperties: { + clusterFqdn: { + serializedName: "clusterFqdn", + type: { + name: "String" + } + }, + systemServices: { + serializedName: "systemServices", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SystemService" + } + } + } + }, + agentCount: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "agentCount", + type: { + name: "Number" + } + }, + agentVmSize: { + serializedName: "agentVmSize", + type: { + name: "String" + } + }, + clusterPurpose: { + defaultValue: "FastProd", + serializedName: "clusterPurpose", + type: { + name: "String" + } + }, + sslConfiguration: { + serializedName: "sslConfiguration", + type: { + name: "Composite", + className: "SslConfiguration" + } + }, + aksNetworkingConfiguration: { + serializedName: "aksNetworkingConfiguration", + type: { + name: "Composite", + className: "AksNetworkingConfiguration" + } + }, + loadBalancerType: { + defaultValue: "PublicIp", + serializedName: "loadBalancerType", + type: { + name: "String" + } + }, + loadBalancerSubnet: { + serializedName: "loadBalancerSubnet", + type: { + name: "String" + } + } + } + } +}; + +export const SystemService: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SystemService", + modelProperties: { + systemServiceType: { + serializedName: "systemServiceType", + readOnly: true, + type: { + name: "String" + } + }, + publicIpAddress: { + serializedName: "publicIpAddress", + readOnly: true, + type: { + name: "String" + } + }, + version: { + serializedName: "version", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const SslConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SslConfiguration", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" + } + }, + cert: { + serializedName: "cert", + type: { + name: "String" + } + }, + key: { + serializedName: "key", + type: { + name: "String" + } + }, + cname: { + serializedName: "cname", + type: { + name: "String" + } + }, + leafDomainLabel: { + serializedName: "leafDomainLabel", + type: { + name: "String" + } + }, + overwriteExistingDomain: { + serializedName: "overwriteExistingDomain", + type: { + name: "Boolean" + } + } + } + } +}; + +export const AksNetworkingConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AksNetworkingConfiguration", + modelProperties: { + subnetId: { + serializedName: "subnetId", + type: { + name: "String" + } + }, + serviceCidr: { + constraints: { + Pattern: new RegExp( + "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$" + ) + }, + serializedName: "serviceCidr", + type: { + name: "String" + } + }, + dnsServiceIP: { + constraints: { + Pattern: new RegExp( + "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$" + ) + }, + serializedName: "dnsServiceIP", + type: { + name: "String" + } + }, + dockerBridgeCidr: { + constraints: { + Pattern: new RegExp( + "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$" + ) + }, + serializedName: "dockerBridgeCidr", + type: { + name: "String" + } + } + } + } +}; + +export const AmlComputeProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlComputeProperties", + modelProperties: { + osType: { + defaultValue: "Linux", + serializedName: "osType", + type: { + name: "String" + } + }, + vmSize: { + serializedName: "vmSize", + type: { + name: "String" + } + }, + vmPriority: { + serializedName: "vmPriority", + type: { + name: "String" + } + }, + virtualMachineImage: { + serializedName: "virtualMachineImage", + type: { + name: "Composite", + className: "VirtualMachineImage" + } + }, + isolatedNetwork: { + serializedName: "isolatedNetwork", + type: { + name: "Boolean" + } + }, + scaleSettings: { + serializedName: "scaleSettings", + type: { + name: "Composite", + className: "ScaleSettings" + } + }, + userAccountCredentials: { + serializedName: "userAccountCredentials", + type: { + name: "Composite", + className: "UserAccountCredentials" + } + }, + subnet: { + serializedName: "subnet", + type: { + name: "Composite", + className: "ResourceId" + } + }, + remoteLoginPortPublicAccess: { + defaultValue: "NotSpecified", + serializedName: "remoteLoginPortPublicAccess", + type: { + name: "String" + } + }, + allocationState: { + serializedName: "allocationState", + readOnly: true, + type: { + name: "String" + } + }, + allocationStateTransitionTime: { + serializedName: "allocationStateTransitionTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + errors: { + serializedName: "errors", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponse" + } + } + } + }, + currentNodeCount: { + serializedName: "currentNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + targetNodeCount: { + serializedName: "targetNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + nodeStateCounts: { + serializedName: "nodeStateCounts", + type: { + name: "Composite", + className: "NodeStateCounts" + } + }, + enableNodePublicIp: { + defaultValue: true, + serializedName: "enableNodePublicIp", + type: { + name: "Boolean" + } + } + } + } +}; + +export const VirtualMachineImage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineImage", + modelProperties: { + id: { + serializedName: "id", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const UserAccountCredentials: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserAccountCredentials", + modelProperties: { + adminUserName: { + serializedName: "adminUserName", + required: true, + type: { + name: "String" + } + }, + adminUserSshPublicKey: { + serializedName: "adminUserSshPublicKey", + type: { + name: "String" + } + }, + adminUserPassword: { + serializedName: "adminUserPassword", + type: { + name: "String" + } + } + } + } +}; + +export const NodeStateCounts: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NodeStateCounts", + modelProperties: { + idleNodeCount: { + serializedName: "idleNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + runningNodeCount: { + serializedName: "runningNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + preparingNodeCount: { + serializedName: "preparingNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + unusableNodeCount: { + serializedName: "unusableNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + leavingNodeCount: { + serializedName: "leavingNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + preemptedNodeCount: { + serializedName: "preemptedNodeCount", + readOnly: true, + type: { + name: "Number" + } + } + } + } +}; + +export const ComputeInstanceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceProperties", + modelProperties: { + vmSize: { + serializedName: "vmSize", + type: { + name: "String" + } + }, + subnet: { + serializedName: "subnet", + type: { + name: "Composite", + className: "ResourceId" + } + }, + applicationSharingPolicy: { + defaultValue: "Shared", + serializedName: "applicationSharingPolicy", + type: { + name: "String" + } + }, + sshSettings: { + serializedName: "sshSettings", + type: { + name: "Composite", + className: "ComputeInstanceSshSettings" + } + }, + connectivityEndpoints: { + serializedName: "connectivityEndpoints", + type: { + name: "Composite", + className: "ComputeInstanceConnectivityEndpoints" + } + }, + applications: { + serializedName: "applications", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeInstanceApplication" + } + } + } + }, + createdBy: { + serializedName: "createdBy", + type: { + name: "Composite", + className: "ComputeInstanceCreatedBy" + } + }, + errors: { + serializedName: "errors", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponse" + } + } + } + }, + state: { + serializedName: "state", + readOnly: true, + type: { + name: "String" + } + }, + computeInstanceAuthorizationType: { + defaultValue: "personal", + serializedName: "computeInstanceAuthorizationType", + type: { + name: "String" + } + }, + personalComputeInstanceSettings: { + serializedName: "personalComputeInstanceSettings", + type: { + name: "Composite", + className: "PersonalComputeInstanceSettings" + } + }, + setupScripts: { + serializedName: "setupScripts", + type: { + name: "Composite", + className: "SetupScripts" + } + }, + lastOperation: { + serializedName: "lastOperation", + type: { + name: "Composite", + className: "ComputeInstanceLastOperation" + } + }, + schedules: { + serializedName: "schedules", + type: { + name: "Composite", + className: "ComputeSchedules" + } + } + } + } +}; + +export const ComputeInstanceSshSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceSshSettings", + modelProperties: { + sshPublicAccess: { + defaultValue: "Disabled", + serializedName: "sshPublicAccess", + type: { + name: "String" + } + }, + adminUserName: { + serializedName: "adminUserName", + readOnly: true, + type: { + name: "String" + } + }, + sshPort: { + serializedName: "sshPort", + readOnly: true, + type: { + name: "Number" + } + }, + adminPublicKey: { + serializedName: "adminPublicKey", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceConnectivityEndpoints: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceConnectivityEndpoints", + modelProperties: { + publicIpAddress: { + serializedName: "publicIpAddress", + readOnly: true, + type: { + name: "String" + } + }, + privateIpAddress: { + serializedName: "privateIpAddress", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceApplication: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceApplication", + modelProperties: { + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + endpointUri: { + serializedName: "endpointUri", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceCreatedBy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceCreatedBy", + modelProperties: { + userName: { + serializedName: "userName", + readOnly: true, + type: { + name: "String" + } + }, + userOrgId: { + serializedName: "userOrgId", + readOnly: true, + type: { + name: "String" + } + }, + userId: { + serializedName: "userId", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PersonalComputeInstanceSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PersonalComputeInstanceSettings", + modelProperties: { + assignedUser: { + serializedName: "assignedUser", + type: { + name: "Composite", + className: "AssignedUser" + } + } + } + } +}; + +export const AssignedUser: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssignedUser", + modelProperties: { + objectId: { + serializedName: "objectId", + required: true, + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const SetupScripts: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SetupScripts", + modelProperties: { + scripts: { + serializedName: "scripts", + type: { + name: "Composite", + className: "ScriptsToExecute" + } + } + } + } +}; + +export const ScriptsToExecute: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScriptsToExecute", + modelProperties: { + startupScript: { + serializedName: "startupScript", + type: { + name: "Composite", + className: "ScriptReference" + } + }, + creationScript: { + serializedName: "creationScript", + type: { + name: "Composite", + className: "ScriptReference" + } + } + } + } +}; + +export const ScriptReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScriptReference", + modelProperties: { + scriptSource: { + serializedName: "scriptSource", + type: { + name: "String" + } + }, + scriptData: { + serializedName: "scriptData", + type: { + name: "String" + } + }, + scriptArguments: { + serializedName: "scriptArguments", + type: { + name: "String" + } + }, + timeout: { + serializedName: "timeout", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceLastOperation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceLastOperation", + modelProperties: { + operationName: { + serializedName: "operationName", + type: { + name: "String" + } + }, + operationTime: { + serializedName: "operationTime", + type: { + name: "DateTime" + } + }, + operationStatus: { + serializedName: "operationStatus", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualMachineProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineProperties", + modelProperties: { + virtualMachineSize: { + serializedName: "virtualMachineSize", + type: { + name: "String" + } + }, + sshPort: { + serializedName: "sshPort", + type: { + name: "Number" + } + }, + address: { + serializedName: "address", + type: { + name: "String" + } + }, + administratorAccount: { + serializedName: "administratorAccount", + type: { + name: "Composite", + className: "VirtualMachineSshCredentials" + } + }, + isNotebookInstanceCompute: { + serializedName: "isNotebookInstanceCompute", + type: { + name: "Boolean" + } + } + } + } +}; + +export const VirtualMachineSshCredentials: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineSshCredentials", + modelProperties: { + username: { + serializedName: "username", + type: { + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + }, + publicKeyData: { + serializedName: "publicKeyData", + type: { + name: "String" + } + }, + privateKeyData: { + serializedName: "privateKeyData", + type: { + name: "String" + } + } + } + } +}; + +export const HDInsightProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HDInsightProperties", + modelProperties: { + sshPort: { + serializedName: "sshPort", + type: { + name: "Number" + } + }, + address: { + serializedName: "address", + type: { + name: "String" + } + }, + administratorAccount: { + serializedName: "administratorAccount", + type: { + name: "Composite", + className: "VirtualMachineSshCredentials" + } + } + } + } +}; + +export const DatabricksProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabricksProperties", + modelProperties: { + databricksAccessToken: { + serializedName: "databricksAccessToken", + type: { + name: "String" + } + }, + workspaceUrl: { + serializedName: "workspaceUrl", + type: { + name: "String" + } + } + } + } +}; + +export const DataLakeAnalyticsProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataLakeAnalyticsProperties", + modelProperties: { + dataLakeStoreAccountName: { + serializedName: "dataLakeStoreAccountName", + type: { + name: "String" + } + } + } + } +}; + +export const SynapseSparkPoolProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SynapseSparkPoolProperties", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "SynapseSparkPoolPropertiesAutoGenerated" + } + } + } + } +}; + +export const SynapseSparkPoolPropertiesAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SynapseSparkPoolPropertiesAutoGenerated", + modelProperties: { + autoScaleProperties: { + serializedName: "autoScaleProperties", + type: { + name: "Composite", + className: "AutoScaleProperties" + } + }, + autoPauseProperties: { + serializedName: "autoPauseProperties", + type: { + name: "Composite", + className: "AutoPauseProperties" + } + }, + sparkVersion: { + serializedName: "sparkVersion", + type: { + name: "String" + } + }, + nodeCount: { + serializedName: "nodeCount", + type: { + name: "Number" + } + }, + nodeSize: { + serializedName: "nodeSize", + type: { + name: "String" + } + }, + nodeSizeFamily: { + serializedName: "nodeSizeFamily", + type: { + name: "String" + } + }, + subscriptionId: { + serializedName: "subscriptionId", + type: { + name: "String" + } + }, + resourceGroup: { + serializedName: "resourceGroup", + type: { + name: "String" + } + }, + workspaceName: { + serializedName: "workspaceName", + type: { + name: "String" + } + }, + poolName: { + serializedName: "poolName", + type: { + name: "String" + } + } + } + } +}; + +export const AutoScaleProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutoScaleProperties", + modelProperties: { + minNodeCount: { + serializedName: "minNodeCount", + type: { + name: "Number" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + maxNodeCount: { + serializedName: "maxNodeCount", + type: { + name: "Number" + } + } + } + } +}; + +export const AutoPauseProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutoPauseProperties", + modelProperties: { + delayInMinutes: { + serializedName: "delayInMinutes", + type: { + name: "Number" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ServicePrincipalCredentials: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServicePrincipalCredentials", + modelProperties: { + clientId: { + serializedName: "clientId", + required: true, + type: { + name: "String" + } + }, + clientSecret: { + serializedName: "clientSecret", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ContainerResourceRequirements: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContainerResourceRequirements", + modelProperties: { + cpu: { + serializedName: "cpu", + type: { + name: "Number" + } + }, + cpuLimit: { + serializedName: "cpuLimit", + type: { + name: "Number" + } + }, + memoryInGB: { + serializedName: "memoryInGB", + type: { + name: "Number" + } + }, + memoryInGBLimit: { + serializedName: "memoryInGBLimit", + type: { + name: "Number" + } + }, + gpu: { + serializedName: "gpu", + type: { + name: "Number" + } + }, + fpga: { + serializedName: "fpga", + type: { + name: "Number" + } + } + } + } +}; + +export const DatastoreCredentials: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: { + serializedName: "credentialsType", + clientName: "credentialsType" + }, + modelProperties: { + credentialsType: { + serializedName: "credentialsType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const IdentityConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IdentityConfiguration", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: { + serializedName: "identityType", + clientName: "identityType" + }, + modelProperties: { + identityType: { + serializedName: "identityType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const EarlyTerminationPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EarlyTerminationPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: { + serializedName: "policyType", + clientName: "policyType" + }, + modelProperties: { + delayEvaluation: { + serializedName: "delayEvaluation", + type: { + name: "Number" + } + }, + evaluationInterval: { + serializedName: "evaluationInterval", + type: { + name: "Number" + } + }, + policyType: { + serializedName: "policyType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const DistributionConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DistributionConfiguration", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: { + serializedName: "distributionType", + clientName: "distributionType" + }, + modelProperties: { + distributionType: { + serializedName: "distributionType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const InputDataBinding: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InputDataBinding", + modelProperties: { + dataId: { + serializedName: "dataId", + type: { + name: "String" + } + }, + mode: { + serializedName: "mode", + type: { + name: "String" + } + }, + pathOnCompute: { + serializedName: "pathOnCompute", + type: { + name: "String" + } + } + } + } +}; + +export const JobOutput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobOutput", + modelProperties: { + datastoreId: { + serializedName: "datastoreId", + readOnly: true, + type: { + name: "String" + } + }, + path: { + serializedName: "path", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const OutputDataBinding: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OutputDataBinding", + modelProperties: { + datastoreId: { + serializedName: "datastoreId", + type: { + name: "String" + } + }, + mode: { + serializedName: "mode", + type: { + name: "String" + } + }, + pathOnCompute: { + serializedName: "pathOnCompute", + type: { + name: "String" + } + }, + pathOnDatastore: { + serializedName: "pathOnDatastore", + type: { + name: "String" + } + } + } + } +}; + +export const Objective: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Objective", + modelProperties: { + goal: { + serializedName: "goal", + required: true, + type: { + name: "String" + } + }, + primaryMetric: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "primaryMetric", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const TrialComponent: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrialComponent", + modelProperties: { + codeId: { + serializedName: "codeId", + type: { + name: "String" + } + }, + command: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "command", + required: true, + type: { + name: "String" + } + }, + distribution: { + serializedName: "distribution", + type: { + name: "Composite", + className: "DistributionConfiguration" + } + }, + environmentId: { + serializedName: "environmentId", + type: { + name: "String" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + inputDataBindings: { + serializedName: "inputDataBindings", + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "InputDataBinding" } } + } + }, + outputDataBindings: { + serializedName: "outputDataBindings", + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "OutputDataBinding" } } + } + }, + timeout: { + serializedName: "timeout", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const PrivateEndpointConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint" + } + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const Workspace: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Workspace", + modelProperties: { + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + workspaceId: { + serializedName: "properties.workspaceId", + readOnly: true, + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + friendlyName: { + serializedName: "properties.friendlyName", + type: { + name: "String" + } + }, + keyVault: { + serializedName: "properties.keyVault", + type: { + name: "String" + } + }, + applicationInsights: { + serializedName: "properties.applicationInsights", + type: { + name: "String" + } + }, + containerRegistry: { + serializedName: "properties.containerRegistry", + nullable: true, + type: { + name: "String" + } + }, + storageAccount: { + serializedName: "properties.storageAccount", + type: { + name: "String" + } + }, + discoveryUrl: { + serializedName: "properties.discoveryUrl", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "EncryptionProperty" + } + }, + hbiWorkspace: { + 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: { + serializedName: "properties.allowPublicAccessWhenBehindVnet", + type: { + name: "Boolean" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + sharedPrivateLinkResources: { + serializedName: "properties.sharedPrivateLinkResources", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedPrivateLinkResource" + } + } + } + }, + notebookInfo: { + serializedName: "properties.notebookInfo", + type: { + name: "Composite", + className: "NotebookResourceInfo" + } + }, + serviceManagedResourcesSettings: { + serializedName: "properties.serviceManagedResourcesSettings", + type: { + name: "Composite", + className: "ServiceManagedResourcesSettings" + } + }, + primaryUserAssignedIdentity: { + serializedName: "properties.primaryUserAssignedIdentity", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "properties.tenantId", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ComputeResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeResource", + modelProperties: { + ...Resource.type.modelProperties, + ...Components1D3SwueSchemasComputeresourceAllof1.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const PrivateLinkResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + groupId: { + 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 TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + location: { + serializedName: "location", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const CodeContainerResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CodeContainerResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CodeContainer" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const CodeVersionResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CodeVersionResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CodeVersion" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const DataContainerResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataContainerResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataContainer" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const DataVersionResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataVersionResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataVersion" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const DatastorePropertiesResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatastorePropertiesResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DatastoreProperties" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const EnvironmentContainerResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentContainerResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "EnvironmentContainer" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const EnvironmentSpecificationVersionResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentSpecificationVersionResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "EnvironmentSpecificationVersion" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const JobBaseResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobBaseResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "JobBase" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const LabelingJobResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelingJobResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "LabelingJob" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const ModelContainerResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelContainerResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ModelContainer" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const ModelVersionResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelVersionResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ModelVersion" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const Aks: coreClient.CompositeMapper = { + serializedName: "AKS", + type: { + name: "Composite", + className: "Aks", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AKSProperties" + } + } + } + } +}; + +export const AmlCompute: coreClient.CompositeMapper = { + serializedName: "AmlCompute", + type: { + name: "Composite", + className: "AmlCompute", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AmlComputeProperties" + } + } + } + } +}; + +export const ComputeInstance: coreClient.CompositeMapper = { + serializedName: "ComputeInstance", + type: { + name: "Composite", + className: "ComputeInstance", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ComputeInstanceProperties" + } + } + } + } +}; + +export const VirtualMachine: coreClient.CompositeMapper = { + serializedName: "VirtualMachine", + type: { + name: "Composite", + className: "VirtualMachine", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "VirtualMachineProperties" + } + } + } + } +}; + +export const HDInsight: coreClient.CompositeMapper = { + serializedName: "HDInsight", + type: { + name: "Composite", + className: "HDInsight", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "HDInsightProperties" + } + } + } + } +}; + +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, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DatabricksProperties" + } + } + } + } +}; + +export const DataLakeAnalytics: coreClient.CompositeMapper = { + serializedName: "DataLakeAnalytics", + type: { + name: "Composite", + className: "DataLakeAnalytics", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataLakeAnalyticsProperties" + } + } + } + } +}; + +export const SynapseSpark: coreClient.CompositeMapper = { + serializedName: "SynapseSpark", + type: { + name: "Composite", + className: "SynapseSpark", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...SynapseSparkPoolProperties.type.modelProperties + } + } +}; + +export const AmlComputeNodesInformation: coreClient.CompositeMapper = { + serializedName: "AmlCompute", + type: { + name: "Composite", + className: "AmlComputeNodesInformation", + uberParent: "ComputeNodesInformation", + polymorphicDiscriminator: + ComputeNodesInformation.type.polymorphicDiscriminator, + modelProperties: { + ...ComputeNodesInformation.type.modelProperties, + nodes: { + serializedName: "nodes", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AmlComputeNodeInformation" + } + } + } + } + } + } +}; + +export const AksComputeSecrets: coreClient.CompositeMapper = { + serializedName: "AKS", + type: { + name: "Composite", + className: "AksComputeSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...ComputeSecrets.type.modelProperties, + userKubeConfig: { + serializedName: "userKubeConfig", + type: { + name: "String" + } + }, + adminKubeConfig: { + serializedName: "adminKubeConfig", + type: { + name: "String" + } + }, + imagePullSecretName: { + serializedName: "imagePullSecretName", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualMachineSecrets: coreClient.CompositeMapper = { + serializedName: "VirtualMachine", + type: { + name: "Composite", + className: "VirtualMachineSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...ComputeSecrets.type.modelProperties, + administratorAccount: { + serializedName: "administratorAccount", + type: { + name: "Composite", + className: "VirtualMachineSshCredentials" + } + } + } + } +}; + +export const DatabricksComputeSecrets: coreClient.CompositeMapper = { + serializedName: "Databricks", + type: { + name: "Composite", + className: "DatabricksComputeSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...ComputeSecrets.type.modelProperties, + databricksAccessToken: { + serializedName: "databricksAccessToken", + type: { + name: "String" + } + } + } + } +}; + +export const DataPathAssetReference: coreClient.CompositeMapper = { + serializedName: "DataPath", + type: { + name: "Composite", + className: "DataPathAssetReference", + uberParent: "AssetReferenceBase", + polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + modelProperties: { + ...AssetReferenceBase.type.modelProperties, + datastoreId: { + serializedName: "datastoreId", + type: { + name: "String" + } + }, + path: { + serializedName: "path", + type: { + name: "String" + } + } + } + } +}; + +export const IdAssetReference: coreClient.CompositeMapper = { + serializedName: "Id", + type: { + name: "Composite", + className: "IdAssetReference", + uberParent: "AssetReferenceBase", + polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + modelProperties: { + ...AssetReferenceBase.type.modelProperties, + assetId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "assetId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const OutputPathAssetReference: coreClient.CompositeMapper = { + serializedName: "OutputPath", + type: { + name: "Composite", + className: "OutputPathAssetReference", + uberParent: "AssetReferenceBase", + polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + modelProperties: { + ...AssetReferenceBase.type.modelProperties, + jobId: { + serializedName: "jobId", + type: { + name: "String" + } + }, + path: { + serializedName: "path", + type: { + name: "String" + } + } + } + } +}; + +export const AzureBlobContents: coreClient.CompositeMapper = { + serializedName: "AzureBlob", + type: { + name: "Composite", + className: "AzureBlobContents", + uberParent: "DatastoreContents", + polymorphicDiscriminator: DatastoreContents.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreContents.type.modelProperties, + accountName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "accountName", + required: true, + type: { + name: "String" + } + }, + containerName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "containerName", + required: true, + type: { + name: "String" + } + }, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "DatastoreCredentials" + } + }, + endpoint: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "endpoint", + required: true, + type: { + name: "String" + } + }, + protocol: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "protocol", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const AzureDataLakeGen1Contents: coreClient.CompositeMapper = { + serializedName: "AzureDataLakeGen1", + type: { + name: "Composite", + className: "AzureDataLakeGen1Contents", + uberParent: "DatastoreContents", + polymorphicDiscriminator: DatastoreContents.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreContents.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "DatastoreCredentials" + } + }, + storeName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "storeName", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const AzureDataLakeGen2Contents: coreClient.CompositeMapper = { + serializedName: "AzureDataLakeGen2", + type: { + name: "Composite", + className: "AzureDataLakeGen2Contents", + uberParent: "DatastoreContents", + polymorphicDiscriminator: DatastoreContents.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreContents.type.modelProperties, + accountName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "accountName", + required: true, + type: { + name: "String" + } + }, + containerName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "containerName", + required: true, + type: { + name: "String" + } + }, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "DatastoreCredentials" + } + }, + endpoint: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "endpoint", + required: true, + type: { + name: "String" + } + }, + protocol: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "protocol", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const AzureFileContents: coreClient.CompositeMapper = { + serializedName: "AzureFile", + type: { + name: "Composite", + className: "AzureFileContents", + uberParent: "DatastoreContents", + polymorphicDiscriminator: DatastoreContents.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreContents.type.modelProperties, + accountName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "accountName", + required: true, + type: { + name: "String" + } + }, + containerName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "containerName", + required: true, + type: { + name: "String" + } + }, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "DatastoreCredentials" + } + }, + endpoint: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "endpoint", + required: true, + type: { + name: "String" + } + }, + protocol: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "protocol", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const AzurePostgreSqlContents: coreClient.CompositeMapper = { + serializedName: "AzurePostgreSql", + type: { + name: "Composite", + className: "AzurePostgreSqlContents", + uberParent: "DatastoreContents", + polymorphicDiscriminator: DatastoreContents.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreContents.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "DatastoreCredentials" + } + }, + databaseName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "databaseName", + required: true, + type: { + name: "String" + } + }, + enableSSL: { + serializedName: "enableSSL", + type: { + name: "Boolean" + } + }, + endpoint: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "endpoint", + required: true, + type: { + name: "String" + } + }, + portNumber: { + serializedName: "portNumber", + required: true, + type: { + name: "Number" + } + }, + serverName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "serverName", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const AzureSqlDatabaseContents: coreClient.CompositeMapper = { + serializedName: "AzureSqlDatabase", + type: { + name: "Composite", + className: "AzureSqlDatabaseContents", + uberParent: "DatastoreContents", + polymorphicDiscriminator: DatastoreContents.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreContents.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "DatastoreCredentials" + } + }, + databaseName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "databaseName", + required: true, + type: { + name: "String" + } + }, + endpoint: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "endpoint", + required: true, + type: { + name: "String" + } + }, + portNumber: { + serializedName: "portNumber", + required: true, + type: { + name: "Number" + } + }, + serverName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "serverName", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const GlusterFsContents: coreClient.CompositeMapper = { + serializedName: "GlusterFs", + type: { + name: "Composite", + className: "GlusterFsContents", + uberParent: "DatastoreContents", + polymorphicDiscriminator: DatastoreContents.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreContents.type.modelProperties, + serverAddress: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "serverAddress", + required: true, + type: { + name: "String" + } + }, + volumeName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "volumeName", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const AccountKeyDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "AccountKey", + type: { + name: "Composite", + className: "AccountKeyDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + key: { + serializedName: "key", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "Certificate", + type: { + name: "Composite", + className: "CertificateDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + certificate: { + serializedName: "certificate", + type: { + name: "String" + } + } + } + } +}; + +export const NoneDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "None", + type: { + name: "Composite", + className: "NoneDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties + } + } +}; + +export const SasDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "Sas", + type: { + name: "Composite", + className: "SasDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + sasToken: { + serializedName: "sasToken", + type: { + name: "String" + } + } + } + } +}; + +export const ServicePrincipalDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "ServicePrincipal", + type: { + name: "Composite", + className: "ServicePrincipalDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + clientSecret: { + serializedName: "clientSecret", + type: { + name: "String" + } + } + } + } +}; + +export const SqlAdminDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "SqlAdmin", + type: { + name: "Composite", + className: "SqlAdminDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + password: { + serializedName: "password", + type: { + name: "String" + } + } + } + } +}; + +export const DockerBuild: coreClient.CompositeMapper = { + serializedName: "Build", + type: { + name: "Composite", + className: "DockerBuild", + uberParent: "DockerSpecification", + polymorphicDiscriminator: DockerSpecification.type.polymorphicDiscriminator, + modelProperties: { + ...DockerSpecification.type.modelProperties, + context: { + serializedName: "context", + type: { + name: "String" + } + }, + dockerfile: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "dockerfile", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const DockerImage: coreClient.CompositeMapper = { + serializedName: "Image", + type: { + name: "Composite", + className: "DockerImage", + uberParent: "DockerSpecification", + polymorphicDiscriminator: DockerSpecification.type.polymorphicDiscriminator, + modelProperties: { + ...DockerSpecification.type.modelProperties, + dockerImageUri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "dockerImageUri", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const CommandJob: coreClient.CompositeMapper = { + serializedName: "Command", + type: { + name: "Composite", + className: "CommandJob", + uberParent: "JobBase", + polymorphicDiscriminator: JobBase.type.polymorphicDiscriminator, + modelProperties: { + ...JobBase.type.modelProperties, + codeId: { + serializedName: "codeId", + type: { + name: "String" + } + }, + command: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "command", + required: true, + type: { + name: "String" + } + }, + compute: { + serializedName: "compute", + type: { + name: "Composite", + className: "ComputeConfiguration" + } + }, + distribution: { + serializedName: "distribution", + type: { + name: "Composite", + className: "DistributionConfiguration" + } + }, + environmentId: { + serializedName: "environmentId", + type: { + name: "String" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + experimentName: { + serializedName: "experimentName", + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityConfiguration" + } + }, + inputDataBindings: { + serializedName: "inputDataBindings", + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "InputDataBinding" } } + } + }, + output: { + serializedName: "output", + type: { + name: "Composite", + className: "JobOutput" + } + }, + outputDataBindings: { + serializedName: "outputDataBindings", + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "OutputDataBinding" } } + } + }, + parameters: { + serializedName: "parameters", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + priority: { + serializedName: "priority", + type: { + name: "Number" + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String" + } + }, + timeout: { + serializedName: "timeout", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const SweepJob: coreClient.CompositeMapper = { + serializedName: "Sweep", + type: { + name: "Composite", + className: "SweepJob", + uberParent: "JobBase", + polymorphicDiscriminator: JobBase.type.polymorphicDiscriminator, + modelProperties: { + ...JobBase.type.modelProperties, + algorithm: { + serializedName: "algorithm", + required: true, + type: { + name: "String" + } + }, + compute: { + serializedName: "compute", + type: { + name: "Composite", + className: "ComputeConfiguration" + } + }, + earlyTermination: { + serializedName: "earlyTermination", + type: { + name: "Composite", + className: "EarlyTerminationPolicy" + } + }, + experimentName: { + serializedName: "experimentName", + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityConfiguration" + } + }, + maxConcurrentTrials: { + serializedName: "maxConcurrentTrials", + type: { + name: "Number" + } + }, + maxTotalTrials: { + serializedName: "maxTotalTrials", + type: { + name: "Number" + } + }, + objective: { + serializedName: "objective", + type: { + name: "Composite", + className: "Objective" + } + }, + output: { + serializedName: "output", + type: { + name: "Composite", + className: "JobOutput" + } + }, + priority: { + serializedName: "priority", + type: { + name: "Number" + } + }, + searchSpace: { + serializedName: "searchSpace", + required: true, + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String" + } + }, + timeout: { + serializedName: "timeout", + type: { + name: "TimeSpan" + } + }, + trial: { + serializedName: "trial", + type: { + name: "Composite", + className: "TrialComponent" + } + } + } + } +}; + +export const LabelingJobImageProperties: coreClient.CompositeMapper = { + serializedName: "Image", + type: { + name: "Composite", + className: "LabelingJobImageProperties", + uberParent: "LabelingJobMediaProperties", + polymorphicDiscriminator: + LabelingJobMediaProperties.type.polymorphicDiscriminator, + modelProperties: { + ...LabelingJobMediaProperties.type.modelProperties, + annotationType: { + serializedName: "annotationType", + type: { + name: "String" + } + } + } + } +}; + +export const LabelingJobTextProperties: coreClient.CompositeMapper = { + serializedName: "Text", + type: { + name: "Composite", + className: "LabelingJobTextProperties", + uberParent: "LabelingJobMediaProperties", + polymorphicDiscriminator: + LabelingJobMediaProperties.type.polymorphicDiscriminator, + modelProperties: { + ...LabelingJobMediaProperties.type.modelProperties, + annotationType: { + serializedName: "annotationType", + type: { + name: "String" + } + } + } + } +}; + +export const CocoExportSummary: coreClient.CompositeMapper = { + serializedName: "Coco", + type: { + name: "Composite", + className: "CocoExportSummary", + uberParent: "ExportSummary", + polymorphicDiscriminator: ExportSummary.type.polymorphicDiscriminator, + modelProperties: { + ...ExportSummary.type.modelProperties, + containerName: { + serializedName: "containerName", + readOnly: true, + type: { + name: "String" + } + }, + snapshotPath: { + serializedName: "snapshotPath", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const CsvExportSummary: coreClient.CompositeMapper = { + serializedName: "CSV", + type: { + name: "Composite", + className: "CsvExportSummary", + uberParent: "ExportSummary", + polymorphicDiscriminator: ExportSummary.type.polymorphicDiscriminator, + modelProperties: { + ...ExportSummary.type.modelProperties, + containerName: { + serializedName: "containerName", + readOnly: true, + type: { + name: "String" + } + }, + snapshotPath: { + serializedName: "snapshotPath", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const DatasetExportSummary: coreClient.CompositeMapper = { + serializedName: "Dataset", + type: { + name: "Composite", + className: "DatasetExportSummary", + uberParent: "ExportSummary", + polymorphicDiscriminator: ExportSummary.type.polymorphicDiscriminator, + modelProperties: { + ...ExportSummary.type.modelProperties, + labeledAssetName: { + serializedName: "labeledAssetName", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const K8SOnlineDeployment: coreClient.CompositeMapper = { + serializedName: "K8S", + type: { + name: "Composite", + className: "K8SOnlineDeployment", + uberParent: "OnlineDeployment", + polymorphicDiscriminator: OnlineDeployment.type.polymorphicDiscriminator, + modelProperties: { + ...OnlineDeployment.type.modelProperties, + containerResourceRequirements: { + serializedName: "containerResourceRequirements", + type: { + name: "Composite", + className: "ContainerResourceRequirements" + } + } + } + } +}; + +export const ManagedOnlineDeployment: coreClient.CompositeMapper = { + serializedName: "Managed", + type: { + name: "Composite", + className: "ManagedOnlineDeployment", + uberParent: "OnlineDeployment", + polymorphicDiscriminator: OnlineDeployment.type.polymorphicDiscriminator, + modelProperties: { + ...OnlineDeployment.type.modelProperties, + instanceType: { + serializedName: "instanceType", + type: { + name: "String" + } + }, + readinessProbe: { + serializedName: "readinessProbe", + type: { + name: "Composite", + className: "ProbeSettings" + } + } + } + } +}; + +export const AutoScaleSettings: coreClient.CompositeMapper = { + serializedName: "Auto", + type: { + name: "Composite", + className: "AutoScaleSettings", + uberParent: "OnlineScaleSettings", + polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, + modelProperties: { + ...OnlineScaleSettings.type.modelProperties, + pollingInterval: { + serializedName: "pollingInterval", + type: { + name: "TimeSpan" + } + }, + targetUtilizationPercentage: { + serializedName: "targetUtilizationPercentage", + type: { + name: "Number" + } + } + } + } +}; + +export const ManualScaleSettings: coreClient.CompositeMapper = { + serializedName: "Manual", + type: { + name: "Composite", + className: "ManualScaleSettings", + uberParent: "OnlineScaleSettings", + polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, + modelProperties: { + ...OnlineScaleSettings.type.modelProperties, + instanceCount: { + serializedName: "instanceCount", + type: { + name: "Number" + } + } + } + } +}; + +export const PartialAksOnlineDeployment: coreClient.CompositeMapper = { + serializedName: "K8S", + type: { + name: "Composite", + className: "PartialAksOnlineDeployment", + uberParent: "PartialOnlineDeployment", + polymorphicDiscriminator: + PartialOnlineDeployment.type.polymorphicDiscriminator, + modelProperties: { + ...PartialOnlineDeployment.type.modelProperties, + containerResourceRequirements: { + serializedName: "containerResourceRequirements", + type: { + name: "Composite", + className: "ContainerResourceRequirements" + } + } + } + } +}; + +export const PartialManagedOnlineDeployment: coreClient.CompositeMapper = { + serializedName: "Managed", + type: { + name: "Composite", + className: "PartialManagedOnlineDeployment", + uberParent: "PartialOnlineDeployment", + polymorphicDiscriminator: + PartialOnlineDeployment.type.polymorphicDiscriminator, + modelProperties: { + ...PartialOnlineDeployment.type.modelProperties, + readinessProbe: { + serializedName: "readinessProbe", + type: { + name: "Composite", + className: "ProbeSettings" + } + } + } + } +}; + +export const AccountKeyDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "AccountKey", + type: { + name: "Composite", + className: "AccountKeyDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "AccountKeyDatastoreSecrets" + } + } + } + } +}; + +export const CertificateDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "Certificate", + type: { + name: "Composite", + className: "CertificateDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + authorityUrl: { + serializedName: "authorityUrl", + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", + required: true, + type: { + name: "Uuid" + } + }, + resourceUri: { + serializedName: "resourceUri", + type: { + name: "String" + } + }, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "CertificateDatastoreSecrets" + } + }, + tenantId: { + serializedName: "tenantId", + required: true, + type: { + name: "Uuid" + } + }, + thumbprint: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "thumbprint", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const NoneDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "None", + type: { + name: "Composite", + className: "NoneDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "NoneDatastoreSecrets" + } + } + } + } +}; + +export const SasDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "Sas", + type: { + name: "Composite", + className: "SasDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "SasDatastoreSecrets" + } + } + } + } +}; + +export const ServicePrincipalDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "ServicePrincipal", + type: { + name: "Composite", + className: "ServicePrincipalDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + authorityUrl: { + serializedName: "authorityUrl", + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", + required: true, + type: { + name: "Uuid" + } + }, + resourceUri: { + serializedName: "resourceUri", + type: { + name: "String" + } + }, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "ServicePrincipalDatastoreSecrets" + } + }, + tenantId: { + serializedName: "tenantId", + required: true, + type: { + name: "Uuid" + } + } + } + } +}; + +export const SqlAdminDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "SqlAdmin", + type: { + name: "Composite", + className: "SqlAdminDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "SqlAdminDatastoreSecrets" + } + }, + userId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "userId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const AmlToken: coreClient.CompositeMapper = { + serializedName: "AMLToken", + type: { + name: "Composite", + className: "AmlToken", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: + IdentityConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...IdentityConfiguration.type.modelProperties + } + } +}; + +export const ManagedIdentity: coreClient.CompositeMapper = { + serializedName: "Managed", + type: { + name: "Composite", + className: "ManagedIdentity", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: + IdentityConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...IdentityConfiguration.type.modelProperties, + clientId: { + serializedName: "clientId", + type: { + name: "Uuid" + } + }, + objectId: { + serializedName: "objectId", + type: { + name: "Uuid" + } + }, + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + } + } + } +}; + +export const BanditPolicy: coreClient.CompositeMapper = { + serializedName: "Bandit", + type: { + name: "Composite", + className: "BanditPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: + EarlyTerminationPolicy.type.polymorphicDiscriminator, + modelProperties: { + ...EarlyTerminationPolicy.type.modelProperties, + slackAmount: { + serializedName: "slackAmount", + type: { + name: "Number" + } + }, + slackFactor: { + serializedName: "slackFactor", + type: { + name: "Number" + } + } + } + } +}; + +export const MedianStoppingPolicy: coreClient.CompositeMapper = { + serializedName: "MedianStopping", + type: { + name: "Composite", + className: "MedianStoppingPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: + EarlyTerminationPolicy.type.polymorphicDiscriminator, + modelProperties: { + ...EarlyTerminationPolicy.type.modelProperties + } + } +}; + +export const TruncationSelectionPolicy: coreClient.CompositeMapper = { + serializedName: "TruncationSelection", + type: { + name: "Composite", + className: "TruncationSelectionPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: + EarlyTerminationPolicy.type.polymorphicDiscriminator, + modelProperties: { + ...EarlyTerminationPolicy.type.modelProperties, + truncationPercentage: { + serializedName: "truncationPercentage", + type: { + name: "Number" + } + } + } + } +}; + +export const Mpi: coreClient.CompositeMapper = { + serializedName: "Mpi", + type: { + name: "Composite", + className: "Mpi", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: + DistributionConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...DistributionConfiguration.type.modelProperties, + processCountPerInstance: { + serializedName: "processCountPerInstance", + type: { + name: "Number" + } + } + } + } +}; + +export const PyTorch: coreClient.CompositeMapper = { + serializedName: "PyTorch", + type: { + name: "Composite", + className: "PyTorch", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: + DistributionConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...DistributionConfiguration.type.modelProperties, + processCount: { + serializedName: "processCount", + type: { + name: "Number" + } + } + } + } +}; + +export const TensorFlow: coreClient.CompositeMapper = { + serializedName: "TensorFlow", + type: { + name: "Composite", + className: "TensorFlow", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: + DistributionConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...DistributionConfiguration.type.modelProperties, + parameterServerCount: { + serializedName: "parameterServerCount", + type: { + name: "Number" + } + }, + workerCount: { + serializedName: "workerCount", + type: { + name: "Number" + } + } + } + } +}; + +export const BatchEndpointTrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchEndpointTrackedResource", + modelProperties: { + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "BatchEndpoint" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const BatchDeploymentTrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchDeploymentTrackedResource", + modelProperties: { + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "BatchDeployment" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const OnlineEndpointTrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnection", + className: "OnlineEndpointTrackedResource", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "ResourceIdentity" } }, - name: { - readOnly: true, - serializedName: "name", + kind: { + serializedName: "kind", type: { name: "String" } }, - type: { - readOnly: true, - serializedName: "type", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "OnlineEndpoint" } }, - category: { - serializedName: "properties.category", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const OnlineDeploymentTrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineDeploymentTrackedResource", + modelProperties: { + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceIdentity" } }, - target: { - serializedName: "properties.target", + kind: { + serializedName: "kind", type: { name: "String" } }, - authType: { - serializedName: "properties.authType", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "OnlineDeployment" } }, - value: { - serializedName: "properties.value", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } } } } }; -export const WorkspaceConnectionDto: msRest.CompositeMapper = { - serializedName: "WorkspaceConnectionDto", +export const ComputeCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionDto", + className: "ComputeCreateOrUpdateHeaders", modelProperties: { - name: { - serializedName: "name", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } - }, - category: { - serializedName: "properties.category", + } + } + } +}; + +export const ComputeDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeDeleteHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } }, - target: { - serializedName: "properties.target", + location: { + serializedName: "location", type: { name: "String" } + } + } + } +}; + +export const JobsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobsDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } }, - authType: { - serializedName: "properties.authType", + location: { + serializedName: "location", type: { name: "String" } }, - value: { - serializedName: "properties.value", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } } }; -export const MachineLearningComputeCreateOrUpdateHeaders: msRest.CompositeMapper = { - serializedName: "machinelearningcompute-createorupdate-headers", +export const LabelingJobsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MachineLearningComputeCreateOrUpdateHeaders", + className: "LabelingJobsCreateOrUpdateHeaders", modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { @@ -3023,130 +8761,131 @@ export const MachineLearningComputeCreateOrUpdateHeaders: msRest.CompositeMapper } }; -export const MachineLearningComputeDeleteHeaders: msRest.CompositeMapper = { - serializedName: "machinelearningcompute-delete-headers", +export const LabelingJobsExportLabelsHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MachineLearningComputeDeleteHeaders", + className: "LabelingJobsExportLabelsHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String" } }, - location: { - serializedName: "location", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } } }; -export const OperationListResult: msRest.CompositeMapper = { - serializedName: "OperationListResult", +export const LabelingJobsResumeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationListResult", + className: "LabelingJobsResumeHeaders", modelProperties: { - value: { - serializedName: "", + location: { + serializedName: "location", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation" - } - } + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" } } } } }; -export const WorkspaceListResult: msRest.CompositeMapper = { - serializedName: "WorkspaceListResult", +export const OnlineEndpointsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceListResult", + className: "OnlineEndpointsDeleteHeaders", modelProperties: { - value: { - serializedName: "", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Workspace" - } - } + name: "TimeSpan" } }, - nextLink: { - serializedName: "nextLink", + location: { + serializedName: "location", type: { name: "String" } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } } } } }; -export const ListAmlUserFeatureResult: msRest.CompositeMapper = { - serializedName: "ListAmlUserFeatureResult", +export const OnlineEndpointsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListAmlUserFeatureResult", + className: "OnlineEndpointsUpdateHeaders", modelProperties: { - value: { - readOnly: true, - serializedName: "", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AmlUserFeature" - } - } + name: "TimeSpan" } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + location: { + serializedName: "location", type: { name: "String" } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } } } } }; -export const ListUsagesResult: msRest.CompositeMapper = { - serializedName: "ListUsagesResult", +export const OnlineEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListUsagesResult", + className: "OnlineEndpointsCreateOrUpdateHeaders", modelProperties: { - value: { - readOnly: true, - serializedName: "", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Usage" - } - } + name: "TimeSpan" } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -3155,106 +8894,106 @@ export const ListUsagesResult: msRest.CompositeMapper = { } }; -export const ListWorkspaceQuotas: msRest.CompositeMapper = { - serializedName: "ListWorkspaceQuotas", +export const OnlineEndpointsRegenerateKeysHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListWorkspaceQuotas", + className: "OnlineEndpointsRegenerateKeysHeaders", modelProperties: { - value: { - readOnly: true, - serializedName: "", + location: { + serializedName: "location", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceQuota" - } - } + name: "String" } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } } }; -export const PaginatedWorkspaceConnectionsList: msRest.CompositeMapper = { - serializedName: "PaginatedWorkspaceConnectionsList", +export const OnlineDeploymentsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PaginatedWorkspaceConnectionsList", + className: "OnlineDeploymentsDeleteHeaders", modelProperties: { - value: { - serializedName: "", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WorkspaceConnection" - } - } + name: "TimeSpan" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" } } } } }; -export const PaginatedComputeResourcesList: msRest.CompositeMapper = { - serializedName: "PaginatedComputeResourcesList", +export const OnlineDeploymentsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PaginatedComputeResourcesList", + className: "OnlineDeploymentsUpdateHeaders", modelProperties: { - value: { - serializedName: "", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeResource" - } - } + name: "TimeSpan" } }, - nextLink: { - serializedName: "nextLink", + location: { + serializedName: "location", type: { name: "String" } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } } } } }; -export const SkuListResult: msRest.CompositeMapper = { - serializedName: "SkuListResult", +export const OnlineDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SkuListResult", + className: "OnlineDeploymentsCreateOrUpdateHeaders", modelProperties: { - value: { - serializedName: "", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WorkspaceSku" - } - } + name: "TimeSpan" } }, - nextLink: { - serializedName: "nextLink", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -3263,21 +9002,80 @@ export const SkuListResult: msRest.CompositeMapper = { } }; -export const discriminators = { - 'Compute' : Compute, - 'Compute.AKS' : AKS, - 'Compute.AmlCompute' : AmlCompute, - 'Compute.ComputeInstance' : ComputeInstance, - 'Compute.VirtualMachine' : VirtualMachine, - 'Compute.HDInsight' : HDInsight, - 'Compute.DataFactory' : DataFactory, - 'Compute.Databricks' : Databricks, - 'Compute.DataLakeAnalytics' : DataLakeAnalytics, - 'ComputeNodesInformation' : ComputeNodesInformation, - 'ComputeNodesInformation.AmlCompute' : AmlComputeNodesInformation, - 'ComputeSecrets' : ComputeSecrets, - 'ComputeSecrets.AKS' : AksComputeSecrets, - 'ComputeSecrets.VirtualMachine' : VirtualMachineSecrets, - 'ComputeSecrets.Databricks' : DatabricksComputeSecrets - +export let discriminators = { + Compute: Compute, + ComputeNodesInformation: ComputeNodesInformation, + ComputeSecrets: ComputeSecrets, + AssetReferenceBase: AssetReferenceBase, + DatastoreContents: DatastoreContents, + DatastoreSecrets: DatastoreSecrets, + DockerSpecification: DockerSpecification, + JobBase: JobBase, + LabelingJobMediaProperties: LabelingJobMediaProperties, + ExportSummary: ExportSummary, + OnlineDeployment: OnlineDeployment, + OnlineScaleSettings: OnlineScaleSettings, + PartialOnlineDeployment: PartialOnlineDeployment, + DatastoreCredentials: DatastoreCredentials, + IdentityConfiguration: IdentityConfiguration, + EarlyTerminationPolicy: EarlyTerminationPolicy, + DistributionConfiguration: DistributionConfiguration, + "Compute.AKS": Aks, + "Compute.AmlCompute": AmlCompute, + "Compute.ComputeInstance": ComputeInstance, + "Compute.VirtualMachine": VirtualMachine, + "Compute.HDInsight": HDInsight, + "Compute.DataFactory": DataFactory, + "Compute.Databricks": Databricks, + "Compute.DataLakeAnalytics": DataLakeAnalytics, + "Compute.SynapseSpark": SynapseSpark, + "ComputeNodesInformation.AmlCompute": AmlComputeNodesInformation, + "ComputeSecrets.AKS": AksComputeSecrets, + "ComputeSecrets.VirtualMachine": VirtualMachineSecrets, + "ComputeSecrets.Databricks": DatabricksComputeSecrets, + "AssetReferenceBase.DataPath": DataPathAssetReference, + "AssetReferenceBase.Id": IdAssetReference, + "AssetReferenceBase.OutputPath": OutputPathAssetReference, + "DatastoreContents.AzureBlob": AzureBlobContents, + "DatastoreContents.AzureDataLakeGen1": AzureDataLakeGen1Contents, + "DatastoreContents.AzureDataLakeGen2": AzureDataLakeGen2Contents, + "DatastoreContents.AzureFile": AzureFileContents, + "DatastoreContents.AzurePostgreSql": AzurePostgreSqlContents, + "DatastoreContents.AzureSqlDatabase": AzureSqlDatabaseContents, + "DatastoreContents.GlusterFs": GlusterFsContents, + "DatastoreSecrets.AccountKey": AccountKeyDatastoreSecrets, + "DatastoreSecrets.Certificate": CertificateDatastoreSecrets, + "DatastoreSecrets.None": NoneDatastoreSecrets, + "DatastoreSecrets.Sas": SasDatastoreSecrets, + "DatastoreSecrets.ServicePrincipal": ServicePrincipalDatastoreSecrets, + "DatastoreSecrets.SqlAdmin": SqlAdminDatastoreSecrets, + "DockerSpecification.Build": DockerBuild, + "DockerSpecification.Image": DockerImage, + "JobBase.Command": CommandJob, + "JobBase.Sweep": SweepJob, + "LabelingJobMediaProperties.Image": LabelingJobImageProperties, + "LabelingJobMediaProperties.Text": LabelingJobTextProperties, + "ExportSummary.Coco": CocoExportSummary, + "ExportSummary.CSV": CsvExportSummary, + "ExportSummary.Dataset": DatasetExportSummary, + "OnlineDeployment.K8S": K8SOnlineDeployment, + "OnlineDeployment.Managed": ManagedOnlineDeployment, + "OnlineScaleSettings.Auto": AutoScaleSettings, + "OnlineScaleSettings.Manual": ManualScaleSettings, + "PartialOnlineDeployment.K8S": PartialAksOnlineDeployment, + "PartialOnlineDeployment.Managed": PartialManagedOnlineDeployment, + "DatastoreCredentials.AccountKey": AccountKeyDatastoreCredentials, + "DatastoreCredentials.Certificate": CertificateDatastoreCredentials, + "DatastoreCredentials.None": NoneDatastoreCredentials, + "DatastoreCredentials.Sas": SasDatastoreCredentials, + "DatastoreCredentials.ServicePrincipal": ServicePrincipalDatastoreCredentials, + "DatastoreCredentials.SqlAdmin": SqlAdminDatastoreCredentials, + "IdentityConfiguration.AMLToken": AmlToken, + "IdentityConfiguration.Managed": ManagedIdentity, + "EarlyTerminationPolicy.Bandit": BanditPolicy, + "EarlyTerminationPolicy.MedianStopping": MedianStoppingPolicy, + "EarlyTerminationPolicy.TruncationSelection": TruncationSelectionPolicy, + "DistributionConfiguration.Mpi": Mpi, + "DistributionConfiguration.PyTorch": PyTorch, + "DistributionConfiguration.TensorFlow": TensorFlow }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/notebooksMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/notebooksMappers.ts deleted file mode 100644 index 3088316919ec..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/notebooksMappers.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - ErrorDetail, - ErrorResponse, - MachineLearningServiceError, - NotebookPreparationError, - NotebookResourceInfo -} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.ts deleted file mode 100644 index ac101ae5f270..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - ErrorDetail, - ErrorResponse, - MachineLearningServiceError, - Operation, - OperationDisplay, - OperationListResult -} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts index 4f5b252b51c1..d7acc38e0124 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts @@ -3,183 +3,729 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import { + OperationParameter, + OperationURLParameter, + OperationQueryParameter +} from "@azure/core-client"; +import { + Workspace as WorkspaceMapper, + WorkspaceUpdateParameters as WorkspaceUpdateParametersMapper, + QuotaUpdateParameters as QuotaUpdateParametersMapper, + ComputeResource as ComputeResourceMapper, + ClusterUpdateParameters as ClusterUpdateParametersMapper, + ComputeSchedules as ComputeSchedulesMapper, + PrivateEndpointConnection as PrivateEndpointConnectionMapper, + WorkspaceConnection as WorkspaceConnectionMapper, + PartialBatchEndpointPartialTrackedResource as PartialBatchEndpointPartialTrackedResourceMapper, + BatchEndpointTrackedResource as BatchEndpointTrackedResourceMapper, + PartialBatchDeploymentPartialTrackedResource as PartialBatchDeploymentPartialTrackedResourceMapper, + BatchDeploymentTrackedResource as BatchDeploymentTrackedResourceMapper, + CodeContainerResource as CodeContainerResourceMapper, + CodeVersionResource as CodeVersionResourceMapper, + DataContainerResource as DataContainerResourceMapper, + DataVersionResource as DataVersionResourceMapper, + DatastorePropertiesResource as DatastorePropertiesResourceMapper, + EnvironmentContainerResource as EnvironmentContainerResourceMapper, + EnvironmentSpecificationVersionResource as EnvironmentSpecificationVersionResourceMapper, + JobBaseResource as JobBaseResourceMapper, + LabelingJobResource as LabelingJobResourceMapper, + ExportSummary as ExportSummaryMapper, + ModelContainerResource as ModelContainerResourceMapper, + ModelVersionResource as ModelVersionResourceMapper, + PartialOnlineEndpointPartialTrackedResource as PartialOnlineEndpointPartialTrackedResourceMapper, + OnlineEndpointTrackedResource as OnlineEndpointTrackedResourceMapper, + RegenerateEndpointKeysRequest as RegenerateEndpointKeysRequestMapper, + PartialOnlineDeploymentPartialTrackedResource as PartialOnlineDeploymentPartialTrackedResourceMapper, + OnlineDeploymentTrackedResource as OnlineDeploymentTrackedResourceMapper, + DeploymentLogsRequest as DeploymentLogsRequestMapper +} from "../models/mappers"; -export const acceptLanguage: msRest.OperationParameter = { - parameterPath: "acceptLanguage", +export const accept: OperationParameter = { + parameterPath: "accept", mapper: { - serializedName: "accept-language", - defaultValue: 'en-US', + defaultValue: "application/json", + isConstant: true, + serializedName: "Accept", type: { name: "String" } } }; -export const apiVersion: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", + +export const $host: OperationURLParameter = { + parameterPath: "$host", mapper: { + serializedName: "$host", required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; + +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2021-03-01-preview", + isConstant: true, serializedName: "api-version", type: { name: "String" } } }; -export const category: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "category" - ], + +export const subscriptionId: OperationURLParameter = { + parameterPath: "subscriptionId", mapper: { - serializedName: "category", + constraints: { + MinLength: 1 + }, + serializedName: "subscriptionId", + required: true, type: { name: "String" } } }; -export const computeName: msRest.OperationURLParameter = { - parameterPath: "computeName", + +export const resourceGroupName: OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + constraints: { + MaxLength: 90, + MinLength: 1 + }, + serializedName: "resourceGroupName", + required: true, + type: { + name: "String" + } + } +}; + +export const workspaceName: OperationURLParameter = { + parameterPath: "workspaceName", + mapper: { + serializedName: "workspaceName", + required: true, + type: { + name: "String" + } + } +}; + +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", + type: { + name: "String" + } + } +}; + +export const parameters: OperationParameter = { + parameterPath: "parameters", + mapper: WorkspaceMapper +}; + +export const parameters1: OperationParameter = { + parameterPath: "parameters", + mapper: WorkspaceUpdateParametersMapper +}; + +export const skip: OperationQueryParameter = { + parameterPath: ["options", "skip"], mapper: { + serializedName: "$skip", + type: { + name: "String" + } + } +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; + +export const location: OperationURLParameter = { + parameterPath: "location", + mapper: { + constraints: { + Pattern: new RegExp("^[-\\w\\._]+$") + }, + serializedName: "location", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters2: OperationParameter = { + parameterPath: "parameters", + mapper: QuotaUpdateParametersMapper +}; + +export const computeName: OperationURLParameter = { + parameterPath: "computeName", + mapper: { serializedName: "computeName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters3: OperationParameter = { + parameterPath: "parameters", + mapper: ComputeResourceMapper +}; + +export const parameters4: OperationParameter = { + parameterPath: "parameters", + mapper: ClusterUpdateParametersMapper +}; + +export const underlyingResourceAction: OperationQueryParameter = { + parameterPath: "underlyingResourceAction", + mapper: { + serializedName: "underlyingResourceAction", + required: true, type: { name: "String" } } }; -export const computeType: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "computeType" - ], + +export const parameters5: OperationParameter = { + parameterPath: ["options", "parameters"], + mapper: ComputeSchedulesMapper +}; + +export const privateEndpointConnectionName: OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", mapper: { - serializedName: "compute-type", + serializedName: "privateEndpointConnectionName", + required: true, type: { name: "String" } } }; -export const connectionName: msRest.OperationURLParameter = { + +export const properties: OperationParameter = { + parameterPath: "properties", + mapper: PrivateEndpointConnectionMapper +}; + +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 parameters6: OperationParameter = { + parameterPath: "parameters", + mapper: WorkspaceConnectionMapper +}; + +export const connectionName: OperationURLParameter = { parameterPath: "connectionName", mapper: { - required: true, serializedName: "connectionName", + required: true, type: { name: "String" } } }; -export const location: msRest.OperationURLParameter = { - parameterPath: "location", + +export const count: OperationQueryParameter = { + parameterPath: ["options", "count"], + mapper: { + serializedName: "count", + type: { + name: "Number" + } + } +}; + +export const endpointName: OperationURLParameter = { + parameterPath: "endpointName", mapper: { + serializedName: "endpointName", required: true, - serializedName: "location", + type: { + name: "String" + } + } +}; + +export const body: OperationParameter = { + parameterPath: "body", + mapper: PartialBatchEndpointPartialTrackedResourceMapper +}; + +export const endpointName1: OperationURLParameter = { + parameterPath: "endpointName", + mapper: { constraints: { - Pattern: /^[-\w\._]+$/ + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") }, + serializedName: "endpointName", + required: true, type: { name: "String" } } }; -export const nextPageLink: msRest.OperationURLParameter = { - parameterPath: "nextPageLink", + +export const body1: OperationParameter = { + parameterPath: "body", + mapper: BatchEndpointTrackedResourceMapper +}; + +export const orderBy: OperationQueryParameter = { + parameterPath: ["options", "orderBy"], mapper: { - required: true, - serializedName: "nextLink", + serializedName: "$orderBy", type: { name: "String" } - }, - skipEncoding: true + } }; -export const privateEndpointConnectionName: msRest.OperationURLParameter = { - parameterPath: "privateEndpointConnectionName", + +export const top: OperationQueryParameter = { + parameterPath: ["options", "top"], mapper: { + serializedName: "$top", + type: { + name: "Number" + } + } +}; + +export const deploymentName: OperationURLParameter = { + parameterPath: "deploymentName", + mapper: { + serializedName: "deploymentName", required: true, - serializedName: "privateEndpointConnectionName", type: { name: "String" } } }; -export const recommended: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "recommended" - ], + +export const body2: OperationParameter = { + parameterPath: "body", + mapper: PartialBatchDeploymentPartialTrackedResourceMapper +}; + +export const deploymentName1: OperationURLParameter = { + parameterPath: "deploymentName", mapper: { - serializedName: "recommended", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "deploymentName", + required: true, type: { - name: "Boolean" + name: "String" } } }; -export const resourceGroupName: msRest.OperationURLParameter = { - parameterPath: "resourceGroupName", + +export const body3: OperationParameter = { + parameterPath: "body", + mapper: BatchDeploymentTrackedResourceMapper +}; + +export const name: OperationURLParameter = { + parameterPath: "name", mapper: { + serializedName: "name", required: true, - serializedName: "resourceGroupName", type: { name: "String" } } }; -export const skiptoken: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "skiptoken" - ], + +export const body4: OperationParameter = { + parameterPath: "body", + mapper: CodeContainerResourceMapper +}; + +export const name1: OperationURLParameter = { + parameterPath: "name", mapper: { - serializedName: "$skiptoken", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "name", + required: true, type: { name: "String" } } }; -export const subscriptionId: msRest.OperationURLParameter = { - parameterPath: "subscriptionId", + +export const version: OperationURLParameter = { + parameterPath: "version", mapper: { + serializedName: "version", required: true, - serializedName: "subscriptionId", type: { name: "String" } } }; -export const target: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "target" - ], + +export const body5: OperationParameter = { + parameterPath: "body", + mapper: CodeVersionResourceMapper +}; + +export const body6: OperationParameter = { + parameterPath: "body", + mapper: DataContainerResourceMapper +}; + +export const tags: OperationQueryParameter = { + parameterPath: ["options", "tags"], mapper: { - serializedName: "target", + serializedName: "$tags", type: { name: "String" } } }; -export const underlyingResourceAction: msRest.OperationQueryParameter = { - parameterPath: "underlyingResourceAction", + +export const body7: OperationParameter = { + parameterPath: "body", + mapper: DataVersionResourceMapper +}; + +export const count1: OperationQueryParameter = { + parameterPath: ["options", "count"], + mapper: { + defaultValue: 30, + serializedName: "count", + type: { + name: "Number" + } + } +}; + +export const isDefault: OperationQueryParameter = { + parameterPath: ["options", "isDefault"], + mapper: { + serializedName: "isDefault", + type: { + name: "Boolean" + } + } +}; + +export const names: OperationQueryParameter = { + parameterPath: ["options", "names"], + mapper: { + serializedName: "names", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + collectionFormat: "CSV" +}; + +export const searchText: OperationQueryParameter = { + parameterPath: ["options", "searchText"], + mapper: { + serializedName: "searchText", + type: { + name: "String" + } + } +}; + +export const orderBy1: OperationQueryParameter = { + parameterPath: ["options", "orderBy"], + mapper: { + serializedName: "orderBy", + type: { + name: "String" + } + } +}; + +export const orderByAsc: OperationQueryParameter = { + parameterPath: ["options", "orderByAsc"], + mapper: { + serializedName: "orderByAsc", + type: { + name: "Boolean" + } + } +}; + +export const body8: OperationParameter = { + parameterPath: "body", + mapper: DatastorePropertiesResourceMapper +}; + +export const skipValidation: OperationQueryParameter = { + parameterPath: ["options", "skipValidation"], + mapper: { + serializedName: "skipValidation", + type: { + name: "Boolean" + } + } +}; + +export const body9: OperationParameter = { + parameterPath: "body", + mapper: EnvironmentContainerResourceMapper +}; + +export const body10: OperationParameter = { + parameterPath: "body", + mapper: EnvironmentSpecificationVersionResourceMapper +}; + +export const jobType: OperationQueryParameter = { + parameterPath: ["options", "jobType"], + mapper: { + serializedName: "jobType", + type: { + name: "String" + } + } +}; + +export const tags1: OperationQueryParameter = { + parameterPath: ["options", "tags"], + mapper: { + serializedName: "tags", + type: { + name: "String" + } + } +}; + +export const tag: OperationQueryParameter = { + parameterPath: ["options", "tag"], + mapper: { + serializedName: "tag", + type: { + name: "String" + } + } +}; + +export const id: OperationURLParameter = { + parameterPath: "id", mapper: { + serializedName: "id", required: true, - serializedName: "underlyingResourceAction", type: { name: "String" } } }; -export const workspaceName: msRest.OperationURLParameter = { - parameterPath: "workspaceName", + +export const body11: OperationParameter = { + parameterPath: "body", + mapper: JobBaseResourceMapper +}; + +export const id1: OperationURLParameter = { + parameterPath: "id", mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "id", required: true, - serializedName: "workspaceName", type: { name: "String" } } }; + +export const includeJobInstructions: OperationQueryParameter = { + parameterPath: ["options", "includeJobInstructions"], + mapper: { + serializedName: "includeJobInstructions", + type: { + name: "Boolean" + } + } +}; + +export const includeLabelCategories: OperationQueryParameter = { + parameterPath: ["options", "includeLabelCategories"], + mapper: { + serializedName: "includeLabelCategories", + type: { + name: "Boolean" + } + } +}; + +export const body12: OperationParameter = { + parameterPath: "body", + mapper: LabelingJobResourceMapper +}; + +export const body13: OperationParameter = { + parameterPath: "body", + mapper: ExportSummaryMapper +}; + +export const body14: OperationParameter = { + parameterPath: "body", + mapper: ModelContainerResourceMapper +}; + +export const version1: OperationQueryParameter = { + parameterPath: ["options", "version"], + mapper: { + serializedName: "version", + type: { + name: "String" + } + } +}; + +export const description: OperationQueryParameter = { + parameterPath: ["options", "description"], + mapper: { + serializedName: "description", + type: { + name: "String" + } + } +}; + +export const offset: OperationQueryParameter = { + parameterPath: ["options", "offset"], + mapper: { + serializedName: "offset", + type: { + name: "Number" + } + } +}; + +export const properties1: OperationQueryParameter = { + parameterPath: ["options", "properties"], + mapper: { + serializedName: "properties", + type: { + name: "String" + } + } +}; + +export const body15: OperationParameter = { + parameterPath: "body", + mapper: ModelVersionResourceMapper +}; + +export const name2: OperationQueryParameter = { + parameterPath: ["options", "name"], + mapper: { + serializedName: "name", + type: { + name: "String" + } + } +}; + +export const computeType: OperationQueryParameter = { + parameterPath: ["options", "computeType"], + mapper: { + serializedName: "computeType", + type: { + name: "String" + } + } +}; + +export const orderBy2: OperationQueryParameter = { + parameterPath: ["options", "orderBy"], + mapper: { + serializedName: "orderBy", + type: { + name: "String" + } + } +}; + +export const body16: OperationParameter = { + parameterPath: "body", + mapper: PartialOnlineEndpointPartialTrackedResourceMapper +}; + +export const body17: OperationParameter = { + parameterPath: "body", + mapper: OnlineEndpointTrackedResourceMapper +}; + +export const body18: OperationParameter = { + parameterPath: "body", + mapper: RegenerateEndpointKeysRequestMapper +}; + +export const body19: OperationParameter = { + parameterPath: "body", + mapper: PartialOnlineDeploymentPartialTrackedResourceMapper +}; + +export const body20: OperationParameter = { + parameterPath: "body", + mapper: OnlineDeploymentTrackedResourceMapper +}; + +export const body21: OperationParameter = { + parameterPath: "body", + mapper: DeploymentLogsRequestMapper +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts deleted file mode 100644 index e21b80f26ac8..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AKS, - AksNetworkingConfiguration, - AKSProperties, - AmlCompute, - AmlComputeProperties, - BaseResource, - Compute, - ComputeInstance, - ComputeInstanceApplication, - ComputeInstanceConnectivityEndpoints, - ComputeInstanceCreatedBy, - ComputeInstanceLastOperation, - ComputeInstanceProperties, - ComputeInstanceSshSettings, - ComputeResource, - Databricks, - DatabricksProperties, - DataFactory, - DataLakeAnalytics, - DataLakeAnalyticsProperties, - EncryptionProperty, - ErrorDetail, - ErrorResponse, - HDInsight, - HDInsightProperties, - Identity, - IdentityUserAssignedIdentitiesValue, - KeyVaultProperties, - MachineLearningServiceError, - NodeStateCounts, - NotebookPreparationError, - NotebookResourceInfo, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateLinkResource, - PrivateLinkServiceConnectionState, - Resource, - ResourceId, - ScaleSettings, - SharedPrivateLinkResource, - Sku, - SslConfiguration, - SystemService, - UserAccountCredentials, - VirtualMachine, - VirtualMachineProperties, - VirtualMachineSshCredentials, - Workspace, - WorkspaceConnection -} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateLinkResourcesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateLinkResourcesMappers.ts deleted file mode 100644 index 07a5f2631978..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateLinkResourcesMappers.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AKS, - AksNetworkingConfiguration, - AKSProperties, - AmlCompute, - AmlComputeProperties, - BaseResource, - CloudError, - Compute, - ComputeInstance, - ComputeInstanceApplication, - ComputeInstanceConnectivityEndpoints, - ComputeInstanceCreatedBy, - ComputeInstanceLastOperation, - ComputeInstanceProperties, - ComputeInstanceSshSettings, - ComputeResource, - Databricks, - DatabricksProperties, - DataFactory, - DataLakeAnalytics, - DataLakeAnalyticsProperties, - EncryptionProperty, - ErrorDetail, - ErrorResponse, - HDInsight, - HDInsightProperties, - Identity, - IdentityUserAssignedIdentitiesValue, - KeyVaultProperties, - MachineLearningServiceError, - NodeStateCounts, - NotebookPreparationError, - NotebookResourceInfo, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateLinkResource, - PrivateLinkResourceListResult, - PrivateLinkServiceConnectionState, - Resource, - ResourceId, - ScaleSettings, - SharedPrivateLinkResource, - Sku, - SslConfiguration, - SystemService, - UserAccountCredentials, - VirtualMachine, - VirtualMachineProperties, - VirtualMachineSshCredentials, - Workspace, - WorkspaceConnection -} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/quotasMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/quotasMappers.ts deleted file mode 100644 index aa49de236b1e..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/quotasMappers.ts +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - CloudError, - ErrorDetail, - ErrorResponse, - ListWorkspaceQuotas, - MachineLearningServiceError, - QuotaBaseProperties, - QuotaUpdateParameters, - ResourceName, - ResourceQuota, - UpdateWorkspaceQuotas, - UpdateWorkspaceQuotasResult -} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/virtualMachineSizesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/virtualMachineSizesMappers.ts deleted file mode 100644 index 3c2fa116d318..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/virtualMachineSizesMappers.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - CloudError, - EstimatedVMPrice, - EstimatedVMPrices, - VirtualMachineSize, - VirtualMachineSizeListResult -} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts deleted file mode 100644 index 448b8d85198f..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AKS, - AksNetworkingConfiguration, - AKSProperties, - AmlCompute, - AmlComputeProperties, - BaseResource, - Compute, - ComputeInstance, - ComputeInstanceApplication, - ComputeInstanceConnectivityEndpoints, - ComputeInstanceCreatedBy, - ComputeInstanceLastOperation, - ComputeInstanceProperties, - ComputeInstanceSshSettings, - ComputeResource, - Databricks, - DatabricksProperties, - DataFactory, - DataLakeAnalytics, - DataLakeAnalyticsProperties, - EncryptionProperty, - ErrorDetail, - ErrorResponse, - HDInsight, - HDInsightProperties, - Identity, - IdentityUserAssignedIdentitiesValue, - KeyVaultProperties, - MachineLearningServiceError, - NodeStateCounts, - NotebookPreparationError, - NotebookResourceInfo, - PaginatedWorkspaceConnectionsList, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateLinkResource, - PrivateLinkServiceConnectionState, - Resource, - ResourceId, - ScaleSettings, - SharedPrivateLinkResource, - Sku, - SslConfiguration, - SystemService, - UserAccountCredentials, - VirtualMachine, - VirtualMachineProperties, - VirtualMachineSshCredentials, - Workspace, - WorkspaceConnection, - WorkspaceConnectionDto -} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts deleted file mode 100644 index 5115670bfab0..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AmlUserFeature, - ErrorDetail, - ErrorResponse, - ListAmlUserFeatureResult, - MachineLearningServiceError -} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts deleted file mode 100644 index d8e1137cd946..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AKS, - AksNetworkingConfiguration, - AKSProperties, - AmlCompute, - AmlComputeProperties, - BaseResource, - Compute, - ComputeInstance, - ComputeInstanceApplication, - ComputeInstanceConnectivityEndpoints, - ComputeInstanceCreatedBy, - ComputeInstanceLastOperation, - ComputeInstanceProperties, - ComputeInstanceSshSettings, - ComputeResource, - Databricks, - DatabricksProperties, - DataFactory, - DataLakeAnalytics, - DataLakeAnalyticsProperties, - EncryptionProperty, - ErrorDetail, - ErrorResponse, - HDInsight, - HDInsightProperties, - Identity, - IdentityUserAssignedIdentitiesValue, - KeyVaultProperties, - ListWorkspaceKeysResult, - MachineLearningServiceError, - NodeStateCounts, - NotebookListCredentialsResult, - NotebookPreparationError, - NotebookResourceInfo, - Password, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateLinkResource, - PrivateLinkServiceConnectionState, - RegistryListCredentialsResult, - Resource, - ResourceId, - ScaleSettings, - SharedPrivateLinkResource, - Sku, - SslConfiguration, - SystemService, - UserAccountCredentials, - VirtualMachine, - VirtualMachineProperties, - VirtualMachineSshCredentials, - Workspace, - WorkspaceConnection, - WorkspaceListResult, - WorkspaceUpdateParameters -} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/batchDeployments.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/batchDeployments.ts new file mode 100644 index 000000000000..5c1e0352264c --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/batchDeployments.ts @@ -0,0 +1,439 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { BatchDeployments } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { + BatchDeploymentTrackedResource, + BatchDeploymentsListNextOptionalParams, + BatchDeploymentsListOptionalParams, + BatchDeploymentsListResponse, + BatchDeploymentsDeleteOptionalParams, + BatchDeploymentsGetOptionalParams, + BatchDeploymentsGetResponse, + PartialBatchDeploymentPartialTrackedResource, + BatchDeploymentsUpdateOptionalParams, + BatchDeploymentsUpdateResponse, + BatchDeploymentsCreateOrUpdateOptionalParams, + BatchDeploymentsCreateOrUpdateResponse, + BatchDeploymentsListNextResponse +} from "../models"; + +/// +/** Class representing a BatchDeployments. */ +export class BatchDeploymentsImpl implements BatchDeployments { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Initialize a new instance of the class BatchDeployments class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * Lists Batch inference deployments in the workspace. + * @param endpointName Endpoint name + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: BatchDeploymentsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + endpointName, + resourceGroupName, + workspaceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + endpointName, + resourceGroupName, + workspaceName, + options + ); + } + }; + } + + private async *listPagingPage( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: BatchDeploymentsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + endpointName, + resourceGroupName, + workspaceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + endpointName, + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: BatchDeploymentsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + endpointName, + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * Lists Batch inference deployments in the workspace. + * @param endpointName Endpoint name + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: BatchDeploymentsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { endpointName, resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete Batch Inference deployment. + * @param endpointName Endpoint name + * @param deploymentName Inference deployment identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + options?: BatchDeploymentsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + options + }, + deleteOperationSpec + ); + } + + /** + * Gets a batch inference deployment by id. + * @param endpointName Endpoint name + * @param deploymentName The identifier for the Batch deployments. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + options?: BatchDeploymentsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec + ); + } + + /** + * Update a batch inference deployment. + * @param endpointName Inference endpoint name + * @param deploymentName The identifier for the Batch inference deployment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Batch inference deployment definition object. + * @param options The options parameters. + */ + update( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + body: PartialBatchDeploymentPartialTrackedResource, + options?: BatchDeploymentsUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + body, + options + }, + updateOperationSpec + ); + } + + /** + * Creates/updates a batch inference deployment. + * @param endpointName Inference endpoint name + * @param deploymentName The identifier for the Batch inference deployment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Batch inference deployment definition object. + * @param options The options parameters. + */ + createOrUpdate( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + body: BatchDeploymentTrackedResource, + options?: BatchDeploymentsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * ListNext + * @param endpointName Endpoint name + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: BatchDeploymentsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { endpointName, resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BatchDeploymentTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName, + Parameters.deploymentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BatchDeploymentTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName, + Parameters.deploymentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.BatchDeploymentTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName1, + Parameters.deploymentName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.BatchDeploymentTrackedResource + }, + 201: { + bodyMapper: Mappers.BatchDeploymentTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName1, + Parameters.deploymentName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BatchDeploymentTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/batchEndpoints.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/batchEndpoints.ts new file mode 100644 index 000000000000..97a32b84ff59 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/batchEndpoints.ts @@ -0,0 +1,408 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { BatchEndpoints } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { + BatchEndpointTrackedResource, + BatchEndpointsListNextOptionalParams, + BatchEndpointsListOptionalParams, + BatchEndpointsListResponse, + BatchEndpointsDeleteOptionalParams, + BatchEndpointsGetOptionalParams, + BatchEndpointsGetResponse, + PartialBatchEndpointPartialTrackedResource, + BatchEndpointsUpdateOptionalParams, + BatchEndpointsUpdateResponse, + BatchEndpointsCreateOrUpdateOptionalParams, + BatchEndpointsCreateOrUpdateResponse, + BatchEndpointsListKeysOptionalParams, + BatchEndpointsListKeysResponse, + BatchEndpointsListNextResponse +} from "../models"; + +/// +/** Class representing a BatchEndpoints. */ +export class BatchEndpointsImpl implements BatchEndpoints { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Initialize a new instance of the class BatchEndpoints class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * Lists Batch inference endpoint in the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: BatchEndpointsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: BatchEndpointsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: BatchEndpointsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * Lists Batch inference endpoint in the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: BatchEndpointsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete Batch Inference Endpoint. + * @param endpointName Inference Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: BatchEndpointsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { endpointName, resourceGroupName, workspaceName, options }, + deleteOperationSpec + ); + } + + /** + * Gets a batch inference endpoint by name. + * @param endpointName Name for the Batch Endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: BatchEndpointsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { endpointName, resourceGroupName, workspaceName, options }, + getOperationSpec + ); + } + + /** + * Update a batch inference endpoint. + * @param endpointName Name for the Batch inference endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Mutable batch inference endpoint definition object. + * @param options The options parameters. + */ + update( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + body: PartialBatchEndpointPartialTrackedResource, + options?: BatchEndpointsUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { endpointName, resourceGroupName, workspaceName, body, options }, + updateOperationSpec + ); + } + + /** + * Creates a batch inference endpoint. + * @param endpointName Name for the Batch inference endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Batch inference endpoint definition object. + * @param options The options parameters. + */ + createOrUpdate( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + body: BatchEndpointTrackedResource, + options?: BatchEndpointsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { endpointName, resourceGroupName, workspaceName, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Lists batch Inference Endpoint keys. + * @param endpointName Inference Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + listKeys( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: BatchEndpointsListKeysOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { endpointName, resourceGroupName, workspaceName, options }, + listKeysOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: BatchEndpointsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BatchEndpointTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.count], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BatchEndpointTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.BatchEndpointTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.BatchEndpointTrackedResource + }, + 201: { + bodyMapper: Mappers.BatchEndpointTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/listkeys", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.EndpointAuthKeys + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BatchEndpointTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.count], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/codeContainers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/codeContainers.ts new file mode 100644 index 000000000000..8a52284aad1a --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/codeContainers.ts @@ -0,0 +1,315 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { CodeContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { + CodeContainerResource, + CodeContainersListNextOptionalParams, + CodeContainersListOptionalParams, + CodeContainersListResponse, + CodeContainersDeleteOptionalParams, + CodeContainersGetOptionalParams, + CodeContainersGetResponse, + CodeContainersCreateOrUpdateOptionalParams, + CodeContainersCreateOrUpdateResponse, + CodeContainersListNextResponse +} from "../models"; + +/// +/** Class representing a CodeContainers. */ +export class CodeContainersImpl implements CodeContainers { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Initialize a new instance of the class CodeContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: CodeContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: CodeContainersListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: CodeContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: CodeContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: CodeContainersDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, options }, + deleteOperationSpec + ); + } + + /** + * Get container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: CodeContainersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, options }, + getOperationSpec + ); + } + + /** + * Create or update container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + name: string, + resourceGroupName: string, + workspaceName: string, + body: CodeContainerResource, + options?: CodeContainersCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: CodeContainersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeContainerResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.CodeContainerResource + }, + 201: { + bodyMapper: Mappers.CodeContainerResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/codeVersions.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/codeVersions.ts new file mode 100644 index 000000000000..8b4a331138fb --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/codeVersions.ts @@ -0,0 +1,361 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { CodeVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { + CodeVersionResource, + CodeVersionsListNextOptionalParams, + CodeVersionsListOptionalParams, + CodeVersionsListResponse, + CodeVersionsDeleteOptionalParams, + CodeVersionsGetOptionalParams, + CodeVersionsGetResponse, + CodeVersionsCreateOrUpdateOptionalParams, + CodeVersionsCreateOrUpdateResponse, + CodeVersionsListNextResponse +} from "../models"; + +/// +/** Class representing a CodeVersions. */ +export class CodeVersionsImpl implements CodeVersions { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Initialize a new instance of the class CodeVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * List versions. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: CodeVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + name, + resourceGroupName, + workspaceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + name, + resourceGroupName, + workspaceName, + options + ); + } + }; + } + + private async *listPagingPage( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: CodeVersionsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + name, + resourceGroupName, + workspaceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + name, + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: CodeVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + name, + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List versions. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: CodeVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + options?: CodeVersionsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, version, resourceGroupName, workspaceName, options }, + deleteOperationSpec + ); + } + + /** + * Get version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + options?: CodeVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, version, resourceGroupName, workspaceName, options }, + getOperationSpec + ); + } + + /** + * Create or update version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + body: CodeVersionResource, + options?: CodeVersionsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, version, resourceGroupName, workspaceName, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * ListNext + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + name: string, + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: CodeVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeVersionResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.CodeVersionResource + }, + 201: { + bodyMapper: Mappers.CodeVersionResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1, + Parameters.version + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/computeOperations.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/computeOperations.ts new file mode 100644 index 000000000000..b00f332c7af7 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/computeOperations.ts @@ -0,0 +1,1087 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { ComputeOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { LROPoller, shouldDeserializeLRO } from "../lro"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + ComputeResource, + ComputeOperationsListNextOptionalParams, + ComputeOperationsListOptionalParams, + AmlComputeNodeInformation, + ComputeOperationsListNodesNextOptionalParams, + ComputeOperationsListNodesOptionalParams, + ComputeOperationsListResponse, + ComputeOperationsGetOptionalParams, + ComputeOperationsGetResponse, + ComputeOperationsCreateOrUpdateOptionalParams, + ComputeOperationsCreateOrUpdateResponse, + ClusterUpdateParameters, + ComputeOperationsUpdateOptionalParams, + ComputeOperationsUpdateResponse, + UnderlyingResourceAction, + ComputeOperationsDeleteOptionalParams, + ComputeOperationsListNodesResponse, + ComputeOperationsListKeysOptionalParams, + ComputeOperationsListKeysResponse, + ComputeOperationsStartOptionalParams, + ComputeOperationsStopOptionalParams, + ComputeOperationsRestartOptionalParams, + ComputeOperationsUpdateSchedulesOptionalParams, + ComputeOperationsListNextResponse, + ComputeOperationsListNodesNextResponse +} from "../models"; + +/// +/** Class representing a ComputeOperations. */ +export class ComputeOperationsImpl implements ComputeOperations { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Initialize a new instance of the class ComputeOperations class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * Gets computes in specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: ComputeOperationsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: ComputeOperationsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: ComputeOperationsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * Get the details (e.g IP address, port etc) of all the compute nodes in the compute. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + public listNodes( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeOperationsListNodesOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listNodesPagingAll( + resourceGroupName, + workspaceName, + computeName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listNodesPagingPage( + resourceGroupName, + workspaceName, + computeName, + options + ); + } + }; + } + + private async *listNodesPagingPage( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeOperationsListNodesOptionalParams + ): AsyncIterableIterator { + let result = await this._listNodes( + resourceGroupName, + workspaceName, + computeName, + options + ); + yield result.nodes || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNodesNext( + resourceGroupName, + workspaceName, + computeName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.nodes || []; + } + } + + private async *listNodesPagingAll( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeOperationsListNodesOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listNodesPagingPage( + resourceGroupName, + workspaceName, + computeName, + options + )) { + yield* page; + } + } + + /** + * Gets computes in specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: ComputeOperationsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not + * returned - use 'keys' nested resource to get them. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeOperationsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, computeName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that + * it does not exist yet. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param parameters Payload with Machine Learning compute definition. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ComputeResource, + options?: ComputeOperationsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ComputeOperationsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { flatResponse, rawResponse: currentRawResponse! }; + }; + + return new LROPoller( + { intervalInMs: options?.updateIntervalInMs }, + { resourceGroupName, workspaceName, computeName, parameters, options }, + createOrUpdateOperationSpec, + sendOperation + ); + } + + /** + * Creates or updates compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that + * it does not exist yet. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param parameters Payload with Machine Learning compute definition. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ComputeResource, + options?: ComputeOperationsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + computeName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates properties of a compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param parameters Additional parameters for cluster update. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ClusterUpdateParameters, + options?: ComputeOperationsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ComputeOperationsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { flatResponse, rawResponse: currentRawResponse! }; + }; + + return new LROPoller( + { intervalInMs: options?.updateIntervalInMs }, + { resourceGroupName, workspaceName, computeName, parameters, options }, + updateOperationSpec, + sendOperation + ); + } + + /** + * Updates properties of a compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param parameters Additional parameters for cluster update. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ClusterUpdateParameters, + options?: ComputeOperationsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + computeName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes specified Machine Learning compute. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying + * compute from workspace if 'Detach'. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + computeName: string, + underlyingResourceAction: UnderlyingResourceAction, + options?: ComputeOperationsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { flatResponse, rawResponse: currentRawResponse! }; + }; + + return new LROPoller( + { intervalInMs: options?.updateIntervalInMs }, + { + resourceGroupName, + workspaceName, + computeName, + underlyingResourceAction, + options + }, + deleteOperationSpec, + sendOperation + ); + } + + /** + * Deletes specified Machine Learning compute. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying + * compute from workspace if 'Detach'. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + underlyingResourceAction: UnderlyingResourceAction, + options?: ComputeOperationsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + computeName, + underlyingResourceAction, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get the details (e.g IP address, port etc) of all the compute nodes in the compute. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + private _listNodes( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeOperationsListNodesOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, computeName, options }, + listNodesOperationSpec + ); + } + + /** + * Gets secrets related to Machine Learning compute (storage keys, service credentials, etc). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + listKeys( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeOperationsListKeysOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, computeName, options }, + listKeysOperationSpec + ); + } + + /** + * Posts a start action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + async beginStart( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeOperationsStartOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { flatResponse, rawResponse: currentRawResponse! }; + }; + + return new LROPoller( + { intervalInMs: options?.updateIntervalInMs }, + { resourceGroupName, workspaceName, computeName, options }, + startOperationSpec, + sendOperation + ); + } + + /** + * Posts a start action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + async beginStartAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeOperationsStartOptionalParams + ): Promise { + const poller = await this.beginStart( + resourceGroupName, + workspaceName, + computeName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Posts a stop action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + async beginStop( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeOperationsStopOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { flatResponse, rawResponse: currentRawResponse! }; + }; + + return new LROPoller( + { intervalInMs: options?.updateIntervalInMs }, + { resourceGroupName, workspaceName, computeName, options }, + stopOperationSpec, + sendOperation + ); + } + + /** + * Posts a stop action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + async beginStopAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeOperationsStopOptionalParams + ): Promise { + const poller = await this.beginStop( + resourceGroupName, + workspaceName, + computeName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Posts a restart action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + restart( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeOperationsRestartOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, computeName, options }, + restartOperationSpec + ); + } + + /** + * Updates schedules of a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + updateSchedules( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeOperationsUpdateSchedulesOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, computeName, options }, + updateSchedulesOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: ComputeOperationsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } + + /** + * ListNodesNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param nextLink The nextLink from the previous successful call to the ListNodes method. + * @param options The options parameters. + */ + private _listNodesNext( + resourceGroupName: string, + workspaceName: string, + computeName: string, + nextLink: string, + options?: ComputeOperationsListNodesNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, computeName, nextLink, options }, + listNodesNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PaginatedComputeResourcesList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ComputeResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ComputeResource + }, + 201: { + bodyMapper: Mappers.ComputeResource + }, + 202: { + bodyMapper: Mappers.ComputeResource + }, + 204: { + bodyMapper: Mappers.ComputeResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ComputeResource + }, + 201: { + bodyMapper: Mappers.ComputeResource + }, + 202: { + bodyMapper: Mappers.ComputeResource + }, + 204: { + bodyMapper: Mappers.ComputeResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.underlyingResourceAction], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNodesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listNodes", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.AmlComputeNodesInformation + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listKeys", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ComputeSecrets + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const startOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/start", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const stopOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/stop", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const restartOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/restart", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateSchedulesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/updateSchedules", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PaginatedComputeResourcesList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNodesNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AmlComputeNodesInformation + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/dataContainers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/dataContainers.ts new file mode 100644 index 000000000000..0b2c9d37af27 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/dataContainers.ts @@ -0,0 +1,315 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { DataContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { + DataContainerResource, + DataContainersListNextOptionalParams, + DataContainersListOptionalParams, + DataContainersListResponse, + DataContainersDeleteOptionalParams, + DataContainersGetOptionalParams, + DataContainersGetResponse, + DataContainersCreateOrUpdateOptionalParams, + DataContainersCreateOrUpdateResponse, + DataContainersListNextResponse +} from "../models"; + +/// +/** Class representing a DataContainers. */ +export class DataContainersImpl implements DataContainers { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Initialize a new instance of the class DataContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: DataContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: DataContainersListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: DataContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: DataContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: DataContainersDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, options }, + deleteOperationSpec + ); + } + + /** + * Get container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: DataContainersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, options }, + getOperationSpec + ); + } + + /** + * Create or update container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + name: string, + resourceGroupName: string, + workspaceName: string, + body: DataContainerResource, + options?: DataContainersCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: DataContainersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataContainerResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DataContainerResource + }, + 201: { + bodyMapper: Mappers.DataContainerResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body6, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/dataVersions.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/dataVersions.ts new file mode 100644 index 000000000000..5c248d70c71b --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/dataVersions.ts @@ -0,0 +1,363 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { DataVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { + DataVersionResource, + DataVersionsListNextOptionalParams, + DataVersionsListOptionalParams, + DataVersionsListResponse, + DataVersionsDeleteOptionalParams, + DataVersionsGetOptionalParams, + DataVersionsGetResponse, + DataVersionsCreateOrUpdateOptionalParams, + DataVersionsCreateOrUpdateResponse, + DataVersionsListNextResponse +} from "../models"; + +/// +/** Class representing a DataVersions. */ +export class DataVersionsImpl implements DataVersions { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Initialize a new instance of the class DataVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * List data versions. + * @param name Data name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: DataVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + name, + resourceGroupName, + workspaceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + name, + resourceGroupName, + workspaceName, + options + ); + } + }; + } + + private async *listPagingPage( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: DataVersionsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + name, + resourceGroupName, + workspaceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + name, + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: DataVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + name, + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List data versions. + * @param name Data name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: DataVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + options?: DataVersionsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, version, resourceGroupName, workspaceName, options }, + deleteOperationSpec + ); + } + + /** + * Get version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + options?: DataVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, version, resourceGroupName, workspaceName, options }, + getOperationSpec + ); + } + + /** + * Create or update version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + body: DataVersionResource, + options?: DataVersionsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, version, resourceGroupName, workspaceName, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * ListNext + * @param name Data name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + name: string, + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: DataVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top, + Parameters.tags + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataVersionResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DataVersionResource + }, + 201: { + bodyMapper: Mappers.DataVersionResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1, + Parameters.version + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top, + Parameters.tags + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/datastores.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/datastores.ts new file mode 100644 index 000000000000..882384e004c5 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/datastores.ts @@ -0,0 +1,377 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Datastores } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { + DatastorePropertiesResource, + DatastoresListNextOptionalParams, + DatastoresListOptionalParams, + DatastoresListResponse, + DatastoresDeleteOptionalParams, + DatastoresGetOptionalParams, + DatastoresGetResponse, + DatastoresCreateOrUpdateOptionalParams, + DatastoresCreateOrUpdateResponse, + DatastoresListSecretsOptionalParams, + DatastoresListSecretsResponse, + DatastoresListNextResponse +} from "../models"; + +/// +/** Class representing a Datastores. */ +export class DatastoresImpl implements Datastores { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Initialize a new instance of the class Datastores class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * List datastores. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: DatastoresListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: DatastoresListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: DatastoresListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List datastores. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: DatastoresListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete datastore. + * @param name Datastore name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: DatastoresDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, options }, + deleteOperationSpec + ); + } + + /** + * Get datastore. + * @param name Datastore name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: DatastoresGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, options }, + getOperationSpec + ); + } + + /** + * Create or update datastore. + * @param name Datastore name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Datastore entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + name: string, + resourceGroupName: string, + workspaceName: string, + body: DatastorePropertiesResource, + options?: DatastoresCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Get datastore secrets. + * @param name Datastore name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + listSecrets( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: DatastoresListSecretsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, options }, + listSecretsOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: DatastoresListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatastorePropertiesResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.count1, + Parameters.isDefault, + Parameters.names, + Parameters.searchText, + Parameters.orderBy1, + Parameters.orderByAsc + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatastorePropertiesResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DatastorePropertiesResource + }, + 201: { + bodyMapper: Mappers.DatastorePropertiesResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body8, + queryParameters: [Parameters.apiVersion, Parameters.skipValidation], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listSecretsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}/listSecrets", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.DatastoreSecrets + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatastorePropertiesResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.count1, + Parameters.isDefault, + Parameters.names, + Parameters.searchText, + Parameters.orderBy1, + Parameters.orderByAsc + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/environmentContainers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/environmentContainers.ts new file mode 100644 index 000000000000..9ee17c428625 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/environmentContainers.ts @@ -0,0 +1,315 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { EnvironmentContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { + EnvironmentContainerResource, + EnvironmentContainersListNextOptionalParams, + EnvironmentContainersListOptionalParams, + EnvironmentContainersListResponse, + EnvironmentContainersDeleteOptionalParams, + EnvironmentContainersGetOptionalParams, + EnvironmentContainersGetResponse, + EnvironmentContainersCreateOrUpdateOptionalParams, + EnvironmentContainersCreateOrUpdateResponse, + EnvironmentContainersListNextResponse +} from "../models"; + +/// +/** Class representing a EnvironmentContainers. */ +export class EnvironmentContainersImpl implements EnvironmentContainers { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Initialize a new instance of the class EnvironmentContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentContainersListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentContainersDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, options }, + deleteOperationSpec + ); + } + + /** + * Get container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentContainersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, options }, + getOperationSpec + ); + } + + /** + * Create or update container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + name: string, + resourceGroupName: string, + workspaceName: string, + body: EnvironmentContainerResource, + options?: EnvironmentContainersCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: EnvironmentContainersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainerResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainerResource + }, + 201: { + bodyMapper: Mappers.EnvironmentContainerResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body9, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/environmentSpecificationVersions.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/environmentSpecificationVersions.ts new file mode 100644 index 000000000000..69e7470ef8c6 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/environmentSpecificationVersions.ts @@ -0,0 +1,364 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { EnvironmentSpecificationVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { + EnvironmentSpecificationVersionResource, + EnvironmentSpecificationVersionsListNextOptionalParams, + EnvironmentSpecificationVersionsListOptionalParams, + EnvironmentSpecificationVersionsListResponse, + EnvironmentSpecificationVersionsDeleteOptionalParams, + EnvironmentSpecificationVersionsGetOptionalParams, + EnvironmentSpecificationVersionsGetResponse, + EnvironmentSpecificationVersionsCreateOrUpdateOptionalParams, + EnvironmentSpecificationVersionsCreateOrUpdateResponse, + EnvironmentSpecificationVersionsListNextResponse +} from "../models"; + +/// +/** Class representing a EnvironmentSpecificationVersions. */ +export class EnvironmentSpecificationVersionsImpl + implements EnvironmentSpecificationVersions { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Initialize a new instance of the class EnvironmentSpecificationVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * List versions. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentSpecificationVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + name, + resourceGroupName, + workspaceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + name, + resourceGroupName, + workspaceName, + options + ); + } + }; + } + + private async *listPagingPage( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentSpecificationVersionsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + name, + resourceGroupName, + workspaceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + name, + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentSpecificationVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + name, + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List versions. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentSpecificationVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentSpecificationVersionsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, version, resourceGroupName, workspaceName, options }, + deleteOperationSpec + ); + } + + /** + * Get version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentSpecificationVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, version, resourceGroupName, workspaceName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates an EnvironmentSpecificationVersion. + * @param name Name of EnvironmentSpecificationVersion. + * @param version Version of EnvironmentSpecificationVersion. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Definition of EnvironmentSpecificationVersion. + * @param options The options parameters. + */ + createOrUpdate( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + body: EnvironmentSpecificationVersionResource, + options?: EnvironmentSpecificationVersionsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, version, resourceGroupName, workspaceName, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * ListNext + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + name: string, + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: EnvironmentSpecificationVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: + Mappers.EnvironmentSpecificationVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentSpecificationVersionResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentSpecificationVersionResource + }, + 201: { + bodyMapper: Mappers.EnvironmentSpecificationVersionResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body10, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1, + Parameters.version + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: + Mappers.EnvironmentSpecificationVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts index 3ddc3bba43e8..16a0b67e9ad9 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts @@ -3,18 +3,32 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export * from "./operations"; export * from "./workspaces"; -export * from "./workspaceFeatures"; -export * from "./notebooks"; export * from "./usages"; export * from "./virtualMachineSizes"; export * from "./quotas"; -export * from "./workspaceConnections"; -export * from "./machineLearningCompute"; +export * from "./computeOperations"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./workspaceConnections"; +export * from "./batchEndpoints"; +export * from "./batchDeployments"; +export * from "./codeContainers"; +export * from "./codeVersions"; +export * from "./dataContainers"; +export * from "./dataVersions"; +export * from "./datastores"; +export * from "./environmentContainers"; +export * from "./environmentSpecificationVersions"; +export * from "./jobs"; +export * from "./labelingJobs"; +export * from "./modelContainers"; +export * from "./modelVersions"; +export * from "./onlineEndpoints"; +export * from "./onlineDeployments"; +export * from "./workspaceFeatures"; +export * from "./workspaceSkus"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/jobs.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/jobs.ts new file mode 100644 index 000000000000..f777291a648e --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/jobs.ts @@ -0,0 +1,429 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Jobs } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { LROPoller, shouldDeserializeLRO } from "../lro"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + JobBaseResource, + JobsListNextOptionalParams, + JobsListOptionalParams, + JobsListResponse, + JobsDeleteOptionalParams, + JobsGetOptionalParams, + JobsGetResponse, + JobsCreateOrUpdateOptionalParams, + JobsCreateOrUpdateResponse, + JobsCancelOptionalParams, + JobsListNextResponse +} from "../models"; + +/// +/** Class representing a Jobs. */ +export class JobsImpl implements Jobs { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Initialize a new instance of the class Jobs class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * Lists Jobs in the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: JobsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: JobsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: JobsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * Lists Jobs in the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: JobsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Deletes a Job (asynchronous). + * @param id The name and identifier for the Job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + async beginDelete( + id: string, + resourceGroupName: string, + workspaceName: string, + options?: JobsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { flatResponse, rawResponse: currentRawResponse! }; + }; + + return new LROPoller( + { intervalInMs: options?.updateIntervalInMs }, + { id, resourceGroupName, workspaceName, options }, + deleteOperationSpec, + sendOperation, + "location" + ); + } + + /** + * Deletes a Job (asynchronous). + * @param id The name and identifier for the Job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + async beginDeleteAndWait( + id: string, + resourceGroupName: string, + workspaceName: string, + options?: JobsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + id, + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Gets a Job by name/id. + * @param id The name and identifier for the Job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + id: string, + resourceGroupName: string, + workspaceName: string, + options?: JobsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { id, resourceGroupName, workspaceName, options }, + getOperationSpec + ); + } + + /** + * Creates and executes a Job. + * @param id The name and identifier for the Job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Job definition object. + * @param options The options parameters. + */ + createOrUpdate( + id: string, + resourceGroupName: string, + workspaceName: string, + body: JobBaseResource, + options?: JobsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { id, resourceGroupName, workspaceName, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Cancels a Job. + * @param id The name and identifier for the Job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + cancel( + id: string, + resourceGroupName: string, + workspaceName: string, + options?: JobsCancelOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { id, resourceGroupName, workspaceName, options }, + cancelOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: JobsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.JobBaseResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.jobType, + Parameters.tags1, + Parameters.tag + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.JobBaseResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.JobBaseResource + }, + 201: { + bodyMapper: Mappers.JobBaseResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body11, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const cancelOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}/cancel", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.JobBaseResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.jobType, + Parameters.tags1, + Parameters.tag + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/labelingJobs.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/labelingJobs.ts new file mode 100644 index 000000000000..92feff4d2745 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/labelingJobs.ts @@ -0,0 +1,657 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { LabelingJobs } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { LROPoller, shouldDeserializeLRO } from "../lro"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + LabelingJobResource, + LabelingJobsListNextOptionalParams, + LabelingJobsListOptionalParams, + LabelingJobsListResponse, + LabelingJobsDeleteOptionalParams, + LabelingJobsGetOptionalParams, + LabelingJobsGetResponse, + LabelingJobsCreateOrUpdateOptionalParams, + LabelingJobsCreateOrUpdateResponse, + ExportSummaryUnion, + LabelingJobsExportLabelsOptionalParams, + LabelingJobsExportLabelsResponse, + LabelingJobsPauseOptionalParams, + LabelingJobsResumeOptionalParams, + LabelingJobsListNextResponse +} from "../models"; + +/// +/** Class representing a LabelingJobs. */ +export class LabelingJobsImpl implements LabelingJobs { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Initialize a new instance of the class LabelingJobs class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * Lists labeling jobs in the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * Lists labeling jobs in the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete a labeling job. + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + id: string, + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { id, resourceGroupName, workspaceName, options }, + deleteOperationSpec + ); + } + + /** + * Gets a labeling job by name/id. + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + id: string, + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { id, resourceGroupName, workspaceName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates a labeling job (asynchronous). + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body LabelingJob definition object. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + id: string, + resourceGroupName: string, + workspaceName: string, + body: LabelingJobResource, + options?: LabelingJobsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + LabelingJobsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { flatResponse, rawResponse: currentRawResponse! }; + }; + + return new LROPoller( + { intervalInMs: options?.updateIntervalInMs }, + { id, resourceGroupName, workspaceName, body, options }, + createOrUpdateOperationSpec, + sendOperation, + "azure-async-operation" + ); + } + + /** + * Creates or updates a labeling job (asynchronous). + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body LabelingJob definition object. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + id: string, + resourceGroupName: string, + workspaceName: string, + body: LabelingJobResource, + options?: LabelingJobsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + id, + resourceGroupName, + workspaceName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Export labels from a labeling job (asynchronous). + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body The export summary. + * @param options The options parameters. + */ + async beginExportLabels( + id: string, + resourceGroupName: string, + workspaceName: string, + body: ExportSummaryUnion, + options?: LabelingJobsExportLabelsOptionalParams + ): Promise< + PollerLike< + PollOperationState, + LabelingJobsExportLabelsResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { flatResponse, rawResponse: currentRawResponse! }; + }; + + return new LROPoller( + { intervalInMs: options?.updateIntervalInMs }, + { id, resourceGroupName, workspaceName, body, options }, + exportLabelsOperationSpec, + sendOperation, + "location" + ); + } + + /** + * Export labels from a labeling job (asynchronous). + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body The export summary. + * @param options The options parameters. + */ + async beginExportLabelsAndWait( + id: string, + resourceGroupName: string, + workspaceName: string, + body: ExportSummaryUnion, + options?: LabelingJobsExportLabelsOptionalParams + ): Promise { + const poller = await this.beginExportLabels( + id, + resourceGroupName, + workspaceName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Pause a labeling job. + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + pause( + id: string, + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsPauseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { id, resourceGroupName, workspaceName, options }, + pauseOperationSpec + ); + } + + /** + * Resume a labeling job (asynchronous). + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + async beginResume( + id: string, + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsResumeOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { flatResponse, rawResponse: currentRawResponse! }; + }; + + return new LROPoller( + { intervalInMs: options?.updateIntervalInMs }, + { id, resourceGroupName, workspaceName, options }, + resumeOperationSpec, + sendOperation, + "location" + ); + } + + /** + * Resume a labeling job (asynchronous). + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + async beginResumeAndWait( + id: string, + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsResumeOptionalParams + ): Promise { + const poller = await this.beginResume( + id, + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: LabelingJobsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LabelingJobResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.count], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LabelingJobResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.includeJobInstructions, + Parameters.includeLabelCategories + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.LabelingJobResource + }, + 201: { + bodyMapper: Mappers.LabelingJobResource + }, + 202: { + bodyMapper: Mappers.LabelingJobResource + }, + 204: { + bodyMapper: Mappers.LabelingJobResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body12, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const exportLabelsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/exportLabels", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ExportSummary + }, + 201: { + bodyMapper: Mappers.ExportSummary + }, + 202: { + bodyMapper: Mappers.ExportSummary + }, + 204: { + bodyMapper: Mappers.ExportSummary + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body13, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const pauseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/pause", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const resumeOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/resume", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LabelingJobResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.count], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts deleted file mode 100644 index 1fc94951a321..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts +++ /dev/null @@ -1,727 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/machineLearningComputeMappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; - -/** Class representing a MachineLearningCompute. */ -export class MachineLearningCompute { - private readonly client: AzureMachineLearningWorkspacesContext; - - /** - * Create a MachineLearningCompute. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. - */ - constructor(client: AzureMachineLearningWorkspacesContext) { - this.client = client; - } - - /** - * Gets computes in specified workspace. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: Models.MachineLearningComputeListByWorkspaceOptionalParams): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param callback The callback - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param options The optional parameters - * @param callback The callback - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options: Models.MachineLearningComputeListByWorkspaceOptionalParams, callback: msRest.ServiceCallback): void; - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: Models.MachineLearningComputeListByWorkspaceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - listByWorkspaceOperationSpec, - callback) as Promise; - } - - /** - * Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are - * not returned - use 'keys' nested resource to get them. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, computeName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, computeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - computeName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates compute. This call will overwrite a compute if it exists. This is a - * nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify - * that it does not exist yet. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param parameters Payload with Machine Learning compute definition. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, computeName: string, parameters: Models.ComputeResource, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,workspaceName,computeName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Updates properties of a compute. This call will overwrite a compute if it exists. This is a - * nonrecoverable operation. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param parameters Additional parameters for cluster update. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, workspaceName: string, computeName: string, parameters: Models.ClusterUpdateParameters, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(resourceGroupName,workspaceName,computeName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes specified Machine Learning compute. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the - * underlying compute from workspace if 'Detach'. Possible values include: 'Delete', 'Detach' - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, workspaceName: string, computeName: string, underlyingResourceAction: Models.UnderlyingResourceAction, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,workspaceName,computeName,underlyingResourceAction,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Get the details (e.g IP address, port etc) of all the compute nodes in the compute. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param [options] The optional parameters - * @returns Promise - */ - listNodes(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param callback The callback - */ - listNodes(resourceGroupName: string, workspaceName: string, computeName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param options The optional parameters - * @param callback The callback - */ - listNodes(resourceGroupName: string, workspaceName: string, computeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNodes(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - computeName, - options - }, - listNodesOperationSpec, - callback) as Promise; - } - - /** - * Gets secrets related to Machine Learning compute (storage keys, service credentials, etc). - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param [options] The optional parameters - * @returns Promise - */ - listKeys(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param callback The callback - */ - listKeys(resourceGroupName: string, workspaceName: string, computeName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param options The optional parameters - * @param callback The callback - */ - listKeys(resourceGroupName: string, workspaceName: string, computeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listKeys(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - computeName, - options - }, - listKeysOperationSpec, - callback) as Promise; - } - - /** - * Posts a start action to a compute instance - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param [options] The optional parameters - * @returns Promise - */ - start(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param callback The callback - */ - start(resourceGroupName: string, workspaceName: string, computeName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param options The optional parameters - * @param callback The callback - */ - start(resourceGroupName: string, workspaceName: string, computeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - start(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - computeName, - options - }, - startOperationSpec, - callback); - } - - /** - * Posts a stop action to a compute instance - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param [options] The optional parameters - * @returns Promise - */ - stop(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param callback The callback - */ - stop(resourceGroupName: string, workspaceName: string, computeName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param options The optional parameters - * @param callback The callback - */ - stop(resourceGroupName: string, workspaceName: string, computeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - stop(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - computeName, - options - }, - stopOperationSpec, - callback); - } - - /** - * Posts a restart action to a compute instance - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param [options] The optional parameters - * @returns Promise - */ - restart(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param callback The callback - */ - restart(resourceGroupName: string, workspaceName: string, computeName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param options The optional parameters - * @param callback The callback - */ - restart(resourceGroupName: string, workspaceName: string, computeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - restart(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - computeName, - options - }, - restartOperationSpec, - callback); - } - - /** - * Creates or updates compute. This call will overwrite a compute if it exists. This is a - * nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify - * that it does not exist yet. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param parameters Payload with Machine Learning compute definition. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, computeName: string, parameters: Models.ComputeResource, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - computeName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Updates properties of a compute. This call will overwrite a compute if it exists. This is a - * nonrecoverable operation. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param parameters Additional parameters for cluster update. - * @param [options] The optional parameters - * @returns Promise - */ - beginUpdate(resourceGroupName: string, workspaceName: string, computeName: string, parameters: Models.ClusterUpdateParameters, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - computeName, - parameters, - options - }, - beginUpdateOperationSpec, - options); - } - - /** - * Deletes specified Machine Learning compute. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the - * underlying compute from workspace if 'Detach'. Possible values include: 'Delete', 'Detach' - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, workspaceName: string, computeName: string, underlyingResourceAction: Models.UnderlyingResourceAction, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - computeName, - underlyingResourceAction, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Gets computes in specified workspace. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByWorkspaceNext(nextPageLink: string, options?: Models.MachineLearningComputeListByWorkspaceNextOptionalParams): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByWorkspaceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByWorkspaceNext(nextPageLink: string, options: Models.MachineLearningComputeListByWorkspaceNextOptionalParams, callback: msRest.ServiceCallback): void; - listByWorkspaceNext(nextPageLink: string, options?: Models.MachineLearningComputeListByWorkspaceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByWorkspaceNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByWorkspaceOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.skiptoken - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PaginatedComputeResourcesList - }, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.computeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ComputeResource - }, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; - -const listNodesOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listNodes", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.computeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AmlComputeNodesInformation - }, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; - -const listKeysOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listKeys", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.computeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ComputeSecrets - }, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; - -const startOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/start", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.computeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; - -const stopOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/stop", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.computeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; - -const restartOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/restart", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.computeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.computeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ComputeResource, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ComputeResource, - headersMapper: Mappers.MachineLearningComputeCreateOrUpdateHeaders - }, - 201: { - bodyMapper: Mappers.ComputeResource, - headersMapper: Mappers.MachineLearningComputeCreateOrUpdateHeaders - }, - default: { - bodyMapper: Mappers.MachineLearningServiceError, - headersMapper: Mappers.MachineLearningComputeCreateOrUpdateHeaders - } - }, - serializer -}; - -const beginUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.computeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ClusterUpdateParameters, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ComputeResource - }, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.computeName - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.underlyingResourceAction - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - headersMapper: Mappers.MachineLearningComputeDeleteHeaders - }, - 202: { - headersMapper: Mappers.MachineLearningComputeDeleteHeaders - }, - default: { - bodyMapper: Mappers.MachineLearningServiceError, - headersMapper: Mappers.MachineLearningComputeDeleteHeaders - } - }, - serializer -}; - -const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.skiptoken - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PaginatedComputeResourcesList - }, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/modelContainers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/modelContainers.ts new file mode 100644 index 000000000000..80f23f5c4a91 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/modelContainers.ts @@ -0,0 +1,315 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { ModelContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { + ModelContainerResource, + ModelContainersListNextOptionalParams, + ModelContainersListOptionalParams, + ModelContainersListResponse, + ModelContainersDeleteOptionalParams, + ModelContainersGetOptionalParams, + ModelContainersGetResponse, + ModelContainersCreateOrUpdateOptionalParams, + ModelContainersCreateOrUpdateResponse, + ModelContainersListNextResponse +} from "../models"; + +/// +/** Class representing a ModelContainers. */ +export class ModelContainersImpl implements ModelContainers { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Initialize a new instance of the class ModelContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * List model containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: ModelContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: ModelContainersListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: ModelContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List model containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: ModelContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: ModelContainersDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, options }, + deleteOperationSpec + ); + } + + /** + * Get container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: ModelContainersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, options }, + getOperationSpec + ); + } + + /** + * Create or update container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + name: string, + resourceGroupName: string, + workspaceName: string, + body: ModelContainerResource, + options?: ModelContainersCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: ModelContainersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.count], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelContainerResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ModelContainerResource + }, + 201: { + bodyMapper: Mappers.ModelContainerResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body14, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.count], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/modelVersions.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/modelVersions.ts new file mode 100644 index 000000000000..07364c15d611 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/modelVersions.ts @@ -0,0 +1,371 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { ModelVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { + ModelVersionResource, + ModelVersionsListNextOptionalParams, + ModelVersionsListOptionalParams, + ModelVersionsListResponse, + ModelVersionsDeleteOptionalParams, + ModelVersionsGetOptionalParams, + ModelVersionsGetResponse, + ModelVersionsCreateOrUpdateOptionalParams, + ModelVersionsCreateOrUpdateResponse, + ModelVersionsListNextResponse +} from "../models"; + +/// +/** Class representing a ModelVersions. */ +export class ModelVersionsImpl implements ModelVersions { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Initialize a new instance of the class ModelVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * List model versions. + * @param name Model name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: ModelVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + name, + resourceGroupName, + workspaceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + name, + resourceGroupName, + workspaceName, + options + ); + } + }; + } + + private async *listPagingPage( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: ModelVersionsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + name, + resourceGroupName, + workspaceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + name, + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: ModelVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + name, + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List model versions. + * @param name Model name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: ModelVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + options?: ModelVersionsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, version, resourceGroupName, workspaceName, options }, + deleteOperationSpec + ); + } + + /** + * Get version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + options?: ModelVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, version, resourceGroupName, workspaceName, options }, + getOperationSpec + ); + } + + /** + * Create or update version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + body: ModelVersionResource, + options?: ModelVersionsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, version, resourceGroupName, workspaceName, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * ListNext + * @param name Model name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + name: string, + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: ModelVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { name, resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top, + Parameters.tags1, + Parameters.version1, + Parameters.description, + Parameters.offset, + Parameters.properties1 + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelVersionResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ModelVersionResource + }, + 201: { + bodyMapper: Mappers.ModelVersionResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body15, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1, + Parameters.version + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top, + Parameters.tags1, + Parameters.version1, + Parameters.description, + Parameters.offset, + Parameters.properties1 + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/notebooks.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/notebooks.ts deleted file mode 100644 index b399aaaf57f3..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/notebooks.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/notebooksMappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; - -/** Class representing a Notebooks. */ -export class Notebooks { - private readonly client: AzureMachineLearningWorkspacesContext; - - /** - * Create a Notebooks. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. - */ - constructor(client: AzureMachineLearningWorkspacesContext) { - this.client = client; - } - - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise - */ - prepare(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginPrepare(resourceGroupName,workspaceName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise - */ - beginPrepare(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - options - }, - beginPrepareOperationSpec, - options); - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const beginPrepareOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/prepareNotebook", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.NotebookResourceInfo - }, - 202: {}, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/onlineDeployments.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/onlineDeployments.ts new file mode 100644 index 000000000000..6e1271acad8a --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/onlineDeployments.ts @@ -0,0 +1,713 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { OnlineDeployments } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { LROPoller, shouldDeserializeLRO } from "../lro"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + OnlineDeploymentTrackedResource, + OnlineDeploymentsListNextOptionalParams, + OnlineDeploymentsListOptionalParams, + OnlineDeploymentsListResponse, + OnlineDeploymentsDeleteOptionalParams, + OnlineDeploymentsGetOptionalParams, + OnlineDeploymentsGetResponse, + PartialOnlineDeploymentPartialTrackedResource, + OnlineDeploymentsUpdateOptionalParams, + OnlineDeploymentsUpdateResponse, + OnlineDeploymentsCreateOrUpdateOptionalParams, + OnlineDeploymentsCreateOrUpdateResponse, + DeploymentLogsRequest, + OnlineDeploymentsGetLogsOptionalParams, + OnlineDeploymentsGetLogsResponse, + OnlineDeploymentsListNextResponse +} from "../models"; + +/// +/** Class representing a OnlineDeployments. */ +export class OnlineDeploymentsImpl implements OnlineDeployments { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Initialize a new instance of the class OnlineDeployments class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * List Inference Endpoint Deployments. + * @param endpointName Inference endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: OnlineDeploymentsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + endpointName, + resourceGroupName, + workspaceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + endpointName, + resourceGroupName, + workspaceName, + options + ); + } + }; + } + + private async *listPagingPage( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: OnlineDeploymentsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + endpointName, + resourceGroupName, + workspaceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + endpointName, + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: OnlineDeploymentsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + endpointName, + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List Inference Endpoint Deployments. + * @param endpointName Inference endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: OnlineDeploymentsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { endpointName, resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete Inference Endpoint Deployment (asynchronous). + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + async beginDelete( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + options?: OnlineDeploymentsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { flatResponse, rawResponse: currentRawResponse! }; + }; + + return new LROPoller( + { intervalInMs: options?.updateIntervalInMs }, + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + options + }, + deleteOperationSpec, + sendOperation, + "location" + ); + } + + /** + * Delete Inference Endpoint Deployment (asynchronous). + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + async beginDeleteAndWait( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + options?: OnlineDeploymentsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get Inference Deployment Deployment. + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + options?: OnlineDeploymentsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec + ); + } + + /** + * Update Online Deployment (asynchronous). + * @param endpointName Online Endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdate( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + body: PartialOnlineDeploymentPartialTrackedResource, + options?: OnlineDeploymentsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + OnlineDeploymentsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { flatResponse, rawResponse: currentRawResponse! }; + }; + + return new LROPoller( + { intervalInMs: options?.updateIntervalInMs }, + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + body, + options + }, + updateOperationSpec, + sendOperation, + "location" + ); + } + + /** + * Update Online Deployment (asynchronous). + * @param endpointName Online Endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdateAndWait( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + body: PartialOnlineDeploymentPartialTrackedResource, + options?: OnlineDeploymentsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Create or update Inference Endpoint Deployment (asynchronous). + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Inference Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + body: OnlineDeploymentTrackedResource, + options?: OnlineDeploymentsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + OnlineDeploymentsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { flatResponse, rawResponse: currentRawResponse! }; + }; + + return new LROPoller( + { intervalInMs: options?.updateIntervalInMs }, + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + sendOperation, + "azure-async-operation" + ); + } + + /** + * Create or update Inference Endpoint Deployment (asynchronous). + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Inference Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + body: OnlineDeploymentTrackedResource, + options?: OnlineDeploymentsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Polls an Endpoint operation. + * @param endpointName Inference endpoint name. + * @param deploymentName The name and identifier for the endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body The request containing parameters for retrieving logs. + * @param options The options parameters. + */ + getLogs( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + body: DeploymentLogsRequest, + options?: OnlineDeploymentsGetLogsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + body, + options + }, + getLogsOperationSpec + ); + } + + /** + * ListNext + * @param endpointName Inference endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: OnlineDeploymentsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { endpointName, resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OnlineDeploymentTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName, + Parameters.deploymentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OnlineDeploymentTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName, + Parameters.deploymentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.OnlineDeploymentTrackedResource + }, + 201: { + bodyMapper: Mappers.OnlineDeploymentTrackedResource + }, + 202: { + bodyMapper: Mappers.OnlineDeploymentTrackedResource + }, + 204: { + bodyMapper: Mappers.OnlineDeploymentTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body19, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName1, + Parameters.deploymentName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.OnlineDeploymentTrackedResource + }, + 201: { + bodyMapper: Mappers.OnlineDeploymentTrackedResource + }, + 202: { + bodyMapper: Mappers.OnlineDeploymentTrackedResource + }, + 204: { + bodyMapper: Mappers.OnlineDeploymentTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body20, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName1, + Parameters.deploymentName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getLogsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}/getLogs", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.DeploymentLogs + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body21, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName, + Parameters.deploymentName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OnlineDeploymentTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/onlineEndpoints.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/onlineEndpoints.ts new file mode 100644 index 000000000000..0733739b840a --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/onlineEndpoints.ts @@ -0,0 +1,785 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { OnlineEndpoints } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { LROPoller, shouldDeserializeLRO } from "../lro"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + OnlineEndpointTrackedResource, + OnlineEndpointsListNextOptionalParams, + OnlineEndpointsListOptionalParams, + OnlineEndpointsListResponse, + OnlineEndpointsDeleteOptionalParams, + OnlineEndpointsGetOptionalParams, + OnlineEndpointsGetResponse, + PartialOnlineEndpointPartialTrackedResource, + OnlineEndpointsUpdateOptionalParams, + OnlineEndpointsUpdateResponse, + OnlineEndpointsCreateOrUpdateOptionalParams, + OnlineEndpointsCreateOrUpdateResponse, + OnlineEndpointsListKeysOptionalParams, + OnlineEndpointsListKeysResponse, + RegenerateEndpointKeysRequest, + OnlineEndpointsRegenerateKeysOptionalParams, + OnlineEndpointsGetTokenOptionalParams, + OnlineEndpointsGetTokenResponse, + OnlineEndpointsListNextResponse +} from "../models"; + +/// +/** Class representing a OnlineEndpoints. */ +export class OnlineEndpointsImpl implements OnlineEndpoints { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Initialize a new instance of the class OnlineEndpoints class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * List Online Endpoints. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: OnlineEndpointsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: OnlineEndpointsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: OnlineEndpointsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List Online Endpoints. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: OnlineEndpointsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete Online Endpoint (asynchronous). + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + async beginDelete( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: OnlineEndpointsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { flatResponse, rawResponse: currentRawResponse! }; + }; + + return new LROPoller( + { intervalInMs: options?.updateIntervalInMs }, + { endpointName, resourceGroupName, workspaceName, options }, + deleteOperationSpec, + sendOperation, + "location" + ); + } + + /** + * Delete Online Endpoint (asynchronous). + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + async beginDeleteAndWait( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: OnlineEndpointsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + endpointName, + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get Online Endpoint. + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: OnlineEndpointsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { endpointName, resourceGroupName, workspaceName, options }, + getOperationSpec + ); + } + + /** + * Update Online Endpoint (asynchronous). + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdate( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + body: PartialOnlineEndpointPartialTrackedResource, + options?: OnlineEndpointsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + OnlineEndpointsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { flatResponse, rawResponse: currentRawResponse! }; + }; + + return new LROPoller( + { intervalInMs: options?.updateIntervalInMs }, + { endpointName, resourceGroupName, workspaceName, body, options }, + updateOperationSpec, + sendOperation, + "location" + ); + } + + /** + * Update Online Endpoint (asynchronous). + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdateAndWait( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + body: PartialOnlineEndpointPartialTrackedResource, + options?: OnlineEndpointsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + endpointName, + resourceGroupName, + workspaceName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Create or update Online Endpoint (asynchronous). + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + body: OnlineEndpointTrackedResource, + options?: OnlineEndpointsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + OnlineEndpointsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { flatResponse, rawResponse: currentRawResponse! }; + }; + + return new LROPoller( + { intervalInMs: options?.updateIntervalInMs }, + { endpointName, resourceGroupName, workspaceName, body, options }, + createOrUpdateOperationSpec, + sendOperation, + "azure-async-operation" + ); + } + + /** + * Create or update Online Endpoint (asynchronous). + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + body: OnlineEndpointTrackedResource, + options?: OnlineEndpointsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + endpointName, + resourceGroupName, + workspaceName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * List EndpointAuthKeys for an Endpoint using Key-based authentication. + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + listKeys( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: OnlineEndpointsListKeysOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { endpointName, resourceGroupName, workspaceName, options }, + listKeysOperationSpec + ); + } + + /** + * Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body RegenerateKeys request . + * @param options The options parameters. + */ + async beginRegenerateKeys( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + body: RegenerateEndpointKeysRequest, + options?: OnlineEndpointsRegenerateKeysOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { flatResponse, rawResponse: currentRawResponse! }; + }; + + return new LROPoller( + { intervalInMs: options?.updateIntervalInMs }, + { endpointName, resourceGroupName, workspaceName, body, options }, + regenerateKeysOperationSpec, + sendOperation, + "location" + ); + } + + /** + * Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body RegenerateKeys request . + * @param options The options parameters. + */ + async beginRegenerateKeysAndWait( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + body: RegenerateEndpointKeysRequest, + options?: OnlineEndpointsRegenerateKeysOptionalParams + ): Promise { + const poller = await this.beginRegenerateKeys( + endpointName, + resourceGroupName, + workspaceName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Retrieve a valid AAD token for an Endpoint using AMLToken-based authentication. + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + getToken( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: OnlineEndpointsGetTokenOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { endpointName, resourceGroupName, workspaceName, options }, + getTokenOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: OnlineEndpointsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OnlineEndpointTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.count, + Parameters.tags1, + Parameters.properties1, + Parameters.name2, + Parameters.computeType, + Parameters.orderBy2 + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OnlineEndpointTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.OnlineEndpointTrackedResource + }, + 201: { + bodyMapper: Mappers.OnlineEndpointTrackedResource + }, + 202: { + bodyMapper: Mappers.OnlineEndpointTrackedResource + }, + 204: { + bodyMapper: Mappers.OnlineEndpointTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body16, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.OnlineEndpointTrackedResource + }, + 201: { + bodyMapper: Mappers.OnlineEndpointTrackedResource + }, + 202: { + bodyMapper: Mappers.OnlineEndpointTrackedResource + }, + 204: { + bodyMapper: Mappers.OnlineEndpointTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body17, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/listKeys", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.EndpointAuthKeys + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; +const regenerateKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/regenerateKeys", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body18, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getTokenOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/token", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.EndpointAuthToken + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OnlineEndpointTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.count, + Parameters.tags1, + Parameters.properties1, + Parameters.name2, + Parameters.computeType, + Parameters.orderBy2 + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/operations.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/operations.ts index 7ffd14de81bc..46e67c7d8022 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/operations.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/operations.ts @@ -3,23 +3,30 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/operationsMappers"; +import "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Operations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { + Operation, + OperationsListOptionalParams, + OperationsListResponse +} from "../models"; +/// /** Class representing a Operations. */ -export class Operations { +export class OperationsImpl implements Operations { private readonly client: AzureMachineLearningWorkspacesContext; /** - * Create a Operations. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + * Initialize a new instance of the class Operations class. + * @param client Reference to the service client */ constructor(client: AzureMachineLearningWorkspacesContext) { this.client = client; @@ -27,47 +34,66 @@ export class Operations { /** * Lists all of the available Azure Machine Learning Workspaces REST API operations. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; + public list( + options?: OperationsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(options); + } + }; + } + + private async *listPagingPage( + options?: OperationsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(options); + yield result.value || []; + } + + private async *listPagingAll( + options?: OperationsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + /** - * @param options The optional parameters - * @param callback The callback + * Lists all of the available Azure Machine Learning Workspaces REST API operations. + * @param options The options parameters. */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback) as Promise; + private _list( + options?: OperationsListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.MachineLearningServices/operations", httpMethod: "GET", - path: "providers/Microsoft.MachineLearningServices/operations", - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.OperationListResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts index 187767656333..9176cb558542 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts @@ -3,57 +3,120 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/privateEndpointConnectionsMappers"; +import "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PrivateEndpointConnections } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { + PrivateEndpointConnection, + PrivateEndpointConnectionsListOptionalParams, + PrivateEndpointConnectionsListResponse, + PrivateEndpointConnectionsGetOptionalParams, + PrivateEndpointConnectionsGetResponse, + PrivateEndpointConnectionsCreateOrUpdateOptionalParams, + PrivateEndpointConnectionsCreateOrUpdateResponse, + PrivateEndpointConnectionsDeleteOptionalParams +} from "../models"; +/// /** Class representing a PrivateEndpointConnections. */ -export class PrivateEndpointConnections { +export class PrivateEndpointConnectionsImpl + implements PrivateEndpointConnections { private readonly client: AzureMachineLearningWorkspacesContext; /** - * Create a PrivateEndpointConnections. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + * Initialize a new instance of the class PrivateEndpointConnections class. + * @param client Reference to the service client */ constructor(client: AzureMachineLearningWorkspacesContext) { this.client = client; } /** - * Gets the specified private endpoint connection associated with the workspace. - * @param resourceGroupName Name of the resource group in which workspace is located. + * List all the private endpoint connections associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with - * the workspace - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + public list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * List all the private endpoint connections associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with - * the workspace - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + private _list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * Gets the specified private endpoint connection associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with - * the workspace - * @param options The optional parameters - * @param callback The callback + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the + * workspace + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -61,41 +124,26 @@ export class PrivateEndpointConnections { privateEndpointConnectionName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } /** * Update the state of specified private endpoint connection associated with the workspace. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with - * the workspace - * @param properties The private endpoint connection properties. - * @param [options] The optional parameters - * @returns Promise - */ - put(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with - * the workspace + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the + * workspace * @param properties The private endpoint connection properties. - * @param callback The callback + * @param options The options parameters. */ - put(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with - * the workspace - * @param properties The private endpoint connection properties. - * @param options The optional parameters - * @param callback The callback - */ - put(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - put(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + properties: PrivateEndpointConnection, + options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -104,129 +152,127 @@ export class PrivateEndpointConnections { properties, options }, - putOperationSpec, - callback) as Promise; + createOrUpdateOperationSpec + ); } /** * Deletes the specified private endpoint connection associated with the workspace. - * @param resourceGroupName Name of the resource group in which workspace is located. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with - * the workspace - * @param [options] The optional parameters - * @returns Promise + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the + * workspace + * @param options The options parameters. */ - deleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,workspaceName,privateEndpointConnectionName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Deletes the specified private endpoint connection associated with the workspace. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with - * the workspace - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( + delete( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( { resourceGroupName, workspaceName, privateEndpointConnectionName, options }, - beginDeleteMethodOperationSpec, - options); + deleteOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.privateEndpointConnectionName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workspaceName ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PrivateEndpointConnection }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const putOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.privateEndpointConnectionName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "properties", - mapper: { - ...Mappers.PrivateEndpointConnection, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PrivateEndpointConnection }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + requestBody: Parameters.properties, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.privateEndpointConnectionName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "DELETE", responses: { 200: {}, - 202: {}, 204: {}, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.privateEndpointConnectionName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateLinkResources.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateLinkResources.ts index a0de2b6f5817..4d58a76253b0 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateLinkResources.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateLinkResources.ts @@ -3,23 +3,26 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/privateLinkResourcesMappers"; +import { PrivateLinkResources } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { + PrivateLinkResourcesListOptionalParams, + PrivateLinkResourcesListResponse +} from "../models"; /** Class representing a PrivateLinkResources. */ -export class PrivateLinkResources { +export class PrivateLinkResourcesImpl implements PrivateLinkResources { private readonly client: AzureMachineLearningWorkspacesContext; /** - * Create a PrivateLinkResources. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + * Initialize a new instance of the class PrivateLinkResources class. + * @param client Reference to the service client */ constructor(client: AzureMachineLearningWorkspacesContext) { this.client = client; @@ -27,60 +30,40 @@ export class PrivateLinkResources { /** * Gets the private link resources that need to be created for a workspace. - * @param resourceGroupName Name of the resource group in which workspace is located. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param callback The callback - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param options The optional parameters - * @param callback The callback - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateLinkResourcesListOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - listByWorkspaceOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByWorkspaceOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateLinkResources", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateLinkResources", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.PrivateLinkResourceListResult - }, - default: { - bodyMapper: Mappers.CloudError } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/quotas.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/quotas.ts index fbf9d1cc0c0d..2cbc990f07c7 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/quotas.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/quotas.ts @@ -3,194 +3,200 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/quotasMappers"; +import "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Quotas } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { + ResourceQuota, + QuotasListNextOptionalParams, + QuotasListOptionalParams, + QuotaUpdateParameters, + QuotasUpdateOptionalParams, + QuotasUpdateResponse, + QuotasListResponse, + QuotasListNextResponse +} from "../models"; +/// /** Class representing a Quotas. */ -export class Quotas { +export class QuotasImpl implements Quotas { private readonly client: AzureMachineLearningWorkspacesContext; /** - * Create a Quotas. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + * Initialize a new instance of the class Quotas class. + * @param client Reference to the service client */ constructor(client: AzureMachineLearningWorkspacesContext) { this.client = client; } /** - * Update quota for each VM family in workspace. - * @param location The location for update quota is queried. - * @param parameters Quota update parameters. - * @param [options] The optional parameters - * @returns Promise - */ - update(location: string, parameters: Models.QuotaUpdateParameters, options?: msRest.RequestOptionsBase): Promise; - /** - * @param location The location for update quota is queried. - * @param parameters Quota update parameters. - * @param callback The callback + * Gets the currently assigned Workspace Quotas based on VMFamily. + * @param location The location for which resource usage is queried. + * @param options The options parameters. */ - update(location: string, parameters: Models.QuotaUpdateParameters, callback: msRest.ServiceCallback): void; + public list( + location: string, + options?: QuotasListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(location, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(location, options); + } + }; + } + + private async *listPagingPage( + location: string, + options?: QuotasListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(location, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext(location, continuationToken, options); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + location: string, + options?: QuotasListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(location, options)) { + yield* page; + } + } + /** + * Update quota for each VM family in workspace. * @param location The location for update quota is queried. * @param parameters Quota update parameters. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - update(location: string, parameters: Models.QuotaUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(location: string, parameters: Models.QuotaUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update( + location: string, + parameters: QuotaUpdateParameters, + options?: QuotasUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - location, - parameters, - options - }, - updateOperationSpec, - callback) as Promise; + { location, parameters, options }, + updateOperationSpec + ); } /** * Gets the currently assigned Workspace Quotas based on VMFamily. * @param location The location for which resource usage is queried. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(location: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param location The location for which resource usage is queried. - * @param callback The callback - */ - list(location: string, callback: msRest.ServiceCallback): void; - /** - * @param location The location for which resource usage is queried. - * @param options The optional parameters - * @param callback The callback - */ - list(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _list( + location: string, + options?: QuotasListOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - location, - options - }, - listOperationSpec, - callback) as Promise; + { location, options }, + listOperationSpec + ); } /** - * Gets the currently assigned Workspace Quotas based on VMFamily. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @param location The location for which resource usage is queried. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + location: string, + nextLink: string, + options?: QuotasListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { location, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const updateOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/updateQuotas", httpMethod: "POST", - path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/updateQuotas", - urlParameters: [ - Parameters.location, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.QuotaUpdateParameters, - required: true - } - }, responses: { 200: { bodyMapper: Mappers.UpdateWorkspaceQuotasResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/Quotas", + requestBody: Parameters.parameters2, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.location ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/quotas", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ListWorkspaceQuotas }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location + ], + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ListWorkspaceQuotas }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.location + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/usages.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/usages.ts index 282c7c633054..23013ded4a32 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/usages.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/usages.ts @@ -3,133 +3,153 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/usagesMappers"; +import "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Usages } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { + Usage, + UsagesListNextOptionalParams, + UsagesListOptionalParams, + UsagesListResponse, + UsagesListNextResponse +} from "../models"; +/// /** Class representing a Usages. */ -export class Usages { +export class UsagesImpl implements Usages { private readonly client: AzureMachineLearningWorkspacesContext; /** - * Create a Usages. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + * Initialize a new instance of the class Usages class. + * @param client Reference to the service client */ constructor(client: AzureMachineLearningWorkspacesContext) { this.client = client; } /** - * Gets the current usage information as well as limits for AML resources for given subscription - * and location. + * Gets the current usage information as well as limits for AML resources for given subscription and + * location. * @param location The location for which resource usage is queried. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(location: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param location The location for which resource usage is queried. - * @param callback The callback - */ - list(location: string, callback: msRest.ServiceCallback): void; + public list( + location: string, + options?: UsagesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(location, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(location, options); + } + }; + } + + private async *listPagingPage( + location: string, + options?: UsagesListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(location, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext(location, continuationToken, options); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + location: string, + options?: UsagesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(location, options)) { + yield* page; + } + } + /** + * Gets the current usage information as well as limits for AML resources for given subscription and + * location. * @param location The location for which resource usage is queried. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - list(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _list( + location: string, + options?: UsagesListOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - location, - options - }, - listOperationSpec, - callback) as Promise; + { location, options }, + listOperationSpec + ); } /** - * Gets the current usage information as well as limits for AML resources for given subscription - * and location. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @param location The location for which resource usage is queried. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + location: string, + nextLink: string, + options?: UsagesListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { location, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/usages", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/usages", - urlParameters: [ - Parameters.subscriptionId, - Parameters.location - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.ListUsagesResult - }, - default: { - bodyMapper: Mappers.CloudError } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location + ], + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ListUsagesResult - }, - default: { - bodyMapper: Mappers.CloudError } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.location + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts index 9be626180c93..80d49df0a9b3 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts @@ -3,23 +3,26 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/virtualMachineSizesMappers"; +import { VirtualMachineSizes } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { + VirtualMachineSizesListOptionalParams, + VirtualMachineSizesListResponse +} from "../models"; /** Class representing a VirtualMachineSizes. */ -export class VirtualMachineSizes { +export class VirtualMachineSizesImpl implements VirtualMachineSizes { private readonly client: AzureMachineLearningWorkspacesContext; /** - * Create a VirtualMachineSizes. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + * Initialize a new instance of the class VirtualMachineSizes class. + * @param client Reference to the service client */ constructor(client: AzureMachineLearningWorkspacesContext) { this.client = client; @@ -28,56 +31,36 @@ export class VirtualMachineSizes { /** * Returns supported VM Sizes in a location * @param location The location upon which virtual-machine-sizes is queried. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(location: string, options?: Models.VirtualMachineSizesListOptionalParams): Promise; - /** - * @param location The location upon which virtual-machine-sizes is queried. - * @param callback The callback - */ - list(location: string, callback: msRest.ServiceCallback): void; - /** - * @param location The location upon which virtual-machine-sizes is queried. - * @param options The optional parameters - * @param callback The callback - */ - list(location: string, options: Models.VirtualMachineSizesListOptionalParams, callback: msRest.ServiceCallback): void; - list(location: string, options?: Models.VirtualMachineSizesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list( + location: string, + options?: VirtualMachineSizesListOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - location, - options - }, - listOperationSpec, - callback) as Promise; + { location, options }, + listOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/vmSizes", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/vmSizes", - urlParameters: [ - Parameters.location, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.computeType, - Parameters.recommended - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.VirtualMachineSizeListResult - }, - default: { - bodyMapper: Mappers.CloudError } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceConnections.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceConnections.ts index 77864d7360ee..4538e6158e87 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceConnections.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceConnections.ts @@ -3,23 +3,35 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/workspaceConnectionsMappers"; +import "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { WorkspaceConnections } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { + WorkspaceConnection, + WorkspaceConnectionsListOptionalParams, + WorkspaceConnectionsListResponse, + WorkspaceConnectionsCreateOptionalParams, + WorkspaceConnectionsCreateResponse, + WorkspaceConnectionsGetOptionalParams, + WorkspaceConnectionsGetResponse, + WorkspaceConnectionsDeleteOptionalParams +} from "../models"; +/// /** Class representing a WorkspaceConnections. */ -export class WorkspaceConnections { +export class WorkspaceConnectionsImpl implements WorkspaceConnections { private readonly client: AzureMachineLearningWorkspacesContext; /** - * Create a WorkspaceConnections. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + * Initialize a new instance of the class WorkspaceConnections class. + * @param client Reference to the service client */ constructor(client: AzureMachineLearningWorkspacesContext) { this.client = client; @@ -27,258 +39,224 @@ export class WorkspaceConnections { /** * List all connections under a AML workspace. - * @param resourceGroupName Name of the resource group in which workspace is located. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(resourceGroupName: string, workspaceName: string, options?: Models.WorkspaceConnectionsListOptionalParams): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + public list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceConnectionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceConnectionsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceConnectionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * List all connections under a AML workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - list(resourceGroupName: string, workspaceName: string, options: Models.WorkspaceConnectionsListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, options?: Models.WorkspaceConnectionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceConnectionsListOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - listOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); } /** * Add a new workspace connection. - * @param resourceGroupName Name of the resource group in which workspace is located. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param connectionName Friendly name of the workspace connection * @param parameters The object for creating or updating a new workspace connection - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - create(resourceGroupName: string, workspaceName: string, connectionName: string, parameters: Models.WorkspaceConnectionDto, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param connectionName Friendly name of the workspace connection - * @param parameters The object for creating or updating a new workspace connection - * @param callback The callback - */ - create(resourceGroupName: string, workspaceName: string, connectionName: string, parameters: Models.WorkspaceConnectionDto, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param connectionName Friendly name of the workspace connection - * @param parameters The object for creating or updating a new workspace connection - * @param options The optional parameters - * @param callback The callback - */ - create(resourceGroupName: string, workspaceName: string, connectionName: string, parameters: Models.WorkspaceConnectionDto, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - create(resourceGroupName: string, workspaceName: string, connectionName: string, parameters: Models.WorkspaceConnectionDto, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + create( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + parameters: WorkspaceConnection, + options?: WorkspaceConnectionsCreateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - connectionName, - parameters, - options - }, - createOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, connectionName, parameters, options }, + createOperationSpec + ); } /** * Get the detail of a workspace connection. - * @param resourceGroupName Name of the resource group in which workspace is located. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param connectionName Friendly name of the workspace connection - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, connectionName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param connectionName Friendly name of the workspace connection - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, connectionName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param connectionName Friendly name of the workspace connection - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, connectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, connectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - connectionName, - options - }, - getOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, connectionName, options }, + getOperationSpec + ); } /** * Delete a workspace connection. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param connectionName Friendly name of the workspace connection - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, workspaceName: string, connectionName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param connectionName Friendly name of the workspace connection - * @param callback The callback + * @param options The options parameters. */ - deleteMethod(resourceGroupName: string, workspaceName: string, connectionName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param connectionName Friendly name of the workspace connection - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, workspaceName: string, connectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, workspaceName: string, connectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + delete( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - connectionName, - options - }, - deleteMethodOperationSpec, - callback); + { resourceGroupName, workspaceName, connectionName, options }, + deleteOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.target, - Parameters.category - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.PaginatedWorkspaceConnectionsList }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const createOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + queryParameters: [ + Parameters.apiVersion, + Parameters.target, + Parameters.category + ], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.connectionName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workspaceName ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.WorkspaceConnectionDto, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.WorkspaceConnection }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + requestBody: Parameters.parameters6, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.connectionName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.WorkspaceConnection }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.connectionName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.connectionName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceFeatures.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceFeatures.ts index a887c0669d7f..6b9c5784ec69 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceFeatures.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceFeatures.ts @@ -3,23 +3,32 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/workspaceFeaturesMappers"; +import "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { WorkspaceFeatures } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { + AmlUserFeature, + WorkspaceFeaturesListNextOptionalParams, + WorkspaceFeaturesListOptionalParams, + WorkspaceFeaturesListResponse, + WorkspaceFeaturesListNextResponse +} from "../models"; +/// /** Class representing a WorkspaceFeatures. */ -export class WorkspaceFeatures { +export class WorkspaceFeaturesImpl implements WorkspaceFeatures { private readonly client: AzureMachineLearningWorkspacesContext; /** - * Create a WorkspaceFeatures. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + * Initialize a new instance of the class WorkspaceFeatures class. + * @param client Reference to the service client */ constructor(client: AzureMachineLearningWorkspacesContext) { this.client = client; @@ -27,112 +36,143 @@ export class WorkspaceFeatures { /** * Lists all enabled features for a workspace - * @param resourceGroupName Name of the resource group in which workspace is located. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceFeaturesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceFeaturesListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( resourceGroupName, workspaceName, + continuationToken, options - }, - listOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceFeaturesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } } /** * Lists all enabled features for a workspace - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + private _list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceFeaturesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: WorkspaceFeaturesListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/features", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/features", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.ListAmlUserFeatureResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ListAmlUserFeatureResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceSkus.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceSkus.ts new file mode 100644 index 000000000000..2eae7a74857a --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceSkus.ts @@ -0,0 +1,143 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { WorkspaceSkus } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { + WorkspaceSku, + WorkspaceSkusListNextOptionalParams, + WorkspaceSkusListOptionalParams, + WorkspaceSkusListResponse, + WorkspaceSkusListNextResponse +} from "../models"; + +/// +/** Class representing a WorkspaceSkus. */ +export class WorkspaceSkusImpl implements WorkspaceSkus { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Initialize a new instance of the class WorkspaceSkus class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * Lists all skus with associated features + * @param options The options parameters. + */ + public list( + options?: WorkspaceSkusListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(options); + } + }; + } + + private async *listPagingPage( + options?: WorkspaceSkusListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + options?: WorkspaceSkusListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + + /** + * Lists all skus with associated features + * @param options The options parameters. + */ + private _list( + options?: WorkspaceSkusListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + + /** + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + nextLink: string, + options?: WorkspaceSkusListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces/skus", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SkuListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SkuListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaces.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaces.ts index 9fc610c5256c..da601a4ed739 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaces.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaces.ts @@ -3,598 +3,939 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/workspacesMappers"; +import "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Workspaces } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { LROPoller, shouldDeserializeLRO } from "../lro"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + Workspace, + WorkspacesListByResourceGroupNextOptionalParams, + WorkspacesListByResourceGroupOptionalParams, + WorkspacesListBySubscriptionNextOptionalParams, + WorkspacesListBySubscriptionOptionalParams, + WorkspacesGetOptionalParams, + WorkspacesGetResponse, + WorkspacesCreateOrUpdateOptionalParams, + WorkspacesCreateOrUpdateResponse, + WorkspacesDeleteOptionalParams, + WorkspaceUpdateParameters, + WorkspacesUpdateOptionalParams, + WorkspacesUpdateResponse, + WorkspacesListByResourceGroupResponse, + WorkspacesListKeysOptionalParams, + WorkspacesListKeysResponse, + WorkspacesResyncKeysOptionalParams, + WorkspacesListBySubscriptionResponse, + WorkspacesListNotebookAccessTokenOptionalParams, + WorkspacesListNotebookAccessTokenResponse, + WorkspacesPrepareNotebookOptionalParams, + WorkspacesPrepareNotebookResponse, + WorkspacesListStorageAccountKeysOptionalParams, + WorkspacesListStorageAccountKeysResponse, + WorkspacesListNotebookKeysOptionalParams, + WorkspacesListNotebookKeysResponse, + WorkspacesListByResourceGroupNextResponse, + WorkspacesListBySubscriptionNextResponse +} from "../models"; +/// /** Class representing a Workspaces. */ -export class Workspaces { +export class WorkspacesImpl implements Workspaces { private readonly client: AzureMachineLearningWorkspacesContext; /** - * Create a Workspaces. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + * Initialize a new instance of the class Workspaces class. + * @param client Reference to the service client */ constructor(client: AzureMachineLearningWorkspacesContext) { this.client = client; } /** - * Gets the properties of the specified machine learning workspace. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise + * Lists all the available machine learning workspaces under the specified resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + public listByResourceGroup( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByResourceGroupPagingPage(resourceGroupName, options); + } + }; + } + + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams + ): AsyncIterableIterator { + let result = await this._listByResourceGroup(resourceGroupName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { + yield* page; + } + } + /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param callback The callback + * Lists all the available machine learning workspaces under the specified subscription. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + public listBySubscription( + options?: WorkspacesListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listBySubscriptionPagingPage(options); + } + }; + } + + private async *listBySubscriptionPagingPage( + options?: WorkspacesListBySubscriptionOptionalParams + ): AsyncIterableIterator { + let result = await this._listBySubscription(options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listBySubscriptionPagingAll( + options?: WorkspacesListBySubscriptionOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * Gets the properties of the specified machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - getOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, options }, + getOperationSpec + ); } /** * Creates or updates a workspace with the specified parameters. - * @param resourceGroupName Name of the resource group in which workspace is located. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param parameters The parameters for creating or updating a machine learning workspace. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.Workspace, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,workspaceName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + parameters: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { flatResponse, rawResponse: currentRawResponse! }; + }; + + return new LROPoller( + { intervalInMs: options?.updateIntervalInMs }, + { resourceGroupName, workspaceName, parameters, options }, + createOrUpdateOperationSpec, + sendOperation + ); } /** - * Deletes a machine learning workspace. - * @param resourceGroupName Name of the resource group in which workspace is located. + * Creates or updates a workspace with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise + * @param parameters The parameters for creating or updating a machine learning workspace. + * @param options The options parameters. */ - deleteMethod(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,workspaceName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + parameters: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + parameters, + options + ); + return poller.pollUntilDone(); } /** - * Updates a machine learning workspace with the specified parameters. - * @param resourceGroupName Name of the resource group in which workspace is located. + * Deletes a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param parameters The parameters for updating a machine learning workspace. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - update(resourceGroupName: string, workspaceName: string, parameters: Models.WorkspaceUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + async beginDelete( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { flatResponse, rawResponse: currentRawResponse! }; + }; + + return new LROPoller( + { intervalInMs: options?.updateIntervalInMs }, + { resourceGroupName, workspaceName, options }, + deleteOperationSpec, + sendOperation + ); + } + /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * Deletes a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param parameters The parameters for updating a machine learning workspace. - * @param callback The callback + * @param options The options parameters. */ - update(resourceGroupName: string, workspaceName: string, parameters: Models.WorkspaceUpdateParameters, callback: msRest.ServiceCallback): void; + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); + } + /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * Updates a machine learning workspace with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param parameters The parameters for updating a machine learning workspace. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - update(resourceGroupName: string, workspaceName: string, parameters: Models.WorkspaceUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, workspaceName: string, parameters: Models.WorkspaceUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update( + resourceGroupName: string, + workspaceName: string, + parameters: WorkspaceUpdateParameters, + options?: WorkspacesUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - parameters, - options - }, - updateOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, parameters, options }, + updateOperationSpec + ); } /** * Lists all the available machine learning workspaces under the specified resource group. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroup(resourceGroupName: string, options?: Models.WorkspacesListByResourceGroupOptionalParams): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param callback The callback + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. */ - listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param options The optional parameters - * @param callback The callback - */ - listByResourceGroup(resourceGroupName: string, options: Models.WorkspacesListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: Models.WorkspacesListByResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listByResourceGroup( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - options - }, - listByResourceGroupOperationSpec, - callback) as Promise; + { resourceGroupName, options }, + listByResourceGroupOperationSpec + ); } /** - * Lists all the keys associated with this workspace. This includes keys for the storage account, - * app insights and password for container registry - * @param resourceGroupName Name of the resource group in which workspace is located. + * Lists all the keys associated with this workspace. This includes keys for the storage account, app + * insights and password for container registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - listKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param callback The callback - */ - listKeys(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param options The optional parameters - * @param callback The callback - */ - listKeys(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListKeysOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - listKeysOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, options }, + listKeysOperationSpec + ); } /** - * Resync all the keys associated with this workspace. This includes keys for the storage account, - * app insights and password for container registry - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise - */ - resyncKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * Resync all the keys associated with this workspace. This includes keys for the storage account, app + * insights and password for container registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param callback The callback + * @param options The options parameters. */ - resyncKeys(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + async beginResyncKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesResyncKeysOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { flatResponse, rawResponse: currentRawResponse! }; + }; + + return new LROPoller( + { intervalInMs: options?.updateIntervalInMs }, + { resourceGroupName, workspaceName, options }, + resyncKeysOperationSpec, + sendOperation + ); + } + /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * Resync all the keys associated with this workspace. This includes keys for the storage account, app + * insights and password for container registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - resyncKeys(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - resyncKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - resyncKeysOperationSpec, - callback); + async beginResyncKeysAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesResyncKeysOptionalParams + ): Promise { + const poller = await this.beginResyncKeys( + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); } /** * Lists all the available machine learning workspaces under the specified subscription. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - listBySubscription(options?: Models.WorkspacesListBySubscriptionOptionalParams): Promise; - /** - * @param callback The callback - */ - listBySubscription(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - listBySubscription(options: Models.WorkspacesListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; - listBySubscription(options?: Models.WorkspacesListBySubscriptionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listBySubscription( + options?: WorkspacesListBySubscriptionOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - options - }, - listBySubscriptionOperationSpec, - callback) as Promise; + { options }, + listBySubscriptionOperationSpec + ); } /** - * Creates or updates a workspace with the specified parameters. - * @param resourceGroupName Name of the resource group in which workspace is located. + * return notebook access token and refresh token + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param parameters The parameters for creating or updating a machine learning workspace. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.Workspace, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); + listNotebookAccessToken( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListNotebookAccessTokenOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listNotebookAccessTokenOperationSpec + ); } /** - * Deletes a machine learning workspace. - * @param resourceGroupName Name of the resource group in which workspace is located. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginDeleteMethod(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - options - }, - beginDeleteMethodOperationSpec, - options); + async beginPrepareNotebook( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesPrepareNotebookOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesPrepareNotebookResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { flatResponse, rawResponse: currentRawResponse! }; + }; + + return new LROPoller( + { intervalInMs: options?.updateIntervalInMs }, + { resourceGroupName, workspaceName, options }, + prepareNotebookOperationSpec, + sendOperation, + "location" + ); } /** - * Lists all the available machine learning workspaces under the specified resource group. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupNext(nextPageLink: string, options?: Models.WorkspacesListByResourceGroupNextOptionalParams): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. */ - listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + async beginPrepareNotebookAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesPrepareNotebookOptionalParams + ): Promise { + const poller = await this.beginPrepareNotebook( + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. */ - listByResourceGroupNext(nextPageLink: string, options: Models.WorkspacesListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: Models.WorkspacesListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listStorageAccountKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListStorageAccountKeysOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByResourceGroupNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, options }, + listStorageAccountKeysOperationSpec + ); } /** - * Lists all the available machine learning workspaces under the specified subscription. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. */ - listBySubscriptionNext(nextPageLink: string, options?: Models.WorkspacesListBySubscriptionNextOptionalParams): Promise; + listNotebookKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListNotebookKeysOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listNotebookKeysOperationSpec + ); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. */ - listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: WorkspacesListByResourceGroupNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec + ); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. */ - listBySubscriptionNext(nextPageLink: string, options: Models.WorkspacesListBySubscriptionNextOptionalParams, callback: msRest.ServiceCallback): void; - listBySubscriptionNext(nextPageLink: string, options?: Models.WorkspacesListBySubscriptionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listBySubscriptionNext( + nextLink: string, + options?: WorkspacesListBySubscriptionNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listBySubscriptionNextOperationSpec, - callback) as Promise; + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", + responses: { + 200: { + bodyMapper: Mappers.Workspace + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.Workspace }, + 201: { + bodyMapper: Mappers.Workspace + }, + 202: { + bodyMapper: Mappers.Workspace + }, + 204: { + bodyMapper: Mappers.Workspace + }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.WorkspaceUpdateParameters, - required: true + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", + httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.Workspace }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const listByResourceGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces", + requestBody: Parameters.parameters1, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.skiptoken - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.resourceGroupName, + Parameters.workspaceName ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.WorkspaceListResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const listKeysOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listKeys", + queryParameters: [Parameters.apiVersion, Parameters.skip], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.resourceGroupName ], + headerParameters: [Parameters.accept], + serializer +}; +const listKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listKeys", + httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.ListWorkspaceKeysResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const resyncKeysOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const resyncKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys", + httpMethod: "POST", responses: { 200: {}, + 201: {}, + 202: {}, + 204: {}, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], serializer }; - -const listBySubscriptionOperationSpec: msRest.OperationSpec = { +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.skiptoken - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.WorkspaceListResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], serializer }; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", +const listNotebookAccessTokenOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookAccessToken", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.NotebookAccessTokenResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.Workspace, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const prepareNotebookOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/prepareNotebook", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.NotebookResourceInfo }, 201: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.NotebookResourceInfo + }, + 202: { + bodyMapper: Mappers.NotebookResourceInfo + }, + 204: { + bodyMapper: Mappers.NotebookResourceInfo }, - 202: {}, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], serializer }; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", +const listStorageAccountKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listStorageAccountKeys", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ListStorageAccountKeysResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const listNotebookKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookKeys", + httpMethod: "POST", responses: { - 200: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.ListNotebookKeysResult + }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], serializer }; - -const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.skiptoken - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.WorkspaceListResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; - -const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.skiptoken - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.WorkspaceListResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/batchDeployments.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/batchDeployments.ts new file mode 100644 index 000000000000..1f2e70f07f09 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/batchDeployments.ts @@ -0,0 +1,104 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + BatchDeploymentTrackedResource, + BatchDeploymentsListOptionalParams, + BatchDeploymentsDeleteOptionalParams, + BatchDeploymentsGetOptionalParams, + BatchDeploymentsGetResponse, + PartialBatchDeploymentPartialTrackedResource, + BatchDeploymentsUpdateOptionalParams, + BatchDeploymentsUpdateResponse, + BatchDeploymentsCreateOrUpdateOptionalParams, + BatchDeploymentsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a BatchDeployments. */ +export interface BatchDeployments { + /** + * Lists Batch inference deployments in the workspace. + * @param endpointName Endpoint name + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: BatchDeploymentsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete Batch Inference deployment. + * @param endpointName Endpoint name + * @param deploymentName Inference deployment identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + options?: BatchDeploymentsDeleteOptionalParams + ): Promise; + /** + * Gets a batch inference deployment by id. + * @param endpointName Endpoint name + * @param deploymentName The identifier for the Batch deployments. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + options?: BatchDeploymentsGetOptionalParams + ): Promise; + /** + * Update a batch inference deployment. + * @param endpointName Inference endpoint name + * @param deploymentName The identifier for the Batch inference deployment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Batch inference deployment definition object. + * @param options The options parameters. + */ + update( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + body: PartialBatchDeploymentPartialTrackedResource, + options?: BatchDeploymentsUpdateOptionalParams + ): Promise; + /** + * Creates/updates a batch inference deployment. + * @param endpointName Inference endpoint name + * @param deploymentName The identifier for the Batch inference deployment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Batch inference deployment definition object. + * @param options The options parameters. + */ + createOrUpdate( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + body: BatchDeploymentTrackedResource, + options?: BatchDeploymentsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/batchEndpoints.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/batchEndpoints.ts new file mode 100644 index 000000000000..328a3117987d --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/batchEndpoints.ts @@ -0,0 +1,109 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + BatchEndpointTrackedResource, + BatchEndpointsListOptionalParams, + BatchEndpointsDeleteOptionalParams, + BatchEndpointsGetOptionalParams, + BatchEndpointsGetResponse, + PartialBatchEndpointPartialTrackedResource, + BatchEndpointsUpdateOptionalParams, + BatchEndpointsUpdateResponse, + BatchEndpointsCreateOrUpdateOptionalParams, + BatchEndpointsCreateOrUpdateResponse, + BatchEndpointsListKeysOptionalParams, + BatchEndpointsListKeysResponse +} from "../models"; + +/// +/** Interface representing a BatchEndpoints. */ +export interface BatchEndpoints { + /** + * Lists Batch inference endpoint in the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: BatchEndpointsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete Batch Inference Endpoint. + * @param endpointName Inference Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: BatchEndpointsDeleteOptionalParams + ): Promise; + /** + * Gets a batch inference endpoint by name. + * @param endpointName Name for the Batch Endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: BatchEndpointsGetOptionalParams + ): Promise; + /** + * Update a batch inference endpoint. + * @param endpointName Name for the Batch inference endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Mutable batch inference endpoint definition object. + * @param options The options parameters. + */ + update( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + body: PartialBatchEndpointPartialTrackedResource, + options?: BatchEndpointsUpdateOptionalParams + ): Promise; + /** + * Creates a batch inference endpoint. + * @param endpointName Name for the Batch inference endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Batch inference endpoint definition object. + * @param options The options parameters. + */ + createOrUpdate( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + body: BatchEndpointTrackedResource, + options?: BatchEndpointsCreateOrUpdateOptionalParams + ): Promise; + /** + * Lists batch Inference Endpoint keys. + * @param endpointName Inference Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + listKeys( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: BatchEndpointsListKeysOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/codeContainers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/codeContainers.ts new file mode 100644 index 000000000000..198d5079ca48 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/codeContainers.ts @@ -0,0 +1,76 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + CodeContainerResource, + CodeContainersListOptionalParams, + CodeContainersDeleteOptionalParams, + CodeContainersGetOptionalParams, + CodeContainersGetResponse, + CodeContainersCreateOrUpdateOptionalParams, + CodeContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a CodeContainers. */ +export interface CodeContainers { + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: CodeContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: CodeContainersDeleteOptionalParams + ): Promise; + /** + * Get container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: CodeContainersGetOptionalParams + ): Promise; + /** + * Create or update container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + name: string, + resourceGroupName: string, + workspaceName: string, + body: CodeContainerResource, + options?: CodeContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/codeVersions.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/codeVersions.ts new file mode 100644 index 000000000000..2f2021d72b07 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/codeVersions.ts @@ -0,0 +1,84 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + CodeVersionResource, + CodeVersionsListOptionalParams, + CodeVersionsDeleteOptionalParams, + CodeVersionsGetOptionalParams, + CodeVersionsGetResponse, + CodeVersionsCreateOrUpdateOptionalParams, + CodeVersionsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a CodeVersions. */ +export interface CodeVersions { + /** + * List versions. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: CodeVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + options?: CodeVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + options?: CodeVersionsGetOptionalParams + ): Promise; + /** + * Create or update version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + body: CodeVersionResource, + options?: CodeVersionsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/computeOperations.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/computeOperations.ts new file mode 100644 index 000000000000..cf78b9a55079 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/computeOperations.ts @@ -0,0 +1,274 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + ComputeResource, + ComputeOperationsListOptionalParams, + AmlComputeNodeInformation, + ComputeOperationsListNodesOptionalParams, + ComputeOperationsGetOptionalParams, + ComputeOperationsGetResponse, + ComputeOperationsCreateOrUpdateOptionalParams, + ComputeOperationsCreateOrUpdateResponse, + ClusterUpdateParameters, + ComputeOperationsUpdateOptionalParams, + ComputeOperationsUpdateResponse, + UnderlyingResourceAction, + ComputeOperationsDeleteOptionalParams, + ComputeOperationsListKeysOptionalParams, + ComputeOperationsListKeysResponse, + ComputeOperationsStartOptionalParams, + ComputeOperationsStopOptionalParams, + ComputeOperationsRestartOptionalParams, + ComputeOperationsUpdateSchedulesOptionalParams +} from "../models"; + +/// +/** Interface representing a ComputeOperations. */ +export interface ComputeOperations { + /** + * Gets computes in specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: ComputeOperationsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get the details (e.g IP address, port etc) of all the compute nodes in the compute. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + listNodes( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeOperationsListNodesOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not + * returned - use 'keys' nested resource to get them. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeOperationsGetOptionalParams + ): Promise; + /** + * Creates or updates compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that + * it does not exist yet. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param parameters Payload with Machine Learning compute definition. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ComputeResource, + options?: ComputeOperationsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ComputeOperationsCreateOrUpdateResponse + > + >; + /** + * Creates or updates compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that + * it does not exist yet. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param parameters Payload with Machine Learning compute definition. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ComputeResource, + options?: ComputeOperationsCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates properties of a compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param parameters Additional parameters for cluster update. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ClusterUpdateParameters, + options?: ComputeOperationsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ComputeOperationsUpdateResponse + > + >; + /** + * Updates properties of a compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param parameters Additional parameters for cluster update. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ClusterUpdateParameters, + options?: ComputeOperationsUpdateOptionalParams + ): Promise; + /** + * Deletes specified Machine Learning compute. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying + * compute from workspace if 'Detach'. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + computeName: string, + underlyingResourceAction: UnderlyingResourceAction, + options?: ComputeOperationsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes specified Machine Learning compute. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying + * compute from workspace if 'Detach'. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + underlyingResourceAction: UnderlyingResourceAction, + options?: ComputeOperationsDeleteOptionalParams + ): Promise; + /** + * Gets secrets related to Machine Learning compute (storage keys, service credentials, etc). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + listKeys( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeOperationsListKeysOptionalParams + ): Promise; + /** + * Posts a start action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + beginStart( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeOperationsStartOptionalParams + ): Promise, void>>; + /** + * Posts a start action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + beginStartAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeOperationsStartOptionalParams + ): Promise; + /** + * Posts a stop action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + beginStop( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeOperationsStopOptionalParams + ): Promise, void>>; + /** + * Posts a stop action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + beginStopAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeOperationsStopOptionalParams + ): Promise; + /** + * Posts a restart action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + restart( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeOperationsRestartOptionalParams + ): Promise; + /** + * Updates schedules of a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + updateSchedules( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeOperationsUpdateSchedulesOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/dataContainers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/dataContainers.ts new file mode 100644 index 000000000000..c94bd6c91f83 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/dataContainers.ts @@ -0,0 +1,76 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + DataContainerResource, + DataContainersListOptionalParams, + DataContainersDeleteOptionalParams, + DataContainersGetOptionalParams, + DataContainersGetResponse, + DataContainersCreateOrUpdateOptionalParams, + DataContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a DataContainers. */ +export interface DataContainers { + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: DataContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: DataContainersDeleteOptionalParams + ): Promise; + /** + * Get container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: DataContainersGetOptionalParams + ): Promise; + /** + * Create or update container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + name: string, + resourceGroupName: string, + workspaceName: string, + body: DataContainerResource, + options?: DataContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/dataVersions.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/dataVersions.ts new file mode 100644 index 000000000000..d7b012f926b1 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/dataVersions.ts @@ -0,0 +1,84 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + DataVersionResource, + DataVersionsListOptionalParams, + DataVersionsDeleteOptionalParams, + DataVersionsGetOptionalParams, + DataVersionsGetResponse, + DataVersionsCreateOrUpdateOptionalParams, + DataVersionsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a DataVersions. */ +export interface DataVersions { + /** + * List data versions. + * @param name Data name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: DataVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + options?: DataVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + options?: DataVersionsGetOptionalParams + ): Promise; + /** + * Create or update version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + body: DataVersionResource, + options?: DataVersionsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/datastores.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/datastores.ts new file mode 100644 index 000000000000..00250e3c495e --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/datastores.ts @@ -0,0 +1,91 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + DatastorePropertiesResource, + DatastoresListOptionalParams, + DatastoresDeleteOptionalParams, + DatastoresGetOptionalParams, + DatastoresGetResponse, + DatastoresCreateOrUpdateOptionalParams, + DatastoresCreateOrUpdateResponse, + DatastoresListSecretsOptionalParams, + DatastoresListSecretsResponse +} from "../models"; + +/// +/** Interface representing a Datastores. */ +export interface Datastores { + /** + * List datastores. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: DatastoresListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete datastore. + * @param name Datastore name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: DatastoresDeleteOptionalParams + ): Promise; + /** + * Get datastore. + * @param name Datastore name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: DatastoresGetOptionalParams + ): Promise; + /** + * Create or update datastore. + * @param name Datastore name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Datastore entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + name: string, + resourceGroupName: string, + workspaceName: string, + body: DatastorePropertiesResource, + options?: DatastoresCreateOrUpdateOptionalParams + ): Promise; + /** + * Get datastore secrets. + * @param name Datastore name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + listSecrets( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: DatastoresListSecretsOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/environmentContainers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/environmentContainers.ts new file mode 100644 index 000000000000..2c32e3db5f4d --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/environmentContainers.ts @@ -0,0 +1,76 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + EnvironmentContainerResource, + EnvironmentContainersListOptionalParams, + EnvironmentContainersDeleteOptionalParams, + EnvironmentContainersGetOptionalParams, + EnvironmentContainersGetResponse, + EnvironmentContainersCreateOrUpdateOptionalParams, + EnvironmentContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a EnvironmentContainers. */ +export interface EnvironmentContainers { + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentContainersDeleteOptionalParams + ): Promise; + /** + * Get container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentContainersGetOptionalParams + ): Promise; + /** + * Create or update container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + name: string, + resourceGroupName: string, + workspaceName: string, + body: EnvironmentContainerResource, + options?: EnvironmentContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/environmentSpecificationVersions.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/environmentSpecificationVersions.ts new file mode 100644 index 000000000000..5a66502e2d92 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/environmentSpecificationVersions.ts @@ -0,0 +1,84 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + EnvironmentSpecificationVersionResource, + EnvironmentSpecificationVersionsListOptionalParams, + EnvironmentSpecificationVersionsDeleteOptionalParams, + EnvironmentSpecificationVersionsGetOptionalParams, + EnvironmentSpecificationVersionsGetResponse, + EnvironmentSpecificationVersionsCreateOrUpdateOptionalParams, + EnvironmentSpecificationVersionsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a EnvironmentSpecificationVersions. */ +export interface EnvironmentSpecificationVersions { + /** + * List versions. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentSpecificationVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentSpecificationVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentSpecificationVersionsGetOptionalParams + ): Promise; + /** + * Creates or updates an EnvironmentSpecificationVersion. + * @param name Name of EnvironmentSpecificationVersion. + * @param version Version of EnvironmentSpecificationVersion. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Definition of EnvironmentSpecificationVersion. + * @param options The options parameters. + */ + createOrUpdate( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + body: EnvironmentSpecificationVersionResource, + options?: EnvironmentSpecificationVersionsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/index.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/index.ts new file mode 100644 index 000000000000..16a0b67e9ad9 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/index.ts @@ -0,0 +1,34 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +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 "./batchEndpoints"; +export * from "./batchDeployments"; +export * from "./codeContainers"; +export * from "./codeVersions"; +export * from "./dataContainers"; +export * from "./dataVersions"; +export * from "./datastores"; +export * from "./environmentContainers"; +export * from "./environmentSpecificationVersions"; +export * from "./jobs"; +export * from "./labelingJobs"; +export * from "./modelContainers"; +export * from "./modelVersions"; +export * from "./onlineEndpoints"; +export * from "./onlineDeployments"; +export * from "./workspaceFeatures"; +export * from "./workspaceSkus"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/jobs.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/jobs.ts new file mode 100644 index 000000000000..6646b8a833fb --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/jobs.ts @@ -0,0 +1,104 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + JobBaseResource, + JobsListOptionalParams, + JobsDeleteOptionalParams, + JobsGetOptionalParams, + JobsGetResponse, + JobsCreateOrUpdateOptionalParams, + JobsCreateOrUpdateResponse, + JobsCancelOptionalParams +} from "../models"; + +/// +/** Interface representing a Jobs. */ +export interface Jobs { + /** + * Lists Jobs in the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: JobsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Deletes a Job (asynchronous). + * @param id The name and identifier for the Job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginDelete( + id: string, + resourceGroupName: string, + workspaceName: string, + options?: JobsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a Job (asynchronous). + * @param id The name and identifier for the Job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginDeleteAndWait( + id: string, + resourceGroupName: string, + workspaceName: string, + options?: JobsDeleteOptionalParams + ): Promise; + /** + * Gets a Job by name/id. + * @param id The name and identifier for the Job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + id: string, + resourceGroupName: string, + workspaceName: string, + options?: JobsGetOptionalParams + ): Promise; + /** + * Creates and executes a Job. + * @param id The name and identifier for the Job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Job definition object. + * @param options The options parameters. + */ + createOrUpdate( + id: string, + resourceGroupName: string, + workspaceName: string, + body: JobBaseResource, + options?: JobsCreateOrUpdateOptionalParams + ): Promise; + /** + * Cancels a Job. + * @param id The name and identifier for the Job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + cancel( + id: string, + resourceGroupName: string, + workspaceName: string, + options?: JobsCancelOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/labelingJobs.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/labelingJobs.ts new file mode 100644 index 000000000000..595a269573eb --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/labelingJobs.ts @@ -0,0 +1,176 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + LabelingJobResource, + LabelingJobsListOptionalParams, + LabelingJobsDeleteOptionalParams, + LabelingJobsGetOptionalParams, + LabelingJobsGetResponse, + LabelingJobsCreateOrUpdateOptionalParams, + LabelingJobsCreateOrUpdateResponse, + ExportSummaryUnion, + LabelingJobsExportLabelsOptionalParams, + LabelingJobsExportLabelsResponse, + LabelingJobsPauseOptionalParams, + LabelingJobsResumeOptionalParams +} from "../models"; + +/// +/** Interface representing a LabelingJobs. */ +export interface LabelingJobs { + /** + * Lists labeling jobs in the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete a labeling job. + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + id: string, + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsDeleteOptionalParams + ): Promise; + /** + * Gets a labeling job by name/id. + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + id: string, + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsGetOptionalParams + ): Promise; + /** + * Creates or updates a labeling job (asynchronous). + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body LabelingJob definition object. + * @param options The options parameters. + */ + beginCreateOrUpdate( + id: string, + resourceGroupName: string, + workspaceName: string, + body: LabelingJobResource, + options?: LabelingJobsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + LabelingJobsCreateOrUpdateResponse + > + >; + /** + * Creates or updates a labeling job (asynchronous). + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body LabelingJob definition object. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + id: string, + resourceGroupName: string, + workspaceName: string, + body: LabelingJobResource, + options?: LabelingJobsCreateOrUpdateOptionalParams + ): Promise; + /** + * Export labels from a labeling job (asynchronous). + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body The export summary. + * @param options The options parameters. + */ + beginExportLabels( + id: string, + resourceGroupName: string, + workspaceName: string, + body: ExportSummaryUnion, + options?: LabelingJobsExportLabelsOptionalParams + ): Promise< + PollerLike< + PollOperationState, + LabelingJobsExportLabelsResponse + > + >; + /** + * Export labels from a labeling job (asynchronous). + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body The export summary. + * @param options The options parameters. + */ + beginExportLabelsAndWait( + id: string, + resourceGroupName: string, + workspaceName: string, + body: ExportSummaryUnion, + options?: LabelingJobsExportLabelsOptionalParams + ): Promise; + /** + * Pause a labeling job. + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + pause( + id: string, + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsPauseOptionalParams + ): Promise; + /** + * Resume a labeling job (asynchronous). + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginResume( + id: string, + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsResumeOptionalParams + ): Promise, void>>; + /** + * Resume a labeling job (asynchronous). + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginResumeAndWait( + id: string, + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsResumeOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/modelContainers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/modelContainers.ts new file mode 100644 index 000000000000..45d6d49a7108 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/modelContainers.ts @@ -0,0 +1,76 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ModelContainerResource, + ModelContainersListOptionalParams, + ModelContainersDeleteOptionalParams, + ModelContainersGetOptionalParams, + ModelContainersGetResponse, + ModelContainersCreateOrUpdateOptionalParams, + ModelContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a ModelContainers. */ +export interface ModelContainers { + /** + * List model containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: ModelContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: ModelContainersDeleteOptionalParams + ): Promise; + /** + * Get container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: ModelContainersGetOptionalParams + ): Promise; + /** + * Create or update container. + * @param name Container name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + name: string, + resourceGroupName: string, + workspaceName: string, + body: ModelContainerResource, + options?: ModelContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/modelVersions.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/modelVersions.ts new file mode 100644 index 000000000000..3a391a40a0d8 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/modelVersions.ts @@ -0,0 +1,84 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ModelVersionResource, + ModelVersionsListOptionalParams, + ModelVersionsDeleteOptionalParams, + ModelVersionsGetOptionalParams, + ModelVersionsGetResponse, + ModelVersionsCreateOrUpdateOptionalParams, + ModelVersionsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a ModelVersions. */ +export interface ModelVersions { + /** + * List model versions. + * @param name Model name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + name: string, + resourceGroupName: string, + workspaceName: string, + options?: ModelVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + delete( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + options?: ModelVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + options?: ModelVersionsGetOptionalParams + ): Promise; + /** + * Create or update version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + name: string, + version: string, + resourceGroupName: string, + workspaceName: string, + body: ModelVersionResource, + options?: ModelVersionsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/onlineDeployments.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/onlineDeployments.ts new file mode 100644 index 000000000000..83a1df4962a1 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/onlineDeployments.ts @@ -0,0 +1,184 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + OnlineDeploymentTrackedResource, + OnlineDeploymentsListOptionalParams, + OnlineDeploymentsDeleteOptionalParams, + OnlineDeploymentsGetOptionalParams, + OnlineDeploymentsGetResponse, + PartialOnlineDeploymentPartialTrackedResource, + OnlineDeploymentsUpdateOptionalParams, + OnlineDeploymentsUpdateResponse, + OnlineDeploymentsCreateOrUpdateOptionalParams, + OnlineDeploymentsCreateOrUpdateResponse, + DeploymentLogsRequest, + OnlineDeploymentsGetLogsOptionalParams, + OnlineDeploymentsGetLogsResponse +} from "../models"; + +/// +/** Interface representing a OnlineDeployments. */ +export interface OnlineDeployments { + /** + * List Inference Endpoint Deployments. + * @param endpointName Inference endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: OnlineDeploymentsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete Inference Endpoint Deployment (asynchronous). + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginDelete( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + options?: OnlineDeploymentsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete Inference Endpoint Deployment (asynchronous). + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginDeleteAndWait( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + options?: OnlineDeploymentsDeleteOptionalParams + ): Promise; + /** + * Get Inference Deployment Deployment. + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + options?: OnlineDeploymentsGetOptionalParams + ): Promise; + /** + * Update Online Deployment (asynchronous). + * @param endpointName Online Endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginUpdate( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + body: PartialOnlineDeploymentPartialTrackedResource, + options?: OnlineDeploymentsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + OnlineDeploymentsUpdateResponse + > + >; + /** + * Update Online Deployment (asynchronous). + * @param endpointName Online Endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginUpdateAndWait( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + body: PartialOnlineDeploymentPartialTrackedResource, + options?: OnlineDeploymentsUpdateOptionalParams + ): Promise; + /** + * Create or update Inference Endpoint Deployment (asynchronous). + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Inference Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + body: OnlineDeploymentTrackedResource, + options?: OnlineDeploymentsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + OnlineDeploymentsCreateOrUpdateResponse + > + >; + /** + * Create or update Inference Endpoint Deployment (asynchronous). + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Inference Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + body: OnlineDeploymentTrackedResource, + options?: OnlineDeploymentsCreateOrUpdateOptionalParams + ): Promise; + /** + * Polls an Endpoint operation. + * @param endpointName Inference endpoint name. + * @param deploymentName The name and identifier for the endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body The request containing parameters for retrieving logs. + * @param options The options parameters. + */ + getLogs( + endpointName: string, + deploymentName: string, + resourceGroupName: string, + workspaceName: string, + body: DeploymentLogsRequest, + options?: OnlineDeploymentsGetLogsOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/onlineEndpoints.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/onlineEndpoints.ts new file mode 100644 index 000000000000..b0efa1a15d60 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/onlineEndpoints.ts @@ -0,0 +1,210 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + OnlineEndpointTrackedResource, + OnlineEndpointsListOptionalParams, + OnlineEndpointsDeleteOptionalParams, + OnlineEndpointsGetOptionalParams, + OnlineEndpointsGetResponse, + PartialOnlineEndpointPartialTrackedResource, + OnlineEndpointsUpdateOptionalParams, + OnlineEndpointsUpdateResponse, + OnlineEndpointsCreateOrUpdateOptionalParams, + OnlineEndpointsCreateOrUpdateResponse, + OnlineEndpointsListKeysOptionalParams, + OnlineEndpointsListKeysResponse, + RegenerateEndpointKeysRequest, + OnlineEndpointsRegenerateKeysOptionalParams, + OnlineEndpointsGetTokenOptionalParams, + OnlineEndpointsGetTokenResponse +} from "../models"; + +/// +/** Interface representing a OnlineEndpoints. */ +export interface OnlineEndpoints { + /** + * List Online Endpoints. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: OnlineEndpointsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete Online Endpoint (asynchronous). + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginDelete( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: OnlineEndpointsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete Online Endpoint (asynchronous). + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginDeleteAndWait( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: OnlineEndpointsDeleteOptionalParams + ): Promise; + /** + * Get Online Endpoint. + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: OnlineEndpointsGetOptionalParams + ): Promise; + /** + * Update Online Endpoint (asynchronous). + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginUpdate( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + body: PartialOnlineEndpointPartialTrackedResource, + options?: OnlineEndpointsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + OnlineEndpointsUpdateResponse + > + >; + /** + * Update Online Endpoint (asynchronous). + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginUpdateAndWait( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + body: PartialOnlineEndpointPartialTrackedResource, + options?: OnlineEndpointsUpdateOptionalParams + ): Promise; + /** + * Create or update Online Endpoint (asynchronous). + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + body: OnlineEndpointTrackedResource, + options?: OnlineEndpointsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + OnlineEndpointsCreateOrUpdateResponse + > + >; + /** + * Create or update Online Endpoint (asynchronous). + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + body: OnlineEndpointTrackedResource, + options?: OnlineEndpointsCreateOrUpdateOptionalParams + ): Promise; + /** + * List EndpointAuthKeys for an Endpoint using Key-based authentication. + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + listKeys( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: OnlineEndpointsListKeysOptionalParams + ): Promise; + /** + * Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body RegenerateKeys request . + * @param options The options parameters. + */ + beginRegenerateKeys( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + body: RegenerateEndpointKeysRequest, + options?: OnlineEndpointsRegenerateKeysOptionalParams + ): Promise, void>>; + /** + * Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body RegenerateKeys request . + * @param options The options parameters. + */ + beginRegenerateKeysAndWait( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + body: RegenerateEndpointKeysRequest, + options?: OnlineEndpointsRegenerateKeysOptionalParams + ): Promise; + /** + * Retrieve a valid AAD token for an Endpoint using AMLToken-based authentication. + * @param endpointName Online Endpoint name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + getToken( + endpointName: string, + resourceGroupName: string, + workspaceName: string, + options?: OnlineEndpointsGetTokenOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/operations.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/operations.ts new file mode 100644 index 000000000000..de2a6b1f9b9f --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/operations.ts @@ -0,0 +1,23 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Operation, OperationsListOptionalParams } from "../models"; + +/// +/** Interface representing a Operations. */ +export interface Operations { + /** + * Lists all of the available Azure Machine Learning Workspaces REST API operations. + * @param options The options parameters. + */ + list( + options?: OperationsListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/privateEndpointConnections.ts new file mode 100644 index 000000000000..61bb593a028c --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/privateEndpointConnections.ts @@ -0,0 +1,79 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + PrivateEndpointConnection, + PrivateEndpointConnectionsListOptionalParams, + PrivateEndpointConnectionsGetOptionalParams, + PrivateEndpointConnectionsGetResponse, + PrivateEndpointConnectionsCreateOrUpdateOptionalParams, + PrivateEndpointConnectionsCreateOrUpdateResponse, + PrivateEndpointConnectionsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a PrivateEndpointConnections. */ +export interface PrivateEndpointConnections { + /** + * List all the private endpoint connections associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the specified private endpoint connection associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the + * workspace + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsGetOptionalParams + ): Promise; + /** + * Update the state of specified private endpoint connection associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the + * workspace + * @param properties The private endpoint connection properties. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + properties: PrivateEndpointConnection, + options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the specified private endpoint connection associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the + * workspace + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/privateLinkResources.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/privateLinkResources.ts new file mode 100644 index 000000000000..9297407ea513 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/privateLinkResources.ts @@ -0,0 +1,27 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + PrivateLinkResourcesListOptionalParams, + PrivateLinkResourcesListResponse +} from "../models"; + +/** Interface representing a PrivateLinkResources. */ +export interface PrivateLinkResources { + /** + * Gets the private link resources that need to be created for a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateLinkResourcesListOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/quotas.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/quotas.ts new file mode 100644 index 000000000000..675bf4786388 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/quotas.ts @@ -0,0 +1,42 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ResourceQuota, + QuotasListOptionalParams, + QuotaUpdateParameters, + QuotasUpdateOptionalParams, + QuotasUpdateResponse +} from "../models"; + +/// +/** Interface representing a Quotas. */ +export interface Quotas { + /** + * Gets the currently assigned Workspace Quotas based on VMFamily. + * @param location The location for which resource usage is queried. + * @param options The options parameters. + */ + list( + location: string, + options?: QuotasListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Update quota for each VM family in workspace. + * @param location The location for update quota is queried. + * @param parameters Quota update parameters. + * @param options The options parameters. + */ + update( + location: string, + parameters: QuotaUpdateParameters, + options?: QuotasUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/usages.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/usages.ts new file mode 100644 index 000000000000..d24beb2ec49f --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/usages.ts @@ -0,0 +1,26 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Usage, UsagesListOptionalParams } from "../models"; + +/// +/** Interface representing a Usages. */ +export interface Usages { + /** + * Gets the current usage information as well as limits for AML resources for given subscription and + * location. + * @param location The location for which resource usage is queried. + * @param options The options parameters. + */ + list( + location: string, + options?: UsagesListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/virtualMachineSizes.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/virtualMachineSizes.ts new file mode 100644 index 000000000000..5d9839525136 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/virtualMachineSizes.ts @@ -0,0 +1,25 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + VirtualMachineSizesListOptionalParams, + VirtualMachineSizesListResponse +} from "../models"; + +/** Interface representing a VirtualMachineSizes. */ +export interface VirtualMachineSizes { + /** + * Returns supported VM Sizes in a location + * @param location The location upon which virtual-machine-sizes is queried. + * @param options The options parameters. + */ + list( + location: string, + options?: VirtualMachineSizesListOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaceConnections.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaceConnections.ts new file mode 100644 index 000000000000..65b46c7d4bb9 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaceConnections.ts @@ -0,0 +1,76 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + WorkspaceConnection, + WorkspaceConnectionsListOptionalParams, + WorkspaceConnectionsCreateOptionalParams, + WorkspaceConnectionsCreateResponse, + WorkspaceConnectionsGetOptionalParams, + WorkspaceConnectionsGetResponse, + WorkspaceConnectionsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceConnections. */ +export interface WorkspaceConnections { + /** + * List all connections under a AML workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceConnectionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Add a new workspace connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param parameters The object for creating or updating a new workspace connection + * @param options The options parameters. + */ + create( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + parameters: WorkspaceConnection, + options?: WorkspaceConnectionsCreateOptionalParams + ): Promise; + /** + * Get the detail of a workspace connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsGetOptionalParams + ): Promise; + /** + * Delete a workspace connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaceFeatures.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaceFeatures.ts new file mode 100644 index 000000000000..8b12b4c4d2b4 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaceFeatures.ts @@ -0,0 +1,27 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { AmlUserFeature, WorkspaceFeaturesListOptionalParams } from "../models"; + +/// +/** Interface representing a WorkspaceFeatures. */ +export interface WorkspaceFeatures { + /** + * Lists all enabled features for a workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceFeaturesListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaceSkus.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaceSkus.ts new file mode 100644 index 000000000000..51b1e99b2a18 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaceSkus.ts @@ -0,0 +1,23 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { WorkspaceSku, WorkspaceSkusListOptionalParams } from "../models"; + +/// +/** Interface representing a WorkspaceSkus. */ +export interface WorkspaceSkus { + /** + * Lists all skus with associated features + * @param options The options parameters. + */ + list( + options?: WorkspaceSkusListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaces.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaces.ts new file mode 100644 index 000000000000..f0743a9957d3 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaces.ts @@ -0,0 +1,225 @@ +/* + * 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 "@azure/core-paging"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + Workspace, + WorkspacesListByResourceGroupOptionalParams, + WorkspacesListBySubscriptionOptionalParams, + WorkspacesGetOptionalParams, + WorkspacesGetResponse, + WorkspacesCreateOrUpdateOptionalParams, + WorkspacesCreateOrUpdateResponse, + WorkspacesDeleteOptionalParams, + WorkspaceUpdateParameters, + WorkspacesUpdateOptionalParams, + WorkspacesUpdateResponse, + WorkspacesListKeysOptionalParams, + WorkspacesListKeysResponse, + WorkspacesResyncKeysOptionalParams, + WorkspacesListNotebookAccessTokenOptionalParams, + WorkspacesListNotebookAccessTokenResponse, + WorkspacesPrepareNotebookOptionalParams, + WorkspacesPrepareNotebookResponse, + WorkspacesListStorageAccountKeysOptionalParams, + WorkspacesListStorageAccountKeysResponse, + WorkspacesListNotebookKeysOptionalParams, + WorkspacesListNotebookKeysResponse +} from "../models"; + +/// +/** Interface representing a Workspaces. */ +export interface Workspaces { + /** + * Lists all the available machine learning workspaces under the specified resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator; + /** + * Lists all the available machine learning workspaces under the specified subscription. + * @param options The options parameters. + */ + listBySubscription( + options?: WorkspacesListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the properties of the specified machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesGetOptionalParams + ): Promise; + /** + * Creates or updates a workspace with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param parameters The parameters for creating or updating a machine learning workspace. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + parameters: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesCreateOrUpdateResponse + > + >; + /** + * Creates or updates a workspace with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param parameters The parameters for creating or updating a machine learning workspace. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + parameters: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDeleteOptionalParams + ): Promise; + /** + * Updates a machine learning workspace with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param parameters The parameters for updating a machine learning workspace. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + workspaceName: string, + parameters: WorkspaceUpdateParameters, + options?: WorkspacesUpdateOptionalParams + ): Promise; + /** + * Lists all the keys associated with this workspace. This includes keys for the storage account, app + * insights and password for container registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + listKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListKeysOptionalParams + ): Promise; + /** + * Resync all the keys associated with this workspace. This includes keys for the storage account, app + * insights and password for container registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginResyncKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesResyncKeysOptionalParams + ): Promise, void>>; + /** + * Resync all the keys associated with this workspace. This includes keys for the storage account, app + * insights and password for container registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginResyncKeysAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesResyncKeysOptionalParams + ): Promise; + /** + * return notebook access token and refresh token + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + listNotebookAccessToken( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListNotebookAccessTokenOptionalParams + ): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginPrepareNotebook( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesPrepareNotebookOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesPrepareNotebookResponse + > + >; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginPrepareNotebookAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesPrepareNotebookOptionalParams + ): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + listStorageAccountKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListStorageAccountKeysOptionalParams + ): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + listNotebookKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListNotebookKeysOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/tsconfig.json b/sdk/machinelearningservices/arm-machinelearningservices/tsconfig.json index 422b584abd5e..0ec8659c8e83 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/tsconfig.json +++ b/sdk/machinelearningservices/arm-machinelearningservices/tsconfig.json @@ -3,12 +3,13 @@ "module": "es6", "moduleResolution": "node", "strict": true, - "target": "es5", + "target": "es6", "sourceMap": true, "declarationMap": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, + "preserveConstEnums": true, "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", diff --git a/sdk/machinelearningservices/ci.yml b/sdk/machinelearningservices/ci.yml new file mode 100644 index 000000000000..b17d7ff51bbc --- /dev/null +++ b/sdk/machinelearningservices/ci.yml @@ -0,0 +1,29 @@ +# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. +trigger: + branches: + include: + - main + - release/* + - hotfix/* + paths: + include: + - sdk/machinelearningservices/ + +pr: + branches: + include: + - main + - release/* + - hotfix/* + paths: + include: + - sdk/machinelearningservices/ + +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml + parameters: + ServiceDirectory: machinelearningservices + Artifacts: + - name: azure-arm-machinelearningservices + safeName: azurearmmachinelearningservices + \ No newline at end of file