From 91c4fbf52b3ed9bc43cf1b30830080d594fb81bb Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 17 Aug 2021 05:16:35 +0000 Subject: [PATCH] CodeGen from PR 15670 in Azure/azure-rest-api-specs Merge 463a303959d8bde96488bfbabb240a711f62c7fd into 60d6c393c7e71b45ebe0976a35fd7a5841993159 --- .../arm-machinelearningservices/LICENSE.txt | 2 +- .../arm-machinelearningservices/README.md | 9 +- .../arm-machinelearningservices/package.json | 2 +- .../src/azureMachineLearningWorkspaces.ts | 148 +- .../azureMachineLearningWorkspacesContext.ts | 8 +- .../src/models/batchDeploymentsMappers.ts | 189 + .../src/models/batchEndpointsMappers.ts | 189 + .../src/models/codeContainersMappers.ts | 187 + .../src/models/codeVersionsMappers.ts | 187 + .../src/models/computeOperationsMappers.ts | 197 + .../src/models/dataContainersMappers.ts | 187 + .../src/models/dataVersionsMappers.ts | 187 + .../src/models/datastoresMappers.ts | 187 + .../models/environmentContainersMappers.ts | 187 + ...environmentSpecificationVersionsMappers.ts | 187 + .../src/models/index.ts | 8025 +++++++++++++++-- .../src/models/jobsMappers.ts | 188 + .../src/models/labelingJobsMappers.ts | 194 + .../models/machineLearningComputeMappers.ts | 71 - .../src/models/mappers.ts | 7520 +++++++++++++-- .../src/models/modelContainersMappers.ts | 187 + .../src/models/modelVersionsMappers.ts | 187 + .../src/models/onlineDeploymentsMappers.ts | 196 + .../src/models/onlineEndpointsMappers.ts | 195 + .../src/models/operationsMappers.ts | 2 +- .../src/models/parameters.ts | 377 +- .../privateEndpointConnectionsMappers.ts | 131 +- .../src/models/privateLinkResourcesMappers.ts | 130 +- .../src/models/quotasMappers.ts | 3 +- .../src/models/workspaceConnectionsMappers.ts | 133 +- .../src/models/workspaceFeaturesMappers.ts | 4 +- ...ooksMappers.ts => workspaceSkusMappers.ts} | 10 +- .../src/models/workspacesMappers.ts | 134 +- .../src/operations/batchDeployments.ts | 441 + .../src/operations/batchEndpoints.ts | 476 + .../src/operations/codeContainers.ts | 339 + .../src/operations/codeVersions.ts | 363 + ...earningCompute.ts => computeOperations.ts} | 403 +- .../src/operations/dataContainers.ts | 339 + .../src/operations/dataVersions.ts | 365 + .../src/operations/datastores.ts | 414 + .../src/operations/environmentContainers.ts | 339 + .../environmentSpecificationVersions.ts | 363 + .../src/operations/index.ts | 23 +- .../src/operations/jobs.ts | 411 + .../src/operations/labelingJobs.ts | 540 ++ .../src/operations/modelContainers.ts | 341 + .../src/operations/modelVersions.ts | 373 + .../src/operations/notebooks.ts | 84 - .../src/operations/onlineDeployments.ts | 522 ++ .../src/operations/onlineEndpoints.ts | 629 ++ .../src/operations/operations.ts | 2 +- .../operations/privateEndpointConnections.ts | 127 +- .../src/operations/privateLinkResources.ts | 22 +- .../src/operations/quotas.ts | 8 +- .../src/operations/virtualMachineSizes.ts | 10 +- .../src/operations/workspaceConnections.ts | 42 +- .../src/operations/workspaceFeatures.ts | 10 +- .../src/operations/workspaceSkus.ts | 128 + .../src/operations/workspaces.ts | 335 +- 60 files changed, 25334 insertions(+), 1855 deletions(-) create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/batchDeploymentsMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/batchEndpointsMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/codeContainersMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/codeVersionsMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/computeOperationsMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/dataContainersMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/dataVersionsMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/datastoresMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/environmentContainersMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/environmentSpecificationVersionsMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/jobsMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/labelingJobsMappers.ts delete mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/modelContainersMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/modelVersionsMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/onlineDeploymentsMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/onlineEndpointsMappers.ts rename sdk/machinelearningservices/arm-machinelearningservices/src/models/{notebooksMappers.ts => workspaceSkusMappers.ts} (69%) create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/batchDeployments.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/batchEndpoints.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/codeContainers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/codeVersions.ts rename sdk/machinelearningservices/arm-machinelearningservices/src/operations/{machineLearningCompute.ts => computeOperations.ts} (66%) create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/dataContainers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/dataVersions.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/datastores.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/environmentContainers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/environmentSpecificationVersions.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/jobs.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/labelingJobs.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/modelContainers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/modelVersions.ts delete mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/notebooks.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/onlineDeployments.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/onlineEndpoints.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceSkus.ts diff --git a/sdk/machinelearningservices/arm-machinelearningservices/LICENSE.txt b/sdk/machinelearningservices/arm-machinelearningservices/LICENSE.txt index ea8fb1516028..2d3163745319 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 diff --git a/sdk/machinelearningservices/arm-machinelearningservices/README.md b/sdk/machinelearningservices/arm-machinelearningservices/README.md index 33d5aa2d1e54..17bc6c8df2e1 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/README.md +++ b/sdk/machinelearningservices/arm-machinelearningservices/README.md @@ -1,11 +1,11 @@ ## Azure AzureMachineLearningWorkspaces SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureMachineLearningWorkspaces. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for AzureMachineLearningWorkspaces. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash npm install --save @azure/arm-machinelearningservices @azure/identity ``` - > **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ In the below samples, we pass the credential and the Azure subscription id to instantiate the client. Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. - #### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code @@ -51,7 +49,6 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; // Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. const creds = new DefaultAzureCredential(); const client = new AzureMachineLearningWorkspaces(creds, subscriptionId); - client.operations.list().then((result) => { console.log("The result is:"); console.log(result); @@ -86,7 +83,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmMachinelearningservices.AzureMachineLearningWorkspaces(creds, subscriptionId); client.operations.list().then((result) => { diff --git a/sdk/machinelearningservices/arm-machinelearningservices/package.json b/sdk/machinelearningservices/arm-machinelearningservices/package.json index 312ec4661b4f..55e53a26c29f 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/package.json +++ b/sdk/machinelearningservices/arm-machinelearningservices/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/machinelearningservices/arm-machinelearningservices", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/machinelearningservices/arm-machinelearningservices", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts index 927e99eb1220..579248e84e1a 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts @@ -11,7 +11,6 @@ import * as msRest from "@azure/ms-rest-js"; import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; -import * as Parameters from "./models/parameters"; import * as operations from "./operations"; import { AzureMachineLearningWorkspacesContext } from "./azureMachineLearningWorkspacesContext"; @@ -20,15 +19,30 @@ class AzureMachineLearningWorkspaces extends AzureMachineLearningWorkspacesConte // 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; + compute: operations.ComputeOperations; privateEndpointConnections: operations.PrivateEndpointConnections; privateLinkResources: operations.PrivateLinkResources; + workspaceConnections: operations.WorkspaceConnections; + batchEndpoints: operations.BatchEndpoints; + batchDeployments: operations.BatchDeployments; + codeContainers: operations.CodeContainers; + codeVersions: operations.CodeVersions; + dataContainers: operations.DataContainers; + dataVersions: operations.DataVersions; + datastores: operations.Datastores; + environmentContainers: operations.EnvironmentContainers; + environmentSpecificationVersions: operations.EnvironmentSpecificationVersions; + jobs: operations.Jobs; + labelingJobs: operations.LabelingJobs; + modelContainers: operations.ModelContainers; + modelVersions: operations.ModelVersions; + onlineEndpoints: operations.OnlineEndpoints; + onlineDeployments: operations.OnlineDeployments; + workspaceFeatures: operations.WorkspaceFeatures; + workspaceSkus: operations.WorkspaceSkus; /** * Initializes a new instance of the AzureMachineLearningWorkspaces class. @@ -38,125 +52,41 @@ class AzureMachineLearningWorkspaces extends AzureMachineLearningWorkspacesConte * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and * @azure/ms-rest-browserauth are also supported. - * @param subscriptionId Azure subscription identifier. + * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureMachineLearningWorkspacesOptions) { 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.compute = new operations.ComputeOperations(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; - } - - /** - * 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; + this.workspaceConnections = new operations.WorkspaceConnections(this); + this.batchEndpoints = new operations.BatchEndpoints(this); + this.batchDeployments = new operations.BatchDeployments(this); + this.codeContainers = new operations.CodeContainers(this); + this.codeVersions = new operations.CodeVersions(this); + this.dataContainers = new operations.DataContainers(this); + this.dataVersions = new operations.DataVersions(this); + this.datastores = new operations.Datastores(this); + this.environmentContainers = new operations.EnvironmentContainers(this); + this.environmentSpecificationVersions = new operations.EnvironmentSpecificationVersions(this); + this.jobs = new operations.Jobs(this); + this.labelingJobs = new operations.LabelingJobs(this); + this.modelContainers = new operations.ModelContainers(this); + this.modelVersions = new operations.ModelVersions(this); + this.onlineEndpoints = new operations.OnlineEndpoints(this); + this.onlineDeployments = new operations.OnlineDeployments(this); + this.workspaceFeatures = new operations.WorkspaceFeatures(this); + this.workspaceSkus = new operations.WorkspaceSkus(this); } } // 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, diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts index f6e92d0a3e5b..5c485e5edaa6 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts @@ -9,16 +9,16 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-machinelearningservices"; const packageVersion = "4.1.1"; export class AzureMachineLearningWorkspacesContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials | TokenCredential; - subscriptionId: string; apiVersion?: string; + subscriptionId: string; /** * Initializes a new instance of the AzureMachineLearningWorkspaces class. @@ -28,7 +28,7 @@ export class AzureMachineLearningWorkspacesContext extends msRestAzure.AzureServ * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and * @azure/ms-rest-browserauth are also supported. - * @param subscriptionId Azure subscription identifier. + * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureMachineLearningWorkspacesOptions) { @@ -49,7 +49,7 @@ export class AzureMachineLearningWorkspacesContext extends msRestAzure.AzureServ super(credentials, options); - this.apiVersion = '2020-08-01'; + this.apiVersion = '2021-03-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/batchDeploymentsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/batchDeploymentsMappers.ts new file mode 100644 index 000000000000..358b000eeca3 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/batchDeploymentsMappers.ts @@ -0,0 +1,189 @@ +/* + * 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, + AccountKeyDatastoreCredentials, + AccountKeyDatastoreSecrets, + AKS, + AksNetworkingConfiguration, + AKSProperties, + AmlCompute, + AmlComputeProperties, + AmlToken, + AssetReferenceBase, + AssignedUser, + AutoScaleSettings, + AzureBlobContents, + AzureDataLakeGen1Contents, + AzureDataLakeGen2Contents, + AzureEntityResource, + AzureFileContents, + AzurePostgreSqlContents, + AzureSqlDatabaseContents, + BanditPolicy, + BaseResource, + BatchDeployment, + BatchDeploymentTrackedResource, + BatchDeploymentTrackedResourceArmPaginatedResult, + BatchEndpoint, + BatchEndpointTrackedResource, + BatchOutputConfiguration, + BatchRetrySettings, + CertificateDatastoreCredentials, + CertificateDatastoreSecrets, + CodeConfiguration, + CodeContainer, + CodeContainerResource, + CodeVersion, + CodeVersionResource, + CommandJob, + Compute, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeResource, + ComputeSchedules, + ComputeStartStopSchedule, + ContainerResourceRequirements, + CosmosDbSettings, + Cron, + Databricks, + DatabricksProperties, + DataContainer, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatastoreContents, + DatastoreCredentials, + DatastoreProperties, + DatastorePropertiesResource, + DatastoreSecrets, + DataVersion, + DataVersionResource, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicy, + EncryptionProperty, + EndpointAuthKeys, + EnvironmentContainer, + EnvironmentContainerResource, + EnvironmentSpecificationVersion, + EnvironmentSpecificationVersionResource, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + FlavorData, + GlusterFsContents, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + IdentityForCmk, + InferenceContainerProperties, + InputDataBinding, + JobBase, + JobBaseResource, + JobEndpoint, + JobOutput, + K8sOnlineDeployment, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJob, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + ManagedIdentity, + ManagedOnlineDeployment, + ManualScaleSettings, + MedianStoppingPolicy, + MLAssistConfiguration, + ModelContainer, + ModelContainerResource, + ModelVersion, + ModelVersionResource, + Mpi, + NodeStateCounts, + NoneDatastoreCredentials, + NoneDatastoreSecrets, + NotebookPreparationError, + NotebookResourceInfo, + Objective, + OnlineDeployment, + OnlineDeploymentTrackedResource, + OnlineEndpoint, + OnlineEndpointTrackedResource, + OnlineRequestSettings, + OnlineScaleSettings, + OutputDataBinding, + OutputPathAssetReference, + PartialBatchDeployment, + PartialBatchDeploymentPartialTrackedResource, + PersonalComputeInstanceSettings, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProbeSettings, + ProgressMetrics, + ProxyResource, + PyTorch, + Recurrence, + RecurrenceSchedule, + Resource, + ResourceId, + ResourceIdentity, + Route, + SasDatastoreCredentials, + SasDatastoreSecrets, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServicePrincipalDatastoreCredentials, + ServicePrincipalDatastoreSecrets, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SqlAdminDatastoreCredentials, + SqlAdminDatastoreSecrets, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TrackedResource, + TrialComponent, + TruncationSelectionPolicy, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/batchEndpointsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/batchEndpointsMappers.ts new file mode 100644 index 000000000000..cbd592e207a5 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/batchEndpointsMappers.ts @@ -0,0 +1,189 @@ +/* + * 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, + AccountKeyDatastoreCredentials, + AccountKeyDatastoreSecrets, + AKS, + AksNetworkingConfiguration, + AKSProperties, + AmlCompute, + AmlComputeProperties, + AmlToken, + AssetReferenceBase, + AssignedUser, + AutoScaleSettings, + AzureBlobContents, + AzureDataLakeGen1Contents, + AzureDataLakeGen2Contents, + AzureEntityResource, + AzureFileContents, + AzurePostgreSqlContents, + AzureSqlDatabaseContents, + BanditPolicy, + BaseResource, + BatchDeployment, + BatchDeploymentTrackedResource, + BatchEndpoint, + BatchEndpointTrackedResource, + BatchEndpointTrackedResourceArmPaginatedResult, + BatchOutputConfiguration, + BatchRetrySettings, + CertificateDatastoreCredentials, + CertificateDatastoreSecrets, + CodeConfiguration, + CodeContainer, + CodeContainerResource, + CodeVersion, + CodeVersionResource, + CommandJob, + Compute, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeResource, + ComputeSchedules, + ComputeStartStopSchedule, + ContainerResourceRequirements, + CosmosDbSettings, + Cron, + Databricks, + DatabricksProperties, + DataContainer, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatastoreContents, + DatastoreCredentials, + DatastoreProperties, + DatastorePropertiesResource, + DatastoreSecrets, + DataVersion, + DataVersionResource, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicy, + EncryptionProperty, + EndpointAuthKeys, + EnvironmentContainer, + EnvironmentContainerResource, + EnvironmentSpecificationVersion, + EnvironmentSpecificationVersionResource, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + FlavorData, + GlusterFsContents, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + IdentityForCmk, + InferenceContainerProperties, + InputDataBinding, + JobBase, + JobBaseResource, + JobEndpoint, + JobOutput, + K8sOnlineDeployment, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJob, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + ManagedIdentity, + ManagedOnlineDeployment, + ManualScaleSettings, + MedianStoppingPolicy, + MLAssistConfiguration, + ModelContainer, + ModelContainerResource, + ModelVersion, + ModelVersionResource, + Mpi, + NodeStateCounts, + NoneDatastoreCredentials, + NoneDatastoreSecrets, + NotebookPreparationError, + NotebookResourceInfo, + Objective, + OnlineDeployment, + OnlineDeploymentTrackedResource, + OnlineEndpoint, + OnlineEndpointTrackedResource, + OnlineRequestSettings, + OnlineScaleSettings, + OutputDataBinding, + OutputPathAssetReference, + PartialBatchEndpoint, + PartialBatchEndpointPartialTrackedResource, + PersonalComputeInstanceSettings, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProbeSettings, + ProgressMetrics, + ProxyResource, + PyTorch, + Recurrence, + RecurrenceSchedule, + Resource, + ResourceId, + ResourceIdentity, + Route, + SasDatastoreCredentials, + SasDatastoreSecrets, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServicePrincipalDatastoreCredentials, + ServicePrincipalDatastoreSecrets, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SqlAdminDatastoreCredentials, + SqlAdminDatastoreSecrets, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TrackedResource, + TrialComponent, + TruncationSelectionPolicy, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/codeContainersMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/codeContainersMappers.ts new file mode 100644 index 000000000000..295a7f8f1bbe --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/codeContainersMappers.ts @@ -0,0 +1,187 @@ +/* + * 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, + AccountKeyDatastoreCredentials, + AccountKeyDatastoreSecrets, + AKS, + AksNetworkingConfiguration, + AKSProperties, + AmlCompute, + AmlComputeProperties, + AmlToken, + AssetReferenceBase, + AssignedUser, + AutoScaleSettings, + AzureBlobContents, + AzureDataLakeGen1Contents, + AzureDataLakeGen2Contents, + AzureEntityResource, + AzureFileContents, + AzurePostgreSqlContents, + AzureSqlDatabaseContents, + BanditPolicy, + BaseResource, + BatchDeployment, + BatchDeploymentTrackedResource, + BatchEndpoint, + BatchEndpointTrackedResource, + BatchOutputConfiguration, + BatchRetrySettings, + CertificateDatastoreCredentials, + CertificateDatastoreSecrets, + CodeConfiguration, + CodeContainer, + CodeContainerResource, + CodeContainerResourceArmPaginatedResult, + CodeVersion, + CodeVersionResource, + CommandJob, + Compute, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeResource, + ComputeSchedules, + ComputeStartStopSchedule, + ContainerResourceRequirements, + CosmosDbSettings, + Cron, + Databricks, + DatabricksProperties, + DataContainer, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatastoreContents, + DatastoreCredentials, + DatastoreProperties, + DatastorePropertiesResource, + DatastoreSecrets, + DataVersion, + DataVersionResource, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicy, + EncryptionProperty, + EndpointAuthKeys, + EnvironmentContainer, + EnvironmentContainerResource, + EnvironmentSpecificationVersion, + EnvironmentSpecificationVersionResource, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + FlavorData, + GlusterFsContents, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + IdentityForCmk, + InferenceContainerProperties, + InputDataBinding, + JobBase, + JobBaseResource, + JobEndpoint, + JobOutput, + K8sOnlineDeployment, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJob, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + ManagedIdentity, + ManagedOnlineDeployment, + ManualScaleSettings, + MedianStoppingPolicy, + MLAssistConfiguration, + ModelContainer, + ModelContainerResource, + ModelVersion, + ModelVersionResource, + Mpi, + NodeStateCounts, + NoneDatastoreCredentials, + NoneDatastoreSecrets, + NotebookPreparationError, + NotebookResourceInfo, + Objective, + OnlineDeployment, + OnlineDeploymentTrackedResource, + OnlineEndpoint, + OnlineEndpointTrackedResource, + OnlineRequestSettings, + OnlineScaleSettings, + OutputDataBinding, + OutputPathAssetReference, + PersonalComputeInstanceSettings, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProbeSettings, + ProgressMetrics, + ProxyResource, + PyTorch, + Recurrence, + RecurrenceSchedule, + Resource, + ResourceId, + ResourceIdentity, + Route, + SasDatastoreCredentials, + SasDatastoreSecrets, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServicePrincipalDatastoreCredentials, + ServicePrincipalDatastoreSecrets, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SqlAdminDatastoreCredentials, + SqlAdminDatastoreSecrets, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TrackedResource, + TrialComponent, + TruncationSelectionPolicy, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/codeVersionsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/codeVersionsMappers.ts new file mode 100644 index 000000000000..9c5383ffc112 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/codeVersionsMappers.ts @@ -0,0 +1,187 @@ +/* + * 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, + AccountKeyDatastoreCredentials, + AccountKeyDatastoreSecrets, + AKS, + AksNetworkingConfiguration, + AKSProperties, + AmlCompute, + AmlComputeProperties, + AmlToken, + AssetReferenceBase, + AssignedUser, + AutoScaleSettings, + AzureBlobContents, + AzureDataLakeGen1Contents, + AzureDataLakeGen2Contents, + AzureEntityResource, + AzureFileContents, + AzurePostgreSqlContents, + AzureSqlDatabaseContents, + BanditPolicy, + BaseResource, + BatchDeployment, + BatchDeploymentTrackedResource, + BatchEndpoint, + BatchEndpointTrackedResource, + BatchOutputConfiguration, + BatchRetrySettings, + CertificateDatastoreCredentials, + CertificateDatastoreSecrets, + CodeConfiguration, + CodeContainer, + CodeContainerResource, + CodeVersion, + CodeVersionResource, + CodeVersionResourceArmPaginatedResult, + CommandJob, + Compute, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeResource, + ComputeSchedules, + ComputeStartStopSchedule, + ContainerResourceRequirements, + CosmosDbSettings, + Cron, + Databricks, + DatabricksProperties, + DataContainer, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatastoreContents, + DatastoreCredentials, + DatastoreProperties, + DatastorePropertiesResource, + DatastoreSecrets, + DataVersion, + DataVersionResource, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicy, + EncryptionProperty, + EndpointAuthKeys, + EnvironmentContainer, + EnvironmentContainerResource, + EnvironmentSpecificationVersion, + EnvironmentSpecificationVersionResource, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + FlavorData, + GlusterFsContents, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + IdentityForCmk, + InferenceContainerProperties, + InputDataBinding, + JobBase, + JobBaseResource, + JobEndpoint, + JobOutput, + K8sOnlineDeployment, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJob, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + ManagedIdentity, + ManagedOnlineDeployment, + ManualScaleSettings, + MedianStoppingPolicy, + MLAssistConfiguration, + ModelContainer, + ModelContainerResource, + ModelVersion, + ModelVersionResource, + Mpi, + NodeStateCounts, + NoneDatastoreCredentials, + NoneDatastoreSecrets, + NotebookPreparationError, + NotebookResourceInfo, + Objective, + OnlineDeployment, + OnlineDeploymentTrackedResource, + OnlineEndpoint, + OnlineEndpointTrackedResource, + OnlineRequestSettings, + OnlineScaleSettings, + OutputDataBinding, + OutputPathAssetReference, + PersonalComputeInstanceSettings, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProbeSettings, + ProgressMetrics, + ProxyResource, + PyTorch, + Recurrence, + RecurrenceSchedule, + Resource, + ResourceId, + ResourceIdentity, + Route, + SasDatastoreCredentials, + SasDatastoreSecrets, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServicePrincipalDatastoreCredentials, + ServicePrincipalDatastoreSecrets, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SqlAdminDatastoreCredentials, + SqlAdminDatastoreSecrets, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TrackedResource, + TrialComponent, + TruncationSelectionPolicy, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/computeOperationsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/computeOperationsMappers.ts new file mode 100644 index 000000000000..4c215e8b6fd3 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/computeOperationsMappers.ts @@ -0,0 +1,197 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AccountKeyDatastoreCredentials, + AccountKeyDatastoreSecrets, + AKS, + AksComputeSecrets, + AksNetworkingConfiguration, + AKSProperties, + AmlCompute, + AmlComputeNodeInformation, + AmlComputeNodesInformation, + AmlComputeProperties, + AmlToken, + AssetReferenceBase, + AssignedUser, + AutoScaleSettings, + AzureBlobContents, + AzureDataLakeGen1Contents, + AzureDataLakeGen2Contents, + AzureEntityResource, + AzureFileContents, + AzurePostgreSqlContents, + AzureSqlDatabaseContents, + BanditPolicy, + BaseResource, + BatchDeployment, + BatchDeploymentTrackedResource, + BatchEndpoint, + BatchEndpointTrackedResource, + BatchOutputConfiguration, + BatchRetrySettings, + CertificateDatastoreCredentials, + CertificateDatastoreSecrets, + ClusterUpdateParameters, + CodeConfiguration, + CodeContainer, + CodeContainerResource, + CodeVersion, + CodeVersionResource, + CommandJob, + Compute, + ComputeConfiguration, + ComputeCreateOrUpdateHeaders, + ComputeDeleteHeaders, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeNodesInformation, + ComputeResource, + ComputeSchedules, + ComputeSecrets, + ComputeStartStopSchedule, + ContainerResourceRequirements, + CosmosDbSettings, + Cron, + Databricks, + DatabricksComputeSecrets, + DatabricksProperties, + DataContainer, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatastoreContents, + DatastoreCredentials, + DatastoreProperties, + DatastorePropertiesResource, + DatastoreSecrets, + DataVersion, + DataVersionResource, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicy, + EncryptionProperty, + EndpointAuthKeys, + EnvironmentContainer, + EnvironmentContainerResource, + EnvironmentSpecificationVersion, + EnvironmentSpecificationVersionResource, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + FlavorData, + GlusterFsContents, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + IdentityForCmk, + InferenceContainerProperties, + InputDataBinding, + JobBase, + JobBaseResource, + JobEndpoint, + JobOutput, + K8sOnlineDeployment, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJob, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + ManagedIdentity, + ManagedOnlineDeployment, + ManualScaleSettings, + MedianStoppingPolicy, + MLAssistConfiguration, + ModelContainer, + ModelContainerResource, + ModelVersion, + ModelVersionResource, + Mpi, + NodeStateCounts, + NoneDatastoreCredentials, + NoneDatastoreSecrets, + NotebookPreparationError, + NotebookResourceInfo, + Objective, + OnlineDeployment, + OnlineDeploymentTrackedResource, + OnlineEndpoint, + OnlineEndpointTrackedResource, + OnlineRequestSettings, + OnlineScaleSettings, + OutputDataBinding, + OutputPathAssetReference, + PaginatedComputeResourcesList, + PersonalComputeInstanceSettings, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProbeSettings, + ProgressMetrics, + ProxyResource, + PyTorch, + Recurrence, + RecurrenceSchedule, + Resource, + ResourceId, + ResourceIdentity, + Route, + SasDatastoreCredentials, + SasDatastoreSecrets, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServicePrincipalDatastoreCredentials, + ServicePrincipalDatastoreSecrets, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SqlAdminDatastoreCredentials, + SqlAdminDatastoreSecrets, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TrackedResource, + TrialComponent, + TruncationSelectionPolicy, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSecrets, + VirtualMachineSshCredentials, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/dataContainersMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/dataContainersMappers.ts new file mode 100644 index 000000000000..ad0c8499f338 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/dataContainersMappers.ts @@ -0,0 +1,187 @@ +/* + * 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, + AccountKeyDatastoreCredentials, + AccountKeyDatastoreSecrets, + AKS, + AksNetworkingConfiguration, + AKSProperties, + AmlCompute, + AmlComputeProperties, + AmlToken, + AssetReferenceBase, + AssignedUser, + AutoScaleSettings, + AzureBlobContents, + AzureDataLakeGen1Contents, + AzureDataLakeGen2Contents, + AzureEntityResource, + AzureFileContents, + AzurePostgreSqlContents, + AzureSqlDatabaseContents, + BanditPolicy, + BaseResource, + BatchDeployment, + BatchDeploymentTrackedResource, + BatchEndpoint, + BatchEndpointTrackedResource, + BatchOutputConfiguration, + BatchRetrySettings, + CertificateDatastoreCredentials, + CertificateDatastoreSecrets, + CodeConfiguration, + CodeContainer, + CodeContainerResource, + CodeVersion, + CodeVersionResource, + CommandJob, + Compute, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeResource, + ComputeSchedules, + ComputeStartStopSchedule, + ContainerResourceRequirements, + CosmosDbSettings, + Cron, + Databricks, + DatabricksProperties, + DataContainer, + DataContainerResource, + DataContainerResourceArmPaginatedResult, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatastoreContents, + DatastoreCredentials, + DatastoreProperties, + DatastorePropertiesResource, + DatastoreSecrets, + DataVersion, + DataVersionResource, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicy, + EncryptionProperty, + EndpointAuthKeys, + EnvironmentContainer, + EnvironmentContainerResource, + EnvironmentSpecificationVersion, + EnvironmentSpecificationVersionResource, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + FlavorData, + GlusterFsContents, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + IdentityForCmk, + InferenceContainerProperties, + InputDataBinding, + JobBase, + JobBaseResource, + JobEndpoint, + JobOutput, + K8sOnlineDeployment, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJob, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + ManagedIdentity, + ManagedOnlineDeployment, + ManualScaleSettings, + MedianStoppingPolicy, + MLAssistConfiguration, + ModelContainer, + ModelContainerResource, + ModelVersion, + ModelVersionResource, + Mpi, + NodeStateCounts, + NoneDatastoreCredentials, + NoneDatastoreSecrets, + NotebookPreparationError, + NotebookResourceInfo, + Objective, + OnlineDeployment, + OnlineDeploymentTrackedResource, + OnlineEndpoint, + OnlineEndpointTrackedResource, + OnlineRequestSettings, + OnlineScaleSettings, + OutputDataBinding, + OutputPathAssetReference, + PersonalComputeInstanceSettings, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProbeSettings, + ProgressMetrics, + ProxyResource, + PyTorch, + Recurrence, + RecurrenceSchedule, + Resource, + ResourceId, + ResourceIdentity, + Route, + SasDatastoreCredentials, + SasDatastoreSecrets, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServicePrincipalDatastoreCredentials, + ServicePrincipalDatastoreSecrets, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SqlAdminDatastoreCredentials, + SqlAdminDatastoreSecrets, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TrackedResource, + TrialComponent, + TruncationSelectionPolicy, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/dataVersionsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/dataVersionsMappers.ts new file mode 100644 index 000000000000..928ed615aa3c --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/dataVersionsMappers.ts @@ -0,0 +1,187 @@ +/* + * 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, + AccountKeyDatastoreCredentials, + AccountKeyDatastoreSecrets, + AKS, + AksNetworkingConfiguration, + AKSProperties, + AmlCompute, + AmlComputeProperties, + AmlToken, + AssetReferenceBase, + AssignedUser, + AutoScaleSettings, + AzureBlobContents, + AzureDataLakeGen1Contents, + AzureDataLakeGen2Contents, + AzureEntityResource, + AzureFileContents, + AzurePostgreSqlContents, + AzureSqlDatabaseContents, + BanditPolicy, + BaseResource, + BatchDeployment, + BatchDeploymentTrackedResource, + BatchEndpoint, + BatchEndpointTrackedResource, + BatchOutputConfiguration, + BatchRetrySettings, + CertificateDatastoreCredentials, + CertificateDatastoreSecrets, + CodeConfiguration, + CodeContainer, + CodeContainerResource, + CodeVersion, + CodeVersionResource, + CommandJob, + Compute, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeResource, + ComputeSchedules, + ComputeStartStopSchedule, + ContainerResourceRequirements, + CosmosDbSettings, + Cron, + Databricks, + DatabricksProperties, + DataContainer, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatastoreContents, + DatastoreCredentials, + DatastoreProperties, + DatastorePropertiesResource, + DatastoreSecrets, + DataVersion, + DataVersionResource, + DataVersionResourceArmPaginatedResult, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicy, + EncryptionProperty, + EndpointAuthKeys, + EnvironmentContainer, + EnvironmentContainerResource, + EnvironmentSpecificationVersion, + EnvironmentSpecificationVersionResource, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + FlavorData, + GlusterFsContents, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + IdentityForCmk, + InferenceContainerProperties, + InputDataBinding, + JobBase, + JobBaseResource, + JobEndpoint, + JobOutput, + K8sOnlineDeployment, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJob, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + ManagedIdentity, + ManagedOnlineDeployment, + ManualScaleSettings, + MedianStoppingPolicy, + MLAssistConfiguration, + ModelContainer, + ModelContainerResource, + ModelVersion, + ModelVersionResource, + Mpi, + NodeStateCounts, + NoneDatastoreCredentials, + NoneDatastoreSecrets, + NotebookPreparationError, + NotebookResourceInfo, + Objective, + OnlineDeployment, + OnlineDeploymentTrackedResource, + OnlineEndpoint, + OnlineEndpointTrackedResource, + OnlineRequestSettings, + OnlineScaleSettings, + OutputDataBinding, + OutputPathAssetReference, + PersonalComputeInstanceSettings, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProbeSettings, + ProgressMetrics, + ProxyResource, + PyTorch, + Recurrence, + RecurrenceSchedule, + Resource, + ResourceId, + ResourceIdentity, + Route, + SasDatastoreCredentials, + SasDatastoreSecrets, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServicePrincipalDatastoreCredentials, + ServicePrincipalDatastoreSecrets, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SqlAdminDatastoreCredentials, + SqlAdminDatastoreSecrets, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TrackedResource, + TrialComponent, + TruncationSelectionPolicy, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/datastoresMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/datastoresMappers.ts new file mode 100644 index 000000000000..d42bdc7955ca --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/datastoresMappers.ts @@ -0,0 +1,187 @@ +/* + * 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, + AccountKeyDatastoreCredentials, + AccountKeyDatastoreSecrets, + AKS, + AksNetworkingConfiguration, + AKSProperties, + AmlCompute, + AmlComputeProperties, + AmlToken, + AssetReferenceBase, + AssignedUser, + AutoScaleSettings, + AzureBlobContents, + AzureDataLakeGen1Contents, + AzureDataLakeGen2Contents, + AzureEntityResource, + AzureFileContents, + AzurePostgreSqlContents, + AzureSqlDatabaseContents, + BanditPolicy, + BaseResource, + BatchDeployment, + BatchDeploymentTrackedResource, + BatchEndpoint, + BatchEndpointTrackedResource, + BatchOutputConfiguration, + BatchRetrySettings, + CertificateDatastoreCredentials, + CertificateDatastoreSecrets, + CodeConfiguration, + CodeContainer, + CodeContainerResource, + CodeVersion, + CodeVersionResource, + CommandJob, + Compute, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeResource, + ComputeSchedules, + ComputeStartStopSchedule, + ContainerResourceRequirements, + CosmosDbSettings, + Cron, + Databricks, + DatabricksProperties, + DataContainer, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatastoreContents, + DatastoreCredentials, + DatastoreProperties, + DatastorePropertiesResource, + DatastorePropertiesResourceArmPaginatedResult, + DatastoreSecrets, + DataVersion, + DataVersionResource, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicy, + EncryptionProperty, + EndpointAuthKeys, + EnvironmentContainer, + EnvironmentContainerResource, + EnvironmentSpecificationVersion, + EnvironmentSpecificationVersionResource, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + FlavorData, + GlusterFsContents, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + IdentityForCmk, + InferenceContainerProperties, + InputDataBinding, + JobBase, + JobBaseResource, + JobEndpoint, + JobOutput, + K8sOnlineDeployment, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJob, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + ManagedIdentity, + ManagedOnlineDeployment, + ManualScaleSettings, + MedianStoppingPolicy, + MLAssistConfiguration, + ModelContainer, + ModelContainerResource, + ModelVersion, + ModelVersionResource, + Mpi, + NodeStateCounts, + NoneDatastoreCredentials, + NoneDatastoreSecrets, + NotebookPreparationError, + NotebookResourceInfo, + Objective, + OnlineDeployment, + OnlineDeploymentTrackedResource, + OnlineEndpoint, + OnlineEndpointTrackedResource, + OnlineRequestSettings, + OnlineScaleSettings, + OutputDataBinding, + OutputPathAssetReference, + PersonalComputeInstanceSettings, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProbeSettings, + ProgressMetrics, + ProxyResource, + PyTorch, + Recurrence, + RecurrenceSchedule, + Resource, + ResourceId, + ResourceIdentity, + Route, + SasDatastoreCredentials, + SasDatastoreSecrets, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServicePrincipalDatastoreCredentials, + ServicePrincipalDatastoreSecrets, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SqlAdminDatastoreCredentials, + SqlAdminDatastoreSecrets, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TrackedResource, + TrialComponent, + TruncationSelectionPolicy, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/environmentContainersMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/environmentContainersMappers.ts new file mode 100644 index 000000000000..0bea8831be18 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/environmentContainersMappers.ts @@ -0,0 +1,187 @@ +/* + * 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, + AccountKeyDatastoreCredentials, + AccountKeyDatastoreSecrets, + AKS, + AksNetworkingConfiguration, + AKSProperties, + AmlCompute, + AmlComputeProperties, + AmlToken, + AssetReferenceBase, + AssignedUser, + AutoScaleSettings, + AzureBlobContents, + AzureDataLakeGen1Contents, + AzureDataLakeGen2Contents, + AzureEntityResource, + AzureFileContents, + AzurePostgreSqlContents, + AzureSqlDatabaseContents, + BanditPolicy, + BaseResource, + BatchDeployment, + BatchDeploymentTrackedResource, + BatchEndpoint, + BatchEndpointTrackedResource, + BatchOutputConfiguration, + BatchRetrySettings, + CertificateDatastoreCredentials, + CertificateDatastoreSecrets, + CodeConfiguration, + CodeContainer, + CodeContainerResource, + CodeVersion, + CodeVersionResource, + CommandJob, + Compute, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeResource, + ComputeSchedules, + ComputeStartStopSchedule, + ContainerResourceRequirements, + CosmosDbSettings, + Cron, + Databricks, + DatabricksProperties, + DataContainer, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatastoreContents, + DatastoreCredentials, + DatastoreProperties, + DatastorePropertiesResource, + DatastoreSecrets, + DataVersion, + DataVersionResource, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicy, + EncryptionProperty, + EndpointAuthKeys, + EnvironmentContainer, + EnvironmentContainerResource, + EnvironmentContainerResourceArmPaginatedResult, + EnvironmentSpecificationVersion, + EnvironmentSpecificationVersionResource, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + FlavorData, + GlusterFsContents, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + IdentityForCmk, + InferenceContainerProperties, + InputDataBinding, + JobBase, + JobBaseResource, + JobEndpoint, + JobOutput, + K8sOnlineDeployment, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJob, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + ManagedIdentity, + ManagedOnlineDeployment, + ManualScaleSettings, + MedianStoppingPolicy, + MLAssistConfiguration, + ModelContainer, + ModelContainerResource, + ModelVersion, + ModelVersionResource, + Mpi, + NodeStateCounts, + NoneDatastoreCredentials, + NoneDatastoreSecrets, + NotebookPreparationError, + NotebookResourceInfo, + Objective, + OnlineDeployment, + OnlineDeploymentTrackedResource, + OnlineEndpoint, + OnlineEndpointTrackedResource, + OnlineRequestSettings, + OnlineScaleSettings, + OutputDataBinding, + OutputPathAssetReference, + PersonalComputeInstanceSettings, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProbeSettings, + ProgressMetrics, + ProxyResource, + PyTorch, + Recurrence, + RecurrenceSchedule, + Resource, + ResourceId, + ResourceIdentity, + Route, + SasDatastoreCredentials, + SasDatastoreSecrets, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServicePrincipalDatastoreCredentials, + ServicePrincipalDatastoreSecrets, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SqlAdminDatastoreCredentials, + SqlAdminDatastoreSecrets, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TrackedResource, + TrialComponent, + TruncationSelectionPolicy, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/environmentSpecificationVersionsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/environmentSpecificationVersionsMappers.ts new file mode 100644 index 000000000000..e847951b1300 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/environmentSpecificationVersionsMappers.ts @@ -0,0 +1,187 @@ +/* + * 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, + AccountKeyDatastoreCredentials, + AccountKeyDatastoreSecrets, + AKS, + AksNetworkingConfiguration, + AKSProperties, + AmlCompute, + AmlComputeProperties, + AmlToken, + AssetReferenceBase, + AssignedUser, + AutoScaleSettings, + AzureBlobContents, + AzureDataLakeGen1Contents, + AzureDataLakeGen2Contents, + AzureEntityResource, + AzureFileContents, + AzurePostgreSqlContents, + AzureSqlDatabaseContents, + BanditPolicy, + BaseResource, + BatchDeployment, + BatchDeploymentTrackedResource, + BatchEndpoint, + BatchEndpointTrackedResource, + BatchOutputConfiguration, + BatchRetrySettings, + CertificateDatastoreCredentials, + CertificateDatastoreSecrets, + CodeConfiguration, + CodeContainer, + CodeContainerResource, + CodeVersion, + CodeVersionResource, + CommandJob, + Compute, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeResource, + ComputeSchedules, + ComputeStartStopSchedule, + ContainerResourceRequirements, + CosmosDbSettings, + Cron, + Databricks, + DatabricksProperties, + DataContainer, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatastoreContents, + DatastoreCredentials, + DatastoreProperties, + DatastorePropertiesResource, + DatastoreSecrets, + DataVersion, + DataVersionResource, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicy, + EncryptionProperty, + EndpointAuthKeys, + EnvironmentContainer, + EnvironmentContainerResource, + EnvironmentSpecificationVersion, + EnvironmentSpecificationVersionResource, + EnvironmentSpecificationVersionResourceArmPaginatedResult, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + FlavorData, + GlusterFsContents, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + IdentityForCmk, + InferenceContainerProperties, + InputDataBinding, + JobBase, + JobBaseResource, + JobEndpoint, + JobOutput, + K8sOnlineDeployment, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJob, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + ManagedIdentity, + ManagedOnlineDeployment, + ManualScaleSettings, + MedianStoppingPolicy, + MLAssistConfiguration, + ModelContainer, + ModelContainerResource, + ModelVersion, + ModelVersionResource, + Mpi, + NodeStateCounts, + NoneDatastoreCredentials, + NoneDatastoreSecrets, + NotebookPreparationError, + NotebookResourceInfo, + Objective, + OnlineDeployment, + OnlineDeploymentTrackedResource, + OnlineEndpoint, + OnlineEndpointTrackedResource, + OnlineRequestSettings, + OnlineScaleSettings, + OutputDataBinding, + OutputPathAssetReference, + PersonalComputeInstanceSettings, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProbeSettings, + ProgressMetrics, + ProxyResource, + PyTorch, + Recurrence, + RecurrenceSchedule, + Resource, + ResourceId, + ResourceIdentity, + Route, + SasDatastoreCredentials, + SasDatastoreSecrets, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServicePrincipalDatastoreCredentials, + ServicePrincipalDatastoreSecrets, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SqlAdminDatastoreCredentials, + SqlAdminDatastoreSecrets, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TrackedResource, + TrialComponent, + TruncationSelectionPolicy, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts index 77ada3593b7f..374b380ed166 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts @@ -48,34 +48,14 @@ export interface Operation { } /** - * An interface representing NotebookListCredentialsResult. + * Identity that will be used to access key vault for encryption at rest */ -export interface NotebookListCredentialsResult { - primaryAccessKey?: string; - secondaryAccessKey?: string; -} - -/** - * An interface representing NotebookPreparationError. - */ -export interface NotebookPreparationError { - errorMessage?: string; - statusCode?: number; -} - -/** - * An interface representing NotebookResourceInfo. - */ -export interface NotebookResourceInfo { - fqdn?: string; - /** - * the data plane resourceId that used to initialize notebook component - */ - resourceId?: string; +export interface IdentityForCmk { /** - * The error that occurs when preparing notebook. + * The ArmId of the user assigned identity that will be used to access the customer managed key + * vault */ - notebookPreparationError?: NotebookPreparationError; + userAssignedIdentity?: string; } /** @@ -105,6 +85,10 @@ export interface EncryptionProperty { * 'Enabled', 'Disabled' */ status: EncryptionStatus; + /** + * The identity that will be used to access the key vault for encryption at rest. + */ + identity?: IdentityForCmk; /** * Customer Key vault properties. */ @@ -120,6 +104,11 @@ export interface PrivateEndpoint { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; + /** + * The ARM identifier for Subnet resource that private endpoint links to + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly subnetArmId?: string; } /** @@ -143,24 +132,125 @@ export interface PrivateLinkServiceConnectionState { } /** - * The Private Endpoint Connection resource. + * User Assigned Identity + */ +export interface UserAssignedIdentity { + /** + * The principal ID of the user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * The tenant ID of the user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tenantId?: string; + /** + * The clientId(aka appId) of the user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly clientId?: 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', 'SystemAssigned,UserAssigned', + * 'UserAssigned', 'None' + */ + type?: ResourceIdentityType; + /** + * The user assigned identities associated with the resource. + */ + userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity }; +} + +/** + * Sku of the resource */ -export interface PrivateEndpointConnection extends BaseResource { +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. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + 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. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + lastModifiedByType?: CreatedByType; + /** + * The timestamp of resource last modification (UTC) + */ + lastModifiedAt?: Date; +} + +/** + * Common fields that are returned in the response for all Azure Resource Manager resources + * @summary Resource + */ +export interface Resource extends BaseResource { /** - * ResourceId of the private endpoint connection. + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * Friendly name of the private endpoint connection. + * The name of the resource * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * Resource type of private endpoint connection. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; +} + +/** + * The Private Endpoint Connection resource. + */ +export interface PrivateEndpointConnection extends Resource { /** * The resource of private end point. */ @@ -175,6 +265,23 @@ export interface PrivateEndpointConnection extends BaseResource { * 'Succeeded', 'Creating', 'Deleting', 'Failed' */ provisioningState?: PrivateEndpointConnectionProvisioningState; + /** + * 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; + systemData?: SystemData; } /** @@ -205,40 +312,46 @@ export interface SharedPrivateLinkResource { } /** - * Azure Resource Manager resource envelope. + * An interface representing NotebookPreparationError. */ -export interface Resource extends BaseResource { - /** - * Specifies the resource ID. - * **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.** - */ - readonly name?: string; - /** - * The identity of the resource. - */ - identity?: Identity; +export interface NotebookPreparationError { + errorMessage?: string; + statusCode?: number; +} + +/** + * An interface representing NotebookResourceInfo. + */ +export interface NotebookResourceInfo { + fqdn?: string; /** - * Specifies the location of the resource. + * the data plane resourceId that used to initialize notebook component */ - location?: string; + resourceId?: string; /** - * Specifies the type of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The error that occurs when preparing notebook. */ - readonly type?: string; + notebookPreparationError?: NotebookPreparationError; +} + +/** + * An interface representing CosmosDbSettings. + */ +export interface CosmosDbSettings { /** - * Contains resource tags defined as key/value pairs. + * The throughput of the collections in cosmosdb database */ - tags?: { [propertyName: string]: string }; + collectionsThroughput?: number; +} + +/** + * An interface representing ServiceManagedResourcesSettings. + */ +export interface ServiceManagedResourcesSettings { /** - * The sku of the workspace. + * The settings for the service managed cosmosdb account. */ - sku?: Sku; + cosmosDb?: CosmosDbSettings; } /** @@ -258,11 +371,6 @@ export interface Workspace extends Resource { * The friendly name for this workspace. This name in mutable */ friendlyName?: string; - /** - * 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.** - */ - readonly creationTime?: Date; /** * ARM id of the key vault associated with this workspace. This cannot be changed once the * workspace has been created @@ -337,20 +445,36 @@ export interface Workspace extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly notebookInfo?: NotebookResourceInfo; -} - -/** - * Sku of the resource - */ -export interface Sku { /** - * Name of the sku + * The service managed resource settings. */ - name?: string; + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; /** - * Tier of the sku like Basic or Enterprise + * The user assigned identity resource id that represents the workspace identity. */ - tier?: string; + primaryUserAssignedIdentity?: string; + /** + * The tenant id associated with this workspace. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tenantId?: string; + /** + * 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; + systemData?: SystemData; } /** @@ -365,6 +489,10 @@ export interface WorkspaceUpdateParameters { * The sku of the workspace. */ sku?: Sku; + /** + * The identity of the resource. + */ + identity?: Identity; /** * The description of this workspace. */ @@ -373,24 +501,18 @@ export interface WorkspaceUpdateParameters { * The friendly name for this workspace. */ friendlyName?: string; -} - -/** - * Features enabled for a workspace - */ -export interface AmlUserFeature { /** - * Specifies the feature ID + * The compute name for image build */ - id?: string; + imageBuildCompute?: string; /** - * Specifies the feature name + * The service managed resource settings. */ - displayName?: string; + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; /** - * Describes the feature for user experience + * The user assigned identity resource id that represents the workspace identity. */ - description?: string; + primaryUserAssignedIdentity?: string; } /** @@ -418,6 +540,11 @@ export interface Usage { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; + /** + * Region of the AML workspace in the id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly amlWorkspaceLocation?: string; /** * Specifies the resource type. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -527,10 +654,6 @@ export interface VirtualMachineSize { * Estimated VM prices. The estimated price information for using a VM. */ estimatedVMPrices?: EstimatedVMPrices; - /** - * Supported Compute Types. Specifies the compute types supported by the virtual machine size. - */ - supportedComputeTypes?: string[]; } /** @@ -540,7 +663,7 @@ export interface VirtualMachineSizeListResult { /** * The list of virtual machine sizes supported by AmlCompute. */ - amlCompute?: VirtualMachineSize[]; + value?: VirtualMachineSize[]; } /** @@ -573,6 +696,10 @@ export interface QuotaUpdateParameters { * The list for update quota. */ value?: QuotaBaseProperties[]; + /** + * Region of workspace quota to be updated. + */ + location?: string; } /** @@ -649,6 +776,11 @@ export interface ResourceQuota { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; + /** + * Region of the AML workspace in the id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly amlWorkspaceLocation?: string; /** * Specifies the resource type. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -671,49 +803,6 @@ export interface ResourceQuota { readonly unit?: QuotaUnit; } -/** - * 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; -} - -/** - * 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 }; -} - /** * Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet. */ @@ -754,7 +843,21 @@ export interface RegistryListCredentialsResult { } /** - * An interface representing ListWorkspaceKeysResult. + * An interface representing ListNotebookKeysResult. + */ +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; +} + +/** + * An interface representing ListWorkspaceKeysResult. */ export interface ListWorkspaceKeysResult { /** @@ -773,53 +876,107 @@ export interface ListWorkspaceKeysResult { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly containerRegistryCredentials?: RegistryListCredentialsResult; - notebookAccessKeys?: NotebookListCredentialsResult; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly notebookAccessKeys?: ListNotebookKeysResult; } /** - * Error detail information. + * An interface representing NotebookAccessTokenResult. */ -export interface ErrorDetail { +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; /** - * Error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - code: string; + readonly refreshToken?: string; /** - * Error message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - message: string; + readonly scope?: string; } /** - * Error response information. + * The resource management error additional info. */ -export interface ErrorResponse { +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly info?: any; +} + +/** + * The error detail. + */ +export interface ErrorDetail { /** - * Error code. + * The error code. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly code?: string; /** - * Error message. + * The error message. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly message?: string; /** - * An array of error detail objects. + * The error target. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly target?: string; + /** + * The error details. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly details?: ErrorDetail[]; + /** + * The error additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; } /** - * Wrapper for error response to follow ARM guidelines. + * Common error response for all Azure Resource Manager APIs to return error details for failed + * operations. (This also follows the OData error response format.). + * @summary Error response */ -export interface MachineLearningServiceError { +export interface ErrorResponse { /** - * The error response. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The error object. */ - readonly error?: ErrorResponse; + error?: ErrorDetail; } /** @@ -851,12 +1008,12 @@ export interface Compute { */ description?: string; /** - * The date and time when the compute was created. + * The time at which the compute was created. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdOn?: Date; /** - * The date and time when the compute was last modified. + * The time at which the compute was last modified. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; @@ -868,13 +1025,18 @@ export interface Compute { * Errors during provisioning * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningErrors?: MachineLearningServiceError[]; + readonly provisioningErrors?: ErrorResponse[]; /** * Indicating whether the compute was provisioned by user and brought from outside if true, or * machine learning service provisioned it if false. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isAttachedCompute?: boolean; + /** + * Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for + * authentication. + */ + disableLocalAuth?: boolean; } /** @@ -885,6 +1047,23 @@ export interface ComputeResource extends Resource { * Compute properties */ properties?: ComputeUnion; + /** + * 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; + systemData?: SystemData; } /** @@ -913,7 +1092,7 @@ export interface SystemService { */ export interface SslConfiguration { /** - * Enable or disable ssl for scoring. Possible values include: 'Disabled', 'Enabled' + * Enable or disable ssl for scoring. Possible values include: 'Disabled', 'Enabled', 'Auto' */ status?: Status1; /** @@ -928,6 +1107,14 @@ export interface SslConfiguration { * CNAME of the cert */ cname?: string; + /** + * Leaf domain label of public endpoint + */ + leafDomainLabel?: string; + /** + * Indicates whether to overwrite existing domain label. + */ + overwriteExistingDomain?: boolean; } /** @@ -975,7 +1162,12 @@ export interface AKSProperties { /** * Agent virtual machine size */ - agentVMSize?: string; + agentVmSize?: string; + /** + * Intended usage of the cluster. Possible values include: 'FastProd', 'DenseProd', 'DevTest'. + * Default value: 'FastProd'. + */ + clusterPurpose?: ClusterPurpose; /** * SSL configuration */ @@ -984,6 +1176,15 @@ export interface AKSProperties { * AKS networking configuration for vnet */ aksNetworkingConfiguration?: AksNetworkingConfiguration; + /** + * Load Balancer Type. Possible values include: 'PublicIp', 'InternalLoadBalancer'. Default + * value: 'PublicIp'. + */ + loadBalancerType?: LoadBalancerType; + /** + * Load Balancer Subnet + */ + loadBalancerSubnet?: string; } /** @@ -1010,12 +1211,12 @@ export interface AKS { */ description?: string; /** - * The date and time when the compute was created. + * The time at which the compute was created. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdOn?: Date; /** - * The date and time when the compute was last modified. + * The time at which the compute was last modified. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; @@ -1027,19 +1228,34 @@ export interface AKS { * Errors during provisioning * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningErrors?: MachineLearningServiceError[]; + readonly provisioningErrors?: ErrorResponse[]; /** * Indicating whether the compute was provisioned by user and brought from outside if true, or * machine learning service provisioned it if false. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isAttachedCompute?: boolean; + /** + * Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for + * authentication. + */ + disableLocalAuth?: boolean; /** * AKS properties */ properties?: AKSProperties; } +/** + * Virtual Machine image for Windows AML Compute + */ +export interface VirtualMachineImage { + /** + * Virtual Machine image path + */ + id: string; +} + /** * scale settings for AML Compute */ @@ -1053,7 +1269,7 @@ export interface ScaleSettings { */ minNodeCount?: number; /** - * Node Idle Time before scaling down amlCompute + * Node Idle Time before scaling down amlCompute. This string needs to be in the RFC Format. */ nodeIdleTimeBeforeScaleDown?: string; } @@ -1116,6 +1332,10 @@ export interface NodeStateCounts { * AML Compute properties */ export interface AmlComputeProperties { + /** + * Compute OS Type. Possible values include: 'Linux', 'Windows'. Default value: 'Linux'. + */ + osType?: OsType; /** * Virtual Machine Size */ @@ -1124,6 +1344,14 @@ export interface AmlComputeProperties { * Virtual Machine priority. Possible values include: 'Dedicated', 'LowPriority' */ vmPriority?: VmPriority; + /** + * Virtual Machine image for AML Compute - windows only + */ + virtualMachineImage?: VirtualMachineImage; + /** + * Network is isolated or not + */ + isolatedNetwork?: boolean; /** * Scale settings for AML Compute */ @@ -1167,7 +1395,7 @@ export interface AmlComputeProperties { * 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.** */ - 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.** @@ -1186,6 +1414,13 @@ export interface AmlComputeProperties { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nodeStateCounts?: NodeStateCounts; + /** + * Enable node public IP. 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. Default value: true. + */ + enableNodePublicIp?: boolean; } /** @@ -1212,12 +1447,12 @@ export interface AmlCompute { */ description?: string; /** - * The date and time when the compute was created. + * The time at which the compute was created. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdOn?: Date; /** - * The date and time when the compute was last modified. + * The time at which the compute was last modified. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; @@ -1229,13 +1464,18 @@ export interface AmlCompute { * Errors during provisioning * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningErrors?: MachineLearningServiceError[]; + readonly provisioningErrors?: ErrorResponse[]; /** * Indicating whether the compute was provisioned by user and brought from outside if true, or * machine learning service provisioned it if false. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isAttachedCompute?: boolean; + /** + * Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for + * authentication. + */ + disableLocalAuth?: boolean; /** * AML Compute properties */ @@ -1271,7 +1511,7 @@ export interface ComputeInstanceSshSettings { } /** - * Defines all connectivity endpoints and properties for a ComputeInstance. + * Defines all connectivity endpoints and properties for an ComputeInstance. */ export interface ComputeInstanceConnectivityEndpoints { /** @@ -1322,6 +1562,76 @@ export interface ComputeInstanceCreatedBy { readonly userId?: string; } +/** + * A user that can be assigned to a compute instance. + */ +export interface AssignedUser { + /** + * User’s AAD Object Id. + */ + objectId: string; + /** + * User’s AAD Tenant Id. + */ + tenantId: string; +} + +/** + * Settings for a personal compute instance. + */ +export interface PersonalComputeInstanceSettings { + /** + * Assigned User. A user explicitly assigned to a personal compute instance. + */ + assignedUser?: AssignedUser; +} + +/** + * 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; +} + +/** + * 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; +} + +/** + * Details of customized scripts to execute for setting up the cluster. + */ +export interface SetupScripts { + /** + * Customized setup scripts + */ + scripts?: ScriptsToExecute; +} + /** * The last operation on ComputeInstance. */ @@ -1342,6 +1652,107 @@ export interface ComputeInstanceLastOperation { operationStatus?: OperationStatus; } +/** + * The recurrence schedule + */ +export interface RecurrenceSchedule { + /** + * The minutes. + */ + minutes?: number[]; + /** + * The hours. + */ + hours?: number[]; + /** + * The days of the week. + */ + weekDays?: DaysOfWeek[]; +} + +/** + * The workflow trigger recurrence for ComputeStartStop schedule type. + */ +export interface Recurrence { + /** + * Possible values include: 'NotSpecified', 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month', + * 'Year' + */ + frequency?: RecurrenceFrequency; + /** + * The interval. + */ + interval?: number; + /** + * The start time. + */ + startTime?: string; + /** + * The time zone. + */ + timeZone?: string; + schedule?: RecurrenceSchedule; +} + +/** + * 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; +} + +/** + * Compute start stop schedule properties + */ +export interface ComputeStartStopSchedule { + /** + * Schedule id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The current deployment state of schedule. Possible values include: 'Completed', + * 'Provisioning', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningStatus?: ProvisioningStatus; + /** + * Possible values include: 'Enabled', 'Disabled' + */ + status?: ScheduleStatus; + /** + * Possible values include: 'Recurrence', 'Cron' + */ + triggerType?: TriggerType; + /** + * Possible values include: 'Start', 'Stop' + */ + action?: ComputePowerAction; + recurrence?: Recurrence; + cron?: Cron; +} + +/** + * 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[]; +} + /** * Compute Instance properties */ @@ -1385,7 +1796,7 @@ export interface ComputeInstanceProperties { * Errors. Collection of errors encountered on this ComputeInstance. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly errors?: MachineLearningServiceError[]; + readonly errors?: ErrorResponse[]; /** * The current state of this ComputeInstance. Possible values include: 'Creating', * 'CreateFailed', 'Deleting', 'Running', 'Restarting', 'JobRunning', 'SettingUp', 'SetupFailed', @@ -1393,11 +1804,28 @@ export interface ComputeInstanceProperties { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly state?: ComputeInstanceState; + /** + * Compute Instance Authorization type. The Compute Instance Authorization type. Available values + * are personal (default). Possible values include: 'personal'. Default value: 'personal'. + */ + computeInstanceAuthorizationType?: ComputeInstanceAuthorizationType; + /** + * Personal Compute Instance settings. 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; } /** @@ -1424,12 +1852,12 @@ export interface ComputeInstance { */ description?: string; /** - * The date and time when the compute was created. + * The time at which the compute was created. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdOn?: Date; /** - * The date and time when the compute was last modified. + * The time at which the compute was last modified. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; @@ -1441,13 +1869,18 @@ export interface ComputeInstance { * Errors during provisioning * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningErrors?: MachineLearningServiceError[]; + readonly provisioningErrors?: ErrorResponse[]; /** * Indicating whether the compute was provisioned by user and brought from outside if true, or * machine learning service provisioned it if false. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isAttachedCompute?: boolean; + /** + * Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for + * authentication. + */ + disableLocalAuth?: boolean; /** * Compute Instance properties */ @@ -1496,6 +1929,10 @@ export interface VirtualMachineProperties { * Admin credentials for virtual machine */ administratorAccount?: VirtualMachineSshCredentials; + /** + * Indicates whether this compute will be used for running notebooks. + */ + isNotebookInstanceCompute?: boolean; } /** @@ -1522,12 +1959,12 @@ export interface VirtualMachine { */ description?: string; /** - * The date and time when the compute was created. + * The time at which the compute was created. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdOn?: Date; /** - * The date and time when the compute was last modified. + * The time at which the compute was last modified. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; @@ -1539,13 +1976,18 @@ export interface VirtualMachine { * Errors during provisioning * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningErrors?: MachineLearningServiceError[]; + readonly provisioningErrors?: ErrorResponse[]; /** * Indicating whether the compute was provisioned by user and brought from outside if true, or * machine learning service provisioned it if false. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isAttachedCompute?: boolean; + /** + * Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for + * authentication. + */ + disableLocalAuth?: boolean; properties?: VirtualMachineProperties; } @@ -1591,12 +2033,12 @@ export interface HDInsight { */ description?: string; /** - * The date and time when the compute was created. + * The time at which the compute was created. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdOn?: Date; /** - * The date and time when the compute was last modified. + * The time at which the compute was last modified. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; @@ -1608,13 +2050,18 @@ export interface HDInsight { * Errors during provisioning * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningErrors?: MachineLearningServiceError[]; + readonly provisioningErrors?: ErrorResponse[]; /** * Indicating whether the compute was provisioned by user and brought from outside if true, or * machine learning service provisioned it if false. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isAttachedCompute?: boolean; + /** + * Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for + * authentication. + */ + disableLocalAuth?: boolean; properties?: HDInsightProperties; } @@ -1642,12 +2089,12 @@ export interface DataFactory { */ description?: string; /** - * The date and time when the compute was created. + * The time at which the compute was created. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdOn?: Date; /** - * The date and time when the compute was last modified. + * The time at which the compute was last modified. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; @@ -1659,13 +2106,18 @@ export interface DataFactory { * Errors during provisioning * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningErrors?: MachineLearningServiceError[]; + readonly provisioningErrors?: ErrorResponse[]; /** * Indicating whether the compute was provisioned by user and brought from outside if true, or * machine learning service provisioned it if false. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isAttachedCompute?: boolean; + /** + * Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for + * authentication. + */ + disableLocalAuth?: boolean; } /** @@ -1676,6 +2128,10 @@ export interface DatabricksProperties { * Databricks access token */ databricksAccessToken?: string; + /** + * Workspace Url + */ + workspaceUrl?: string; } /** @@ -1702,12 +2158,12 @@ export interface Databricks { */ description?: string; /** - * The date and time when the compute was created. + * The time at which the compute was created. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdOn?: Date; /** - * The date and time when the compute was last modified. + * The time at which the compute was last modified. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; @@ -1719,13 +2175,18 @@ export interface Databricks { * Errors during provisioning * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningErrors?: MachineLearningServiceError[]; + readonly provisioningErrors?: ErrorResponse[]; /** * Indicating whether the compute was provisioned by user and brought from outside if true, or * machine learning service provisioned it if false. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isAttachedCompute?: boolean; + /** + * Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for + * authentication. + */ + disableLocalAuth?: boolean; properties?: DatabricksProperties; } @@ -1763,12 +2224,12 @@ export interface DataLakeAnalytics { */ description?: string; /** - * The date and time when the compute was created. + * The time at which the compute was created. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdOn?: Date; /** - * The date and time when the compute was last modified. + * The time at which the compute was last modified. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; @@ -1780,62 +2241,191 @@ export interface DataLakeAnalytics { * Errors during provisioning * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningErrors?: MachineLearningServiceError[]; + readonly provisioningErrors?: ErrorResponse[]; /** * Indicating whether the compute was provisioned by user and brought from outside if true, or * machine learning service provisioned it if false. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isAttachedCompute?: boolean; - properties?: DataLakeAnalyticsProperties; -} - -/** - * Service principal credentials. - */ -export interface ServicePrincipalCredentials { - /** - * Client Id - */ - clientId: string; /** - * Client secret + * Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for + * authentication. */ - clientSecret: string; + disableLocalAuth?: boolean; + properties?: DataLakeAnalyticsProperties; } /** - * AmlCompute update parameters. + * Auto scale properties */ -export interface ClusterUpdateParameters { - /** - * Scale settings. Desired scale settings for the amlCompute. - */ - scaleSettings?: ScaleSettings; +export interface AutoScaleProperties { + minNodeCount?: number; + enabled?: boolean; + maxNodeCount?: number; } /** - * Contains the possible cases for ComputeNodesInformation. + * Auto pause properties */ -export type ComputeNodesInformationUnion = ComputeNodesInformation | AmlComputeNodesInformation; +export interface AutoPauseProperties { + delayInMinutes?: number; + enabled?: boolean; +} /** - * Compute nodes information related to a Machine Learning compute. Might differ for every type of - * compute. + * AKS properties */ -export interface ComputeNodesInformation { +export interface SynapseSparkProperties { /** - * Polymorphic Discriminator + * Auto scale properties. */ - computeType: "ComputeNodesInformation"; + autoScaleProperties?: AutoScaleProperties; /** - * The continuation token. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Auto pause properties. */ - readonly nextLink?: string; -} - -/** + autoPauseProperties?: AutoPauseProperties; + /** + * Spark version. + */ + sparkVersion?: string; + /** + * The number of compute nodes currently assigned to the compute. + */ + nodeCount?: number; + /** + * Node size. + */ + nodeSize?: string; + /** + * Node size family. + */ + nodeSizeFamily?: string; + /** + * Azure subscription identifier. + */ + subscriptionId?: string; + /** + * Name of the resource group in which workspace is located. + */ + resourceGroup?: string; + /** + * Name of Azure Machine Learning workspace. + */ + workspaceName?: string; + /** + * Pool name. + */ + poolName?: string; +} + +/** + * A SynapseSpark compute. + */ +export interface SynapseSpark { + /** + * The type of compute. Possible values include: 'AKS', 'AmlCompute', 'ComputeInstance', + * 'DataFactory', 'VirtualMachine', 'HDInsight', 'Databricks', 'DataLakeAnalytics', + * 'SynapseSpark' + */ + computeType: ComputeType; + /** + * 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 time at which the compute was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdOn?: Date; + /** + * The time at which the compute was last modified. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly modifiedOn?: Date; + /** + * ARM resource id of the underlying compute + */ + resourceId?: string; + /** + * Errors during provisioning + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningErrors?: ErrorResponse[]; + /** + * Indicating whether the compute was provisioned by user and brought from outside if true, or + * machine learning service provisioned it if false. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isAttachedCompute?: boolean; + /** + * Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for + * authentication. + */ + disableLocalAuth?: boolean; + /** + * AKS properties + */ + properties?: SynapseSparkProperties; +} + +/** + * Service principal credentials. + */ +export interface ServicePrincipalCredentials { + /** + * Client Id + */ + clientId: string; + /** + * Client secret + */ + clientSecret: string; +} + +/** + * AmlCompute update parameters. + */ +export interface ClusterUpdateParameters { + /** + * Scale settings. Desired scale settings for the amlCompute. + */ + scaleSettings?: ScaleSettings; +} + +/** + * Contains the possible cases for ComputeNodesInformation. + */ +export type ComputeNodesInformationUnion = ComputeNodesInformation | AmlComputeNodesInformation; + +/** + * Compute nodes information related to a Machine Learning compute. Might differ for every type of + * compute. + */ +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; +} + +/** * Compute node information related to a AmlCompute. */ export interface AmlComputeNodeInformation { @@ -1873,26 +2463,6 @@ export interface AmlComputeNodeInformation { readonly runId?: string; } -/** - * 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[]; -} - /** * Contains the possible cases for ComputeSecrets. */ @@ -1959,639 +2529,6607 @@ export interface DatabricksComputeSecrets { } /** - * Features/user capabilities associated with the sku + * A private link resource */ -export interface SKUCapability { +export interface PrivateLinkResource extends Resource { /** - * Capability/Feature ID + * The private link resource group id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name?: string; + readonly groupId?: string; /** - * Details about the feature/capability + * The private link resource required member names. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - value?: string; + readonly requiredMembers?: string[]; + /** + * The private link resource Private link DNS zone name. + */ + requiredZoneNames?: string[]; + /** + * 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; + systemData?: SystemData; } /** - * Describes The zonal capabilities of a SKU. + * A list of private link resources */ -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[]; +export interface PrivateLinkResourceListResult { /** - * 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.** + * Array of private link resources */ - readonly capabilities?: SKUCapability[]; + value?: PrivateLinkResource[]; } /** - * An interface representing ResourceSkuLocationInfo. + * The resource requirements for the container (cpu and memory). */ -export interface ResourceSkuLocationInfo { +export interface ContainerResourceRequirements { /** - * Location of the SKU - * **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 location?: string; + cpu?: number; /** - * List of availability zones where the SKU is supported. - * **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 zones?: string[]; + cpuLimit?: number; /** - * 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.** + * 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 zoneDetails?: ResourceSkuZoneDetails[]; -} - -/** - * The restriction because of which SKU cannot be used. - */ -export interface Restriction { + memoryInGB?: number; /** - * 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.** + * 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 type?: string; + memoryInGBLimit?: number; /** - * 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.** + * The number of GPU cores in the container. */ - readonly values?: string[]; + gpu?: number; /** - * The reason for the restriction. Possible values include: 'NotSpecified', - * 'NotAvailableForRegion', 'NotAvailableForSubscription' + * The number of FPGA PCIE devices exposed to the container. Must be multiple of 2. */ - reasonCode?: ReasonCode; + fpga?: number; } /** - * Describes Workspace Sku details and features + * An interface representing ListStorageAccountKeysResult. */ -export interface SkuSettings { +export interface ListStorageAccountKeysResult { /** - * 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[]; + readonly userStorageKey?: string; +} + +/** + * Workspace connection. + */ +export interface WorkspaceConnection extends BaseResource { /** - * A list of locations and availability zones in those locations where the SKU is available. + * ResourceId of the workspace connection. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly locationInfo?: ResourceSkuLocationInfo[]; + readonly id?: string; /** - * Sku Tier like Basic or Enterprise + * Friendly name of the workspace connection. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly tier?: string; + readonly name?: string; /** + * Resource type of workspace connection. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly resourceType?: string; + readonly type?: string; /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Category of the workspace connection. */ - readonly name?: string; + category?: 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.** + * Target of the workspace connection. */ - readonly capabilities?: SKUCapability[]; + target?: string; /** - * The restrictions because of which SKU cannot be used. This is empty if there are no - * restrictions. + * Authorization type of the workspace connection. */ - restrictions?: Restriction[]; + authType?: string; + /** + * Value details of the workspace connection. + */ + value?: string; + /** + * format for the workspace connection value. Possible values include: 'JSON' + */ + valueFormat?: ValueFormat; } /** - * AML workspace sku information + * Properties specific to Synapse Spark pools. */ -export interface WorkspaceSku { - /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly resourceType?: string; +export interface SynapseSparkPoolProperties { /** - * The list of workspace sku settings - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * AKS properties */ - readonly skus?: SkuSettings[]; + properties?: SynapseSparkProperties; } /** - * A private link resource + * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags + * and a location + * @summary Proxy Resource */ -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; +export interface ProxyResource extends Resource { +} + +/** + * The resource model definition for an Azure Resource Manager tracked top level resource which has + * 'tags' and a 'location' + * @summary Tracked Resource + */ +export interface TrackedResource extends Resource { /** - * The private link resource required member names. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Resource tags. */ - readonly requiredMembers?: string[]; + tags?: { [propertyName: string]: string }; /** - * The private link resource Private link DNS zone name. + * The geo-location where the resource lives */ - requiredZoneNames?: string[]; + location: string; } /** - * A list of private link resources + * The resource model definition for an Azure Resource Manager resource with an etag. + * @summary Entity Resource */ -export interface PrivateLinkResourceListResult { +export interface AzureEntityResource extends Resource { /** - * Array of private link resources + * Resource Etag. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - value?: PrivateLinkResource[]; + readonly etag?: string; } /** - * Workspace connection. + * Contains the possible cases for DatastoreSecrets. */ -export interface WorkspaceConnection extends BaseResource { +export type DatastoreSecretsUnion = DatastoreSecrets | AccountKeyDatastoreSecrets | CertificateDatastoreSecrets | NoneDatastoreSecrets | SasDatastoreSecrets | ServicePrincipalDatastoreSecrets | SqlAdminDatastoreSecrets; + +/** + * Base definition for datastore secrets. + */ +export interface DatastoreSecrets { /** - * ResourceId of the workspace connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Polymorphic Discriminator */ - readonly id?: string; + secretsType: "DatastoreSecrets"; +} + +/** + * Datastore account key secrets. + */ +export interface AccountKeyDatastoreSecrets { /** - * Friendly name of the workspace connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Polymorphic Discriminator */ - readonly name?: string; + secretsType: "AccountKey"; /** - * Resource type of workspace connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Storage account key. */ - readonly type?: string; + key?: string; +} + +/** + * Contains the possible cases for DatastoreCredentials. + */ +export type DatastoreCredentialsUnion = DatastoreCredentials | AccountKeyDatastoreCredentials | CertificateDatastoreCredentials | NoneDatastoreCredentials | SasDatastoreCredentials | ServicePrincipalDatastoreCredentials | SqlAdminDatastoreCredentials; + +/** + * Base definition for datastore credentials. + */ +export interface DatastoreCredentials { /** - * Category of the workspace connection. + * Polymorphic Discriminator */ - category?: string; + credentialsType: "DatastoreCredentials"; +} + +/** + * Account key datastore credentials configuration. + */ +export interface AccountKeyDatastoreCredentials { /** - * Target of the workspace connection. + * Polymorphic Discriminator */ - target?: string; + credentialsType: "AccountKey"; /** - * Authorization type of the workspace connection. + * Storage account secrets. */ - authType?: string; + secrets?: AccountKeyDatastoreSecrets; +} + +/** + * Contains the possible cases for IdentityConfiguration. + */ +export type IdentityConfigurationUnion = IdentityConfiguration | AmlToken | ManagedIdentity; + +/** + * Base definition for identity configuration. + */ +export interface IdentityConfiguration { /** - * Value details of the workspace connection. + * Polymorphic Discriminator */ - value?: string; + identityType: "IdentityConfiguration"; } /** - * object used for creating workspace connection. + * AML Token identity configuration. */ -export interface WorkspaceConnectionDto { +export interface AmlToken { /** - * Friendly name of the workspace connection + * Polymorphic Discriminator */ - name?: string; + identityType: "AMLToken"; +} + +/** + * Contains the possible cases for AssetReferenceBase. + */ +export type AssetReferenceBaseUnion = AssetReferenceBase | DataPathAssetReference | IdAssetReference | OutputPathAssetReference; + +/** + * Base definition for asset references. + */ +export interface AssetReferenceBase { /** - * Category of the workspace connection. + * Polymorphic Discriminator */ - category?: string; + referenceType: "AssetReferenceBase"; +} + +/** + * Contains the possible cases for OnlineScaleSettings. + */ +export type OnlineScaleSettingsUnion = OnlineScaleSettings | AutoScaleSettings | ManualScaleSettings; + +/** + * Online deployment scaling configuration. + */ +export interface OnlineScaleSettings { /** - * Target of the workspace connection. + * Polymorphic Discriminator */ - target?: string; + scaleType: "OnlineScaleSettings"; /** - * Authorization type of the workspace connection. + * Maximum number of instances for this deployment. */ - authType?: string; + maxInstances?: number; /** - * Value details of the workspace connection. + * Minimum number of instances for this deployment. */ - value?: string; + minInstances?: number; } /** - * Optional Parameters. + * An interface representing AutoScaleSettings. */ -export interface WorkspacesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { +export interface AutoScaleSettings { /** - * Continuation token for pagination. + * Polymorphic Discriminator + */ + scaleType: "Auto"; + /** + * Maximum number of instances for this deployment. */ - skiptoken?: string; + maxInstances?: number; + /** + * Minimum number of instances for this deployment. + */ + minInstances?: number; + /** + * The polling interval in ISO 8691 format. Only supports duration with precision as low as + * Seconds. + */ + pollingInterval?: string; + /** + * Target CPU usage for the autoscaler. + */ + targetUtilizationPercentage?: number; } /** - * Optional Parameters. + * Contains the possible cases for DatastoreContents. */ -export interface WorkspacesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { +export type DatastoreContentsUnion = DatastoreContents | AzureBlobContents | AzureDataLakeGen1Contents | AzureDataLakeGen2Contents | AzureFileContents | AzurePostgreSqlContents | AzureSqlDatabaseContents | GlusterFsContents; + +/** + * Base definition for datastore contents configuration. + */ +export interface DatastoreContents { /** - * Continuation token for pagination. + * Polymorphic Discriminator */ - skiptoken?: string; + contentsType: "DatastoreContents"; } /** - * Optional Parameters. + * Azure Blob datastore configuration. */ -export interface WorkspacesListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { +export interface AzureBlobContents { /** - * Continuation token for pagination. + * Polymorphic Discriminator + */ + 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. */ - skiptoken?: string; + protocol: string; } /** - * Optional Parameters. + * Azure Data Lake Gen1 datastore configuration. */ -export interface WorkspacesListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { +export interface AzureDataLakeGen1Contents { /** - * Continuation token for pagination. + * Polymorphic Discriminator + */ + contentsType: "AzureDataLakeGen1"; + /** + * Account credentials. + */ + credentials: DatastoreCredentialsUnion; + /** + * Azure Data Lake store name. */ - skiptoken?: string; + storeName: string; } /** - * Optional Parameters. + * Azure Data Lake Gen2 datastore configuration. */ -export interface VirtualMachineSizesListOptionalParams extends msRest.RequestOptionsBase { +export interface AzureDataLakeGen2Contents { + /** + * Polymorphic Discriminator + */ + contentsType: "AzureDataLakeGen2"; + /** + * Storage account name. + */ + accountName: string; + /** + * Storage account container name. + */ + containerName: string; + /** + * Account credentials. + */ + credentials: DatastoreCredentialsUnion; /** - * Type of compute to filter by. + * Azure cloud endpoint for the storage account. */ - computeType?: string; + endpoint: string; /** - * Specifies whether to return recommended vm sizes or all vm sizes + * Protocol used to communicate with the storage account. */ - recommended?: boolean; + protocol: string; } /** - * Optional Parameters. + * Azure File datastore configuration. */ -export interface WorkspaceConnectionsListOptionalParams extends msRest.RequestOptionsBase { +export interface AzureFileContents { /** - * Target of the workspace connection. + * Polymorphic Discriminator */ - target?: string; + contentsType: "AzureFile"; /** - * Category of the workspace connection. + * Storage account name. */ - category?: string; + 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; } /** - * Optional Parameters. + * Azure Postgre SQL datastore configuration. */ -export interface MachineLearningComputeListByWorkspaceOptionalParams extends msRest.RequestOptionsBase { +export interface AzurePostgreSqlContents { /** - * Continuation token for pagination. + * Polymorphic Discriminator + */ + 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. */ - skiptoken?: string; + serverName: string; } /** - * Optional Parameters. + * Azure SQL Database datastore configuration. */ -export interface MachineLearningComputeListByWorkspaceNextOptionalParams extends msRest.RequestOptionsBase { +export interface AzureSqlDatabaseContents { /** - * Continuation token for pagination. + * Polymorphic Discriminator + */ + 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. */ - skiptoken?: string; + serverName: string; } /** - * An interface representing AzureMachineLearningWorkspacesOptions. + * Contains the possible cases for EarlyTerminationPolicy. */ -export interface AzureMachineLearningWorkspacesOptions extends AzureServiceClientOptions { - baseUri?: string; -} +export type EarlyTerminationPolicyUnion = EarlyTerminationPolicy | BanditPolicy | MedianStoppingPolicy | TruncationSelectionPolicy; /** - * Defines headers for CreateOrUpdate operation. + * Early termination policies enable canceling poor-performing runs before they complete. */ -export interface MachineLearningComputeCreateOrUpdateHeaders { +export interface EarlyTerminationPolicy { /** - * URI to poll for asynchronous operation status. + * Polymorphic Discriminator */ - azureAsyncOperation: string; + policyType: "EarlyTerminationPolicy"; + /** + * Number of intervals by which to delay the first evaluation. + */ + delayEvaluation?: number; + /** + * Interval (number of runs) between policy evaluations. + */ + evaluationInterval?: number; } /** - * Defines headers for Delete operation. + * Defines an early termination policy based on slack criteria, and a frequency and delay interval + * for evaluation. */ -export interface MachineLearningComputeDeleteHeaders { +export interface BanditPolicy { /** - * URI to poll for asynchronous operation status. + * Polymorphic Discriminator */ - azureAsyncOperation: string; + policyType: "Bandit"; /** - * URI to poll for asynchronous operation result. + * Number of intervals by which to delay the first evaluation. */ - location: string; + delayEvaluation?: number; + /** + * Interval (number of runs) between policy evaluations. + */ + evaluationInterval?: number; + /** + * Absolute distance allowed from the best performing run. + */ + slackAmount?: number; + /** + * Ratio of the allowed distance from the best performing run. + */ + slackFactor?: number; } /** - * @interface - * An array of operations supported by the resource provider. - * @extends Array + * Configuration for a scoring code asset. */ -export interface OperationListResult extends Array { +export interface CodeConfiguration { + /** + * ARM resource ID of the code asset. + */ + codeId?: string; + /** + * The script to execute on startup. eg. "score.py" + */ + scoringScript: string; } /** - * @interface - * The result of a request to list machine learning workspaces. - * @extends Array + * Configuration for compute binding. */ -export interface WorkspaceListResult extends Array { +export interface ComputeConfiguration { /** - * The URI that can be used to request the next list of machine learning workspaces. + * Number of instances or nodes. */ - nextLink?: string; + 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; } /** - * @interface - * The List Aml user feature operation response. - * @extends Array + * Batch inference output configuration. */ -export interface ListAmlUserFeatureResult extends Array { +export interface BatchOutputConfiguration { /** - * 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.** + * Customized output file name for append_row output action. */ - readonly nextLink?: string; + appendRowFileName?: string; + /** + * Indicates how the output will be organized. Possible values include: 'SummaryOnly', + * 'AppendRow' + */ + outputAction?: BatchOutputAction; } /** - * @interface - * The List Usages operation response. - * @extends Array + * Retry settings for a batch inference operation. */ -export interface ListUsagesResult extends Array { +export interface BatchRetrySettings { /** - * 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.** + * Maximum retry count for a mini-batch */ - readonly nextLink?: string; + maxRetries?: number; + /** + * Invocation timeout for a mini-batch, in ISO 8601 format. + */ + timeout?: string; } /** - * @interface - * The List WorkspaceQuotasByVMFamily operation response. - * @extends Array + * Batch inference settings per deployment. */ -export interface ListWorkspaceQuotas extends Array { +export interface BatchDeployment { /** - * 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.** + * Code configuration for the endpoint deployment. */ - readonly nextLink?: string; + 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. Possible values include: 'Info', 'Warning', + * 'Debug' + */ + 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; } /** - * @interface - * Paginated list of Workspace connection objects. - * @extends Array + * User assigned identities associated with a resource. */ -export interface PaginatedWorkspaceConnectionsList extends Array { +export interface UserAssignedIdentityMeta { /** - * A continuation link (absolute URI) to the next page of results in the list. + * Aka application ID, a unique identifier generated by Azure AD that is tied to an application + * and service principal during its initial provisioning. */ - nextLink?: string; + 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; } /** - * @interface - * Paginated list of Machine Learning compute objects wrapped in ARM resource envelope. - * @extends Array + * Service identity associated with a resource. */ -export interface PaginatedComputeResourcesList extends Array { +export interface ResourceIdentity { /** - * A continuation link (absolute URI) to the next page of results in the list. + * Client ID that is used when authenticating. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - nextLink?: string; + readonly principalId?: string; + /** + * AAD Tenant where this identity lives. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tenantId?: string; + /** + * Defines values for a ResourceIdentity's type. Possible values include: 'SystemAssigned', + * 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' + */ + type?: ResourceIdentityAssignment; + /** + * Dictionary of the user assigned identities, key is ARM resource ID of the UAI. + */ + userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentityMeta }; } /** - * @interface - * List of skus with features - * @extends Array + * An interface representing BatchDeploymentTrackedResource. */ -export interface SkuListResult extends Array { +export interface BatchDeploymentTrackedResource extends TrackedResource { /** - * The URI to fetch the next page of Workspace Skus. Call ListNext() with this URI to fetch the - * next page of Workspace Skus + * Service identity associated with a resource. */ - nextLink?: string; + 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; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** - * Defines values for ProvisioningState. - * Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', 'Succeeded', 'Failed', - * 'Canceled' - * @readonly - * @enum {string} - */ -export type ProvisioningState = 'Unknown' | 'Updating' | 'Creating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled'; - -/** - * Defines values for EncryptionStatus. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Keys for endpoint authentication. */ -export type EncryptionStatus = 'Enabled' | 'Disabled'; +export interface EndpointAuthKeys { + /** + * The primary key. + */ + primaryKey?: string; + /** + * The secondary key. + */ + secondaryKey?: string; +} /** - * Defines values for PrivateEndpointServiceConnectionStatus. - * Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected', 'Timeout' - * @readonly - * @enum {string} + * Batch endpoint configuration. */ -export type PrivateEndpointServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected' | 'Timeout'; +export interface BatchEndpoint { + /** + * Enum to determine endpoint authentication mode. Possible values include: 'AMLToken', 'Key', + * 'AADToken' + */ + authMode?: EndpointAuthMode; + /** + * Description of the inference endpoint. + */ + description?: string; + /** + * EndpointAuthKeys to set initially on an Endpoint. + * This property will always be returned as null. AuthKey values must be retrieved using the + * ListKeys API. + */ + keys?: EndpointAuthKeys; + /** + * Property dictionary. Properties can be added, but not removed or altered. + */ + properties?: { [propertyName: string]: string }; + /** + * Endpoint URI. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly scoringUri?: string; + /** + * Endpoint Swagger URI. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly swaggerUri?: string; + /** + * Traffic rules on how the traffic will be routed across deployments. + */ + traffic?: { [propertyName: string]: number }; +} /** - * Defines values for PrivateEndpointConnectionProvisioningState. - * Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Failed' - * @readonly - * @enum {string} + * An interface representing BatchEndpointTrackedResource. */ -export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed'; +export interface BatchEndpointTrackedResource extends 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; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} /** - * Defines values for UsageUnit. - * Possible values include: 'Count' - * @readonly - * @enum {string} + * Datastore certificate secrets. */ -export type UsageUnit = 'Count'; +export interface CertificateDatastoreSecrets { + /** + * Polymorphic Discriminator + */ + secretsType: "Certificate"; + /** + * Service principal certificate. + */ + certificate?: string; +} /** - * Defines values for VMPriceOSType. - * Possible values include: 'Linux', 'Windows' - * @readonly - * @enum {string} + * Certificate datastore credentials configuration. */ -export type VMPriceOSType = 'Linux' | 'Windows'; +export interface CertificateDatastoreCredentials { + /** + * Polymorphic Discriminator + */ + 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; +} /** - * Defines values for VMTier. - * Possible values include: 'Standard', 'LowPriority', 'Spot' - * @readonly - * @enum {string} + * Contains the possible cases for ExportSummary. */ -export type VMTier = 'Standard' | 'LowPriority' | 'Spot'; +export type ExportSummaryUnion = ExportSummary | CocoExportSummary | CsvExportSummary | DatasetExportSummary; /** - * Defines values for QuotaUnit. - * Possible values include: 'Count' - * @readonly - * @enum {string} + * An interface representing ExportSummary. */ -export type QuotaUnit = 'Count'; +export interface ExportSummary { + /** + * Polymorphic Discriminator + */ + format: "ExportSummary"; + /** + * The time when the export was completed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endTimeUtc?: Date; + /** + * The total number of labeled datapoints exported. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly exportedRowCount?: number; + /** + * Name and identifier of the job containing exported labels. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly labelingJobId?: string; + /** + * The time when the export was requested. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTimeUtc?: Date; +} /** - * Defines values for Status. - * Possible values include: 'Undefined', 'Success', 'Failure', 'InvalidQuotaBelowClusterMinimum', - * 'InvalidQuotaExceedsSubscriptionLimit', 'InvalidVMFamilyName', 'OperationNotSupportedForSku', - * 'OperationNotEnabledForRegion' - * @readonly - * @enum {string} + * An interface representing CocoExportSummary. */ -export type Status = 'Undefined' | 'Success' | 'Failure' | 'InvalidQuotaBelowClusterMinimum' | 'InvalidQuotaExceedsSubscriptionLimit' | 'InvalidVMFamilyName' | 'OperationNotSupportedForSku' | 'OperationNotEnabledForRegion'; +export interface CocoExportSummary { + /** + * Polymorphic Discriminator + */ + format: "Coco"; + /** + * The time when the export was completed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endTimeUtc?: Date; + /** + * The total number of labeled datapoints exported. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly exportedRowCount?: number; + /** + * Name and identifier of the job containing exported labels. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly labelingJobId?: string; + /** + * The time when the export was requested. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTimeUtc?: Date; + /** + * The container name to which the labels will be exported. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly containerName?: string; + /** + * The output path where the labels will be exported. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly snapshotPath?: string; +} /** - * Defines values for ResourceIdentityType. - * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' - * @readonly - * @enum {string} + * Container for code asset versions. */ -export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned,UserAssigned' | 'None'; +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 }; +} /** - * Defines values for VmPriority. - * Possible values include: 'Dedicated', 'LowPriority' - * @readonly - * @enum {string} + * Azure Resource Manager resource envelope. */ -export type VmPriority = 'Dedicated' | 'LowPriority'; +export interface CodeContainerResource extends Resource { + /** + * Additional attributes of the entity. + */ + properties: CodeContainer; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} /** - * Defines values for RemoteLoginPortPublicAccess. - * Possible values include: 'Enabled', 'Disabled', 'NotSpecified' - * @readonly - * @enum {string} + * Code asset version details. */ -export type RemoteLoginPortPublicAccess = 'Enabled' | 'Disabled' | 'NotSpecified'; - -/** - * Defines values for AllocationState. - * Possible values include: 'Steady', 'Resizing' +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 }; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface CodeVersionResource extends Resource { + /** + * Additional attributes of the entity. + */ + properties: CodeVersion; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Contains the possible cases for DistributionConfiguration. + */ +export type DistributionConfigurationUnion = DistributionConfiguration | Mpi | PyTorch | TensorFlow; + +/** + * Base definition for job distribution configuration. + */ +export interface DistributionConfiguration { + /** + * Polymorphic Discriminator + */ + distributionType: "DistributionConfiguration"; +} + +/** + * An interface representing InputDataBinding. + */ +export interface InputDataBinding { + /** + * ARM resource ID of the registered dataVersion. + */ + dataId?: string; + /** + * Mechanism for accessing the data artifact. Possible values include: 'Mount', 'Download', + * 'Upload' + */ + 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 { + /** + * 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 datastoreId?: string; + /** + * 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 path?: string; +} + +/** + * An interface representing OutputDataBinding. + */ +export interface OutputDataBinding { + /** + * ARM resource ID of the datastore where the data output will be stored. + */ + datastoreId?: string; + /** + * Mechanism for data movement to datastore. Possible values include: 'Mount', 'Download', + * 'Upload' + */ + mode?: DataBindingMode; + /** + * Location of data inside the container process. + */ + pathOnCompute?: string; + /** + * Path within the datastore to the data. + */ + pathOnDatastore?: string; +} + +/** + * Contains the possible cases for JobBase. + */ +export type JobBaseUnion = JobBase | CommandJob | SweepJob; + +/** + * Base definition for a job. + */ +export interface JobBase { + /** + * Polymorphic Discriminator + */ + jobType: "JobBase"; + /** + * The asset description text. + */ + description?: string; + /** + * 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.** + */ + readonly interactionEndpoints?: { [propertyName: string]: JobEndpoint }; + /** + * The asset property dictionary. + */ + properties?: { [propertyName: string]: string }; + /** + * Specifies the job provisioning state. Possible values include: 'Succeeded', 'Failed', + * 'Canceled', 'InProgress' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: JobProvisioningState; + /** + * Tag dictionary. Tags can be added, removed, and updated. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * Command job definition. + */ +export interface CommandJob { + /** + * Polymorphic Discriminator + */ + jobType: "Command"; + /** + * The asset description text. + */ + description?: string; + /** + * 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.** + */ + readonly interactionEndpoints?: { [propertyName: string]: JobEndpoint }; + /** + * The asset property dictionary. + */ + properties?: { [propertyName: string]: string }; + /** + * Specifies the job provisioning state. Possible values include: 'Succeeded', 'Failed', + * 'Canceled', 'InProgress' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: JobProvisioningState; + /** + * Tag dictionary. Tags can be added, removed, and updated. + */ + tags?: { [propertyName: string]: string }; + /** + * 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. Possible values include: 'NotStarted', 'Starting', 'Provisioning', + * 'Preparing', 'Queued', 'Running', 'Finalizing', 'CancelRequested', 'Completed', 'Failed', + * 'Canceled', 'NotResponding', 'Paused', 'Unknown' + * **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; +} + +/** + * An interface representing CsvExportSummary. + */ +export interface CsvExportSummary { + /** + * Polymorphic Discriminator + */ + format: "CSV"; + /** + * The time when the export was completed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endTimeUtc?: Date; + /** + * The total number of labeled datapoints exported. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly exportedRowCount?: number; + /** + * Name and identifier of the job containing exported labels. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly labelingJobId?: string; + /** + * The time when the export was requested. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTimeUtc?: Date; + /** + * The container name to which the labels will be exported. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly containerName?: string; + /** + * The output path where the labels will be exported. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly snapshotPath?: string; +} + +/** + * 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 }; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface DataContainerResource extends Resource { + /** + * Additional attributes of the entity. + */ + properties: DataContainer; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Reference to an asset via its path in a datastore. + */ +export interface DataPathAssetReference { + /** + * Polymorphic Discriminator + */ + 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; +} + +/** + * Data asset version details. + */ +export interface DataVersion { + /** + * The Format of dataset. Possible values include: 'Simple', 'Dataflow' + */ + 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 }; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface DataVersionResource extends Resource { + /** + * Additional attributes of the entity. + */ + properties: DataVersion; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * An interface representing DatasetExportSummary. + */ +export interface DatasetExportSummary { + /** + * Polymorphic Discriminator + */ + format: "Dataset"; + /** + * The time when the export was completed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endTimeUtc?: Date; + /** + * The total number of labeled datapoints exported. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly exportedRowCount?: number; + /** + * Name and identifier of the job containing exported labels. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly labelingJobId?: string; + /** + * The time when the export was requested. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTimeUtc?: Date; + /** + * The unique name of the labeled data asset. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly labeledAssetName?: string; +} + +/** + * 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. Possible values include: 'Synapse' + */ + origin?: OriginType; +} + +/** + * Datastore definition. + */ +export interface DatastoreProperties { + /** + * Reference to the datastore storage contents. + */ + contents: DatastoreContentsUnion; + /** + * The asset description text. + */ + description?: string; + /** + * 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 }; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface DatastorePropertiesResource extends Resource { + /** + * Additional attributes of the entity. + */ + properties: DatastoreProperties; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * An interface representing DeploymentLogs. + */ +export interface DeploymentLogs { + /** + * The retrieved online deployment logs. + */ + content?: string; +} + +/** + * An interface representing DeploymentLogsRequest. + */ +export interface DeploymentLogsRequest { + /** + * The type of container to retrieve logs from. Possible values include: 'StorageInitializer', + * 'InferenceServer' + */ + containerType?: ContainerType; + /** + * The maximum number of lines to tail. + */ + tail?: number; +} + +/** + * Contains the possible cases for DockerSpecification. + */ +export type DockerSpecificationUnion = DockerSpecification | DockerBuild | DockerImage; + +/** + * Configuration settings for Docker + */ +export interface DockerSpecification { + /** + * Polymorphic Discriminator + */ + dockerSpecificationType: "DockerSpecification"; + /** + * The platform information of the docker image. + */ + platform?: DockerImagePlatform; +} + +/** + * Class to represent configuration settings for Docker Build + */ +export interface DockerBuild { + /** + * Polymorphic Discriminator + */ + dockerSpecificationType: "Build"; + /** + * The platform information of the docker image. + */ + platform?: DockerImagePlatform; + /** + * 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. + * + */ + context?: string; + /** + * Docker command line instructions to assemble an image. + * + */ + dockerfile: string; +} + +/** + * Class to represent configuration settings for Docker Build + */ +export interface DockerImage { + /** + * Polymorphic Discriminator + */ + dockerSpecificationType: "Image"; + /** + * The platform information of the docker image. + */ + platform?: DockerImagePlatform; + /** + * Image name of a custom base image. + * + */ + dockerImageUri: string; +} + +/** + * An interface representing DockerImagePlatform. + */ +export interface DockerImagePlatform { + /** + * The OS type the Environment. Possible values include: 'Linux', 'Windows' + */ + operatingSystemType?: OperatingSystemType; +} + +/** + * 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; +} + +/** + * 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 }; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface EnvironmentContainerResource extends Resource { + /** + * Additional attributes of the entity. + */ + properties: EnvironmentContainer; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * An interface representing Route. + */ +export interface Route { + /** + * The path for the route. + */ + path: string; + /** + * The port for the route. + */ + port: number; +} + +/** + * An interface representing InferenceContainerProperties. + */ +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; +} + +/** + * Environment specification version details. + * + */ +export interface EnvironmentSpecificationVersion { + /** + * Standard configuration file used by Conda that lets you install any kind of package, including + * Python, R, and C/C++ packages. + * + */ + 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 + * . Possible values include: 'Curated', 'UserCreated' + * **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 }; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface EnvironmentSpecificationVersionResource extends Resource { + /** + * Additional attributes of the entity. + */ + properties: EnvironmentSpecificationVersion; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * An interface representing FlavorData. + */ +export interface FlavorData { + /** + * Model flavor-specific data. + */ + data?: { [propertyName: string]: string }; +} + +/** + * GlusterFs datastore configuration. + */ +export interface GlusterFsContents { + /** + * Polymorphic Discriminator + */ + contentsType: "GlusterFs"; + /** + * GlusterFS server address (can be the IP address or server name). + */ + serverAddress: string; + /** + * GlusterFS volume name. + */ + volumeName: string; +} + +/** + * Reference to an asset via its ARM resource ID. + */ +export interface IdAssetReference { + /** + * Polymorphic Discriminator + */ + referenceType: "Id"; + /** + * ARM resource ID of the asset. + */ + assetId: 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 }; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface JobBaseResource extends Resource { + /** + * Additional attributes of the entity. + */ + properties: JobBaseUnion; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Contains the possible cases for OnlineDeployment. + */ +export type OnlineDeploymentUnion = OnlineDeployment | K8sOnlineDeployment | ManagedOnlineDeployment; + +/** + * An interface representing OnlineDeployment. + */ +export interface OnlineDeployment { + /** + * Polymorphic Discriminator + */ + endpointComputeType: "OnlineDeployment"; + /** + * 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. Possible values include: 'Creating', + * 'Deleting', 'Scaling', 'Updating', 'Succeeded', 'Failed', 'Canceled' + * **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; +} + +/** + * An interface representing K8sOnlineDeployment. + */ +export interface K8sOnlineDeployment { + /** + * Polymorphic Discriminator + */ + endpointComputeType: "K8S"; + /** + * 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. Possible values include: 'Creating', + * 'Deleting', 'Scaling', 'Updating', 'Succeeded', 'Failed', 'Canceled' + * **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; + /** + * Resource requirements for each container instance within an online deployment. + */ + containerResourceRequirements?: ContainerResourceRequirements; +} + +/** + * 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 }; +} + +/** + * 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; +} + +/** + * 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; +} + +/** + * Instructions for labeling job + */ +export interface LabelingJobInstructions { + /** + * The link to a page with detailed labeling instructions for labelers. + */ + uri?: string; +} + +/** + * Contains the possible cases for LabelingJobMediaProperties. + */ +export type LabelingJobMediaPropertiesUnion = LabelingJobMediaProperties | LabelingJobImageProperties | LabelingJobTextProperties; + +/** + * Properties of a labeling job + */ +export interface LabelingJobMediaProperties { + /** + * Polymorphic Discriminator + */ + mediaType: "LabelingJobMediaProperties"; +} + +/** + * 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 completed datapoint count. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly completedDatapointCount?: number; + /** + * 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 incrementalDatasetLastRefreshTime?: Date; + /** + * The skipped datapoint count. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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; +} + +/** + * Active message associated with project + */ +export interface StatusMessage { + /** + * Service-defined message code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly code?: string; + /** + * Time in UTC at which the message was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdTimeUtc?: Date; + /** + * Severity level of message. Possible values include: 'Error', 'Information', 'Warning' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly level?: StatusMessageLevel; + /** + * A human-readable representation of the message code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly message?: string; +} + +/** + * Labeling job definition + */ +export interface LabelingJob { + /** + * Created time of the job in UTC timezone. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdTimeUtc?: Date; + /** + * Configuration of dataset used in the job. + */ + datasetConfiguration?: LabelingDatasetConfiguration; + /** + * The asset description text. + */ + description?: string; + /** + * 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.** + */ + 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". Possible values + * include: 'Command', 'Sweep', '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; + /** + * Progress metrics of the job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly progressMetrics?: ProgressMetrics; + /** + * Internal id of the job(Previously called project). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly projectId?: string; + /** + * The asset property dictionary. + */ + properties?: { [propertyName: string]: string }; + /** + * Specifies the labeling job provisioning state. Possible values include: 'Succeeded', 'Failed', + * 'Canceled', 'InProgress' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: JobProvisioningState; + /** + * Status of the job. Possible values include: 'NotStarted', 'Starting', 'Provisioning', + * 'Preparing', 'Queued', 'Running', 'Finalizing', 'CancelRequested', 'Completed', 'Failed', + * 'Canceled', 'NotResponding', 'Paused', 'Unknown' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: JobStatus; + /** + * Status messages of the job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly statusMessages?: StatusMessage[]; + /** + * Tag dictionary. Tags can be added, removed, and updated. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * Properties of a labeling job for image data + */ +export interface LabelingJobImageProperties { + /** + * Polymorphic Discriminator + */ + mediaType: "Image"; + /** + * Annotation type of image labeling job. Possible values include: 'Classification', + * 'BoundingBox', 'InstanceSegmentation' + */ + annotationType?: ImageAnnotationType; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface LabelingJobResource extends Resource { + /** + * Additional attributes of the entity. + */ + properties: LabelingJob; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Properties of a labeling job for text data + */ +export interface LabelingJobTextProperties { + /** + * Polymorphic Discriminator + */ + mediaType: "Text"; + /** + * Annotation type of text labeling job. Possible values include: 'Classification' + */ + annotationType?: TextAnnotationType; +} + +/** + * Managed identity configuration. + */ +export interface ManagedIdentity { + /** + * Polymorphic Discriminator + */ + 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; +} + +/** + * 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; +} + +/** + * An interface representing ManagedOnlineDeployment. + */ +export interface ManagedOnlineDeployment { + /** + * Polymorphic Discriminator + */ + endpointComputeType: "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. Possible values include: 'Creating', + * 'Deleting', 'Scaling', 'Updating', 'Succeeded', 'Failed', 'Canceled' + * **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; + /** + * Compute instance type. + */ + instanceType?: string; + /** + * Deployment container liveness/readiness probe configuration. + */ + readinessProbe?: ProbeSettings; +} + +/** + * An interface representing ManualScaleSettings. + */ +export interface ManualScaleSettings { + /** + * Polymorphic Discriminator + */ + scaleType: "Manual"; + /** + * Maximum number of instances for this deployment. + */ + maxInstances?: number; + /** + * Minimum number of instances for this deployment. + */ + minInstances?: number; + /** + * Fixed number of instances for this deployment. + */ + instanceCount?: number; +} + +/** + * Defines an early termination policy based on running averages of the primary metric of all runs. + */ +export interface MedianStoppingPolicy { + /** + * Polymorphic Discriminator + */ + policyType: "MedianStopping"; + /** + * Number of intervals by which to delay the first evaluation. + */ + delayEvaluation?: number; + /** + * Interval (number of runs) between policy evaluations. + */ + evaluationInterval?: number; +} + +/** + * An interface representing ModelContainer. + */ +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 }; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface ModelContainerResource extends Resource { + /** + * Additional attributes of the entity. + */ + properties: ModelContainer; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * 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 }; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface ModelVersionResource extends Resource { + /** + * Additional attributes of the entity. + */ + properties: ModelVersion; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * MPI distribution configuration. + */ +export interface Mpi { + /** + * Polymorphic Discriminator + */ + distributionType: "Mpi"; + /** + * Number of processes per MPI node. + */ + processCountPerInstance?: number; +} + +/** + * Empty/none datastore secret. + */ +export interface NoneDatastoreSecrets { + /** + * Polymorphic Discriminator + */ + secretsType: "None"; +} + +/** + * Empty/none datastore credentials. + */ +export interface NoneDatastoreCredentials { + /** + * Polymorphic Discriminator + */ + credentialsType: "None"; + /** + * Empty/none datastore secret. + */ + secrets?: NoneDatastoreSecrets; +} + +/** + * Optimization objective. + */ +export interface Objective { + /** + * Defines supported metric goals for hyperparameter tuning. Possible values include: 'Minimize', + * 'Maximize' + */ + goal: Goal; + /** + * Name of the metric to optimize. + */ + primaryMetric: 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; +} + +/** + * An interface representing OnlineDeploymentTrackedResource. + */ +export interface OnlineDeploymentTrackedResource extends 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; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Online endpoint configuration + */ +export interface OnlineEndpoint { + /** + * Inference endpoint authentication mode type. Possible values include: 'AMLToken', 'Key', + * 'AADToken' + */ + authMode: EndpointAuthMode; + /** + * Description of the inference endpoint. + */ + description?: string; + /** + * EndpointAuthKeys to set initially on an Endpoint. + * This property will always be returned as null. AuthKey values must be retrieved using the + * ListKeys API. + */ + keys?: EndpointAuthKeys; + /** + * Property dictionary. Properties can be added, but not removed or altered. + */ + properties?: { [propertyName: string]: string }; + /** + * State of endpoint provisioning. Possible values include: 'Creating', 'Deleting', 'Succeeded', + * 'Failed', 'Updating', 'Canceled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: EndpointProvisioningState; + /** + * Endpoint URI. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly scoringUri?: string; + /** + * Endpoint Swagger URI. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly swaggerUri?: string; + /** + * ARM resource ID of the compute if it exists. + * optional + */ + target?: string; + /** + * Traffic rules on how the traffic will be routed across deployments. + */ + traffic?: { [propertyName: string]: number }; +} + +/** + * An interface representing OnlineEndpointTrackedResource. + */ +export interface OnlineEndpointTrackedResource extends 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; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Reference to an asset via its path in a job output. + */ +export interface OutputPathAssetReference { + /** + * Polymorphic Discriminator + */ + referenceType: "OutputPath"; + /** + * ARM resource ID of the job. + */ + jobId?: string; + /** + * The path of the file/directory in the job output. + */ + path?: string; +} + +/** + * Contains the possible cases for PartialOnlineDeployment. + */ +export type PartialOnlineDeploymentUnion = PartialOnlineDeployment | PartialAksOnlineDeployment | PartialManagedOnlineDeployment; + +/** + * Mutable online deployment configuration + */ +export interface PartialOnlineDeployment { + /** + * Polymorphic Discriminator + */ + endpointComputeType: "PartialOnlineDeployment"; + /** + * 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; +} + +/** + * An interface representing PartialAksOnlineDeployment. + */ +export interface PartialAksOnlineDeployment { + /** + * Polymorphic Discriminator + */ + endpointComputeType: "K8S"; + /** + * 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; + /** + * Resource requirements for each container instance within an online deployment. + */ + containerResourceRequirements?: ContainerResourceRequirements; +} + +/** + * Mutable batch inference settings per deployment. + */ +export interface PartialBatchDeployment { + /** + * Description of the endpoint deployment. + */ + description?: 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 endpoint configuration + */ +export interface PartialBatchEndpoint { + /** + * Traffic rules on how the traffic will be routed across deployments. + */ + traffic?: { [propertyName: string]: number }; +} + +/** + * 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 }; +} + +/** + * An interface representing PartialManagedOnlineDeployment. + */ +export interface PartialManagedOnlineDeployment { + /** + * Polymorphic Discriminator + */ + endpointComputeType: "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; + /** + * Deployment container liveness/readiness probe configuration. + */ + readinessProbe?: ProbeSettings; +} + +/** + * 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 endpoint configuration + */ +export interface PartialOnlineEndpoint { + /** + * Traffic rules on how the traffic will be routed across deployments. + */ + traffic?: { [propertyName: string]: number }; +} + +/** + * 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 }; +} + +/** + * PyTorch distribution configuration. + */ +export interface PyTorch { + /** + * Polymorphic Discriminator + */ + distributionType: "PyTorch"; + /** + * Total process count for the distributed job. + */ + processCount?: number; +} + +/** + * An interface representing RegenerateEndpointKeysRequest. + */ +export interface RegenerateEndpointKeysRequest { + /** + * Specification for which type of key to generate. Primary or Secondary. Possible values + * include: 'Primary', 'Secondary' + */ + keyType: KeyType; + /** + * The value the key is set to. + */ + keyValue?: string; +} + +/** + * Datastore SAS secrets. + */ +export interface SasDatastoreSecrets { + /** + * Polymorphic Discriminator + */ + secretsType: "Sas"; + /** + * Storage container SAS token. + */ + sasToken?: string; +} + +/** + * SAS datastore credentials configuration. + */ +export interface SasDatastoreCredentials { + /** + * Polymorphic Discriminator + */ + credentialsType: "Sas"; + /** + * Storage container secrets. + */ + secrets?: SasDatastoreSecrets; +} + +/** + * Datastore Service Principal secrets. + */ +export interface ServicePrincipalDatastoreSecrets { + /** + * Polymorphic Discriminator + */ + secretsType: "ServicePrincipal"; + /** + * Service principal secret. + */ + clientSecret?: string; +} + +/** + * Service Principal datastore credentials configuration. + */ +export interface ServicePrincipalDatastoreCredentials { + /** + * Polymorphic Discriminator + */ + 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; +} + +/** + * Datastore SQL Admin secrets. + */ +export interface SqlAdminDatastoreSecrets { + /** + * Polymorphic Discriminator + */ + secretsType: "SqlAdmin"; + /** + * SQL database password. + */ + password?: string; +} + +/** + * SQL Admin datastore credentials configuration. + */ +export interface SqlAdminDatastoreCredentials { + /** + * Polymorphic Discriminator + */ + credentialsType: "SqlAdmin"; + /** + * SQL database secrets. + */ + secrets?: SqlAdminDatastoreSecrets; + /** + * SQL database user name. + */ + userId: 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; +} + +/** + * Sweep job definition. + */ +export interface SweepJob { + /** + * Polymorphic Discriminator + */ + jobType: "Sweep"; + /** + * The asset description text. + */ + description?: string; + /** + * 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.** + */ + readonly interactionEndpoints?: { [propertyName: string]: JobEndpoint }; + /** + * The asset property dictionary. + */ + properties?: { [propertyName: string]: string }; + /** + * Specifies the job provisioning state. Possible values include: 'Succeeded', 'Failed', + * 'Canceled', 'InProgress' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: JobProvisioningState; + /** + * Tag dictionary. Tags can be added, removed, and updated. + */ + tags?: { [propertyName: string]: string }; + /** + * Type of the hyperparameter sampling algorithms. Possible values include: 'Grid', 'Random', + * 'Bayesian' + */ + 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]: any }; + /** + * The status of a job. Possible values include: 'NotStarted', 'Starting', 'Provisioning', + * 'Preparing', 'Queued', 'Running', 'Finalizing', 'CancelRequested', 'Completed', 'Failed', + * 'Canceled', 'NotResponding', 'Paused', 'Unknown' + * **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; +} + +/** + * TensorFlow distribution configuration. + */ +export interface TensorFlow { + /** + * Polymorphic Discriminator + */ + distributionType: "TensorFlow"; + /** + * Number of parameter server tasks. + */ + parameterServerCount?: number; + /** + * Number of workers. Overwrites the node count in compute binding. + */ + workerCount?: number; +} + +/** + * Defines an early termination policy that cancels a given percentage of runs at each evaluation + * interval. + */ +export interface TruncationSelectionPolicy { + /** + * Polymorphic Discriminator + */ + policyType: "TruncationSelection"; + /** + * Number of intervals by which to delay the first evaluation. + */ + delayEvaluation?: number; + /** + * Interval (number of runs) between policy evaluations. + */ + evaluationInterval?: number; + /** + * The percentage of runs to cancel at each evaluation interval. + */ + truncationPercentage?: number; +} + +/** + * 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; +} + +/** + * Features/user capabilities associated with the sku + */ +export interface SKUCapability { + /** + * Capability/Feature ID + */ + name?: string; + /** + * Details about the feature/capability + */ + value?: string; +} + +/** + * Describes The zonal capabilities of a SKU. + */ +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[]; +} + +/** + * 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[]; +} + +/** + * 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; +} + +/** + * Describes Workspace Sku details and features + */ +export interface WorkspaceSku { + /** + * 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[]; +} + +/** + * Optional Parameters. + */ +export interface WorkspacesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface WorkspacesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface WorkspacesListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface WorkspacesListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface ComputeListOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface ComputeUpdateSchedulesOptionalParams extends msRest.RequestOptionsBase { + /** + * The object for updating schedules of specified ComputeInstance. + */ + parameters?: ComputeSchedules; +} + +/** + * Optional Parameters. + */ +export interface ComputeListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface WorkspaceConnectionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Target of the workspace connection. + */ + target?: string; + /** + * Category of the workspace connection. + */ + category?: string; +} + +/** + * Optional Parameters. + */ +export interface BatchEndpointsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Number of endpoints to be retrieved in a page of results. + */ + count?: number; + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface BatchEndpointsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Number of endpoints to be retrieved in a page of results. + */ + count?: number; + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface BatchDeploymentsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Top of list. + */ + top?: number; + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface BatchDeploymentsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Top of list. + */ + top?: number; + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface CodeContainersListOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface CodeContainersListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface CodeVersionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Maximum number of records to return. + */ + top?: number; + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface CodeVersionsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Maximum number of records to return. + */ + top?: number; + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface DataContainersListOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface DataContainersListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface DataVersionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Maximum number of records to return. + */ + top?: number; + /** + * Continuation token for pagination. + */ + skip?: string; + /** + * Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 + */ + tags?: string; +} + +/** + * Optional Parameters. + */ +export interface DataVersionsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Maximum number of records to return. + */ + top?: number; + /** + * Continuation token for pagination. + */ + skip?: string; + /** + * Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 + */ + tags?: string; +} + +/** + * Optional Parameters. + */ +export interface DatastoresListOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; + /** + * Maximum number of results to return. Default value: 30. + */ + 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. Default value: false. + */ + orderByAsc?: boolean; +} + +/** + * Optional Parameters. + */ +export interface DatastoresCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * Flag to skip validation. Default value: false. + */ + skipValidation?: boolean; +} + +/** + * Optional Parameters. + */ +export interface DatastoresListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; + /** + * Maximum number of results to return. Default value: 30. + */ + 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. Default value: false. + */ + orderByAsc?: boolean; +} + +/** + * Optional Parameters. + */ +export interface EnvironmentContainersListOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface EnvironmentContainersListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface EnvironmentSpecificationVersionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Maximum number of records to return. + */ + top?: number; + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface EnvironmentSpecificationVersionsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Maximum number of records to return. + */ + top?: number; + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface JobsListOptionalParams extends msRest.RequestOptionsBase { + /** + * 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; +} + +/** + * Optional Parameters. + */ +export interface JobsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * 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; +} + +/** + * Optional Parameters. + */ +export interface LabelingJobsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; + /** + * Number of labeling jobs to return. + */ + count?: number; +} + +/** + * Optional Parameters. + */ +export interface LabelingJobsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * Boolean value to indicate whether to include JobInstructions in response. + */ + includeJobInstructions?: boolean; + /** + * Boolean value to indicate Whether to include LabelCategories in response. + */ + includeLabelCategories?: boolean; +} + +/** + * Optional Parameters. + */ +export interface LabelingJobsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; + /** + * Number of labeling jobs to return. + */ + count?: number; +} + +/** + * Optional Parameters. + */ +export interface ModelContainersListOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; + /** + * Maximum number of results to return. + */ + count?: number; +} + +/** + * Optional Parameters. + */ +export interface ModelContainersListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; + /** + * Maximum number of results to return. + */ + count?: number; +} + +/** + * Optional Parameters. + */ +export interface ModelVersionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Maximum number of records to return. + */ + top?: number; + /** + * Model version. + */ + version?: string; + /** + * Model description. + */ + description?: string; + /** + * Number of initial results to skip. + */ + offset?: number; + /** + * Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 + */ + tags?: string; + /** + * Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2 + */ + properties?: string; +} + +/** + * Optional Parameters. + */ +export interface ModelVersionsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Maximum number of records to return. + */ + top?: number; + /** + * Model version. + */ + version?: string; + /** + * Model description. + */ + description?: string; + /** + * Number of initial results to skip. + */ + offset?: number; + /** + * Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 + */ + tags?: string; + /** + * Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2 + */ + properties?: string; +} + +/** + * Optional Parameters. + */ +export interface OnlineEndpointsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Name of the endpoint. + */ + name?: string; + /** + * Number of endpoints to be retrieved in a page of results. + */ + count?: number; + /** + * EndpointComputeType to be filtered by. Possible values include: 'Managed', 'K8S', + * 'AzureMLCompute' + */ + computeType?: EndpointComputeType; + /** + * Continuation token for pagination. + */ + skip?: string; + /** + * A set of tags with which to filter the returned models. It is a comma separated string of tags + * key or tags key=value. Example: tagKey1,tagKey2,tagKey3=value3 . + */ + tags?: string; + /** + * A set of properties with which to filter the returned models. It is a comma separated string + * of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 . + */ + properties?: string; + /** + * The option to order the response. Possible values include: 'CreatedAtDesc', 'CreatedAtAsc', + * 'UpdatedAtDesc', 'UpdatedAtAsc' + */ + orderBy?: OrderString; +} + +/** + * Optional Parameters. + */ +export interface OnlineEndpointsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Name of the endpoint. + */ + name?: string; + /** + * Number of endpoints to be retrieved in a page of results. + */ + count?: number; + /** + * EndpointComputeType to be filtered by. Possible values include: 'Managed', 'K8S', + * 'AzureMLCompute' + */ + computeType?: EndpointComputeType; + /** + * Continuation token for pagination. + */ + skip?: string; + /** + * A set of tags with which to filter the returned models. It is a comma separated string of tags + * key or tags key=value. Example: tagKey1,tagKey2,tagKey3=value3 . + */ + tags?: string; + /** + * A set of properties with which to filter the returned models. It is a comma separated string + * of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 . + */ + properties?: string; + /** + * The option to order the response. Possible values include: 'CreatedAtDesc', 'CreatedAtAsc', + * 'UpdatedAtDesc', 'UpdatedAtAsc' + */ + orderBy?: OrderString; +} + +/** + * Optional Parameters. + */ +export interface OnlineDeploymentsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Top of list. + */ + top?: number; + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface OnlineDeploymentsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Top of list. + */ + top?: number; + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * An interface representing AzureMachineLearningWorkspacesOptions. + */ +export interface AzureMachineLearningWorkspacesOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * Defines headers for CreateOrUpdate operation. + */ +export interface ComputeCreateOrUpdateHeaders { + /** + * URI to poll for asynchronous operation status. + */ + azureAsyncOperation: string; +} + +/** + * Defines headers for 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 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 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 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 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 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 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. + */ + locationHeader: string; + /** + * Duration the client should wait between requests, in seconds. + */ + retryAfter: number; +} + +/** + * Defines headers for 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 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 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. + */ + locationHeader: string; + /** + * Duration the client should wait between requests, in seconds. + */ + retryAfter: number; +} + +/** + * Defines headers for CreateOrUpdate operation. + */ +export interface OnlineDeploymentsCreateOrUpdateHeaders { + /** + * Timeout for the client to use when polling the asynchronous operation. + */ + xMsAsyncOperationTimeout: string; + /** + * URI to poll for asynchronous operation status. + */ + azureAsyncOperation: string; +} + +/** + * Defines headers for 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; +} + +/** + * @interface + * An array of operations supported by the resource provider. + * @extends Array + */ +export interface OperationListResult extends Array { +} + +/** + * @interface + * The result of a request to list machine learning workspaces. + * @extends Array + */ +export interface WorkspaceListResult extends Array { + /** + * The URI that can be used to request the next list of machine learning workspaces. + */ + nextLink?: string; +} + +/** + * @interface + * The List Usages operation response. + * @extends Array + */ +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; +} + +/** + * @interface + * The List WorkspaceQuotasByVMFamily operation response. + * @extends Array + */ +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; +} + +/** + * @interface + * Paginated list of Machine Learning compute objects wrapped in ARM resource envelope. + * @extends Array + */ +export interface PaginatedComputeResourcesList extends Array { + /** + * A continuation link (absolute URI) to the next page of results in the list. + */ + nextLink?: string; +} + +/** + * @interface + * Compute node information related to a AmlCompute. + * @extends Array + */ +export interface AmlComputeNodesInformation extends Array { + /** + * 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[]; +} + +/** + * @interface + * List of private endpoint connection associated with the specified workspace + * @extends Array + */ +export interface PrivateEndpointConnectionListResult extends Array { +} + +/** + * @interface + * Paginated list of Workspace connection objects. + * @extends Array + */ +export interface PaginatedWorkspaceConnectionsList extends Array { + /** + * A continuation link (absolute URI) to the next page of results in the list. + */ + nextLink?: string; +} + +/** + * @interface + * A paginated list of BatchEndpoint entities. + * @extends Array + */ +export interface BatchEndpointTrackedResourceArmPaginatedResult extends Array { + /** + * The link to the next page of BatchEndpoint objects. If null, there are no additional pages. + */ + nextLink?: string; +} + +/** + * @interface + * A paginated list of BatchDeployment entities. + * @extends Array + */ +export interface BatchDeploymentTrackedResourceArmPaginatedResult extends Array { + /** + * The link to the next page of BatchDeployment objects. If null, there are no additional pages. + */ + nextLink?: string; +} + +/** + * @interface + * A paginated list of CodeContainer entities. + * @extends Array + */ +export interface CodeContainerResourceArmPaginatedResult extends Array { + /** + * The link to the next page of CodeContainer objects. If null, there are no additional pages. + */ + nextLink?: string; +} + +/** + * @interface + * A paginated list of CodeVersion entities. + * @extends Array + */ +export interface CodeVersionResourceArmPaginatedResult extends Array { + /** + * The link to the next page of CodeVersion objects. If null, there are no additional pages. + */ + nextLink?: string; +} + +/** + * @interface + * A paginated list of DataContainer entities. + * @extends Array + */ +export interface DataContainerResourceArmPaginatedResult extends Array { + /** + * The link to the next page of DataContainer objects. If null, there are no additional pages. + */ + nextLink?: string; +} + +/** + * @interface + * A paginated list of DataVersion entities. + * @extends Array + */ +export interface DataVersionResourceArmPaginatedResult extends Array { + /** + * The link to the next page of DataVersion objects. If null, there are no additional pages. + */ + nextLink?: string; +} + +/** + * @interface + * A paginated list of DatastoreProperties entities. + * @extends Array + */ +export interface DatastorePropertiesResourceArmPaginatedResult extends Array { + /** + * The link to the next page of DatastoreProperties objects. If null, there are no additional + * pages. + */ + nextLink?: string; +} + +/** + * @interface + * A paginated list of EnvironmentContainer entities. + * @extends Array + */ +export interface EnvironmentContainerResourceArmPaginatedResult extends Array { + /** + * The link to the next page of EnvironmentContainer objects. If null, there are no additional + * pages. + */ + nextLink?: string; +} + +/** + * @interface + * A paginated list of EnvironmentSpecificationVersion entities. + * @extends Array + */ +export interface EnvironmentSpecificationVersionResourceArmPaginatedResult extends Array { + /** + * The link to the next page of EnvironmentSpecificationVersion objects. If null, there are no + * additional pages. + */ + nextLink?: string; +} + +/** + * @interface + * A paginated list of JobBase entities. + * @extends Array + */ +export interface JobBaseResourceArmPaginatedResult extends Array { + /** + * The link to the next page of JobBase objects. If null, there are no additional pages. + */ + nextLink?: string; +} + +/** + * @interface + * A paginated list of LabelingJob entities. + * @extends Array + */ +export interface LabelingJobResourceArmPaginatedResult extends Array { + /** + * The link to the next page of LabelingJob objects. If null, there are no additional pages. + */ + nextLink?: string; +} + +/** + * @interface + * A paginated list of ModelContainer entities. + * @extends Array + */ +export interface ModelContainerResourceArmPaginatedResult extends Array { + /** + * The link to the next page of ModelContainer objects. If null, there are no additional pages. + */ + nextLink?: string; +} + +/** + * @interface + * A paginated list of ModelVersion entities. + * @extends Array + */ +export interface ModelVersionResourceArmPaginatedResult extends Array { + /** + * The link to the next page of ModelVersion objects. If null, there are no additional pages. + */ + nextLink?: string; +} + +/** + * @interface + * A paginated list of OnlineEndpoint entities. + * @extends Array + */ +export interface OnlineEndpointTrackedResourceArmPaginatedResult extends Array { + /** + * The link to the next page of OnlineEndpoint objects. If null, there are no additional pages. + */ + nextLink?: string; +} + +/** + * @interface + * A paginated list of OnlineDeployment entities. + * @extends Array + */ +export interface OnlineDeploymentTrackedResourceArmPaginatedResult extends Array { + /** + * The link to the next page of OnlineDeployment objects. If null, there are no additional pages. + */ + nextLink?: string; +} + +/** + * @interface + * The List Aml user feature operation response. + * @extends Array + */ +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; +} + +/** + * @interface + * List of skus with features + * @extends Array + */ +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; +} + +/** + * Defines values for ProvisioningState. + * Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', 'Succeeded', 'Failed', + * 'Canceled' + * @readonly + * @enum {string} + */ +export type ProvisioningState = 'Unknown' | 'Updating' | 'Creating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled'; + +/** + * Defines values for EncryptionStatus. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type EncryptionStatus = 'Enabled' | 'Disabled'; + +/** + * Defines values for PrivateEndpointServiceConnectionStatus. + * Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected', 'Timeout' + * @readonly + * @enum {string} + */ +export type PrivateEndpointServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected' | 'Timeout'; + +/** + * Defines values for PrivateEndpointConnectionProvisioningState. + * Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Failed' + * @readonly + * @enum {string} + */ +export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed'; + +/** + * Defines values for ResourceIdentityType. + * Possible values include: 'SystemAssigned', 'SystemAssigned,UserAssigned', 'UserAssigned', 'None' + * @readonly + * @enum {string} + */ +export type ResourceIdentityType = 'SystemAssigned' | 'SystemAssigned,UserAssigned' | 'UserAssigned' | 'None'; + +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + +/** + * Defines values for UsageUnit. + * Possible values include: 'Count' + * @readonly + * @enum {string} + */ +export type UsageUnit = 'Count'; + +/** + * Defines values for VMPriceOSType. + * Possible values include: 'Linux', 'Windows' + * @readonly + * @enum {string} + */ +export type VMPriceOSType = 'Linux' | 'Windows'; + +/** + * Defines values for VMTier. + * Possible values include: 'Standard', 'LowPriority', 'Spot' + * @readonly + * @enum {string} + */ +export type VMTier = 'Standard' | 'LowPriority' | 'Spot'; + +/** + * Defines values for QuotaUnit. + * Possible values include: 'Count' + * @readonly + * @enum {string} + */ +export type QuotaUnit = 'Count'; + +/** + * 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'; + +/** + * Defines values for ClusterPurpose. + * Possible values include: 'FastProd', 'DenseProd', 'DevTest' + * @readonly + * @enum {string} + */ +export type ClusterPurpose = 'FastProd' | 'DenseProd' | 'DevTest'; + +/** + * Defines values for LoadBalancerType. + * Possible values include: 'PublicIp', 'InternalLoadBalancer' + * @readonly + * @enum {string} + */ +export type LoadBalancerType = 'PublicIp' | 'InternalLoadBalancer'; + +/** + * Defines values for OsType. + * Possible values include: 'Linux', 'Windows' + * @readonly + * @enum {string} + */ +export type OsType = 'Linux' | 'Windows'; + +/** + * Defines values for VmPriority. + * Possible values include: 'Dedicated', 'LowPriority' + * @readonly + * @enum {string} + */ +export type VmPriority = 'Dedicated' | 'LowPriority'; + +/** + * Defines values for RemoteLoginPortPublicAccess. + * Possible values include: 'Enabled', 'Disabled', 'NotSpecified' + * @readonly + * @enum {string} + */ +export type RemoteLoginPortPublicAccess = 'Enabled' | 'Disabled' | 'NotSpecified'; + +/** + * Defines values for AllocationState. + * Possible values include: 'Steady', 'Resizing' + * @readonly + * @enum {string} + */ +export type AllocationState = 'Steady' | 'Resizing'; + +/** + * Defines values for ApplicationSharingPolicy. + * Possible values include: 'Personal', 'Shared' + * @readonly + * @enum {string} + */ +export type ApplicationSharingPolicy = 'Personal' | 'Shared'; + +/** + * Defines values for SshPublicAccess. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type SshPublicAccess = 'Enabled' | 'Disabled'; + +/** + * 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'; + +/** + * Defines values for ComputeInstanceAuthorizationType. + * Possible values include: 'personal' + * @readonly + * @enum {string} + */ +export type ComputeInstanceAuthorizationType = 'personal'; + +/** + * 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'; + +/** + * 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'; + +/** + * Defines values for ProvisioningStatus. + * Possible values include: 'Completed', 'Provisioning', 'Failed' + * @readonly + * @enum {string} + */ +export type ProvisioningStatus = 'Completed' | 'Provisioning' | 'Failed'; + +/** + * Defines values for ScheduleStatus. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type ScheduleStatus = 'Enabled' | 'Disabled'; + +/** + * Defines values for TriggerType. + * Possible values include: 'Recurrence', 'Cron' + * @readonly + * @enum {string} + */ +export type TriggerType = 'Recurrence' | 'Cron'; + +/** + * Defines values for ComputePowerAction. + * Possible values include: 'Start', 'Stop' + * @readonly + * @enum {string} + */ +export type ComputePowerAction = 'Start' | 'Stop'; + +/** + * Defines values for RecurrenceFrequency. + * Possible values include: 'NotSpecified', 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month', + * 'Year' + * @readonly + * @enum {string} + */ +export type RecurrenceFrequency = 'NotSpecified' | 'Second' | 'Minute' | 'Hour' | 'Day' | 'Week' | 'Month' | 'Year'; + +/** + * Defines values for DaysOfWeek. + * Possible values include: 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', + * 'Saturday' + * @readonly + * @enum {string} + */ +export type DaysOfWeek = 'Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday'; + +/** + * Defines values for ComputeType. + * Possible values include: 'AKS', 'AmlCompute', 'ComputeInstance', 'DataFactory', + * 'VirtualMachine', 'HDInsight', 'Databricks', 'DataLakeAnalytics', 'SynapseSpark' + * @readonly + * @enum {string} + */ +export type ComputeType = 'AKS' | 'AmlCompute' | 'ComputeInstance' | 'DataFactory' | 'VirtualMachine' | 'HDInsight' | 'Databricks' | 'DataLakeAnalytics' | 'SynapseSpark'; + +/** + * 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'; + +/** + * Defines values for ValueFormat. + * Possible values include: 'JSON' + * @readonly + * @enum {string} + */ +export type ValueFormat = 'JSON'; + +/** + * Defines values for ScheduleType. + * Possible values include: 'ComputeStartStop' + * @readonly + * @enum {string} + */ +export type ScheduleType = 'ComputeStartStop'; + +/** + * Defines values for BatchLoggingLevel. + * Possible values include: 'Info', 'Warning', 'Debug' + * @readonly + * @enum {string} + */ +export type BatchLoggingLevel = 'Info' | 'Warning' | 'Debug'; + +/** + * Defines values for BatchOutputAction. + * Possible values include: 'SummaryOnly', 'AppendRow' + * @readonly + * @enum {string} + */ +export type BatchOutputAction = 'SummaryOnly' | 'AppendRow'; + +/** + * Defines values for ResourceIdentityAssignment. + * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' * @readonly * @enum {string} */ -export type AllocationState = 'Steady' | 'Resizing'; +export type ResourceIdentityAssignment = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned,UserAssigned' | 'None'; + +/** + * Defines values for EndpointAuthMode. + * Possible values include: 'AMLToken', 'Key', 'AADToken' + * @readonly + * @enum {string} + */ +export type EndpointAuthMode = 'AMLToken' | 'Key' | 'AADToken'; + +/** + * Defines values for DataBindingMode. + * Possible values include: 'Mount', 'Download', 'Upload' + * @readonly + * @enum {string} + */ +export type DataBindingMode = 'Mount' | 'Download' | 'Upload'; + +/** + * Defines values for JobStatus. + * Possible values include: 'NotStarted', 'Starting', 'Provisioning', 'Preparing', 'Queued', + * 'Running', 'Finalizing', 'CancelRequested', 'Completed', 'Failed', 'Canceled', 'NotResponding', + * 'Paused', 'Unknown' + * @readonly + * @enum {string} + */ +export type JobStatus = 'NotStarted' | 'Starting' | 'Provisioning' | 'Preparing' | 'Queued' | 'Running' | 'Finalizing' | 'CancelRequested' | 'Completed' | 'Failed' | 'Canceled' | 'NotResponding' | 'Paused' | 'Unknown'; + +/** + * Defines values for ContainerType. + * Possible values include: 'StorageInitializer', 'InferenceServer' + * @readonly + * @enum {string} + */ +export type ContainerType = 'StorageInitializer' | 'InferenceServer'; + +/** + * Defines values for ContentsType. + * Possible values include: 'AzureBlob', 'AzureDataLakeGen1', 'AzureDataLakeGen2', 'AzureFile', + * 'AzureMySql', 'AzurePostgreSql', 'AzureSqlDatabase', 'GlusterFs' + * @readonly + * @enum {string} + */ +export type ContentsType = 'AzureBlob' | 'AzureDataLakeGen1' | 'AzureDataLakeGen2' | 'AzureFile' | 'AzureMySql' | 'AzurePostgreSql' | 'AzureSqlDatabase' | 'GlusterFs'; + +/** + * Defines values for CredentialsType. + * Possible values include: 'AccountKey', 'Certificate', 'None', 'Sas', 'ServicePrincipal', + * 'SqlAdmin' + * @readonly + * @enum {string} + */ +export type CredentialsType = 'AccountKey' | 'Certificate' | 'None' | 'Sas' | 'ServicePrincipal' | 'SqlAdmin'; + +/** + * Defines values for DatasetType. + * Possible values include: 'Simple', 'Dataflow' + * @readonly + * @enum {string} + */ +export type DatasetType = 'Simple' | 'Dataflow'; + +/** + * Defines values for OriginType. + * Possible values include: 'Synapse' + * @readonly + * @enum {string} + */ +export type OriginType = 'Synapse'; + +/** + * Defines values for DeploymentProvisioningState. + * Possible values include: 'Creating', 'Deleting', 'Scaling', 'Updating', 'Succeeded', 'Failed', + * 'Canceled' + * @readonly + * @enum {string} + */ +export type DeploymentProvisioningState = 'Creating' | 'Deleting' | 'Scaling' | 'Updating' | 'Succeeded' | 'Failed' | 'Canceled'; + +/** + * Defines values for DistributionType. + * Possible values include: 'PyTorch', 'TensorFlow', 'Mpi' + * @readonly + * @enum {string} + */ +export type DistributionType = 'PyTorch' | 'TensorFlow' | 'Mpi'; + +/** + * Defines values for OperatingSystemType. + * Possible values include: 'Linux', 'Windows' + * @readonly + * @enum {string} + */ +export type OperatingSystemType = 'Linux' | 'Windows'; + +/** + * Defines values for DockerSpecificationType. + * Possible values include: 'Build', 'Image' + * @readonly + * @enum {string} + */ +export type DockerSpecificationType = 'Build' | 'Image'; + +/** + * Defines values for EarlyTerminationPolicyType. + * Possible values include: 'Bandit', 'MedianStopping', 'TruncationSelection' + * @readonly + * @enum {string} + */ +export type EarlyTerminationPolicyType = 'Bandit' | 'MedianStopping' | 'TruncationSelection'; + +/** + * Defines values for EndpointComputeType. + * Possible values include: 'Managed', 'K8S', 'AzureMLCompute' + * @readonly + * @enum {string} + */ +export type EndpointComputeType = 'Managed' | 'K8S' | 'AzureMLCompute'; + +/** + * Defines values for EndpointProvisioningState. + * Possible values include: 'Creating', 'Deleting', 'Succeeded', 'Failed', 'Updating', 'Canceled' + * @readonly + * @enum {string} + */ +export type EndpointProvisioningState = 'Creating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Updating' | 'Canceled'; + +/** + * Defines values for EnvironmentSpecificationType. + * Possible values include: 'Curated', 'UserCreated' + * @readonly + * @enum {string} + */ +export type EnvironmentSpecificationType = 'Curated' | 'UserCreated'; + +/** + * Defines values for ExportFormatType. + * Possible values include: 'Dataset', 'Coco', 'CSV' + * @readonly + * @enum {string} + */ +export type ExportFormatType = 'Dataset' | 'Coco' | 'CSV'; + +/** + * Defines values for Goal. + * Possible values include: 'Minimize', 'Maximize' + * @readonly + * @enum {string} + */ +export type Goal = 'Minimize' | 'Maximize'; + +/** + * Defines values for IdentityConfigurationType. + * Possible values include: 'Managed', 'AMLToken' + * @readonly + * @enum {string} + */ +export type IdentityConfigurationType = 'Managed' | 'AMLToken'; + +/** + * Defines values for ImageAnnotationType. + * Possible values include: 'Classification', 'BoundingBox', 'InstanceSegmentation' + * @readonly + * @enum {string} + */ +export type ImageAnnotationType = 'Classification' | 'BoundingBox' | 'InstanceSegmentation'; + +/** + * Defines values for JobProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress' + * @readonly + * @enum {string} + */ +export type JobProvisioningState = 'Succeeded' | 'Failed' | 'Canceled' | 'InProgress'; + +/** + * Defines values for JobType. + * Possible values include: 'Command', 'Sweep', 'Labeling' + * @readonly + * @enum {string} + */ +export type JobType = 'Command' | 'Sweep' | 'Labeling'; + +/** + * Defines values for KeyType. + * Possible values include: 'Primary', 'Secondary' + * @readonly + * @enum {string} + */ +export type KeyType = 'Primary' | 'Secondary'; + +/** + * Defines values for StatusMessageLevel. + * Possible values include: 'Error', 'Information', 'Warning' + * @readonly + * @enum {string} + */ +export type StatusMessageLevel = 'Error' | 'Information' | 'Warning'; + +/** + * Defines values for TextAnnotationType. + * Possible values include: 'Classification' + * @readonly + * @enum {string} + */ +export type TextAnnotationType = 'Classification'; + +/** + * Defines values for MediaType. + * Possible values include: 'Image', 'Text' + * @readonly + * @enum {string} + */ +export type MediaType = 'Image' | 'Text'; + +/** + * Defines values for OrderString. + * Possible values include: 'CreatedAtDesc', 'CreatedAtAsc', 'UpdatedAtDesc', 'UpdatedAtAsc' + * @readonly + * @enum {string} + */ +export type OrderString = 'CreatedAtDesc' | 'CreatedAtAsc' | 'UpdatedAtDesc' | 'UpdatedAtAsc'; + +/** + * Defines values for ReferenceType. + * Possible values include: 'Id', 'DataPath', 'OutputPath' + * @readonly + * @enum {string} + */ +export type ReferenceType = 'Id' | 'DataPath' | 'OutputPath'; + +/** + * Defines values for SamplingAlgorithm. + * Possible values include: 'Grid', 'Random', 'Bayesian' + * @readonly + * @enum {string} + */ +export type SamplingAlgorithm = 'Grid' | 'Random' | 'Bayesian'; + +/** + * Defines values for ScaleType. + * Possible values include: 'Auto', 'Manual' + * @readonly + * @enum {string} + */ +export type ScaleType = 'Auto' | 'Manual'; + +/** + * Defines values for SecretsType. + * Possible values include: 'AccountKey', 'Certificate', 'None', 'Sas', 'ServicePrincipal', + * 'SqlAdmin' + * @readonly + * @enum {string} + */ +export type SecretsType = 'AccountKey' | 'Certificate' | 'None' | 'Sas' | 'ServicePrincipal' | 'SqlAdmin'; + +/** + * Defines values for ReasonCode. + * Possible values include: 'NotSpecified', 'NotAvailableForRegion', 'NotAvailableForSubscription' + * @readonly + * @enum {string} + */ +export type ReasonCode = 'NotSpecified' | 'NotAvailableForRegion' | 'NotAvailableForSubscription'; + +/** + * Defines values for UnderlyingResourceAction. + * Possible values include: 'Delete', 'Detach' + * @readonly + * @enum {string} + */ +export type UnderlyingResourceAction = 'Delete' | 'Detach'; + +/** + * Defines values for Status1. + * Possible values include: 'Disabled', 'Enabled', 'Auto' + * @readonly + * @enum {string} + */ +export type Status1 = 'Disabled' | 'Enabled' | 'Auto'; + +/** + * 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; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; +}; + +/** + * 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; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Workspace; + }; +}; + +/** + * 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; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Workspace; + }; +}; + +/** + * 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; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Workspace; + }; +}; + +/** + * 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; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkspaceListResult; + }; +}; + +/** + * 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; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListWorkspaceKeysResult; + }; +}; + +/** + * 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; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkspaceListResult; + }; +}; + +/** + * Contains response data for the listNotebookAccessToken operation. + */ +export type WorkspacesListNotebookAccessTokenResponse = NotebookAccessTokenResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotebookAccessTokenResult; + }; +}; + +/** + * Contains response data for the prepareNotebook operation. + */ +export type WorkspacesPrepareNotebookResponse = NotebookResourceInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotebookResourceInfo; + }; +}; + +/** + * Contains response data for the listStorageAccountKeys operation. + */ +export type WorkspacesListStorageAccountKeysResponse = ListStorageAccountKeysResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListStorageAccountKeysResult; + }; +}; + +/** + * Contains response data for the listNotebookKeys operation. + */ +export type WorkspacesListNotebookKeysResponse = ListNotebookKeysResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListNotebookKeysResult; + }; +}; + +/** + * 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; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Workspace; + }; +}; + +/** + * Contains response data for the beginPrepareNotebook operation. + */ +export type WorkspacesBeginPrepareNotebookResponse = NotebookResourceInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotebookResourceInfo; + }; +}; + +/** + * 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; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkspaceListResult; + }; +}; + +/** + * 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; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkspaceListResult; + }; +}; + +/** + * 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; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListUsagesResult; + }; +}; + +/** + * 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; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListUsagesResult; + }; +}; + +/** + * 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; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualMachineSizeListResult; + }; +}; + +/** + * 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; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: UpdateWorkspaceQuotasResult; + }; +}; + +/** + * 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; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListWorkspaceQuotas; + }; +}; + +/** + * 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; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListWorkspaceQuotas; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ComputeListResponse = PaginatedComputeResourcesList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PaginatedComputeResourcesList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ComputeGetResponse = ComputeResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComputeResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ComputeCreateOrUpdateResponse = ComputeResource & ComputeCreateOrUpdateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ComputeCreateOrUpdateHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComputeResource; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type ComputeUpdateResponse = ComputeResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComputeResource; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type ComputeDeleteResponse = ComputeDeleteHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ComputeDeleteHeaders; + }; +}; + +/** + * Contains response data for the listNodes operation. + */ +export type ComputeListNodesResponse = AmlComputeNodesInformation & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AmlComputeNodesInformation; + }; +}; + +/** + * Contains response data for the listKeys operation. + */ +export type ComputeListKeysResponse = ComputeSecretsUnion & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComputeSecretsUnion; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type ComputeBeginUpdateResponse = ComputeResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComputeResource; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ComputeListNextResponse = PaginatedComputeResourcesList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PaginatedComputeResourcesList; + }; +}; + +/** + * Contains response data for the listNodesNext operation. + */ +export type ComputeListNodesNextResponse = AmlComputeNodesInformation & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AmlComputeNodesInformation; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnectionListResult; + }; +}; + +/** + * 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; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnection; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateLinkResourceListResult; + }; +}; + +/** + * 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; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PaginatedWorkspaceConnectionsList; + }; +}; + +/** + * 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; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkspaceConnection; + }; +}; + +/** + * 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; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkspaceConnection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type BatchEndpointsListResponse = BatchEndpointTrackedResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BatchEndpointTrackedResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type BatchEndpointsGetResponse = BatchEndpointTrackedResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BatchEndpointTrackedResource; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type BatchEndpointsUpdateResponse = BatchEndpointTrackedResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BatchEndpointTrackedResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type BatchEndpointsCreateOrUpdateResponse = BatchEndpointTrackedResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BatchEndpointTrackedResource; + }; +}; + +/** + * Contains response data for the listKeys operation. + */ +export type BatchEndpointsListKeysResponse = EndpointAuthKeys & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EndpointAuthKeys; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type BatchEndpointsListNextResponse = BatchEndpointTrackedResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BatchEndpointTrackedResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type BatchDeploymentsListResponse = BatchDeploymentTrackedResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BatchDeploymentTrackedResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type BatchDeploymentsGetResponse = BatchDeploymentTrackedResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BatchDeploymentTrackedResource; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type BatchDeploymentsUpdateResponse = BatchDeploymentTrackedResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BatchDeploymentTrackedResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type BatchDeploymentsCreateOrUpdateResponse = BatchDeploymentTrackedResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BatchDeploymentTrackedResource; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type BatchDeploymentsListNextResponse = BatchDeploymentTrackedResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BatchDeploymentTrackedResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type CodeContainersListResponse = CodeContainerResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CodeContainerResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type CodeContainersGetResponse = CodeContainerResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CodeContainerResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type CodeContainersCreateOrUpdateResponse = CodeContainerResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CodeContainerResource; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type CodeContainersListNextResponse = CodeContainerResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CodeContainerResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type CodeVersionsListResponse = CodeVersionResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CodeVersionResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type CodeVersionsGetResponse = CodeVersionResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CodeVersionResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type CodeVersionsCreateOrUpdateResponse = CodeVersionResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CodeVersionResource; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type CodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CodeVersionResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type DataContainersListResponse = DataContainerResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataContainerResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DataContainersGetResponse = DataContainerResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataContainerResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DataContainersCreateOrUpdateResponse = DataContainerResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataContainerResource; + }; +}; /** - * Defines values for ApplicationSharingPolicy. - * Possible values include: 'Personal', 'Shared' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type ApplicationSharingPolicy = 'Personal' | 'Shared'; +export type DataContainersListNextResponse = DataContainerResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataContainerResourceArmPaginatedResult; + }; +}; /** - * Defines values for SshPublicAccess. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type SshPublicAccess = 'Enabled' | 'Disabled'; +export type DataVersionsListResponse = DataVersionResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataVersionResourceArmPaginatedResult; + }; +}; /** - * 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} + * Contains response data for the get operation. */ -export type ComputeInstanceState = 'Creating' | 'CreateFailed' | 'Deleting' | 'Running' | 'Restarting' | 'JobRunning' | 'SettingUp' | 'SetupFailed' | 'Starting' | 'Stopped' | 'Stopping' | 'UserSettingUp' | 'UserSetupFailed' | 'Unknown' | 'Unusable'; +export type DataVersionsGetResponse = DataVersionResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataVersionResource; + }; +}; /** - * Defines values for OperationName. - * Possible values include: 'Create', 'Start', 'Stop', 'Restart', 'Reimage', 'Delete' - * @readonly - * @enum {string} + * Contains response data for the createOrUpdate operation. */ -export type OperationName = 'Create' | 'Start' | 'Stop' | 'Restart' | 'Reimage' | 'Delete'; +export type DataVersionsCreateOrUpdateResponse = DataVersionResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataVersionResource; + }; +}; /** - * Defines values for OperationStatus. - * Possible values include: 'InProgress', 'Succeeded', 'CreateFailed', 'StartFailed', 'StopFailed', - * 'RestartFailed', 'ReimageFailed', 'DeleteFailed' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type OperationStatus = 'InProgress' | 'Succeeded' | 'CreateFailed' | 'StartFailed' | 'StopFailed' | 'RestartFailed' | 'ReimageFailed' | 'DeleteFailed'; +export type DataVersionsListNextResponse = DataVersionResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataVersionResourceArmPaginatedResult; + }; +}; /** - * Defines values for NodeState. - * Possible values include: 'idle', 'running', 'preparing', 'unusable', 'leaving', 'preempted' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type NodeState = 'idle' | 'running' | 'preparing' | 'unusable' | 'leaving' | 'preempted'; +export type DatastoresListResponse = DatastorePropertiesResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatastorePropertiesResourceArmPaginatedResult; + }; +}; /** - * Defines values for ComputeType. - * Possible values include: 'AKS', 'AmlCompute', 'ComputeInstance', 'DataFactory', - * 'VirtualMachine', 'HDInsight', 'Databricks', 'DataLakeAnalytics' - * @readonly - * @enum {string} + * Contains response data for the get operation. + */ +export type DatastoresGetResponse = DatastorePropertiesResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatastorePropertiesResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. */ -export type ComputeType = 'AKS' | 'AmlCompute' | 'ComputeInstance' | 'DataFactory' | 'VirtualMachine' | 'HDInsight' | 'Databricks' | 'DataLakeAnalytics'; +export type DatastoresCreateOrUpdateResponse = DatastorePropertiesResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatastorePropertiesResource; + }; +}; /** - * Defines values for ReasonCode. - * Possible values include: 'NotSpecified', 'NotAvailableForRegion', 'NotAvailableForSubscription' - * @readonly - * @enum {string} + * Contains response data for the listSecrets operation. */ -export type ReasonCode = 'NotSpecified' | 'NotAvailableForRegion' | 'NotAvailableForSubscription'; +export type DatastoresListSecretsResponse = DatastoreSecretsUnion & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatastoreSecretsUnion; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type DatastoresListNextResponse = DatastorePropertiesResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatastorePropertiesResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type EnvironmentContainersListResponse = EnvironmentContainerResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EnvironmentContainerResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type EnvironmentContainersGetResponse = EnvironmentContainerResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EnvironmentContainerResource; + }; +}; /** - * Defines values for UnderlyingResourceAction. - * Possible values include: 'Delete', 'Detach' - * @readonly - * @enum {string} + * Contains response data for the createOrUpdate operation. */ -export type UnderlyingResourceAction = 'Delete' | 'Detach'; +export type EnvironmentContainersCreateOrUpdateResponse = EnvironmentContainerResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EnvironmentContainerResource; + }; +}; /** - * Defines values for Status1. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type Status1 = 'Disabled' | 'Enabled'; +export type EnvironmentContainersListNextResponse = EnvironmentContainerResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EnvironmentContainerResourceArmPaginatedResult; + }; +}; /** * Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult & { +export type EnvironmentSpecificationVersionsListResponse = EnvironmentSpecificationVersionResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -2604,14 +9142,14 @@ export type OperationsListResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: EnvironmentSpecificationVersionResourceArmPaginatedResult; }; }; /** * Contains response data for the get operation. */ -export type WorkspacesGetResponse = Workspace & { +export type EnvironmentSpecificationVersionsGetResponse = EnvironmentSpecificationVersionResource & { /** * The underlying HTTP response. */ @@ -2624,14 +9162,14 @@ export type WorkspacesGetResponse = Workspace & { /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: EnvironmentSpecificationVersionResource; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type WorkspacesCreateOrUpdateResponse = Workspace & { +export type EnvironmentSpecificationVersionsCreateOrUpdateResponse = EnvironmentSpecificationVersionResource & { /** * The underlying HTTP response. */ @@ -2644,14 +9182,14 @@ export type WorkspacesCreateOrUpdateResponse = Workspace & { /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: EnvironmentSpecificationVersionResource; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listNext operation. */ -export type WorkspacesUpdateResponse = Workspace & { +export type EnvironmentSpecificationVersionsListNextResponse = EnvironmentSpecificationVersionResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -2664,14 +9202,14 @@ export type WorkspacesUpdateResponse = Workspace & { /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: EnvironmentSpecificationVersionResourceArmPaginatedResult; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the list operation. */ -export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { +export type JobsListResponse = JobBaseResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -2684,14 +9222,29 @@ export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: JobBaseResourceArmPaginatedResult; }; }; /** - * Contains response data for the listKeys operation. + * Contains response data for the deleteMethod operation. */ -export type WorkspacesListKeysResponse = ListWorkspaceKeysResult & { +export type JobsDeleteResponse = JobsDeleteHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: JobsDeleteHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type JobsGetResponse = JobBaseResource & { /** * The underlying HTTP response. */ @@ -2704,14 +9257,14 @@ export type WorkspacesListKeysResponse = ListWorkspaceKeysResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ListWorkspaceKeysResult; + parsedBody: JobBaseResource; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the createOrUpdate operation. */ -export type WorkspacesListBySubscriptionResponse = WorkspaceListResult & { +export type JobsCreateOrUpdateResponse = JobBaseResource & { /** * The underlying HTTP response. */ @@ -2724,14 +9277,14 @@ export type WorkspacesListBySubscriptionResponse = WorkspaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: JobBaseResource; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listNext operation. */ -export type WorkspacesBeginCreateOrUpdateResponse = Workspace & { +export type JobsListNextResponse = JobBaseResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -2744,14 +9297,14 @@ export type WorkspacesBeginCreateOrUpdateResponse = Workspace & { /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: JobBaseResourceArmPaginatedResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the list operation. */ -export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult & { +export type LabelingJobsListResponse = LabelingJobResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -2764,14 +9317,14 @@ export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: LabelingJobResourceArmPaginatedResult; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the get operation. */ -export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult & { +export type LabelingJobsGetResponse = LabelingJobResource & { /** * The underlying HTTP response. */ @@ -2784,18 +9337,23 @@ export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: LabelingJobResource; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult & { +export type LabelingJobsCreateOrUpdateResponse = LabelingJobResource & LabelingJobsCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: LabelingJobsCreateOrUpdateHeaders; + /** * The response body as text (string format) */ @@ -2804,14 +9362,54 @@ export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ListAmlUserFeatureResult; + parsedBody: LabelingJobResource; + }; +}; + +/** + * Contains response data for the exportLabels operation. + */ +export type LabelingJobsExportLabelsResponse = ExportSummaryUnion & LabelingJobsExportLabelsHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: LabelingJobsExportLabelsHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ExportSummaryUnion; + }; +}; + +/** + * Contains response data for the resume operation. + */ +export type LabelingJobsResumeResponse = LabelingJobsResumeHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: LabelingJobsResumeHeaders; }; }; /** * Contains response data for the listNext operation. */ -export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult & { +export type LabelingJobsListNextResponse = LabelingJobResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -2824,14 +9422,14 @@ export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ListAmlUserFeatureResult; + parsedBody: LabelingJobResourceArmPaginatedResult; }; }; /** - * Contains response data for the prepare operation. + * Contains response data for the list operation. */ -export type NotebooksPrepareResponse = NotebookResourceInfo & { +export type ModelContainersListResponse = ModelContainerResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -2844,14 +9442,14 @@ export type NotebooksPrepareResponse = NotebookResourceInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: NotebookResourceInfo; + parsedBody: ModelContainerResourceArmPaginatedResult; }; }; /** - * Contains response data for the beginPrepare operation. + * Contains response data for the get operation. */ -export type NotebooksBeginPrepareResponse = NotebookResourceInfo & { +export type ModelContainersGetResponse = ModelContainerResource & { /** * The underlying HTTP response. */ @@ -2864,14 +9462,14 @@ export type NotebooksBeginPrepareResponse = NotebookResourceInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: NotebookResourceInfo; + parsedBody: ModelContainerResource; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type UsagesListResponse = ListUsagesResult & { +export type ModelContainersCreateOrUpdateResponse = ModelContainerResource & { /** * The underlying HTTP response. */ @@ -2884,14 +9482,14 @@ export type UsagesListResponse = ListUsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ListUsagesResult; + parsedBody: ModelContainerResource; }; }; /** * Contains response data for the listNext operation. */ -export type UsagesListNextResponse = ListUsagesResult & { +export type ModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -2904,14 +9502,14 @@ export type UsagesListNextResponse = ListUsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ListUsagesResult; + parsedBody: ModelContainerResourceArmPaginatedResult; }; }; /** * Contains response data for the list operation. */ -export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult & { +export type ModelVersionsListResponse = ModelVersionResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -2924,14 +9522,14 @@ export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineSizeListResult; + parsedBody: ModelVersionResourceArmPaginatedResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult & { +export type ModelVersionsGetResponse = ModelVersionResource & { /** * The underlying HTTP response. */ @@ -2944,14 +9542,14 @@ export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult & { /** * The response body as parsed JSON or XML */ - parsedBody: UpdateWorkspaceQuotasResult; + parsedBody: ModelVersionResource; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type QuotasListResponse = ListWorkspaceQuotas & { +export type ModelVersionsCreateOrUpdateResponse = ModelVersionResource & { /** * The underlying HTTP response. */ @@ -2964,14 +9562,14 @@ export type QuotasListResponse = ListWorkspaceQuotas & { /** * The response body as parsed JSON or XML */ - parsedBody: ListWorkspaceQuotas; + parsedBody: ModelVersionResource; }; }; /** * Contains response data for the listNext operation. */ -export type QuotasListNextResponse = ListWorkspaceQuotas & { +export type ModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -2984,14 +9582,14 @@ export type QuotasListNextResponse = ListWorkspaceQuotas & { /** * The response body as parsed JSON or XML */ - parsedBody: ListWorkspaceQuotas; + parsedBody: ModelVersionResourceArmPaginatedResult; }; }; /** * Contains response data for the list operation. */ -export type WorkspaceConnectionsListResponse = PaginatedWorkspaceConnectionsList & { +export type OnlineEndpointsListResponse = OnlineEndpointTrackedResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -3004,14 +9602,29 @@ export type WorkspaceConnectionsListResponse = PaginatedWorkspaceConnectionsList /** * The response body as parsed JSON or XML */ - parsedBody: PaginatedWorkspaceConnectionsList; + parsedBody: OnlineEndpointTrackedResourceArmPaginatedResult; }; }; /** - * Contains response data for the create operation. + * Contains response data for the deleteMethod operation. */ -export type WorkspaceConnectionsCreateResponse = WorkspaceConnection & { +export type OnlineEndpointsDeleteResponse = OnlineEndpointsDeleteHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: OnlineEndpointsDeleteHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type OnlineEndpointsGetResponse = OnlineEndpointTrackedResource & { /** * The underlying HTTP response. */ @@ -3024,18 +9637,23 @@ export type WorkspaceConnectionsCreateResponse = WorkspaceConnection & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceConnection; + parsedBody: OnlineEndpointTrackedResource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type WorkspaceConnectionsGetResponse = WorkspaceConnection & { +export type OnlineEndpointsUpdateResponse = OnlineEndpointTrackedResource & OnlineEndpointsUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: OnlineEndpointsUpdateHeaders; + /** * The response body as text (string format) */ @@ -3044,18 +9662,23 @@ export type WorkspaceConnectionsGetResponse = WorkspaceConnection & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceConnection; + parsedBody: OnlineEndpointTrackedResource; }; }; /** - * Contains response data for the listByWorkspace operation. + * Contains response data for the createOrUpdate operation. */ -export type MachineLearningComputeListByWorkspaceResponse = PaginatedComputeResourcesList & { +export type OnlineEndpointsCreateOrUpdateResponse = OnlineEndpointTrackedResource & OnlineEndpointsCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: OnlineEndpointsCreateOrUpdateHeaders; + /** * The response body as text (string format) */ @@ -3064,14 +9687,14 @@ export type MachineLearningComputeListByWorkspaceResponse = PaginatedComputeReso /** * The response body as parsed JSON or XML */ - parsedBody: PaginatedComputeResourcesList; + parsedBody: OnlineEndpointTrackedResource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listKeys operation. */ -export type MachineLearningComputeGetResponse = ComputeResource & { +export type OnlineEndpointsListKeysResponse = EndpointAuthKeys & { /** * The underlying HTTP response. */ @@ -3084,14 +9707,14 @@ export type MachineLearningComputeGetResponse = ComputeResource & { /** * The response body as parsed JSON or XML */ - parsedBody: ComputeResource; + parsedBody: EndpointAuthKeys; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the regenerateKeys operation. */ -export type MachineLearningComputeCreateOrUpdateResponse = ComputeResource & MachineLearningComputeCreateOrUpdateHeaders & { +export type OnlineEndpointsRegenerateKeysResponse = OnlineEndpointsRegenerateKeysHeaders & { /** * The underlying HTTP response. */ @@ -3099,8 +9722,38 @@ export type MachineLearningComputeCreateOrUpdateResponse = ComputeResource & Mac /** * The parsed HTTP response headers. */ - parsedHeaders: MachineLearningComputeCreateOrUpdateHeaders; + parsedHeaders: OnlineEndpointsRegenerateKeysHeaders; + }; +}; + +/** + * Contains response data for the getToken operation. + */ +export type OnlineEndpointsGetTokenResponse = EndpointAuthToken & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EndpointAuthToken; + }; +}; +/** + * Contains response data for the listNext operation. + */ +export type OnlineEndpointsListNextResponse = OnlineEndpointTrackedResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { /** * The response body as text (string format) */ @@ -3109,14 +9762,14 @@ export type MachineLearningComputeCreateOrUpdateResponse = ComputeResource & Mac /** * The response body as parsed JSON or XML */ - parsedBody: ComputeResource; + parsedBody: OnlineEndpointTrackedResourceArmPaginatedResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type MachineLearningComputeUpdateResponse = ComputeResource & { +export type OnlineDeploymentsListResponse = OnlineDeploymentTrackedResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -3129,14 +9782,14 @@ export type MachineLearningComputeUpdateResponse = ComputeResource & { /** * The response body as parsed JSON or XML */ - parsedBody: ComputeResource; + parsedBody: OnlineDeploymentTrackedResourceArmPaginatedResult; }; }; /** * Contains response data for the deleteMethod operation. */ -export type MachineLearningComputeDeleteResponse = MachineLearningComputeDeleteHeaders & { +export type OnlineDeploymentsDeleteResponse = OnlineDeploymentsDeleteHeaders & { /** * The underlying HTTP response. */ @@ -3144,14 +9797,14 @@ export type MachineLearningComputeDeleteResponse = MachineLearningComputeDeleteH /** * The parsed HTTP response headers. */ - parsedHeaders: MachineLearningComputeDeleteHeaders; + parsedHeaders: OnlineDeploymentsDeleteHeaders; }; }; /** - * Contains response data for the listNodes operation. + * Contains response data for the get operation. */ -export type MachineLearningComputeListNodesResponse = AmlComputeNodesInformation & { +export type OnlineDeploymentsGetResponse = OnlineDeploymentTrackedResource & { /** * The underlying HTTP response. */ @@ -3164,18 +9817,23 @@ export type MachineLearningComputeListNodesResponse = AmlComputeNodesInformation /** * The response body as parsed JSON or XML */ - parsedBody: AmlComputeNodesInformation; + parsedBody: OnlineDeploymentTrackedResource; }; }; /** - * Contains response data for the listKeys operation. + * Contains response data for the update operation. */ -export type MachineLearningComputeListKeysResponse = ComputeSecretsUnion & { +export type OnlineDeploymentsUpdateResponse = OnlineDeploymentTrackedResource & OnlineDeploymentsUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: OnlineDeploymentsUpdateHeaders; + /** * The response body as text (string format) */ @@ -3184,18 +9842,23 @@ export type MachineLearningComputeListKeysResponse = ComputeSecretsUnion & { /** * The response body as parsed JSON or XML */ - parsedBody: ComputeSecretsUnion; + parsedBody: OnlineDeploymentTrackedResource; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the createOrUpdate operation. */ -export type MachineLearningComputeBeginUpdateResponse = ComputeResource & { +export type OnlineDeploymentsCreateOrUpdateResponse = OnlineDeploymentTrackedResource & OnlineDeploymentsCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: OnlineDeploymentsCreateOrUpdateHeaders; + /** * The response body as text (string format) */ @@ -3204,14 +9867,14 @@ export type MachineLearningComputeBeginUpdateResponse = ComputeResource & { /** * The response body as parsed JSON or XML */ - parsedBody: ComputeResource; + parsedBody: OnlineDeploymentTrackedResource; }; }; /** - * Contains response data for the listByWorkspaceNext operation. + * Contains response data for the getLogs operation. */ -export type MachineLearningComputeListByWorkspaceNextResponse = PaginatedComputeResourcesList & { +export type OnlineDeploymentsGetLogsResponse = DeploymentLogs & { /** * The underlying HTTP response. */ @@ -3224,14 +9887,14 @@ export type MachineLearningComputeListByWorkspaceNextResponse = PaginatedCompute /** * The response body as parsed JSON or XML */ - parsedBody: PaginatedComputeResourcesList; + parsedBody: DeploymentLogs; }; }; /** - * Contains response data for the listSkus operation. + * Contains response data for the listNext operation. */ -export type ListSkusResponse = SkuListResult & { +export type OnlineDeploymentsListNextResponse = OnlineDeploymentTrackedResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -3244,14 +9907,14 @@ export type ListSkusResponse = SkuListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SkuListResult; + parsedBody: OnlineDeploymentTrackedResourceArmPaginatedResult; }; }; /** - * Contains response data for the listSkusNext operation. + * Contains response data for the list operation. */ -export type ListSkusNextResponse = SkuListResult & { +export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult & { /** * The underlying HTTP response. */ @@ -3264,14 +9927,14 @@ export type ListSkusNextResponse = SkuListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SkuListResult; + parsedBody: ListAmlUserFeatureResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { +export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult & { /** * The underlying HTTP response. */ @@ -3284,14 +9947,14 @@ export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: ListAmlUserFeatureResult; }; }; /** - * Contains response data for the put operation. + * Contains response data for the list operation. */ -export type PrivateEndpointConnectionsPutResponse = PrivateEndpointConnection & { +export type WorkspaceSkusListResponse = SkuListResult & { /** * The underlying HTTP response. */ @@ -3304,14 +9967,14 @@ export type PrivateEndpointConnectionsPutResponse = PrivateEndpointConnection & /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: SkuListResult; }; }; /** - * Contains response data for the listByWorkspace operation. + * Contains response data for the listNext operation. */ -export type PrivateLinkResourcesListByWorkspaceResponse = PrivateLinkResourceListResult & { +export type WorkspaceSkusListNextResponse = SkuListResult & { /** * The underlying HTTP response. */ @@ -3324,6 +9987,6 @@ export type PrivateLinkResourcesListByWorkspaceResponse = PrivateLinkResourceLis /** * The response body as parsed JSON or XML */ - parsedBody: PrivateLinkResourceListResult; + parsedBody: SkuListResult; }; }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/jobsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/jobsMappers.ts new file mode 100644 index 000000000000..084e660dbca3 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/jobsMappers.ts @@ -0,0 +1,188 @@ +/* + * 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, + AccountKeyDatastoreCredentials, + AccountKeyDatastoreSecrets, + AKS, + AksNetworkingConfiguration, + AKSProperties, + AmlCompute, + AmlComputeProperties, + AmlToken, + AssetReferenceBase, + AssignedUser, + AutoScaleSettings, + AzureBlobContents, + AzureDataLakeGen1Contents, + AzureDataLakeGen2Contents, + AzureEntityResource, + AzureFileContents, + AzurePostgreSqlContents, + AzureSqlDatabaseContents, + BanditPolicy, + BaseResource, + BatchDeployment, + BatchDeploymentTrackedResource, + BatchEndpoint, + BatchEndpointTrackedResource, + BatchOutputConfiguration, + BatchRetrySettings, + CertificateDatastoreCredentials, + CertificateDatastoreSecrets, + CodeConfiguration, + CodeContainer, + CodeContainerResource, + CodeVersion, + CodeVersionResource, + CommandJob, + Compute, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeResource, + ComputeSchedules, + ComputeStartStopSchedule, + ContainerResourceRequirements, + CosmosDbSettings, + Cron, + Databricks, + DatabricksProperties, + DataContainer, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatastoreContents, + DatastoreCredentials, + DatastoreProperties, + DatastorePropertiesResource, + DatastoreSecrets, + DataVersion, + DataVersionResource, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicy, + EncryptionProperty, + EndpointAuthKeys, + EnvironmentContainer, + EnvironmentContainerResource, + EnvironmentSpecificationVersion, + EnvironmentSpecificationVersionResource, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + FlavorData, + GlusterFsContents, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + IdentityForCmk, + InferenceContainerProperties, + InputDataBinding, + JobBase, + JobBaseResource, + JobBaseResourceArmPaginatedResult, + JobEndpoint, + JobOutput, + JobsDeleteHeaders, + K8sOnlineDeployment, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJob, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + ManagedIdentity, + ManagedOnlineDeployment, + ManualScaleSettings, + MedianStoppingPolicy, + MLAssistConfiguration, + ModelContainer, + ModelContainerResource, + ModelVersion, + ModelVersionResource, + Mpi, + NodeStateCounts, + NoneDatastoreCredentials, + NoneDatastoreSecrets, + NotebookPreparationError, + NotebookResourceInfo, + Objective, + OnlineDeployment, + OnlineDeploymentTrackedResource, + OnlineEndpoint, + OnlineEndpointTrackedResource, + OnlineRequestSettings, + OnlineScaleSettings, + OutputDataBinding, + OutputPathAssetReference, + PersonalComputeInstanceSettings, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProbeSettings, + ProgressMetrics, + ProxyResource, + PyTorch, + Recurrence, + RecurrenceSchedule, + Resource, + ResourceId, + ResourceIdentity, + Route, + SasDatastoreCredentials, + SasDatastoreSecrets, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServicePrincipalDatastoreCredentials, + ServicePrincipalDatastoreSecrets, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SqlAdminDatastoreCredentials, + SqlAdminDatastoreSecrets, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TrackedResource, + TrialComponent, + TruncationSelectionPolicy, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/labelingJobsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/labelingJobsMappers.ts new file mode 100644 index 000000000000..268f11ec05f6 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/labelingJobsMappers.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. + */ + +export { + discriminators, + AccountKeyDatastoreCredentials, + AccountKeyDatastoreSecrets, + AKS, + AksNetworkingConfiguration, + AKSProperties, + AmlCompute, + AmlComputeProperties, + AmlToken, + AssetReferenceBase, + AssignedUser, + AutoScaleSettings, + AzureBlobContents, + AzureDataLakeGen1Contents, + AzureDataLakeGen2Contents, + AzureEntityResource, + AzureFileContents, + AzurePostgreSqlContents, + AzureSqlDatabaseContents, + BanditPolicy, + BaseResource, + BatchDeployment, + BatchDeploymentTrackedResource, + BatchEndpoint, + BatchEndpointTrackedResource, + BatchOutputConfiguration, + BatchRetrySettings, + CertificateDatastoreCredentials, + CertificateDatastoreSecrets, + CocoExportSummary, + CodeConfiguration, + CodeContainer, + CodeContainerResource, + CodeVersion, + CodeVersionResource, + CommandJob, + Compute, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeResource, + ComputeSchedules, + ComputeStartStopSchedule, + ContainerResourceRequirements, + CosmosDbSettings, + Cron, + CsvExportSummary, + Databricks, + DatabricksProperties, + DataContainer, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetExportSummary, + DatastoreContents, + DatastoreCredentials, + DatastoreProperties, + DatastorePropertiesResource, + DatastoreSecrets, + DataVersion, + DataVersionResource, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicy, + EncryptionProperty, + EndpointAuthKeys, + EnvironmentContainer, + EnvironmentContainerResource, + EnvironmentSpecificationVersion, + EnvironmentSpecificationVersionResource, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + ExportSummary, + FlavorData, + GlusterFsContents, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + IdentityForCmk, + InferenceContainerProperties, + InputDataBinding, + JobBase, + JobBaseResource, + JobEndpoint, + JobOutput, + K8sOnlineDeployment, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJob, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobResourceArmPaginatedResult, + LabelingJobsCreateOrUpdateHeaders, + LabelingJobsExportLabelsHeaders, + LabelingJobsResumeHeaders, + LabelingJobTextProperties, + LinkedInfo, + ManagedIdentity, + ManagedOnlineDeployment, + ManualScaleSettings, + MedianStoppingPolicy, + MLAssistConfiguration, + ModelContainer, + ModelContainerResource, + ModelVersion, + ModelVersionResource, + Mpi, + NodeStateCounts, + NoneDatastoreCredentials, + NoneDatastoreSecrets, + NotebookPreparationError, + NotebookResourceInfo, + Objective, + OnlineDeployment, + OnlineDeploymentTrackedResource, + OnlineEndpoint, + OnlineEndpointTrackedResource, + OnlineRequestSettings, + OnlineScaleSettings, + OutputDataBinding, + OutputPathAssetReference, + PersonalComputeInstanceSettings, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProbeSettings, + ProgressMetrics, + ProxyResource, + PyTorch, + Recurrence, + RecurrenceSchedule, + Resource, + ResourceId, + ResourceIdentity, + Route, + SasDatastoreCredentials, + SasDatastoreSecrets, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServicePrincipalDatastoreCredentials, + ServicePrincipalDatastoreSecrets, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SqlAdminDatastoreCredentials, + SqlAdminDatastoreSecrets, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TrackedResource, + TrialComponent, + TruncationSelectionPolicy, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + Workspace, + WorkspaceConnection +} from "../models/mappers"; 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..9b35cbe55a3b 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts @@ -69,74 +69,17 @@ export const Operation: msRest.CompositeMapper = { } }; -export const NotebookListCredentialsResult: msRest.CompositeMapper = { - serializedName: "NotebookListCredentialsResult", +export const IdentityForCmk: msRest.CompositeMapper = { + serializedName: "IdentityForCmk", type: { name: "Composite", - className: "NotebookListCredentialsResult", + className: "IdentityForCmk", modelProperties: { - primaryAccessKey: { - serializedName: "primaryAccessKey", - type: { - name: "String" - } - }, - secondaryAccessKey: { - serializedName: "secondaryAccessKey", - type: { - name: "String" - } - } - } - } -}; - -export const NotebookPreparationError: msRest.CompositeMapper = { - serializedName: "NotebookPreparationError", - type: { - name: "Composite", - className: "NotebookPreparationError", - modelProperties: { - errorMessage: { - serializedName: "errorMessage", - type: { - name: "String" - } - }, - statusCode: { - serializedName: "statusCode", - type: { - name: "Number" - } - } - } - } -}; - -export const NotebookResourceInfo: msRest.CompositeMapper = { - serializedName: "NotebookResourceInfo", - type: { - name: "Composite", - className: "NotebookResourceInfo", - modelProperties: { - fqdn: { - serializedName: "fqdn", - type: { - name: "String" - } - }, - resourceId: { - serializedName: "resourceId", + userAssignedIdentity: { + serializedName: "userAssignedIdentity", type: { name: "String" } - }, - notebookPreparationError: { - serializedName: "notebookPreparationError", - type: { - name: "Composite", - className: "NotebookPreparationError" - } } } } @@ -185,6 +128,13 @@ export const EncryptionProperty: msRest.CompositeMapper = { name: "String" } }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityForCmk" + } + }, keyVaultProperties: { required: true, serializedName: "keyVaultProperties", @@ -209,6 +159,13 @@ export const PrivateEndpoint: msRest.CompositeMapper = { type: { name: "String" } + }, + subnetArmId: { + readOnly: true, + serializedName: "subnetArmId", + type: { + name: "String" + } } } } @@ -242,63 +199,90 @@ export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { } }; -export const PrivateEndpointConnection: msRest.CompositeMapper = { - serializedName: "PrivateEndpointConnection", +export const UserAssignedIdentity: msRest.CompositeMapper = { + serializedName: "UserAssignedIdentity", type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "UserAssignedIdentity", modelProperties: { - id: { + principalId: { readOnly: true, - serializedName: "id", + serializedName: "principalId", type: { name: "String" } }, - name: { + tenantId: { readOnly: true, - serializedName: "name", + serializedName: "tenantId", type: { name: "String" } }, - type: { + clientId: { readOnly: true, - serializedName: "type", + serializedName: "clientId", + type: { + name: "String" + } + } + } + } +}; + +export const Identity: msRest.CompositeMapper = { + serializedName: "Identity", + type: { + name: "Composite", + className: "Identity", + modelProperties: { + principalId: { + readOnly: true, + serializedName: "principalId", type: { name: "String" } }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + tenantId: { + readOnly: true, + serializedName: "tenantId", type: { - name: "Composite", - className: "PrivateEndpoint" + name: "String" } }, - privateLinkServiceConnectionState: { - required: true, - serializedName: "properties.privateLinkServiceConnectionState", + type: { + serializedName: "type", 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 Sku: msRest.CompositeMapper = { + serializedName: "Sku", type: { name: "Composite", - className: "SharedPrivateLinkResource", + className: "Sku", modelProperties: { name: { serializedName: "name", @@ -306,29 +290,57 @@ export const SharedPrivateLinkResource: msRest.CompositeMapper = { name: "String" } }, - privateLinkResourceId: { - serializedName: "properties.privateLinkResourceId", + tier: { + serializedName: "tier", + type: { + name: "String" + } + } + } + } +}; + +export const SystemData: msRest.CompositeMapper = { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - groupId: { - serializedName: "properties.groupId", + createdByType: { + serializedName: "createdByType", type: { name: "String" } }, - requestMessage: { - serializedName: "properties.requestMessage", + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - status: { - serializedName: "properties.status", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String" } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } } } } @@ -354,6 +366,45 @@ export const Resource: msRest.CompositeMapper = { name: "String" } }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...Resource.type.modelProperties, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint" + } + }, + privateLinkServiceConnectionState: { + required: true, + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, identity: { serializedName: "identity", type: { @@ -367,13 +418,6 @@ export const Resource: msRest.CompositeMapper = { name: "String" } }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, tags: { serializedName: "tags", type: { @@ -391,57 +435,183 @@ export const Resource: msRest.CompositeMapper = { name: "Composite", className: "Sku" } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } }; -export const Workspace: msRest.CompositeMapper = { - serializedName: "Workspace", +export const SharedPrivateLinkResource: msRest.CompositeMapper = { + serializedName: "SharedPrivateLinkResource", type: { name: "Composite", - className: "Workspace", + className: "SharedPrivateLinkResource", modelProperties: { - ...Resource.type.modelProperties, - workspaceId: { - readOnly: true, - serializedName: "properties.workspaceId", + name: { + serializedName: "name", type: { name: "String" } }, - description: { - serializedName: "properties.description", + privateLinkResourceId: { + serializedName: "properties.privateLinkResourceId", type: { name: "String" } }, - friendlyName: { - serializedName: "properties.friendlyName", + groupId: { + serializedName: "properties.groupId", type: { name: "String" } }, - creationTime: { - readOnly: true, - serializedName: "properties.creationTime", - type: { - name: "DateTime" - } - }, - keyVault: { - serializedName: "properties.keyVault", + requestMessage: { + serializedName: "properties.requestMessage", type: { name: "String" } }, - applicationInsights: { - serializedName: "properties.applicationInsights", + status: { + serializedName: "properties.status", type: { name: "String" } - }, + } + } + } +}; + +export const NotebookPreparationError: msRest.CompositeMapper = { + serializedName: "NotebookPreparationError", + type: { + name: "Composite", + className: "NotebookPreparationError", + modelProperties: { + errorMessage: { + serializedName: "errorMessage", + type: { + name: "String" + } + }, + statusCode: { + serializedName: "statusCode", + type: { + name: "Number" + } + } + } + } +}; + +export const NotebookResourceInfo: msRest.CompositeMapper = { + serializedName: "NotebookResourceInfo", + type: { + name: "Composite", + className: "NotebookResourceInfo", + modelProperties: { + fqdn: { + serializedName: "fqdn", + type: { + name: "String" + } + }, + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + notebookPreparationError: { + nullable: true, + serializedName: "notebookPreparationError", + type: { + name: "Composite", + className: "NotebookPreparationError" + } + } + } + } +}; + +export const CosmosDbSettings: msRest.CompositeMapper = { + serializedName: "CosmosDbSettings", + type: { + name: "Composite", + className: "CosmosDbSettings", + modelProperties: { + collectionsThroughput: { + serializedName: "collectionsThroughput", + type: { + name: "Number" + } + } + } + } +}; + +export const ServiceManagedResourcesSettings: msRest.CompositeMapper = { + serializedName: "ServiceManagedResourcesSettings", + type: { + name: "Composite", + className: "ServiceManagedResourcesSettings", + modelProperties: { + cosmosDb: { + serializedName: "cosmosDb", + type: { + name: "Composite", + className: "CosmosDbSettings" + } + } + } + } +}; + +export const Workspace: msRest.CompositeMapper = { + serializedName: "Workspace", + type: { + name: "Composite", + className: "Workspace", + modelProperties: { + ...Resource.type.modelProperties, + workspaceId: { + readOnly: true, + serializedName: "properties.workspaceId", + 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: { + nullable: true, serializedName: "properties.containerRegistry", type: { name: "String" @@ -539,28 +709,64 @@ export const Workspace: msRest.CompositeMapper = { name: "Composite", className: "NotebookResourceInfo" } - } - } - } -}; - -export const Sku: msRest.CompositeMapper = { - serializedName: "Sku", - type: { - name: "Composite", - className: "Sku", - modelProperties: { - name: { - serializedName: "name", + }, + serviceManagedResourcesSettings: { + serializedName: "properties.serviceManagedResourcesSettings", + type: { + name: "Composite", + className: "ServiceManagedResourcesSettings" + } + }, + primaryUserAssignedIdentity: { + serializedName: "properties.primaryUserAssignedIdentity", type: { name: "String" } }, - tier: { - serializedName: "tier", + tenantId: { + readOnly: true, + serializedName: "properties.tenantId", + type: { + name: "String" + } + }, + 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" + } } } } @@ -590,6 +796,13 @@ export const WorkspaceUpdateParameters: msRest.CompositeMapper = { className: "Sku" } }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, description: { serializedName: "properties.description", type: { @@ -601,31 +814,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" } @@ -671,6 +875,13 @@ export const Usage: msRest.CompositeMapper = { name: "String" } }, + amlWorkspaceLocation: { + readOnly: true, + serializedName: "amlWorkspaceLocation", + type: { + name: "String" + } + }, type: { readOnly: true, serializedName: "type", @@ -858,17 +1069,6 @@ export const VirtualMachineSize: msRest.CompositeMapper = { name: "Composite", className: "EstimatedVMPrices" } - }, - supportedComputeTypes: { - serializedName: "supportedComputeTypes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } } } } @@ -880,8 +1080,8 @@ export const VirtualMachineSizeListResult: msRest.CompositeMapper = { name: "Composite", className: "VirtualMachineSizeListResult", modelProperties: { - amlCompute: { - serializedName: "amlCompute", + value: { + serializedName: "value", type: { name: "Sequence", element: { @@ -947,6 +1147,12 @@ export const QuotaUpdateParameters: msRest.CompositeMapper = { } } } + }, + location: { + serializedName: "location", + type: { + name: "String" + } } } } @@ -1062,6 +1268,13 @@ export const ResourceQuota: msRest.CompositeMapper = { name: "String" } }, + amlWorkspaceLocation: { + readOnly: true, + serializedName: "amlWorkspaceLocation", + type: { + name: "String" + } + }, type: { readOnly: true, serializedName: "type", @@ -1095,22 +1308,15 @@ export const ResourceQuota: msRest.CompositeMapper = { } }; -export const IdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { - serializedName: "Identity_userAssignedIdentitiesValue", +export const ResourceId: msRest.CompositeMapper = { + serializedName: "ResourceId", type: { name: "Composite", - className: "IdentityUserAssignedIdentitiesValue", + className: "ResourceId", modelProperties: { - principalId: { - readOnly: true, - serializedName: "principalId", - type: { - name: "String" - } - }, - clientId: { - readOnly: true, - serializedName: "clientId", + id: { + required: true, + serializedName: "id", type: { name: "String" } @@ -1119,81 +1325,15 @@ export const IdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { } }; -export const Identity: msRest.CompositeMapper = { - serializedName: "Identity", +export const Password: msRest.CompositeMapper = { + serializedName: "Password", type: { name: "Composite", - className: "Identity", + className: "Password", modelProperties: { - principalId: { + name: { readOnly: true, - serializedName: "principalId", - type: { - name: "String" - } - }, - tenantId: { - readOnly: true, - serializedName: "tenantId", - type: { - name: "String" - } - }, - type: { - required: true, - serializedName: "type", - type: { - name: "Enum", - allowedValues: [ - "SystemAssigned", - "UserAssigned", - "SystemAssigned,UserAssigned", - "None" - ] - } - }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "IdentityUserAssignedIdentitiesValue" - } - } - } - } - } - } -}; - -export const ResourceId: msRest.CompositeMapper = { - serializedName: "ResourceId", - type: { - name: "Composite", - className: "ResourceId", - modelProperties: { - id: { - required: true, - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const Password: msRest.CompositeMapper = { - serializedName: "Password", - type: { - name: "Composite", - className: "Password", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", + serializedName: "name", type: { name: "String" } @@ -1245,6 +1385,30 @@ export const RegistryListCredentialsResult: msRest.CompositeMapper = { } }; +export const ListNotebookKeysResult: msRest.CompositeMapper = { + serializedName: "ListNotebookKeysResult", + type: { + name: "Composite", + className: "ListNotebookKeysResult", + modelProperties: { + primaryAccessKey: { + readOnly: true, + serializedName: "primaryAccessKey", + type: { + name: "String" + } + }, + secondaryAccessKey: { + readOnly: true, + serializedName: "secondaryAccessKey", + type: { + name: "String" + } + } + } + } +}; + export const ListWorkspaceKeysResult: msRest.CompositeMapper = { serializedName: "ListWorkspaceKeysResult", type: { @@ -1281,32 +1445,75 @@ export const ListWorkspaceKeysResult: msRest.CompositeMapper = { } }, notebookAccessKeys: { + readOnly: true, serializedName: "notebookAccessKeys", type: { name: "Composite", - className: "NotebookListCredentialsResult" + className: "ListNotebookKeysResult" } } } } }; -export const ErrorDetail: msRest.CompositeMapper = { - serializedName: "ErrorDetail", +export const NotebookAccessTokenResult: msRest.CompositeMapper = { + serializedName: "NotebookAccessTokenResult", type: { name: "Composite", - className: "ErrorDetail", + className: "NotebookAccessTokenResult", modelProperties: { - code: { - required: true, - serializedName: "code", + notebookResourceId: { + readOnly: true, + serializedName: "notebookResourceId", type: { name: "String" } }, - message: { - required: true, - serializedName: "message", + hostName: { + readOnly: true, + serializedName: "hostName", + type: { + name: "String" + } + }, + publicDns: { + readOnly: true, + serializedName: "publicDns", + type: { + name: "String" + } + }, + accessToken: { + readOnly: true, + serializedName: "accessToken", + type: { + name: "String" + } + }, + tokenType: { + readOnly: true, + serializedName: "tokenType", + type: { + name: "String" + } + }, + expiresIn: { + readOnly: true, + serializedName: "expiresIn", + type: { + name: "Number" + } + }, + refreshToken: { + readOnly: true, + serializedName: "refreshToken", + type: { + name: "String" + } + }, + scope: { + readOnly: true, + serializedName: "scope", type: { name: "String" } @@ -1315,11 +1522,35 @@ export const ErrorDetail: msRest.CompositeMapper = { } }; -export const ErrorResponse: msRest.CompositeMapper = { - serializedName: "ErrorResponse", +export const ErrorAdditionalInfo: msRest.CompositeMapper = { + serializedName: "ErrorAdditionalInfo", type: { name: "Composite", - className: "ErrorResponse", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + info: { + readOnly: true, + serializedName: "info", + type: { + name: "Object" + } + } + } + } +}; + +export const ErrorDetail: msRest.CompositeMapper = { + serializedName: "ErrorDetail", + type: { + name: "Composite", + className: "ErrorDetail", modelProperties: { code: { readOnly: true, @@ -1335,6 +1566,13 @@ export const ErrorResponse: msRest.CompositeMapper = { name: "String" } }, + target: { + readOnly: true, + serializedName: "target", + type: { + name: "String" + } + }, details: { readOnly: true, serializedName: "details", @@ -1347,23 +1585,35 @@ export const ErrorResponse: msRest.CompositeMapper = { } } } + }, + additionalInfo: { + readOnly: true, + serializedName: "additionalInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } } } } }; -export const MachineLearningServiceError: msRest.CompositeMapper = { - serializedName: "MachineLearningServiceError", +export const ErrorResponse: msRest.CompositeMapper = { + serializedName: "ErrorResponse", type: { name: "Composite", - className: "MachineLearningServiceError", + className: "ErrorResponse", modelProperties: { error: { - readOnly: true, serializedName: "error", type: { name: "Composite", - className: "ErrorResponse" + className: "ErrorDetail" } } } @@ -1428,7 +1678,7 @@ export const Compute: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "MachineLearningServiceError" + className: "ErrorResponse" } } } @@ -1440,6 +1690,12 @@ export const Compute: msRest.CompositeMapper = { name: "Boolean" } }, + disableLocalAuth: { + serializedName: "disableLocalAuth", + type: { + name: "Boolean" + } + }, computeType: { required: true, serializedName: "computeType", @@ -1464,6 +1720,44 @@ export const ComputeResource: msRest.CompositeMapper = { name: "Composite", className: "Compute" } + }, + 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" + } } } } @@ -1529,6 +1823,18 @@ export const SslConfiguration: msRest.CompositeMapper = { type: { name: "String" } + }, + leafDomainLabel: { + serializedName: "leafDomainLabel", + type: { + name: "String" + } + }, + overwriteExistingDomain: { + serializedName: "overwriteExistingDomain", + type: { + name: "Boolean" + } } } } @@ -1605,14 +1911,21 @@ export const AKSProperties: msRest.CompositeMapper = { agentCount: { serializedName: "agentCount", constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 0 }, type: { name: "Number" } }, - agentVMSize: { - serializedName: "agentVMSize", + agentVmSize: { + serializedName: "agentVmSize", + type: { + name: "String" + } + }, + clusterPurpose: { + serializedName: "clusterPurpose", + defaultValue: 'FastProd', type: { name: "String" } @@ -1630,6 +1943,19 @@ export const AKSProperties: msRest.CompositeMapper = { name: "Composite", className: "AksNetworkingConfiguration" } + }, + loadBalancerType: { + serializedName: "loadBalancerType", + defaultValue: 'PublicIp', + type: { + name: "String" + } + }, + loadBalancerSubnet: { + serializedName: "loadBalancerSubnet", + type: { + name: "String" + } } } } @@ -1655,6 +1981,23 @@ export const AKS: msRest.CompositeMapper = { } }; +export const VirtualMachineImage: msRest.CompositeMapper = { + serializedName: "VirtualMachineImage", + type: { + name: "Composite", + className: "VirtualMachineImage", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + export const ScaleSettings: msRest.CompositeMapper = { serializedName: "ScaleSettings", type: { @@ -1772,6 +2115,13 @@ export const AmlComputeProperties: msRest.CompositeMapper = { name: "Composite", className: "AmlComputeProperties", modelProperties: { + osType: { + serializedName: "osType", + defaultValue: 'Linux', + type: { + name: "String" + } + }, vmSize: { serializedName: "vmSize", type: { @@ -1784,17 +2134,30 @@ export const AmlComputeProperties: msRest.CompositeMapper = { name: "String" } }, - scaleSettings: { - serializedName: "scaleSettings", + virtualMachineImage: { + serializedName: "virtualMachineImage", type: { name: "Composite", - className: "ScaleSettings" + className: "VirtualMachineImage" } }, - userAccountCredentials: { - serializedName: "userAccountCredentials", + isolatedNetwork: { + serializedName: "isolatedNetwork", type: { - name: "Composite", + name: "Boolean" + } + }, + scaleSettings: { + serializedName: "scaleSettings", + type: { + name: "Composite", + className: "ScaleSettings" + } + }, + userAccountCredentials: { + serializedName: "userAccountCredentials", + type: { + name: "Composite", className: "UserAccountCredentials" } }, @@ -1834,7 +2197,7 @@ export const AmlComputeProperties: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "MachineLearningServiceError" + className: "ErrorResponse" } } } @@ -1860,6 +2223,13 @@ export const AmlComputeProperties: msRest.CompositeMapper = { name: "Composite", className: "NodeStateCounts" } + }, + enableNodePublicIp: { + serializedName: "enableNodePublicIp", + defaultValue: true, + type: { + name: "Boolean" + } } } } @@ -1999,6 +2369,122 @@ export const ComputeInstanceCreatedBy: msRest.CompositeMapper = { } }; +export const AssignedUser: msRest.CompositeMapper = { + serializedName: "AssignedUser", + type: { + name: "Composite", + className: "AssignedUser", + modelProperties: { + objectId: { + required: true, + serializedName: "objectId", + type: { + name: "String" + } + }, + tenantId: { + required: true, + serializedName: "tenantId", + type: { + name: "String" + } + } + } + } +}; + +export const PersonalComputeInstanceSettings: msRest.CompositeMapper = { + serializedName: "PersonalComputeInstanceSettings", + type: { + name: "Composite", + className: "PersonalComputeInstanceSettings", + modelProperties: { + assignedUser: { + serializedName: "assignedUser", + type: { + name: "Composite", + className: "AssignedUser" + } + } + } + } +}; + +export const ScriptReference: msRest.CompositeMapper = { + serializedName: "ScriptReference", + 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 ScriptsToExecute: msRest.CompositeMapper = { + serializedName: "ScriptsToExecute", + type: { + name: "Composite", + className: "ScriptsToExecute", + modelProperties: { + startupScript: { + serializedName: "startupScript", + type: { + name: "Composite", + className: "ScriptReference" + } + }, + creationScript: { + serializedName: "creationScript", + type: { + name: "Composite", + className: "ScriptReference" + } + } + } + } +}; + +export const SetupScripts: msRest.CompositeMapper = { + serializedName: "SetupScripts", + type: { + name: "Composite", + className: "SetupScripts", + modelProperties: { + scripts: { + serializedName: "scripts", + type: { + name: "Composite", + className: "ScriptsToExecute" + } + } + } + } +}; + export const ComputeInstanceLastOperation: msRest.CompositeMapper = { serializedName: "ComputeInstanceLastOperation", type: { @@ -2027,6 +2513,205 @@ export const ComputeInstanceLastOperation: msRest.CompositeMapper = { } }; +export const RecurrenceSchedule: msRest.CompositeMapper = { + serializedName: "RecurrenceSchedule", + type: { + name: "Composite", + className: "RecurrenceSchedule", + modelProperties: { + minutes: { + serializedName: "minutes", + type: { + name: "Sequence", + element: { + type: { + name: "Number" + } + } + } + }, + hours: { + serializedName: "hours", + type: { + name: "Sequence", + element: { + type: { + name: "Number" + } + } + } + }, + weekDays: { + serializedName: "weekDays", + type: { + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ] + } + } + } + } + } + } +}; + +export const Recurrence: msRest.CompositeMapper = { + serializedName: "Recurrence", + type: { + name: "Composite", + className: "Recurrence", + modelProperties: { + frequency: { + serializedName: "frequency", + type: { + name: "String" + } + }, + interval: { + serializedName: "interval", + type: { + name: "Number" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "String" + } + }, + timeZone: { + serializedName: "timeZone", + type: { + name: "String" + } + }, + schedule: { + serializedName: "schedule", + type: { + name: "Composite", + className: "RecurrenceSchedule" + } + } + } + } +}; + +export const Cron: msRest.CompositeMapper = { + serializedName: "Cron", + type: { + name: "Composite", + className: "Cron", + modelProperties: { + startTime: { + serializedName: "startTime", + type: { + name: "String" + } + }, + timeZone: { + serializedName: "timeZone", + type: { + name: "String" + } + }, + expression: { + serializedName: "expression", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeStartStopSchedule: msRest.CompositeMapper = { + serializedName: "ComputeStartStopSchedule", + type: { + name: "Composite", + className: "ComputeStartStopSchedule", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + provisioningStatus: { + readOnly: true, + serializedName: "provisioningStatus", + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + }, + triggerType: { + serializedName: "triggerType", + type: { + name: "String" + } + }, + action: { + serializedName: "action", + type: { + name: "String" + } + }, + recurrence: { + serializedName: "recurrence", + type: { + name: "Composite", + className: "Recurrence" + } + }, + cron: { + serializedName: "cron", + type: { + name: "Composite", + className: "Cron" + } + } + } + } +}; + +export const ComputeSchedules: msRest.CompositeMapper = { + serializedName: "ComputeSchedules", + type: { + name: "Composite", + className: "ComputeSchedules", + modelProperties: { + computeStartStop: { + serializedName: "computeStartStop", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeStartStopSchedule" + } + } + } + } + } + } +}; + export const ComputeInstanceProperties: msRest.CompositeMapper = { serializedName: "ComputeInstance_properties", type: { @@ -2097,7 +2782,7 @@ export const ComputeInstanceProperties: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "MachineLearningServiceError" + className: "ErrorResponse" } } } @@ -2109,6 +2794,27 @@ export const ComputeInstanceProperties: msRest.CompositeMapper = { name: "String" } }, + computeInstanceAuthorizationType: { + serializedName: "computeInstanceAuthorizationType", + defaultValue: 'personal', + type: { + name: "String" + } + }, + personalComputeInstanceSettings: { + serializedName: "personalComputeInstanceSettings", + type: { + name: "Composite", + className: "PersonalComputeInstanceSettings" + } + }, + setupScripts: { + serializedName: "setupScripts", + type: { + name: "Composite", + className: "SetupScripts" + } + }, lastOperation: { readOnly: true, serializedName: "lastOperation", @@ -2116,6 +2822,13 @@ export const ComputeInstanceProperties: msRest.CompositeMapper = { name: "Composite", className: "ComputeInstanceLastOperation" } + }, + schedules: { + serializedName: "schedules", + type: { + name: "Composite", + className: "ComputeSchedules" + } } } } @@ -2205,6 +2918,12 @@ export const VirtualMachineProperties: msRest.CompositeMapper = { name: "Composite", className: "VirtualMachineSshCredentials" } + }, + isNotebookInstanceCompute: { + serializedName: "isNotebookInstanceCompute", + type: { + name: "Boolean" + } } } } @@ -2303,6 +3022,12 @@ export const DatabricksProperties: msRest.CompositeMapper = { type: { name: "String" } + }, + workspaceUrl: { + serializedName: "workspaceUrl", + type: { + name: "String" + } } } } @@ -2364,7 +3089,218 @@ export const DataLakeAnalytics: msRest.CompositeMapper = { } }; -export const ServicePrincipalCredentials: msRest.CompositeMapper = { +export const AutoScaleProperties: msRest.CompositeMapper = { + serializedName: "AutoScaleProperties", + 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: msRest.CompositeMapper = { + serializedName: "AutoPauseProperties", + type: { + name: "Composite", + className: "AutoPauseProperties", + modelProperties: { + delayInMinutes: { + serializedName: "delayInMinutes", + type: { + name: "Number" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const SynapseSparkProperties: msRest.CompositeMapper = { + serializedName: "SynapseSpark_properties", + type: { + name: "Composite", + className: "SynapseSparkProperties", + 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 SynapseSpark: msRest.CompositeMapper = { + serializedName: "SynapseSpark", + type: { + name: "Composite", + className: "SynapseSpark", + modelProperties: { + computeType: { + required: true, + serializedName: "computeType", + type: { + name: "String" + } + }, + computeLocation: { + serializedName: "computeLocation", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + createdOn: { + readOnly: true, + serializedName: "createdOn", + type: { + name: "DateTime" + } + }, + modifiedOn: { + readOnly: true, + serializedName: "modifiedOn", + type: { + name: "DateTime" + } + }, + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + provisioningErrors: { + readOnly: true, + serializedName: "provisioningErrors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponse" + } + } + } + }, + isAttachedCompute: { + readOnly: true, + serializedName: "isAttachedCompute", + type: { + name: "Boolean" + } + }, + disableLocalAuth: { + serializedName: "disableLocalAuth", + type: { + name: "Boolean" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "SynapseSparkProperties" + } + } + } + } +}; + +export const ServicePrincipalCredentials: msRest.CompositeMapper = { serializedName: "ServicePrincipalCredentials", type: { name: "Composite", @@ -2486,32 +3422,6 @@ export const AmlComputeNodeInformation: msRest.CompositeMapper = { } }; -export const AmlComputeNodesInformation: msRest.CompositeMapper = { - serializedName: "AmlCompute", - type: { - name: "Composite", - polymorphicDiscriminator: ComputeNodesInformation.type.polymorphicDiscriminator, - uberParent: "ComputeNodesInformation", - className: "AmlComputeNodesInformation", - modelProperties: { - ...ComputeNodesInformation.type.modelProperties, - nodes: { - readOnly: true, - serializedName: "nodes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AmlComputeNodeInformation" - } - } - } - } - } - } -}; - export const ComputeSecrets: msRest.CompositeMapper = { serializedName: "ComputeSecrets", type: { @@ -2604,37 +3514,23 @@ export const DatabricksComputeSecrets: msRest.CompositeMapper = { } }; -export const SKUCapability: msRest.CompositeMapper = { - serializedName: "SKUCapability", +export const PrivateLinkResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkResource", type: { name: "Composite", - className: "SKUCapability", + className: "PrivateLinkResource", modelProperties: { - name: { - serializedName: "name", + ...Resource.type.modelProperties, + groupId: { + readOnly: true, + serializedName: "properties.groupId", type: { name: "String" } }, - value: { - serializedName: "value", - type: { - name: "String" - } - } - } - } -}; - -export const ResourceSkuZoneDetails: msRest.CompositeMapper = { - serializedName: "ResourceSkuZoneDetails", - type: { - name: "Composite", - className: "ResourceSkuZoneDetails", - modelProperties: { - name: { + requiredMembers: { readOnly: true, - serializedName: "name", + serializedName: "properties.requiredMembers", type: { name: "Sequence", element: { @@ -2644,92 +3540,5467 @@ export const ResourceSkuZoneDetails: msRest.CompositeMapper = { } } }, - capabilities: { - readOnly: true, - serializedName: "capabilities", + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SKUCapability" + name: "String" } } } - } - } - } -}; - -export const ResourceSkuLocationInfo: msRest.CompositeMapper = { - serializedName: "ResourceSkuLocationInfo", - type: { - name: "Composite", - className: "ResourceSkuLocationInfo", - modelProperties: { + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, location: { - readOnly: true, serializedName: "location", type: { name: "String" } }, - zones: { - readOnly: true, - serializedName: "zones", + 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 PrivateLinkResourceListResult: msRest.CompositeMapper = { + serializedName: "PrivateLinkResourceListResult", + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } + } + } + } + } +}; + +export const ContainerResourceRequirements: msRest.CompositeMapper = { + serializedName: "ContainerResourceRequirements", + 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 ListStorageAccountKeysResult: msRest.CompositeMapper = { + serializedName: "ListStorageAccountKeysResult", + type: { + name: "Composite", + className: "ListStorageAccountKeysResult", + modelProperties: { + userStorageKey: { + readOnly: true, + serializedName: "userStorageKey", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceConnection: msRest.CompositeMapper = { + serializedName: "WorkspaceConnection", + type: { + name: "Composite", + className: "WorkspaceConnection", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + category: { + serializedName: "properties.category", + type: { + name: "String" + } + }, + target: { + serializedName: "properties.target", + type: { + name: "String" + } + }, + authType: { + serializedName: "properties.authType", + type: { + name: "String" + } + }, + value: { + serializedName: "properties.value", + type: { + name: "String" + } + }, + valueFormat: { + serializedName: "properties.valueFormat", + type: { + name: "String" + } + } + } + } +}; + +export const SynapseSparkPoolProperties: msRest.CompositeMapper = { + serializedName: "SynapseSparkPoolProperties", + type: { + name: "Composite", + className: "SynapseSparkPoolProperties", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "SynapseSparkProperties" + } + } + } + } +}; + +export const ProxyResource: msRest.CompositeMapper = { + serializedName: "ProxyResource", + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +export const TrackedResource: msRest.CompositeMapper = { + serializedName: "TrackedResource", + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const AzureEntityResource: msRest.CompositeMapper = { + serializedName: "AzureEntityResource", + type: { + name: "Composite", + className: "AzureEntityResource", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const DatastoreSecrets: msRest.CompositeMapper = { + serializedName: "DatastoreSecrets", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "secretsType", + clientName: "secretsType" + }, + uberParent: "DatastoreSecrets", + className: "DatastoreSecrets", + modelProperties: { + secretsType: { + required: true, + serializedName: "secretsType", + type: { + name: "String" + } + } + } + } +}; + +export const AccountKeyDatastoreSecrets: msRest.CompositeMapper = { + serializedName: "AccountKey", + type: { + name: "Composite", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + uberParent: "DatastoreSecrets", + className: "AccountKeyDatastoreSecrets", + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + key: { + serializedName: "key", + type: { + name: "String" + } + } + } + } +}; + +export const DatastoreCredentials: msRest.CompositeMapper = { + serializedName: "DatastoreCredentials", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "credentialsType", + clientName: "credentialsType" + }, + uberParent: "DatastoreCredentials", + className: "DatastoreCredentials", + modelProperties: { + credentialsType: { + required: true, + serializedName: "credentialsType", + type: { + name: "String" + } + } + } + } +}; + +export const AccountKeyDatastoreCredentials: msRest.CompositeMapper = { + serializedName: "AccountKey", + type: { + name: "Composite", + polymorphicDiscriminator: DatastoreCredentials.type.polymorphicDiscriminator, + uberParent: "DatastoreCredentials", + className: "AccountKeyDatastoreCredentials", + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "AccountKeyDatastoreSecrets" + } + } + } + } +}; + +export const IdentityConfiguration: msRest.CompositeMapper = { + serializedName: "IdentityConfiguration", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "identityType", + clientName: "identityType" + }, + uberParent: "IdentityConfiguration", + className: "IdentityConfiguration", + modelProperties: { + identityType: { + required: true, + serializedName: "identityType", + type: { + name: "String" + } + } + } + } +}; + +export const AmlToken: msRest.CompositeMapper = { + serializedName: "AMLToken", + type: { + name: "Composite", + polymorphicDiscriminator: IdentityConfiguration.type.polymorphicDiscriminator, + uberParent: "IdentityConfiguration", + className: "AmlToken", + modelProperties: { + ...IdentityConfiguration.type.modelProperties + } + } +}; + +export const AssetReferenceBase: msRest.CompositeMapper = { + serializedName: "AssetReferenceBase", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "referenceType", + clientName: "referenceType" + }, + uberParent: "AssetReferenceBase", + className: "AssetReferenceBase", + modelProperties: { + referenceType: { + required: true, + serializedName: "referenceType", + type: { + name: "String" + } + } + } + } +}; + +export const OnlineScaleSettings: msRest.CompositeMapper = { + serializedName: "OnlineScaleSettings", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "scaleType", + clientName: "scaleType" + }, + uberParent: "OnlineScaleSettings", + className: "OnlineScaleSettings", + modelProperties: { + maxInstances: { + serializedName: "maxInstances", + type: { + name: "Number" + } + }, + minInstances: { + serializedName: "minInstances", + type: { + name: "Number" + } + }, + scaleType: { + required: true, + serializedName: "scaleType", + type: { + name: "String" + } + } + } + } +}; + +export const AutoScaleSettings: msRest.CompositeMapper = { + serializedName: "Auto", + type: { + name: "Composite", + polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, + uberParent: "OnlineScaleSettings", + className: "AutoScaleSettings", + modelProperties: { + ...OnlineScaleSettings.type.modelProperties, + pollingInterval: { + serializedName: "pollingInterval", + type: { + name: "TimeSpan" + } + }, + targetUtilizationPercentage: { + serializedName: "targetUtilizationPercentage", + type: { + name: "Number" + } + } + } + } +}; + +export const DatastoreContents: msRest.CompositeMapper = { + serializedName: "DatastoreContents", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "contentsType", + clientName: "contentsType" + }, + uberParent: "DatastoreContents", + className: "DatastoreContents", + modelProperties: { + contentsType: { + required: true, + serializedName: "contentsType", + type: { + name: "String" + } + } + } + } +}; + +export const AzureBlobContents: msRest.CompositeMapper = { + serializedName: "AzureBlob", + type: { + name: "Composite", + polymorphicDiscriminator: DatastoreContents.type.polymorphicDiscriminator, + uberParent: "DatastoreContents", + className: "AzureBlobContents", + modelProperties: { + ...DatastoreContents.type.modelProperties, + accountName: { + required: true, + serializedName: "accountName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + containerName: { + required: true, + serializedName: "containerName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + credentials: { + required: true, + serializedName: "credentials", + type: { + name: "Composite", + className: "DatastoreCredentials" + } + }, + endpoint: { + required: true, + serializedName: "endpoint", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + protocol: { + required: true, + serializedName: "protocol", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const AzureDataLakeGen1Contents: msRest.CompositeMapper = { + serializedName: "AzureDataLakeGen1", + type: { + name: "Composite", + polymorphicDiscriminator: DatastoreContents.type.polymorphicDiscriminator, + uberParent: "DatastoreContents", + className: "AzureDataLakeGen1Contents", + modelProperties: { + ...DatastoreContents.type.modelProperties, + credentials: { + required: true, + serializedName: "credentials", + type: { + name: "Composite", + className: "DatastoreCredentials" + } + }, + storeName: { + required: true, + serializedName: "storeName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const AzureDataLakeGen2Contents: msRest.CompositeMapper = { + serializedName: "AzureDataLakeGen2", + type: { + name: "Composite", + polymorphicDiscriminator: DatastoreContents.type.polymorphicDiscriminator, + uberParent: "DatastoreContents", + className: "AzureDataLakeGen2Contents", + modelProperties: { + ...DatastoreContents.type.modelProperties, + accountName: { + required: true, + serializedName: "accountName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + containerName: { + required: true, + serializedName: "containerName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + credentials: { + required: true, + serializedName: "credentials", + type: { + name: "Composite", + className: "DatastoreCredentials" + } + }, + endpoint: { + required: true, + serializedName: "endpoint", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + protocol: { + required: true, + serializedName: "protocol", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const AzureFileContents: msRest.CompositeMapper = { + serializedName: "AzureFile", + type: { + name: "Composite", + polymorphicDiscriminator: DatastoreContents.type.polymorphicDiscriminator, + uberParent: "DatastoreContents", + className: "AzureFileContents", + modelProperties: { + ...DatastoreContents.type.modelProperties, + accountName: { + required: true, + serializedName: "accountName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + containerName: { + required: true, + serializedName: "containerName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + credentials: { + required: true, + serializedName: "credentials", + type: { + name: "Composite", + className: "DatastoreCredentials" + } + }, + endpoint: { + required: true, + serializedName: "endpoint", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + protocol: { + required: true, + serializedName: "protocol", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const AzurePostgreSqlContents: msRest.CompositeMapper = { + serializedName: "AzurePostgreSql", + type: { + name: "Composite", + polymorphicDiscriminator: DatastoreContents.type.polymorphicDiscriminator, + uberParent: "DatastoreContents", + className: "AzurePostgreSqlContents", + modelProperties: { + ...DatastoreContents.type.modelProperties, + credentials: { + required: true, + serializedName: "credentials", + type: { + name: "Composite", + className: "DatastoreCredentials" + } + }, + databaseName: { + required: true, + serializedName: "databaseName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + enableSSL: { + serializedName: "enableSSL", + type: { + name: "Boolean" + } + }, + endpoint: { + required: true, + serializedName: "endpoint", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + portNumber: { + required: true, + serializedName: "portNumber", + type: { + name: "Number" + } + }, + serverName: { + required: true, + serializedName: "serverName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const AzureSqlDatabaseContents: msRest.CompositeMapper = { + serializedName: "AzureSqlDatabase", + type: { + name: "Composite", + polymorphicDiscriminator: DatastoreContents.type.polymorphicDiscriminator, + uberParent: "DatastoreContents", + className: "AzureSqlDatabaseContents", + modelProperties: { + ...DatastoreContents.type.modelProperties, + credentials: { + required: true, + serializedName: "credentials", + type: { + name: "Composite", + className: "DatastoreCredentials" + } + }, + databaseName: { + required: true, + serializedName: "databaseName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + endpoint: { + required: true, + serializedName: "endpoint", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + portNumber: { + required: true, + serializedName: "portNumber", + type: { + name: "Number" + } + }, + serverName: { + required: true, + serializedName: "serverName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const EarlyTerminationPolicy: msRest.CompositeMapper = { + serializedName: "EarlyTerminationPolicy", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "policyType", + clientName: "policyType" + }, + uberParent: "EarlyTerminationPolicy", + className: "EarlyTerminationPolicy", + modelProperties: { + delayEvaluation: { + serializedName: "delayEvaluation", + type: { + name: "Number" + } + }, + evaluationInterval: { + serializedName: "evaluationInterval", + type: { + name: "Number" + } + }, + policyType: { + required: true, + serializedName: "policyType", + type: { + name: "String" + } + } + } + } +}; + +export const BanditPolicy: msRest.CompositeMapper = { + serializedName: "Bandit", + type: { + name: "Composite", + polymorphicDiscriminator: EarlyTerminationPolicy.type.polymorphicDiscriminator, + uberParent: "EarlyTerminationPolicy", + className: "BanditPolicy", + modelProperties: { + ...EarlyTerminationPolicy.type.modelProperties, + slackAmount: { + serializedName: "slackAmount", + type: { + name: "Number" + } + }, + slackFactor: { + serializedName: "slackFactor", + type: { + name: "Number" + } + } + } + } +}; + +export const CodeConfiguration: msRest.CompositeMapper = { + serializedName: "CodeConfiguration", + type: { + name: "Composite", + className: "CodeConfiguration", + modelProperties: { + codeId: { + serializedName: "codeId", + type: { + name: "String" + } + }, + scoringScript: { + required: true, + serializedName: "scoringScript", + constraints: { + MinLength: 1, + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const ComputeConfiguration: msRest.CompositeMapper = { + serializedName: "ComputeConfiguration", + type: { + name: "Composite", + className: "ComputeConfiguration", + 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: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + } + } + } +}; + +export const BatchOutputConfiguration: msRest.CompositeMapper = { + serializedName: "BatchOutputConfiguration", + type: { + name: "Composite", + className: "BatchOutputConfiguration", + modelProperties: { + appendRowFileName: { + serializedName: "appendRowFileName", + type: { + name: "String" + } + }, + outputAction: { + serializedName: "outputAction", + type: { + name: "String" + } + } + } + } +}; + +export const BatchRetrySettings: msRest.CompositeMapper = { + serializedName: "BatchRetrySettings", + type: { + name: "Composite", + className: "BatchRetrySettings", + modelProperties: { + maxRetries: { + serializedName: "maxRetries", + type: { + name: "Number" + } + }, + timeout: { + serializedName: "timeout", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const BatchDeployment: msRest.CompositeMapper = { + serializedName: "BatchDeployment", + type: { + name: "Composite", + className: "BatchDeployment", + 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: "BatchRetrySettings" + } + } + } + } +}; + +export const UserAssignedIdentityMeta: msRest.CompositeMapper = { + serializedName: "UserAssignedIdentityMeta", + type: { + name: "Composite", + className: "UserAssignedIdentityMeta", + modelProperties: { + clientId: { + serializedName: "clientId", + type: { + name: "String" + } + }, + principalId: { + serializedName: "principalId", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceIdentity: msRest.CompositeMapper = { + serializedName: "ResourceIdentity", + type: { + name: "Composite", + className: "ResourceIdentity", + modelProperties: { + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + tenantId: { + readOnly: true, + serializedName: "tenantId", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "UserAssignedIdentityMeta" + } + } + } + } + } + } +}; + +export const BatchDeploymentTrackedResource: msRest.CompositeMapper = { + serializedName: "BatchDeploymentTrackedResource", + type: { + name: "Composite", + className: "BatchDeploymentTrackedResource", + modelProperties: { + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "BatchDeployment" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const EndpointAuthKeys: msRest.CompositeMapper = { + serializedName: "EndpointAuthKeys", + type: { + name: "Composite", + className: "EndpointAuthKeys", + modelProperties: { + primaryKey: { + serializedName: "primaryKey", + type: { + name: "String" + } + }, + secondaryKey: { + serializedName: "secondaryKey", + type: { + name: "String" + } + } + } + } +}; + +export const BatchEndpoint: msRest.CompositeMapper = { + serializedName: "BatchEndpoint", + type: { + name: "Composite", + className: "BatchEndpoint", + modelProperties: { + authMode: { + serializedName: "authMode", + 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" + } + } + } + }, + scoringUri: { + readOnly: true, + serializedName: "scoringUri", + type: { + name: "String" + } + }, + swaggerUri: { + readOnly: true, + serializedName: "swaggerUri", + type: { + name: "String" + } + }, + traffic: { + serializedName: "traffic", + type: { + name: "Dictionary", + value: { + type: { + name: "Number" + } + } + } + } + } + } +}; + +export const BatchEndpointTrackedResource: msRest.CompositeMapper = { + serializedName: "BatchEndpointTrackedResource", + type: { + name: "Composite", + className: "BatchEndpointTrackedResource", + modelProperties: { + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "BatchEndpoint" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const CertificateDatastoreSecrets: msRest.CompositeMapper = { + serializedName: "Certificate", + type: { + name: "Composite", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + uberParent: "DatastoreSecrets", + className: "CertificateDatastoreSecrets", + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + certificate: { + serializedName: "certificate", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateDatastoreCredentials: msRest.CompositeMapper = { + serializedName: "Certificate", + type: { + name: "Composite", + polymorphicDiscriminator: DatastoreCredentials.type.polymorphicDiscriminator, + uberParent: "DatastoreCredentials", + className: "CertificateDatastoreCredentials", + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + authorityUrl: { + serializedName: "authorityUrl", + type: { + name: "String" + } + }, + clientId: { + required: true, + serializedName: "clientId", + type: { + name: "Uuid" + } + }, + resourceUri: { + serializedName: "resourceUri", + type: { + name: "String" + } + }, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "CertificateDatastoreSecrets" + } + }, + tenantId: { + required: true, + serializedName: "tenantId", + type: { + name: "Uuid" + } + }, + thumbprint: { + required: true, + serializedName: "thumbprint", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const ExportSummary: msRest.CompositeMapper = { + serializedName: "ExportSummary", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "format", + clientName: "format" + }, + uberParent: "ExportSummary", + className: "ExportSummary", + modelProperties: { + endTimeUtc: { + readOnly: true, + serializedName: "endTimeUtc", + type: { + name: "DateTime" + } + }, + exportedRowCount: { + readOnly: true, + serializedName: "exportedRowCount", + type: { + name: "Number" + } + }, + labelingJobId: { + readOnly: true, + serializedName: "labelingJobId", + type: { + name: "String" + } + }, + startTimeUtc: { + readOnly: true, + serializedName: "startTimeUtc", + type: { + name: "DateTime" + } + }, + format: { + required: true, + serializedName: "format", + type: { + name: "String" + } + } + } + } +}; + +export const CocoExportSummary: msRest.CompositeMapper = { + serializedName: "Coco", + type: { + name: "Composite", + polymorphicDiscriminator: ExportSummary.type.polymorphicDiscriminator, + uberParent: "ExportSummary", + className: "CocoExportSummary", + modelProperties: { + ...ExportSummary.type.modelProperties, + containerName: { + readOnly: true, + serializedName: "containerName", + type: { + name: "String" + } + }, + snapshotPath: { + readOnly: true, + serializedName: "snapshotPath", + type: { + name: "String" + } + } + } + } +}; + +export const CodeContainer: msRest.CompositeMapper = { + serializedName: "CodeContainer", + type: { + name: "Composite", + className: "CodeContainer", + 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 CodeContainerResource: msRest.CompositeMapper = { + serializedName: "CodeContainerResource", + type: { + name: "Composite", + className: "CodeContainerResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "CodeContainer" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const CodeVersion: msRest.CompositeMapper = { + serializedName: "CodeVersion", + type: { + name: "Composite", + className: "CodeVersion", + modelProperties: { + datastoreId: { + serializedName: "datastoreId", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + isAnonymous: { + serializedName: "isAnonymous", + type: { + name: "Boolean" + } + }, + path: { + required: true, + serializedName: "path", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + 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 CodeVersionResource: msRest.CompositeMapper = { + serializedName: "CodeVersionResource", + type: { + name: "Composite", + className: "CodeVersionResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "CodeVersion" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const DistributionConfiguration: msRest.CompositeMapper = { + serializedName: "DistributionConfiguration", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "distributionType", + clientName: "distributionType" + }, + uberParent: "DistributionConfiguration", + className: "DistributionConfiguration", + modelProperties: { + distributionType: { + required: true, + serializedName: "distributionType", + type: { + name: "String" + } + } + } + } +}; + +export const InputDataBinding: msRest.CompositeMapper = { + serializedName: "InputDataBinding", + 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: msRest.CompositeMapper = { + serializedName: "JobOutput", + type: { + name: "Composite", + className: "JobOutput", + modelProperties: { + datastoreId: { + readOnly: true, + serializedName: "datastoreId", + type: { + name: "String" + } + }, + path: { + readOnly: true, + serializedName: "path", + type: { + name: "String" + } + } + } + } +}; + +export const OutputDataBinding: msRest.CompositeMapper = { + serializedName: "OutputDataBinding", + 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 JobBase: msRest.CompositeMapper = { + serializedName: "JobBase", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "jobType", + clientName: "jobType" + }, + uberParent: "JobBase", + className: "JobBase", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + interactionEndpoints: { + readOnly: true, + serializedName: "interactionEndpoints", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "JobEndpoint" + } + } + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + jobType: { + required: true, + serializedName: "jobType", + type: { + name: "String" + } + } + } + } +}; + +export const CommandJob: msRest.CompositeMapper = { + serializedName: "Command", + type: { + name: "Composite", + polymorphicDiscriminator: JobBase.type.polymorphicDiscriminator, + uberParent: "JobBase", + className: "CommandJob", + modelProperties: { + ...JobBase.type.modelProperties, + codeId: { + serializedName: "codeId", + type: { + name: "String" + } + }, + command: { + required: true, + serializedName: "command", + constraints: { + MinLength: 1, + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + compute: { + required: true, + 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: { + readOnly: true, + serializedName: "output", + type: { + name: "Composite", + className: "JobOutput" + } + }, + outputDataBindings: { + serializedName: "outputDataBindings", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "OutputDataBinding" + } + } + } + }, + parameters: { + readOnly: true, + serializedName: "parameters", + type: { + name: "Dictionary", + value: { + type: { + name: "Object" + } + } + } + }, + priority: { + serializedName: "priority", + type: { + name: "Number" + } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } + }, + timeout: { + serializedName: "timeout", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const CsvExportSummary: msRest.CompositeMapper = { + serializedName: "CSV", + type: { + name: "Composite", + polymorphicDiscriminator: ExportSummary.type.polymorphicDiscriminator, + uberParent: "ExportSummary", + className: "CsvExportSummary", + modelProperties: { + ...ExportSummary.type.modelProperties, + containerName: { + readOnly: true, + serializedName: "containerName", + type: { + name: "String" + } + }, + snapshotPath: { + readOnly: true, + serializedName: "snapshotPath", + type: { + name: "String" + } + } + } + } +}; + +export const DataContainer: msRest.CompositeMapper = { + serializedName: "DataContainer", + type: { + name: "Composite", + className: "DataContainer", + 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 DataContainerResource: msRest.CompositeMapper = { + serializedName: "DataContainerResource", + type: { + name: "Composite", + className: "DataContainerResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "DataContainer" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const DataPathAssetReference: msRest.CompositeMapper = { + serializedName: "DataPath", + type: { + name: "Composite", + polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + uberParent: "AssetReferenceBase", + className: "DataPathAssetReference", + modelProperties: { + ...AssetReferenceBase.type.modelProperties, + datastoreId: { + serializedName: "datastoreId", + type: { + name: "String" + } + }, + path: { + serializedName: "path", + type: { + name: "String" + } + } + } + } +}; + +export const DataVersion: msRest.CompositeMapper = { + serializedName: "DataVersion", + type: { + name: "Composite", + className: "DataVersion", + modelProperties: { + datasetType: { + serializedName: "datasetType", + type: { + name: "String" + } + }, + datastoreId: { + serializedName: "datastoreId", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + isAnonymous: { + serializedName: "isAnonymous", + type: { + name: "Boolean" + } + }, + path: { + required: true, + serializedName: "path", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + 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 DataVersionResource: msRest.CompositeMapper = { + serializedName: "DataVersionResource", + type: { + name: "Composite", + className: "DataVersionResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "DataVersion" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const DatasetExportSummary: msRest.CompositeMapper = { + serializedName: "Dataset", + type: { + name: "Composite", + polymorphicDiscriminator: ExportSummary.type.polymorphicDiscriminator, + uberParent: "ExportSummary", + className: "DatasetExportSummary", + modelProperties: { + ...ExportSummary.type.modelProperties, + labeledAssetName: { + readOnly: true, + serializedName: "labeledAssetName", + type: { + name: "String" + } + } + } + } +}; + +export const LinkedInfo: msRest.CompositeMapper = { + serializedName: "LinkedInfo", + 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 DatastoreProperties: msRest.CompositeMapper = { + serializedName: "DatastoreProperties", + type: { + name: "Composite", + className: "DatastoreProperties", + modelProperties: { + contents: { + required: true, + serializedName: "contents", + type: { + name: "Composite", + className: "DatastoreContents" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + hasBeenValidated: { + readOnly: true, + serializedName: "hasBeenValidated", + type: { + name: "Boolean" + } + }, + isDefault: { + serializedName: "isDefault", + type: { + name: "Boolean" + } + }, + linkedInfo: { + serializedName: "linkedInfo", + type: { + 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 DatastorePropertiesResource: msRest.CompositeMapper = { + serializedName: "DatastorePropertiesResource", + type: { + name: "Composite", + className: "DatastorePropertiesResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "DatastoreProperties" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const DeploymentLogs: msRest.CompositeMapper = { + serializedName: "DeploymentLogs", + type: { + name: "Composite", + className: "DeploymentLogs", + modelProperties: { + content: { + serializedName: "content", + type: { + name: "String" + } + } + } + } +}; + +export const DeploymentLogsRequest: msRest.CompositeMapper = { + serializedName: "DeploymentLogsRequest", + type: { + name: "Composite", + className: "DeploymentLogsRequest", + modelProperties: { + containerType: { + serializedName: "containerType", + type: { + name: "String" + } + }, + tail: { + serializedName: "tail", + type: { + name: "Number" + } + } + } + } +}; + +export const DockerSpecification: msRest.CompositeMapper = { + serializedName: "DockerSpecification", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "dockerSpecificationType", + clientName: "dockerSpecificationType" + }, + uberParent: "DockerSpecification", + className: "DockerSpecification", + modelProperties: { + platform: { + serializedName: "platform", + type: { + name: "Composite", + className: "DockerImagePlatform" + } + }, + dockerSpecificationType: { + required: true, + serializedName: "dockerSpecificationType", + type: { + name: "String" + } + } + } + } +}; + +export const DockerBuild: msRest.CompositeMapper = { + serializedName: "Build", + type: { + name: "Composite", + polymorphicDiscriminator: DockerSpecification.type.polymorphicDiscriminator, + uberParent: "DockerSpecification", + className: "DockerBuild", + modelProperties: { + ...DockerSpecification.type.modelProperties, + context: { + serializedName: "context", + type: { + name: "String" + } + }, + dockerfile: { + required: true, + serializedName: "dockerfile", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const DockerImage: msRest.CompositeMapper = { + serializedName: "Image", + type: { + name: "Composite", + polymorphicDiscriminator: DockerSpecification.type.polymorphicDiscriminator, + uberParent: "DockerSpecification", + className: "DockerImage", + modelProperties: { + ...DockerSpecification.type.modelProperties, + dockerImageUri: { + required: true, + serializedName: "dockerImageUri", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const DockerImagePlatform: msRest.CompositeMapper = { + serializedName: "DockerImagePlatform", + type: { + name: "Composite", + className: "DockerImagePlatform", + modelProperties: { + operatingSystemType: { + serializedName: "operatingSystemType", + type: { + name: "String" + } + } + } + } +}; + +export const EndpointAuthToken: msRest.CompositeMapper = { + serializedName: "EndpointAuthToken", + 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 EnvironmentContainer: msRest.CompositeMapper = { + serializedName: "EnvironmentContainer", + 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 EnvironmentContainerResource: msRest.CompositeMapper = { + serializedName: "EnvironmentContainerResource", + type: { + name: "Composite", + className: "EnvironmentContainerResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "EnvironmentContainer" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const Route: msRest.CompositeMapper = { + serializedName: "Route", + type: { + name: "Composite", + className: "Route", + modelProperties: { + path: { + required: true, + serializedName: "path", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + port: { + required: true, + serializedName: "port", + type: { + name: "Number" + } + } + } + } +}; + +export const InferenceContainerProperties: msRest.CompositeMapper = { + serializedName: "InferenceContainerProperties", + 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 EnvironmentSpecificationVersion: msRest.CompositeMapper = { + serializedName: "EnvironmentSpecificationVersion", + 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: { + readOnly: true, + serializedName: "environmentSpecificationType", + 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 EnvironmentSpecificationVersionResource: msRest.CompositeMapper = { + serializedName: "EnvironmentSpecificationVersionResource", + type: { + name: "Composite", + className: "EnvironmentSpecificationVersionResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "EnvironmentSpecificationVersion" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const FlavorData: msRest.CompositeMapper = { + serializedName: "FlavorData", + type: { + name: "Composite", + className: "FlavorData", + modelProperties: { + data: { + serializedName: "data", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const GlusterFsContents: msRest.CompositeMapper = { + serializedName: "GlusterFs", + type: { + name: "Composite", + polymorphicDiscriminator: DatastoreContents.type.polymorphicDiscriminator, + uberParent: "DatastoreContents", + className: "GlusterFsContents", + modelProperties: { + ...DatastoreContents.type.modelProperties, + serverAddress: { + required: true, + serializedName: "serverAddress", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + volumeName: { + required: true, + serializedName: "volumeName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const IdAssetReference: msRest.CompositeMapper = { + serializedName: "Id", + type: { + name: "Composite", + polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + uberParent: "AssetReferenceBase", + className: "IdAssetReference", + modelProperties: { + ...AssetReferenceBase.type.modelProperties, + assetId: { + required: true, + serializedName: "assetId", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const JobEndpoint: msRest.CompositeMapper = { + serializedName: "JobEndpoint", + 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 JobBaseResource: msRest.CompositeMapper = { + serializedName: "JobBaseResource", + type: { + name: "Composite", + className: "JobBaseResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "JobBase" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const OnlineDeployment: msRest.CompositeMapper = { + serializedName: "OnlineDeployment", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "endpointComputeType", + clientName: "endpointComputeType" + }, + uberParent: "OnlineDeployment", + className: "OnlineDeployment", + modelProperties: { + appInsightsEnabled: { + serializedName: "appInsightsEnabled", + type: { + name: "Boolean" + } + }, + codeConfiguration: { + serializedName: "codeConfiguration", + type: { + name: "Composite", + className: "CodeConfiguration" + } + }, + description: { + serializedName: "description", + 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: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + requestSettings: { + serializedName: "requestSettings", + type: { + name: "Composite", + className: "OnlineRequestSettings" + } + }, + scaleSettings: { + serializedName: "scaleSettings", + type: { + name: "Composite", + className: "OnlineScaleSettings" + } + }, + endpointComputeType: { + required: true, + serializedName: "endpointComputeType", + type: { + name: "String" + } + } + } + } +}; + +export const K8sOnlineDeployment: msRest.CompositeMapper = { + serializedName: "K8S", + type: { + name: "Composite", + polymorphicDiscriminator: OnlineDeployment.type.polymorphicDiscriminator, + uberParent: "OnlineDeployment", + className: "K8sOnlineDeployment", + modelProperties: { + ...OnlineDeployment.type.modelProperties, + containerResourceRequirements: { + serializedName: "containerResourceRequirements", + type: { + name: "Composite", + className: "ContainerResourceRequirements" + } + } + } + } +}; + +export const LabelClass: msRest.CompositeMapper = { + serializedName: "LabelClass", + 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 LabelCategory: msRest.CompositeMapper = { + serializedName: "LabelCategory", + 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 LabelingDatasetConfiguration: msRest.CompositeMapper = { + serializedName: "LabelingDatasetConfiguration", + 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: msRest.CompositeMapper = { + serializedName: "LabelingJobInstructions", + type: { + name: "Composite", + className: "LabelingJobInstructions", + modelProperties: { + uri: { + serializedName: "uri", + type: { + name: "String" + } + } + } + } +}; + +export const LabelingJobMediaProperties: msRest.CompositeMapper = { + serializedName: "LabelingJobMediaProperties", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "mediaType", + clientName: "mediaType" + }, + uberParent: "LabelingJobMediaProperties", + className: "LabelingJobMediaProperties", + modelProperties: { + mediaType: { + required: true, + serializedName: "mediaType", + type: { + name: "String" + } + } + } + } +}; + +export const MLAssistConfiguration: msRest.CompositeMapper = { + serializedName: "MLAssistConfiguration", + 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: msRest.CompositeMapper = { + serializedName: "ProgressMetrics", + type: { + name: "Composite", + className: "ProgressMetrics", + modelProperties: { + completedDatapointCount: { + readOnly: true, + serializedName: "completedDatapointCount", + type: { + name: "Number" + } + }, + incrementalDatasetLastRefreshTime: { + readOnly: true, + serializedName: "incrementalDatasetLastRefreshTime", + type: { + name: "DateTime" + } + }, + skippedDatapointCount: { + readOnly: true, + serializedName: "skippedDatapointCount", + type: { + name: "Number" + } + }, + totalDatapointCount: { + readOnly: true, + serializedName: "totalDatapointCount", + type: { + name: "Number" + } + } + } + } +}; + +export const StatusMessage: msRest.CompositeMapper = { + serializedName: "StatusMessage", + type: { + name: "Composite", + className: "StatusMessage", + modelProperties: { + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + createdTimeUtc: { + readOnly: true, + serializedName: "createdTimeUtc", + type: { + name: "DateTime" + } + }, + level: { + readOnly: true, + serializedName: "level", + type: { + name: "String" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const LabelingJob: msRest.CompositeMapper = { + serializedName: "LabelingJob", + type: { + name: "Composite", + className: "LabelingJob", + modelProperties: { + createdTimeUtc: { + readOnly: true, + serializedName: "createdTimeUtc", + type: { + name: "DateTime" + } + }, + datasetConfiguration: { + serializedName: "datasetConfiguration", + type: { + name: "Composite", + className: "LabelingDatasetConfiguration" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + interactionEndpoints: { + readOnly: true, + serializedName: "interactionEndpoints", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "JobEndpoint" + } + } + } + }, + jobInstructions: { + serializedName: "jobInstructions", + type: { + name: "Composite", + className: "LabelingJobInstructions" + } + }, + jobType: { + required: true, + serializedName: "jobType", + 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: { + readOnly: true, + serializedName: "progressMetrics", + type: { + name: "Composite", + className: "ProgressMetrics" + } + }, + projectId: { + readOnly: true, + serializedName: "projectId", + type: { + name: "Uuid" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } + }, + statusMessages: { + readOnly: true, + serializedName: "statusMessages", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StatusMessage" + } + } + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const LabelingJobImageProperties: msRest.CompositeMapper = { + serializedName: "Image", + type: { + name: "Composite", + polymorphicDiscriminator: LabelingJobMediaProperties.type.polymorphicDiscriminator, + uberParent: "LabelingJobMediaProperties", + className: "LabelingJobImageProperties", + modelProperties: { + ...LabelingJobMediaProperties.type.modelProperties, + annotationType: { + serializedName: "annotationType", + type: { + name: "String" + } + } + } + } +}; + +export const LabelingJobResource: msRest.CompositeMapper = { + serializedName: "LabelingJobResource", + type: { + name: "Composite", + className: "LabelingJobResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "LabelingJob" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const LabelingJobTextProperties: msRest.CompositeMapper = { + serializedName: "Text", + type: { + name: "Composite", + polymorphicDiscriminator: LabelingJobMediaProperties.type.polymorphicDiscriminator, + uberParent: "LabelingJobMediaProperties", + className: "LabelingJobTextProperties", + modelProperties: { + ...LabelingJobMediaProperties.type.modelProperties, + annotationType: { + serializedName: "annotationType", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedIdentity: msRest.CompositeMapper = { + serializedName: "Managed", + type: { + name: "Composite", + polymorphicDiscriminator: IdentityConfiguration.type.polymorphicDiscriminator, + uberParent: "IdentityConfiguration", + className: "ManagedIdentity", + modelProperties: { + ...IdentityConfiguration.type.modelProperties, + clientId: { + serializedName: "clientId", + type: { + name: "Uuid" + } + }, + objectId: { + serializedName: "objectId", + type: { + name: "Uuid" + } + }, + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + } + } + } +}; + +export const ProbeSettings: msRest.CompositeMapper = { + serializedName: "ProbeSettings", + 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 ManagedOnlineDeployment: msRest.CompositeMapper = { + serializedName: "Managed", + type: { + name: "Composite", + polymorphicDiscriminator: OnlineDeployment.type.polymorphicDiscriminator, + uberParent: "OnlineDeployment", + className: "ManagedOnlineDeployment", + modelProperties: { + ...OnlineDeployment.type.modelProperties, + instanceType: { + serializedName: "instanceType", + type: { + name: "String" + } + }, + readinessProbe: { + serializedName: "readinessProbe", + type: { + name: "Composite", + className: "ProbeSettings" + } + } + } + } +}; + +export const ManualScaleSettings: msRest.CompositeMapper = { + serializedName: "Manual", + type: { + name: "Composite", + polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, + uberParent: "OnlineScaleSettings", + className: "ManualScaleSettings", + modelProperties: { + ...OnlineScaleSettings.type.modelProperties, + instanceCount: { + serializedName: "instanceCount", + type: { + name: "Number" + } + } + } + } +}; + +export const MedianStoppingPolicy: msRest.CompositeMapper = { + serializedName: "MedianStopping", + type: { + name: "Composite", + polymorphicDiscriminator: EarlyTerminationPolicy.type.polymorphicDiscriminator, + uberParent: "EarlyTerminationPolicy", + className: "MedianStoppingPolicy", + modelProperties: { + ...EarlyTerminationPolicy.type.modelProperties + } + } +}; + +export const ModelContainer: msRest.CompositeMapper = { + serializedName: "ModelContainer", + 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 ModelContainerResource: msRest.CompositeMapper = { + serializedName: "ModelContainerResource", + type: { + name: "Composite", + className: "ModelContainerResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "ModelContainer" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const ModelVersion: msRest.CompositeMapper = { + serializedName: "ModelVersion", + 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: { + required: true, + serializedName: "path", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + 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 ModelVersionResource: msRest.CompositeMapper = { + serializedName: "ModelVersionResource", + type: { + name: "Composite", + className: "ModelVersionResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "ModelVersion" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const Mpi: msRest.CompositeMapper = { + serializedName: "Mpi", + type: { + name: "Composite", + polymorphicDiscriminator: DistributionConfiguration.type.polymorphicDiscriminator, + uberParent: "DistributionConfiguration", + className: "Mpi", + modelProperties: { + ...DistributionConfiguration.type.modelProperties, + processCountPerInstance: { + serializedName: "processCountPerInstance", + type: { + name: "Number" + } + } + } + } +}; + +export const NoneDatastoreSecrets: msRest.CompositeMapper = { + serializedName: "None", + type: { + name: "Composite", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + uberParent: "DatastoreSecrets", + className: "NoneDatastoreSecrets", + modelProperties: { + ...DatastoreSecrets.type.modelProperties + } + } +}; + +export const NoneDatastoreCredentials: msRest.CompositeMapper = { + serializedName: "None", + type: { + name: "Composite", + polymorphicDiscriminator: DatastoreCredentials.type.polymorphicDiscriminator, + uberParent: "DatastoreCredentials", + className: "NoneDatastoreCredentials", + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "NoneDatastoreSecrets" + } + } + } + } +}; + +export const Objective: msRest.CompositeMapper = { + serializedName: "Objective", + type: { + name: "Composite", + className: "Objective", + modelProperties: { + goal: { + required: true, + serializedName: "goal", + type: { + name: "String" + } + }, + primaryMetric: { + required: true, + serializedName: "primaryMetric", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const OnlineRequestSettings: msRest.CompositeMapper = { + serializedName: "OnlineRequestSettings", + 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 OnlineDeploymentTrackedResource: msRest.CompositeMapper = { + serializedName: "OnlineDeploymentTrackedResource", + type: { + name: "Composite", + className: "OnlineDeploymentTrackedResource", + modelProperties: { + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "OnlineDeployment" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const OnlineEndpoint: msRest.CompositeMapper = { + serializedName: "OnlineEndpoint", + type: { + name: "Composite", + className: "OnlineEndpoint", + modelProperties: { + authMode: { + required: true, + serializedName: "authMode", + 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: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + scoringUri: { + readOnly: true, + serializedName: "scoringUri", + type: { + name: "String" + } + }, + swaggerUri: { + readOnly: true, + serializedName: "swaggerUri", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, + traffic: { + serializedName: "traffic", + type: { + name: "Dictionary", + value: { + type: { + name: "Number" + } + } + } + } + } + } +}; + +export const OnlineEndpointTrackedResource: msRest.CompositeMapper = { + serializedName: "OnlineEndpointTrackedResource", + type: { + name: "Composite", + className: "OnlineEndpointTrackedResource", + modelProperties: { + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "OnlineEndpoint" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const OutputPathAssetReference: msRest.CompositeMapper = { + serializedName: "OutputPath", + type: { + name: "Composite", + polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + uberParent: "AssetReferenceBase", + className: "OutputPathAssetReference", + modelProperties: { + ...AssetReferenceBase.type.modelProperties, + jobId: { + serializedName: "jobId", + type: { + name: "String" + } + }, + path: { + serializedName: "path", + type: { + name: "String" + } + } + } + } +}; + +export const PartialOnlineDeployment: msRest.CompositeMapper = { + serializedName: "PartialOnlineDeployment", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "endpointComputeType", + clientName: "endpointComputeType" + }, + uberParent: "PartialOnlineDeployment", + className: "PartialOnlineDeployment", + modelProperties: { + appInsightsEnabled: { + serializedName: "appInsightsEnabled", + type: { + name: "Boolean" + } + }, + livenessProbe: { + serializedName: "livenessProbe", + type: { + name: "Composite", + className: "ProbeSettings" + } + }, + requestSettings: { + serializedName: "requestSettings", + type: { + name: "Composite", + className: "OnlineRequestSettings" + } + }, + scaleSettings: { + serializedName: "scaleSettings", + type: { + name: "Composite", + className: "OnlineScaleSettings" + } + }, + endpointComputeType: { + required: true, + serializedName: "endpointComputeType", + type: { + name: "String" + } + } + } + } +}; + +export const PartialAksOnlineDeployment: msRest.CompositeMapper = { + serializedName: "K8S", + type: { + name: "Composite", + polymorphicDiscriminator: PartialOnlineDeployment.type.polymorphicDiscriminator, + uberParent: "PartialOnlineDeployment", + className: "PartialAksOnlineDeployment", + modelProperties: { + ...PartialOnlineDeployment.type.modelProperties, + containerResourceRequirements: { + serializedName: "containerResourceRequirements", + type: { + name: "Composite", + className: "ContainerResourceRequirements" + } + } + } + } +}; + +export const PartialBatchDeployment: msRest.CompositeMapper = { + serializedName: "PartialBatchDeployment", + type: { + name: "Composite", + className: "PartialBatchDeployment", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const PartialBatchDeploymentPartialTrackedResource: msRest.CompositeMapper = { + serializedName: "PartialBatchDeploymentPartialTrackedResource", + type: { + name: "Composite", + className: "PartialBatchDeploymentPartialTrackedResource", + 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: "PartialBatchDeployment" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PartialBatchEndpoint: msRest.CompositeMapper = { + serializedName: "PartialBatchEndpoint", + type: { + name: "Composite", + className: "PartialBatchEndpoint", + modelProperties: { + traffic: { + serializedName: "traffic", + type: { + name: "Dictionary", + value: { + type: { + name: "Number" + } + } + } + } + } + } +}; + +export const PartialBatchEndpointPartialTrackedResource: msRest.CompositeMapper = { + serializedName: "PartialBatchEndpointPartialTrackedResource", + type: { + name: "Composite", + className: "PartialBatchEndpointPartialTrackedResource", + 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: "PartialBatchEndpoint" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PartialManagedOnlineDeployment: msRest.CompositeMapper = { + serializedName: "Managed", + type: { + name: "Composite", + polymorphicDiscriminator: PartialOnlineDeployment.type.polymorphicDiscriminator, + uberParent: "PartialOnlineDeployment", + className: "PartialManagedOnlineDeployment", + modelProperties: { + ...PartialOnlineDeployment.type.modelProperties, + readinessProbe: { + serializedName: "readinessProbe", + type: { + name: "Composite", + className: "ProbeSettings" + } + } + } + } +}; + +export const PartialOnlineDeploymentPartialTrackedResource: msRest.CompositeMapper = { + serializedName: "PartialOnlineDeploymentPartialTrackedResource", + 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 PartialOnlineEndpoint: msRest.CompositeMapper = { + serializedName: "PartialOnlineEndpoint", + type: { + name: "Composite", + className: "PartialOnlineEndpoint", + modelProperties: { + traffic: { + serializedName: "traffic", + type: { + name: "Dictionary", + value: { + type: { + name: "Number" + } + } + } + } + } + } +}; + +export const PartialOnlineEndpointPartialTrackedResource: msRest.CompositeMapper = { + serializedName: "PartialOnlineEndpointPartialTrackedResource", + 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 PyTorch: msRest.CompositeMapper = { + serializedName: "PyTorch", + type: { + name: "Composite", + polymorphicDiscriminator: DistributionConfiguration.type.polymorphicDiscriminator, + uberParent: "DistributionConfiguration", + className: "PyTorch", + modelProperties: { + ...DistributionConfiguration.type.modelProperties, + processCount: { + serializedName: "processCount", + type: { + name: "Number" + } + } + } + } +}; + +export const RegenerateEndpointKeysRequest: msRest.CompositeMapper = { + serializedName: "RegenerateEndpointKeysRequest", + type: { + name: "Composite", + className: "RegenerateEndpointKeysRequest", + modelProperties: { + keyType: { + required: true, + serializedName: "keyType", + type: { + name: "String" + } + }, + keyValue: { + serializedName: "keyValue", + type: { + name: "String" + } + } + } + } +}; + +export const SasDatastoreSecrets: msRest.CompositeMapper = { + serializedName: "Sas", + type: { + name: "Composite", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + uberParent: "DatastoreSecrets", + className: "SasDatastoreSecrets", + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + sasToken: { + serializedName: "sasToken", + type: { + name: "String" + } + } + } + } +}; + +export const SasDatastoreCredentials: msRest.CompositeMapper = { + serializedName: "Sas", + type: { + name: "Composite", + polymorphicDiscriminator: DatastoreCredentials.type.polymorphicDiscriminator, + uberParent: "DatastoreCredentials", + className: "SasDatastoreCredentials", + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "SasDatastoreSecrets" + } + } + } + } +}; + +export const ServicePrincipalDatastoreSecrets: msRest.CompositeMapper = { + serializedName: "ServicePrincipal", + type: { + name: "Composite", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + uberParent: "DatastoreSecrets", + className: "ServicePrincipalDatastoreSecrets", + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + clientSecret: { + serializedName: "clientSecret", + type: { + name: "String" + } + } + } + } +}; + +export const ServicePrincipalDatastoreCredentials: msRest.CompositeMapper = { + serializedName: "ServicePrincipal", + type: { + name: "Composite", + polymorphicDiscriminator: DatastoreCredentials.type.polymorphicDiscriminator, + uberParent: "DatastoreCredentials", + className: "ServicePrincipalDatastoreCredentials", + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + authorityUrl: { + serializedName: "authorityUrl", + type: { + name: "String" + } + }, + clientId: { + required: true, + serializedName: "clientId", + type: { + name: "Uuid" + } + }, + resourceUri: { + serializedName: "resourceUri", + type: { + name: "String" + } + }, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "ServicePrincipalDatastoreSecrets" + } + }, + tenantId: { + required: true, + serializedName: "tenantId", + type: { + name: "Uuid" + } + } + } + } +}; + +export const SqlAdminDatastoreSecrets: msRest.CompositeMapper = { + serializedName: "SqlAdmin", + type: { + name: "Composite", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + uberParent: "DatastoreSecrets", + className: "SqlAdminDatastoreSecrets", + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + password: { + serializedName: "password", + type: { + name: "String" + } + } + } + } +}; + +export const SqlAdminDatastoreCredentials: msRest.CompositeMapper = { + serializedName: "SqlAdmin", + type: { + name: "Composite", + polymorphicDiscriminator: DatastoreCredentials.type.polymorphicDiscriminator, + uberParent: "DatastoreCredentials", + className: "SqlAdminDatastoreCredentials", + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "SqlAdminDatastoreSecrets" + } + }, + userId: { + required: true, + serializedName: "userId", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const TrialComponent: msRest.CompositeMapper = { + serializedName: "TrialComponent", + type: { + name: "Composite", + className: "TrialComponent", + modelProperties: { + codeId: { + serializedName: "codeId", + type: { + name: "String" + } + }, + command: { + required: true, + serializedName: "command", + constraints: { + MinLength: 1, + Pattern: /[a-zA-Z0-9_]/ + }, + 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 SweepJob: msRest.CompositeMapper = { + serializedName: "Sweep", + type: { + name: "Composite", + polymorphicDiscriminator: JobBase.type.polymorphicDiscriminator, + uberParent: "JobBase", + className: "SweepJob", + modelProperties: { + ...JobBase.type.modelProperties, + algorithm: { + required: true, + serializedName: "algorithm", + type: { + name: "String" + } + }, + compute: { + required: true, + 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: { + required: true, + serializedName: "objective", + type: { + name: "Composite", + className: "Objective" + } + }, + output: { + readOnly: true, + serializedName: "output", + type: { + name: "Composite", + className: "JobOutput" + } + }, + priority: { + serializedName: "priority", + type: { + name: "Number" + } + }, + searchSpace: { + required: true, + serializedName: "searchSpace", + type: { + name: "Dictionary", + value: { + type: { + name: "Object" + } + } + } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } + }, + timeout: { + serializedName: "timeout", + type: { + name: "TimeSpan" + } + }, + trial: { + serializedName: "trial", + type: { + name: "Composite", + className: "TrialComponent" + } + } + } + } +}; + +export const TensorFlow: msRest.CompositeMapper = { + serializedName: "TensorFlow", + type: { + name: "Composite", + polymorphicDiscriminator: DistributionConfiguration.type.polymorphicDiscriminator, + uberParent: "DistributionConfiguration", + className: "TensorFlow", + modelProperties: { + ...DistributionConfiguration.type.modelProperties, + parameterServerCount: { + serializedName: "parameterServerCount", + type: { + name: "Number" + } + }, + workerCount: { + serializedName: "workerCount", + type: { + name: "Number" + } + } + } + } +}; + +export const TruncationSelectionPolicy: msRest.CompositeMapper = { + serializedName: "TruncationSelection", + type: { + name: "Composite", + polymorphicDiscriminator: EarlyTerminationPolicy.type.polymorphicDiscriminator, + uberParent: "EarlyTerminationPolicy", + className: "TruncationSelectionPolicy", + modelProperties: { + ...EarlyTerminationPolicy.type.modelProperties, + truncationPercentage: { + serializedName: "truncationPercentage", + type: { + name: "Number" + } + } + } + } +}; + +export const AmlUserFeature: msRest.CompositeMapper = { + serializedName: "AmlUserFeature", + 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 SKUCapability: msRest.CompositeMapper = { + serializedName: "SKUCapability", + type: { + name: "Composite", + className: "SKUCapability", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceSkuZoneDetails: msRest.CompositeMapper = { + serializedName: "ResourceSkuZoneDetails", + type: { + name: "Composite", + className: "ResourceSkuZoneDetails", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + capabilities: { + readOnly: true, + serializedName: "capabilities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SKUCapability" + } + } + } + } + } + } +}; + +export const ResourceSkuLocationInfo: msRest.CompositeMapper = { + serializedName: "ResourceSkuLocationInfo", + type: { + name: "Composite", + className: "ResourceSkuLocationInfo", + modelProperties: { + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + zones: { + readOnly: true, + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + zoneDetails: { + readOnly: true, + serializedName: "zoneDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuZoneDetails" + } + } + } + } + } + } +}; + +export const Restriction: msRest.CompositeMapper = { + serializedName: "Restriction", + type: { + name: "Composite", + className: "Restriction", + modelProperties: { + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + values: { + readOnly: true, + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + reasonCode: { + serializedName: "reasonCode", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceSku: msRest.CompositeMapper = { + serializedName: "WorkspaceSku", + type: { + name: "Composite", + className: "WorkspaceSku", + modelProperties: { + locations: { + readOnly: true, + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + locationInfo: { + readOnly: true, + serializedName: "locationInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuLocationInfo" + } + } + } + }, + tier: { + readOnly: true, + serializedName: "tier", + type: { + name: "String" + } + }, + resourceType: { + readOnly: true, + serializedName: "resourceType", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + capabilities: { + readOnly: true, + serializedName: "capabilities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SKUCapability" + } + } + } + }, + restrictions: { + serializedName: "restrictions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Restriction" + } + } + } + } + } + } +}; + +export const ComputeCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "compute-createorupdate-headers", + type: { + name: "Composite", + className: "ComputeCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeDeleteHeaders: msRest.CompositeMapper = { + serializedName: "compute-delete-headers", + type: { + name: "Composite", + className: "ComputeDeleteHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const JobsDeleteHeaders: msRest.CompositeMapper = { + serializedName: "jobs-delete-headers", + type: { + name: "Composite", + className: "JobsDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const LabelingJobsCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "labelingjobs-createorupdate-headers", + type: { + name: "Composite", + className: "LabelingJobsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const LabelingJobsExportLabelsHeaders: msRest.CompositeMapper = { + serializedName: "labelingjobs-exportlabels-headers", + type: { + name: "Composite", + className: "LabelingJobsExportLabelsHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const LabelingJobsResumeHeaders: msRest.CompositeMapper = { + serializedName: "labelingjobs-resume-headers", + type: { + name: "Composite", + className: "LabelingJobsResumeHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const OnlineEndpointsDeleteHeaders: msRest.CompositeMapper = { + serializedName: "onlineendpoints-delete-headers", + type: { + name: "Composite", + className: "OnlineEndpointsDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const OnlineEndpointsUpdateHeaders: msRest.CompositeMapper = { + serializedName: "onlineendpoints-update-headers", + type: { + name: "Composite", + className: "OnlineEndpointsUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + locationHeader: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const OnlineEndpointsCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "onlineendpoints-createorupdate-headers", + type: { + name: "Composite", + className: "OnlineEndpointsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const OnlineDeploymentsDeleteHeaders: msRest.CompositeMapper = { + serializedName: "onlinedeployments-delete-headers", + type: { + name: "Composite", + className: "OnlineDeploymentsDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const OnlineDeploymentsUpdateHeaders: msRest.CompositeMapper = { + serializedName: "onlinedeployments-update-headers", + type: { + name: "Composite", + className: "OnlineDeploymentsUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + locationHeader: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const OnlineDeploymentsCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "onlinedeployments-createorupdate-headers", + type: { + name: "Composite", + className: "OnlineDeploymentsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const OnlineEndpointsRegenerateKeysHeaders: msRest.CompositeMapper = { + serializedName: "onlineendpoints-regeneratekeys-headers", + type: { + name: "Composite", + className: "OnlineEndpointsRegenerateKeysHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const OperationListResult: msRest.CompositeMapper = { + serializedName: "OperationListResult", + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "Operation" + } + } + } + } + } + } +}; + +export const WorkspaceListResult: msRest.CompositeMapper = { + serializedName: "WorkspaceListResult", + type: { + name: "Composite", + className: "WorkspaceListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Workspace" } } } }, - zoneDetails: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ListUsagesResult: msRest.CompositeMapper = { + serializedName: "ListUsagesResult", + type: { + name: "Composite", + className: "ListUsagesResult", + modelProperties: { + value: { readOnly: true, - serializedName: "zoneDetails", + serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResourceSkuZoneDetails" + className: "Usage" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const Restriction: msRest.CompositeMapper = { - serializedName: "Restriction", +export const ListWorkspaceQuotas: msRest.CompositeMapper = { + serializedName: "ListWorkspaceQuotas", type: { name: "Composite", - className: "Restriction", + className: "ListWorkspaceQuotas", modelProperties: { - type: { + value: { readOnly: true, - serializedName: "type", + serializedName: "", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceQuota" + } + } } }, - values: { + nextLink: { readOnly: true, - serializedName: "values", + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PaginatedComputeResourcesList: msRest.CompositeMapper = { + serializedName: "PaginatedComputeResourcesList", + type: { + name: "Composite", + className: "PaginatedComputeResourcesList", + modelProperties: { + value: { + serializedName: "", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ComputeResource" } } } }, - reasonCode: { - serializedName: "reasonCode", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -2738,79 +9009,152 @@ export const Restriction: msRest.CompositeMapper = { } }; -export const SkuSettings: msRest.CompositeMapper = { - serializedName: "SkuSettings", +export const AmlComputeNodesInformation: msRest.CompositeMapper = { + serializedName: "AmlCompute", type: { name: "Composite", - className: "SkuSettings", + polymorphicDiscriminator: ComputeNodesInformation.type.polymorphicDiscriminator, + uberParent: "ComputeNodesInformation", + className: "AmlComputeNodesInformation", modelProperties: { - locations: { + ...ComputeNodesInformation.type.modelProperties, + nodes: { readOnly: true, - serializedName: "locations", + serializedName: "", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "AmlComputeNodeInformation" } } } - }, - locationInfo: { - readOnly: true, - serializedName: "locationInfo", + } + } + } +}; + +export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnectionListResult", + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResourceSkuLocationInfo" + className: "PrivateEndpointConnection" } } } - }, - tier: { - readOnly: true, - serializedName: "tier", + } + } + } +}; + +export const PaginatedWorkspaceConnectionsList: msRest.CompositeMapper = { + serializedName: "PaginatedWorkspaceConnectionsList", + type: { + name: "Composite", + className: "PaginatedWorkspaceConnectionsList", + modelProperties: { + value: { + serializedName: "", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceConnection" + } + } } - }, - resourceType: { - readOnly: true, - serializedName: "resourceType", + } + } + } +}; + +export const BatchEndpointTrackedResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "BatchEndpointTrackedResourceArmPaginatedResult", + type: { + name: "Composite", + className: "BatchEndpointTrackedResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BatchEndpointTrackedResource" + } + } + } + } + } + } +}; + +export const BatchDeploymentTrackedResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "BatchDeploymentTrackedResourceArmPaginatedResult", + type: { + name: "Composite", + className: "BatchDeploymentTrackedResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - capabilities: { - readOnly: true, - serializedName: "capabilities", + value: { + serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SKUCapability" + className: "BatchDeploymentTrackedResource" } } } + } + } + } +}; + +export const CodeContainerResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "CodeContainerResourceArmPaginatedResult", + type: { + name: "Composite", + className: "CodeContainerResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } }, - restrictions: { - serializedName: "restrictions", + value: { + serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Restriction" + className: "CodeContainerResource" } } } @@ -2819,28 +9163,26 @@ export const SkuSettings: msRest.CompositeMapper = { } }; -export const WorkspaceSku: msRest.CompositeMapper = { - serializedName: "WorkspaceSku", +export const CodeVersionResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "CodeVersionResourceArmPaginatedResult", type: { name: "Composite", - className: "WorkspaceSku", + className: "CodeVersionResourceArmPaginatedResult", modelProperties: { - resourceType: { - readOnly: true, - serializedName: "resourceType", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - skus: { - readOnly: true, - serializedName: "skus", + value: { + serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SkuSettings" + className: "CodeVersionResource" } } } @@ -2849,39 +9191,26 @@ export const WorkspaceSku: msRest.CompositeMapper = { } }; -export const PrivateLinkResource: msRest.CompositeMapper = { - serializedName: "PrivateLinkResource", +export const DataContainerResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "DataContainerResourceArmPaginatedResult", type: { name: "Composite", - className: "PrivateLinkResource", + className: "DataContainerResourceArmPaginatedResult", modelProperties: { - ...Resource.type.modelProperties, - groupId: { - readOnly: true, - serializedName: "properties.groupId", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - requiredMembers: { - readOnly: true, - serializedName: "properties.requiredMembers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", + value: { + serializedName: "", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "DataContainerResource" } } } @@ -2890,20 +9219,26 @@ export const PrivateLinkResource: msRest.CompositeMapper = { } }; -export const PrivateLinkResourceListResult: msRest.CompositeMapper = { - serializedName: "PrivateLinkResourceListResult", +export const DataVersionResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "DataVersionResourceArmPaginatedResult", type: { name: "Composite", - className: "PrivateLinkResourceListResult", + className: "DataVersionResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { - serializedName: "value", + serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateLinkResource" + className: "DataVersionResource" } } } @@ -2912,145 +9247,102 @@ export const PrivateLinkResourceListResult: msRest.CompositeMapper = { } }; -export const WorkspaceConnection: msRest.CompositeMapper = { - serializedName: "WorkspaceConnection", +export const DatastorePropertiesResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "DatastorePropertiesResourceArmPaginatedResult", type: { name: "Composite", - className: "WorkspaceConnection", + className: "DatastorePropertiesResourceArmPaginatedResult", modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - category: { - serializedName: "properties.category", - type: { - name: "String" - } - }, - target: { - serializedName: "properties.target", - type: { - name: "String" - } - }, - authType: { - serializedName: "properties.authType", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, value: { - serializedName: "properties.value", + serializedName: "", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatastorePropertiesResource" + } + } } } } } }; -export const WorkspaceConnectionDto: msRest.CompositeMapper = { - serializedName: "WorkspaceConnectionDto", +export const EnvironmentContainerResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "EnvironmentContainerResourceArmPaginatedResult", type: { name: "Composite", - className: "WorkspaceConnectionDto", + className: "EnvironmentContainerResourceArmPaginatedResult", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - category: { - serializedName: "properties.category", - type: { - name: "String" - } - }, - target: { - serializedName: "properties.target", - type: { - name: "String" - } - }, - authType: { - serializedName: "properties.authType", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, value: { - serializedName: "properties.value", + serializedName: "", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentContainerResource" + } + } } } } } }; -export const MachineLearningComputeCreateOrUpdateHeaders: msRest.CompositeMapper = { - serializedName: "machinelearningcompute-createorupdate-headers", +export const EnvironmentSpecificationVersionResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "EnvironmentSpecificationVersionResourceArmPaginatedResult", type: { name: "Composite", - className: "MachineLearningComputeCreateOrUpdateHeaders", + className: "EnvironmentSpecificationVersionResourceArmPaginatedResult", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + nextLink: { + serializedName: "nextLink", type: { name: "String" } + }, + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentSpecificationVersionResource" + } + } + } } } } }; -export const MachineLearningComputeDeleteHeaders: msRest.CompositeMapper = { - serializedName: "machinelearningcompute-delete-headers", +export const JobBaseResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "JobBaseResourceArmPaginatedResult", type: { name: "Composite", - className: "MachineLearningComputeDeleteHeaders", + className: "JobBaseResourceArmPaginatedResult", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const OperationListResult: msRest.CompositeMapper = { - serializedName: "OperationListResult", - type: { - name: "Composite", - className: "OperationListResult", - modelProperties: { value: { serializedName: "", type: { @@ -3058,7 +9350,7 @@ export const OperationListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" + className: "JobBaseResource" } } } @@ -3067,12 +9359,18 @@ export const OperationListResult: msRest.CompositeMapper = { } }; -export const WorkspaceListResult: msRest.CompositeMapper = { - serializedName: "WorkspaceListResult", +export const LabelingJobResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "LabelingJobResourceArmPaginatedResult", type: { name: "Composite", - className: "WorkspaceListResult", + className: "LabelingJobResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "", type: { @@ -3080,117 +9378,111 @@ export const WorkspaceListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Workspace" + className: "LabelingJobResource" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const ListAmlUserFeatureResult: msRest.CompositeMapper = { - serializedName: "ListAmlUserFeatureResult", +export const ModelContainerResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "ModelContainerResourceArmPaginatedResult", type: { name: "Composite", - className: "ListAmlUserFeatureResult", + className: "ModelContainerResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { - readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AmlUserFeature" + className: "ModelContainerResource" } } } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const ListUsagesResult: msRest.CompositeMapper = { - serializedName: "ListUsagesResult", +export const ModelVersionResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "ModelVersionResourceArmPaginatedResult", type: { name: "Composite", - className: "ListUsagesResult", + className: "ModelVersionResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { - readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Usage" + className: "ModelVersionResource" } } } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const ListWorkspaceQuotas: msRest.CompositeMapper = { - serializedName: "ListWorkspaceQuotas", +export const OnlineEndpointTrackedResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "OnlineEndpointTrackedResourceArmPaginatedResult", type: { name: "Composite", - className: "ListWorkspaceQuotas", + className: "OnlineEndpointTrackedResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { - readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResourceQuota" + className: "OnlineEndpointTrackedResource" } } } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const PaginatedWorkspaceConnectionsList: msRest.CompositeMapper = { - serializedName: "PaginatedWorkspaceConnectionsList", +export const OnlineDeploymentTrackedResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "OnlineDeploymentTrackedResourceArmPaginatedResult", type: { name: "Composite", - className: "PaginatedWorkspaceConnectionsList", + className: "OnlineDeploymentTrackedResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "", type: { @@ -3198,7 +9490,7 @@ export const PaginatedWorkspaceConnectionsList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "WorkspaceConnection" + className: "OnlineDeploymentTrackedResource" } } } @@ -3207,25 +9499,27 @@ export const PaginatedWorkspaceConnectionsList: msRest.CompositeMapper = { } }; -export const PaginatedComputeResourcesList: msRest.CompositeMapper = { - serializedName: "PaginatedComputeResourcesList", +export const ListAmlUserFeatureResult: msRest.CompositeMapper = { + serializedName: "ListAmlUserFeatureResult", type: { name: "Composite", - className: "PaginatedComputeResourcesList", + className: "ListAmlUserFeatureResult", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ComputeResource" + className: "AmlUserFeature" } } } }, nextLink: { + readOnly: true, serializedName: "nextLink", type: { name: "String" @@ -3274,10 +9568,68 @@ export const discriminators = { 'Compute.Databricks' : Databricks, 'Compute.DataLakeAnalytics' : DataLakeAnalytics, 'ComputeNodesInformation' : ComputeNodesInformation, - 'ComputeNodesInformation.AmlCompute' : AmlComputeNodesInformation, 'ComputeSecrets' : ComputeSecrets, 'ComputeSecrets.AKS' : AksComputeSecrets, 'ComputeSecrets.VirtualMachine' : VirtualMachineSecrets, - 'ComputeSecrets.Databricks' : DatabricksComputeSecrets + 'ComputeSecrets.Databricks' : DatabricksComputeSecrets, + 'DatastoreSecrets.AccountKey' : AccountKeyDatastoreSecrets, + 'DatastoreCredentials.AccountKey' : AccountKeyDatastoreCredentials, + 'IdentityConfiguration.AMLToken' : AmlToken, + 'AssetReferenceBase' : AssetReferenceBase, + 'OnlineScaleSettings.Auto' : AutoScaleSettings, + 'DatastoreCredentials' : DatastoreCredentials, + 'DatastoreContents.AzureBlob' : AzureBlobContents, + 'DatastoreContents.AzureDataLakeGen1' : AzureDataLakeGen1Contents, + 'DatastoreContents.AzureDataLakeGen2' : AzureDataLakeGen2Contents, + 'DatastoreContents.AzureFile' : AzureFileContents, + 'DatastoreContents.AzurePostgreSql' : AzurePostgreSqlContents, + 'DatastoreContents.AzureSqlDatabase' : AzureSqlDatabaseContents, + 'EarlyTerminationPolicy.Bandit' : BanditPolicy, + 'DatastoreSecrets.Certificate' : CertificateDatastoreSecrets, + 'DatastoreCredentials.Certificate' : CertificateDatastoreCredentials, + 'ExportSummary.Coco' : CocoExportSummary, + 'DistributionConfiguration' : DistributionConfiguration, + 'IdentityConfiguration' : IdentityConfiguration, + 'JobBase.Command' : CommandJob, + 'ExportSummary.CSV' : CsvExportSummary, + 'AssetReferenceBase.DataPath' : DataPathAssetReference, + 'ExportSummary.Dataset' : DatasetExportSummary, + 'DatastoreContents' : DatastoreContents, + 'DatastoreSecrets' : DatastoreSecrets, + 'DockerSpecification.Build' : DockerBuild, + 'DockerSpecification.Image' : DockerImage, + 'DockerSpecification' : DockerSpecification, + 'EarlyTerminationPolicy' : EarlyTerminationPolicy, + 'ExportSummary' : ExportSummary, + 'DatastoreContents.GlusterFs' : GlusterFsContents, + 'AssetReferenceBase.Id' : IdAssetReference, + 'JobBase' : JobBase, + 'OnlineDeployment.K8S' : K8sOnlineDeployment, + 'LabelingJobMediaProperties' : LabelingJobMediaProperties, + 'LabelingJobMediaProperties.Image' : LabelingJobImageProperties, + 'LabelingJobMediaProperties.Text' : LabelingJobTextProperties, + 'IdentityConfiguration.Managed' : ManagedIdentity, + 'OnlineDeployment.Managed' : ManagedOnlineDeployment, + 'OnlineScaleSettings.Manual' : ManualScaleSettings, + 'EarlyTerminationPolicy.MedianStopping' : MedianStoppingPolicy, + 'DistributionConfiguration.Mpi' : Mpi, + 'DatastoreSecrets.None' : NoneDatastoreSecrets, + 'DatastoreCredentials.None' : NoneDatastoreCredentials, + 'OnlineScaleSettings' : OnlineScaleSettings, + 'OnlineDeployment' : OnlineDeployment, + 'AssetReferenceBase.OutputPath' : OutputPathAssetReference, + 'PartialOnlineDeployment.K8S' : PartialAksOnlineDeployment, + 'PartialOnlineDeployment.Managed' : PartialManagedOnlineDeployment, + 'PartialOnlineDeployment' : PartialOnlineDeployment, + 'DistributionConfiguration.PyTorch' : PyTorch, + 'DatastoreSecrets.Sas' : SasDatastoreSecrets, + 'DatastoreCredentials.Sas' : SasDatastoreCredentials, + 'DatastoreSecrets.ServicePrincipal' : ServicePrincipalDatastoreSecrets, + 'DatastoreCredentials.ServicePrincipal' : ServicePrincipalDatastoreCredentials, + 'DatastoreSecrets.SqlAdmin' : SqlAdminDatastoreSecrets, + 'DatastoreCredentials.SqlAdmin' : SqlAdminDatastoreCredentials, + 'JobBase.Sweep' : SweepJob, + 'DistributionConfiguration.TensorFlow' : TensorFlow, + 'EarlyTerminationPolicy.TruncationSelection' : TruncationSelectionPolicy }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/modelContainersMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/modelContainersMappers.ts new file mode 100644 index 000000000000..32ae92533b0b --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/modelContainersMappers.ts @@ -0,0 +1,187 @@ +/* + * 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, + AccountKeyDatastoreCredentials, + AccountKeyDatastoreSecrets, + AKS, + AksNetworkingConfiguration, + AKSProperties, + AmlCompute, + AmlComputeProperties, + AmlToken, + AssetReferenceBase, + AssignedUser, + AutoScaleSettings, + AzureBlobContents, + AzureDataLakeGen1Contents, + AzureDataLakeGen2Contents, + AzureEntityResource, + AzureFileContents, + AzurePostgreSqlContents, + AzureSqlDatabaseContents, + BanditPolicy, + BaseResource, + BatchDeployment, + BatchDeploymentTrackedResource, + BatchEndpoint, + BatchEndpointTrackedResource, + BatchOutputConfiguration, + BatchRetrySettings, + CertificateDatastoreCredentials, + CertificateDatastoreSecrets, + CodeConfiguration, + CodeContainer, + CodeContainerResource, + CodeVersion, + CodeVersionResource, + CommandJob, + Compute, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeResource, + ComputeSchedules, + ComputeStartStopSchedule, + ContainerResourceRequirements, + CosmosDbSettings, + Cron, + Databricks, + DatabricksProperties, + DataContainer, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatastoreContents, + DatastoreCredentials, + DatastoreProperties, + DatastorePropertiesResource, + DatastoreSecrets, + DataVersion, + DataVersionResource, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicy, + EncryptionProperty, + EndpointAuthKeys, + EnvironmentContainer, + EnvironmentContainerResource, + EnvironmentSpecificationVersion, + EnvironmentSpecificationVersionResource, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + FlavorData, + GlusterFsContents, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + IdentityForCmk, + InferenceContainerProperties, + InputDataBinding, + JobBase, + JobBaseResource, + JobEndpoint, + JobOutput, + K8sOnlineDeployment, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJob, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + ManagedIdentity, + ManagedOnlineDeployment, + ManualScaleSettings, + MedianStoppingPolicy, + MLAssistConfiguration, + ModelContainer, + ModelContainerResource, + ModelContainerResourceArmPaginatedResult, + ModelVersion, + ModelVersionResource, + Mpi, + NodeStateCounts, + NoneDatastoreCredentials, + NoneDatastoreSecrets, + NotebookPreparationError, + NotebookResourceInfo, + Objective, + OnlineDeployment, + OnlineDeploymentTrackedResource, + OnlineEndpoint, + OnlineEndpointTrackedResource, + OnlineRequestSettings, + OnlineScaleSettings, + OutputDataBinding, + OutputPathAssetReference, + PersonalComputeInstanceSettings, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProbeSettings, + ProgressMetrics, + ProxyResource, + PyTorch, + Recurrence, + RecurrenceSchedule, + Resource, + ResourceId, + ResourceIdentity, + Route, + SasDatastoreCredentials, + SasDatastoreSecrets, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServicePrincipalDatastoreCredentials, + ServicePrincipalDatastoreSecrets, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SqlAdminDatastoreCredentials, + SqlAdminDatastoreSecrets, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TrackedResource, + TrialComponent, + TruncationSelectionPolicy, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/modelVersionsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/modelVersionsMappers.ts new file mode 100644 index 000000000000..1a73833026d7 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/modelVersionsMappers.ts @@ -0,0 +1,187 @@ +/* + * 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, + AccountKeyDatastoreCredentials, + AccountKeyDatastoreSecrets, + AKS, + AksNetworkingConfiguration, + AKSProperties, + AmlCompute, + AmlComputeProperties, + AmlToken, + AssetReferenceBase, + AssignedUser, + AutoScaleSettings, + AzureBlobContents, + AzureDataLakeGen1Contents, + AzureDataLakeGen2Contents, + AzureEntityResource, + AzureFileContents, + AzurePostgreSqlContents, + AzureSqlDatabaseContents, + BanditPolicy, + BaseResource, + BatchDeployment, + BatchDeploymentTrackedResource, + BatchEndpoint, + BatchEndpointTrackedResource, + BatchOutputConfiguration, + BatchRetrySettings, + CertificateDatastoreCredentials, + CertificateDatastoreSecrets, + CodeConfiguration, + CodeContainer, + CodeContainerResource, + CodeVersion, + CodeVersionResource, + CommandJob, + Compute, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeResource, + ComputeSchedules, + ComputeStartStopSchedule, + ContainerResourceRequirements, + CosmosDbSettings, + Cron, + Databricks, + DatabricksProperties, + DataContainer, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatastoreContents, + DatastoreCredentials, + DatastoreProperties, + DatastorePropertiesResource, + DatastoreSecrets, + DataVersion, + DataVersionResource, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicy, + EncryptionProperty, + EndpointAuthKeys, + EnvironmentContainer, + EnvironmentContainerResource, + EnvironmentSpecificationVersion, + EnvironmentSpecificationVersionResource, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + FlavorData, + GlusterFsContents, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + IdentityForCmk, + InferenceContainerProperties, + InputDataBinding, + JobBase, + JobBaseResource, + JobEndpoint, + JobOutput, + K8sOnlineDeployment, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJob, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + ManagedIdentity, + ManagedOnlineDeployment, + ManualScaleSettings, + MedianStoppingPolicy, + MLAssistConfiguration, + ModelContainer, + ModelContainerResource, + ModelVersion, + ModelVersionResource, + ModelVersionResourceArmPaginatedResult, + Mpi, + NodeStateCounts, + NoneDatastoreCredentials, + NoneDatastoreSecrets, + NotebookPreparationError, + NotebookResourceInfo, + Objective, + OnlineDeployment, + OnlineDeploymentTrackedResource, + OnlineEndpoint, + OnlineEndpointTrackedResource, + OnlineRequestSettings, + OnlineScaleSettings, + OutputDataBinding, + OutputPathAssetReference, + PersonalComputeInstanceSettings, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProbeSettings, + ProgressMetrics, + ProxyResource, + PyTorch, + Recurrence, + RecurrenceSchedule, + Resource, + ResourceId, + ResourceIdentity, + Route, + SasDatastoreCredentials, + SasDatastoreSecrets, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServicePrincipalDatastoreCredentials, + ServicePrincipalDatastoreSecrets, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SqlAdminDatastoreCredentials, + SqlAdminDatastoreSecrets, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TrackedResource, + TrialComponent, + TruncationSelectionPolicy, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/onlineDeploymentsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/onlineDeploymentsMappers.ts new file mode 100644 index 000000000000..b3d7b8c9ef93 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/onlineDeploymentsMappers.ts @@ -0,0 +1,196 @@ +/* + * 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, + AccountKeyDatastoreCredentials, + AccountKeyDatastoreSecrets, + AKS, + AksNetworkingConfiguration, + AKSProperties, + AmlCompute, + AmlComputeProperties, + AmlToken, + AssetReferenceBase, + AssignedUser, + AutoScaleSettings, + AzureBlobContents, + AzureDataLakeGen1Contents, + AzureDataLakeGen2Contents, + AzureEntityResource, + AzureFileContents, + AzurePostgreSqlContents, + AzureSqlDatabaseContents, + BanditPolicy, + BaseResource, + BatchDeployment, + BatchDeploymentTrackedResource, + BatchEndpoint, + BatchEndpointTrackedResource, + BatchOutputConfiguration, + BatchRetrySettings, + CertificateDatastoreCredentials, + CertificateDatastoreSecrets, + CodeConfiguration, + CodeContainer, + CodeContainerResource, + CodeVersion, + CodeVersionResource, + CommandJob, + Compute, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeResource, + ComputeSchedules, + ComputeStartStopSchedule, + ContainerResourceRequirements, + CosmosDbSettings, + Cron, + Databricks, + DatabricksProperties, + DataContainer, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatastoreContents, + DatastoreCredentials, + DatastoreProperties, + DatastorePropertiesResource, + DatastoreSecrets, + DataVersion, + DataVersionResource, + DeploymentLogs, + DeploymentLogsRequest, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicy, + EncryptionProperty, + EndpointAuthKeys, + EnvironmentContainer, + EnvironmentContainerResource, + EnvironmentSpecificationVersion, + EnvironmentSpecificationVersionResource, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + FlavorData, + GlusterFsContents, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + IdentityForCmk, + InferenceContainerProperties, + InputDataBinding, + JobBase, + JobBaseResource, + JobEndpoint, + JobOutput, + K8sOnlineDeployment, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJob, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + ManagedIdentity, + ManagedOnlineDeployment, + ManualScaleSettings, + MedianStoppingPolicy, + MLAssistConfiguration, + ModelContainer, + ModelContainerResource, + ModelVersion, + ModelVersionResource, + Mpi, + NodeStateCounts, + NoneDatastoreCredentials, + NoneDatastoreSecrets, + NotebookPreparationError, + NotebookResourceInfo, + Objective, + OnlineDeployment, + OnlineDeploymentsCreateOrUpdateHeaders, + OnlineDeploymentsDeleteHeaders, + OnlineDeploymentsUpdateHeaders, + OnlineDeploymentTrackedResource, + OnlineDeploymentTrackedResourceArmPaginatedResult, + OnlineEndpoint, + OnlineEndpointTrackedResource, + OnlineRequestSettings, + OnlineScaleSettings, + OutputDataBinding, + OutputPathAssetReference, + PartialAksOnlineDeployment, + PartialManagedOnlineDeployment, + PartialOnlineDeployment, + PartialOnlineDeploymentPartialTrackedResource, + PersonalComputeInstanceSettings, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProbeSettings, + ProgressMetrics, + ProxyResource, + PyTorch, + Recurrence, + RecurrenceSchedule, + Resource, + ResourceId, + ResourceIdentity, + Route, + SasDatastoreCredentials, + SasDatastoreSecrets, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServicePrincipalDatastoreCredentials, + ServicePrincipalDatastoreSecrets, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SqlAdminDatastoreCredentials, + SqlAdminDatastoreSecrets, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TrackedResource, + TrialComponent, + TruncationSelectionPolicy, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/onlineEndpointsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/onlineEndpointsMappers.ts new file mode 100644 index 000000000000..5b1179ab4a44 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/onlineEndpointsMappers.ts @@ -0,0 +1,195 @@ +/* + * 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, + AccountKeyDatastoreCredentials, + AccountKeyDatastoreSecrets, + AKS, + AksNetworkingConfiguration, + AKSProperties, + AmlCompute, + AmlComputeProperties, + AmlToken, + AssetReferenceBase, + AssignedUser, + AutoScaleSettings, + AzureBlobContents, + AzureDataLakeGen1Contents, + AzureDataLakeGen2Contents, + AzureEntityResource, + AzureFileContents, + AzurePostgreSqlContents, + AzureSqlDatabaseContents, + BanditPolicy, + BaseResource, + BatchDeployment, + BatchDeploymentTrackedResource, + BatchEndpoint, + BatchEndpointTrackedResource, + BatchOutputConfiguration, + BatchRetrySettings, + CertificateDatastoreCredentials, + CertificateDatastoreSecrets, + CodeConfiguration, + CodeContainer, + CodeContainerResource, + CodeVersion, + CodeVersionResource, + CommandJob, + Compute, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeResource, + ComputeSchedules, + ComputeStartStopSchedule, + ContainerResourceRequirements, + CosmosDbSettings, + Cron, + Databricks, + DatabricksProperties, + DataContainer, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatastoreContents, + DatastoreCredentials, + DatastoreProperties, + DatastorePropertiesResource, + DatastoreSecrets, + DataVersion, + DataVersionResource, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicy, + EncryptionProperty, + EndpointAuthKeys, + EndpointAuthToken, + EnvironmentContainer, + EnvironmentContainerResource, + EnvironmentSpecificationVersion, + EnvironmentSpecificationVersionResource, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + FlavorData, + GlusterFsContents, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + IdentityForCmk, + InferenceContainerProperties, + InputDataBinding, + JobBase, + JobBaseResource, + JobEndpoint, + JobOutput, + K8sOnlineDeployment, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJob, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + ManagedIdentity, + ManagedOnlineDeployment, + ManualScaleSettings, + MedianStoppingPolicy, + MLAssistConfiguration, + ModelContainer, + ModelContainerResource, + ModelVersion, + ModelVersionResource, + Mpi, + NodeStateCounts, + NoneDatastoreCredentials, + NoneDatastoreSecrets, + NotebookPreparationError, + NotebookResourceInfo, + Objective, + OnlineDeployment, + OnlineDeploymentTrackedResource, + OnlineEndpoint, + OnlineEndpointsCreateOrUpdateHeaders, + OnlineEndpointsDeleteHeaders, + OnlineEndpointsRegenerateKeysHeaders, + OnlineEndpointsUpdateHeaders, + OnlineEndpointTrackedResource, + OnlineEndpointTrackedResourceArmPaginatedResult, + OnlineRequestSettings, + OnlineScaleSettings, + OutputDataBinding, + OutputPathAssetReference, + PartialOnlineEndpoint, + PartialOnlineEndpointPartialTrackedResource, + PersonalComputeInstanceSettings, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProbeSettings, + ProgressMetrics, + ProxyResource, + PyTorch, + Recurrence, + RecurrenceSchedule, + RegenerateEndpointKeysRequest, + Resource, + ResourceId, + ResourceIdentity, + Route, + SasDatastoreCredentials, + SasDatastoreSecrets, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServicePrincipalDatastoreCredentials, + ServicePrincipalDatastoreSecrets, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SqlAdminDatastoreCredentials, + SqlAdminDatastoreSecrets, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TrackedResource, + TrialComponent, + TruncationSelectionPolicy, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.ts index ac101ae5f270..392eafc4561b 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.ts @@ -8,9 +8,9 @@ export { discriminators, + ErrorAdditionalInfo, ErrorDetail, ErrorResponse, - MachineLearningServiceError, Operation, OperationDisplay, OperationListResult diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts index 4f5b252b51c1..4d4ef18c174a 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts @@ -24,6 +24,9 @@ export const apiVersion: msRest.OperationQueryParameter = { mapper: { required: true, serializedName: "api-version", + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -57,7 +60,7 @@ export const computeType: msRest.OperationQueryParameter = { "computeType" ], mapper: { - serializedName: "compute-type", + serializedName: "computeType", type: { name: "String" } @@ -73,6 +76,160 @@ export const connectionName: msRest.OperationURLParameter = { } } }; +export const count0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "count" + ], + mapper: { + serializedName: "count", + type: { + name: "Number" + } + } +}; +export const count1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "count" + ], + mapper: { + serializedName: "count", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const deploymentName0: msRest.OperationURLParameter = { + parameterPath: "deploymentName", + mapper: { + required: true, + serializedName: "deploymentName", + type: { + name: "String" + } + } +}; +export const deploymentName1: msRest.OperationURLParameter = { + parameterPath: "deploymentName", + mapper: { + required: true, + serializedName: "deploymentName", + constraints: { + Pattern: /^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,254}$/ + }, + type: { + name: "String" + } + } +}; +export const description: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "description" + ], + mapper: { + serializedName: "description", + type: { + name: "String" + } + } +}; +export const endpointName0: msRest.OperationURLParameter = { + parameterPath: "endpointName", + mapper: { + required: true, + serializedName: "endpointName", + type: { + name: "String" + } + } +}; +export const endpointName1: msRest.OperationURLParameter = { + parameterPath: "endpointName", + mapper: { + required: true, + serializedName: "endpointName", + constraints: { + Pattern: /^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,254}$/ + }, + type: { + name: "String" + } + } +}; +export const id0: msRest.OperationURLParameter = { + parameterPath: "id", + mapper: { + required: true, + serializedName: "id", + type: { + name: "String" + } + } +}; +export const id1: msRest.OperationURLParameter = { + parameterPath: "id", + mapper: { + required: true, + serializedName: "id", + constraints: { + Pattern: /^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,254}$/ + }, + type: { + name: "String" + } + } +}; +export const includeJobInstructions: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "includeJobInstructions" + ], + mapper: { + serializedName: "includeJobInstructions", + type: { + name: "Boolean" + } + } +}; +export const includeLabelCategories: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "includeLabelCategories" + ], + mapper: { + serializedName: "includeLabelCategories", + type: { + name: "Boolean" + } + } +}; +export const isDefault: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "isDefault" + ], + mapper: { + serializedName: "isDefault", + type: { + name: "Boolean" + } + } +}; +export const jobType: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobType" + ], + mapper: { + serializedName: "jobType", + type: { + name: "String" + } + } +}; export const location: msRest.OperationURLParameter = { parameterPath: "location", mapper: { @@ -86,6 +243,59 @@ export const location: msRest.OperationURLParameter = { } } }; +export const name0: msRest.OperationURLParameter = { + parameterPath: "name", + mapper: { + required: true, + serializedName: "name", + type: { + name: "String" + } + } +}; +export const name1: msRest.OperationURLParameter = { + parameterPath: "name", + mapper: { + required: true, + serializedName: "name", + constraints: { + Pattern: /^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,254}$/ + }, + type: { + name: "String" + } + } +}; +export const name2: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "name" + ], + mapper: { + serializedName: "name", + type: { + name: "String" + } + } +}; +export const names: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "names" + ], + mapper: { + serializedName: "names", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + collectionFormat: msRest.QueryCollectionFormat.Csv +}; export const nextPageLink: msRest.OperationURLParameter = { parameterPath: "nextPageLink", mapper: { @@ -97,6 +307,55 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const offset: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "offset" + ], + mapper: { + serializedName: "offset", + type: { + name: "Number" + } + } +}; +export const orderBy0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "orderBy" + ], + mapper: { + serializedName: "$orderBy", + type: { + name: "String" + } + } +}; +export const orderBy1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "orderBy" + ], + mapper: { + serializedName: "orderBy", + type: { + name: "String" + } + } +}; +export const orderByAsc: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "orderByAsc" + ], + mapper: { + serializedName: "orderByAsc", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; export const privateEndpointConnectionName: msRest.OperationURLParameter = { parameterPath: "privateEndpointConnectionName", mapper: { @@ -107,15 +366,15 @@ export const privateEndpointConnectionName: msRest.OperationURLParameter = { } } }; -export const recommended: msRest.OperationQueryParameter = { +export const properties: msRest.OperationQueryParameter = { parameterPath: [ "options", - "recommended" + "properties" ], mapper: { - serializedName: "recommended", + serializedName: "properties", type: { - name: "Boolean" + name: "String" } } }; @@ -124,28 +383,96 @@ export const resourceGroupName: msRest.OperationURLParameter = { mapper: { required: true, serializedName: "resourceGroupName", + constraints: { + MaxLength: 90, + MinLength: 1 + }, type: { name: "String" } } }; -export const skiptoken: msRest.OperationQueryParameter = { +export const searchText: msRest.OperationQueryParameter = { parameterPath: [ "options", - "skiptoken" + "searchText" ], mapper: { - serializedName: "$skiptoken", + serializedName: "searchText", type: { name: "String" } } }; +export const skip: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "skip" + ], + mapper: { + serializedName: "$skip", + type: { + name: "String" + } + } +}; +export const skipValidation: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "skipValidation" + ], + mapper: { + serializedName: "skipValidation", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; export const subscriptionId: msRest.OperationURLParameter = { parameterPath: "subscriptionId", mapper: { required: true, serializedName: "subscriptionId", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } +}; +export const tag: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "tag" + ], + mapper: { + serializedName: "tag", + type: { + name: "String" + } + } +}; +export const tags0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "tags" + ], + mapper: { + serializedName: "$tags", + type: { + name: "String" + } + } +}; +export const tags1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "tags" + ], + mapper: { + serializedName: "tags", type: { name: "String" } @@ -163,6 +490,18 @@ export const target: msRest.OperationQueryParameter = { } } }; +export const top: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "top" + ], + mapper: { + serializedName: "$top", + type: { + name: "Number" + } + } +}; export const underlyingResourceAction: msRest.OperationQueryParameter = { parameterPath: "underlyingResourceAction", mapper: { @@ -173,6 +512,28 @@ export const underlyingResourceAction: msRest.OperationQueryParameter = { } } }; +export const version0: msRest.OperationURLParameter = { + parameterPath: "version", + mapper: { + required: true, + serializedName: "version", + type: { + name: "String" + } + } +}; +export const version1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "version" + ], + mapper: { + serializedName: "version", + type: { + name: "String" + } + } +}; export const workspaceName: msRest.OperationURLParameter = { parameterPath: "workspaceName", mapper: { diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts index e21b80f26ac8..ff81927d2548 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts @@ -8,13 +8,42 @@ export { discriminators, + AccountKeyDatastoreCredentials, + AccountKeyDatastoreSecrets, AKS, AksNetworkingConfiguration, AKSProperties, AmlCompute, AmlComputeProperties, + AmlToken, + AssetReferenceBase, + AssignedUser, + AutoScaleSettings, + AzureBlobContents, + AzureDataLakeGen1Contents, + AzureDataLakeGen2Contents, + AzureEntityResource, + AzureFileContents, + AzurePostgreSqlContents, + AzureSqlDatabaseContents, + BanditPolicy, BaseResource, + BatchDeployment, + BatchDeploymentTrackedResource, + BatchEndpoint, + BatchEndpointTrackedResource, + BatchOutputConfiguration, + BatchRetrySettings, + CertificateDatastoreCredentials, + CertificateDatastoreSecrets, + CodeConfiguration, + CodeContainer, + CodeContainerResource, + CodeVersion, + CodeVersionResource, + CommandJob, Compute, + ComputeConfiguration, ComputeInstance, ComputeInstanceApplication, ComputeInstanceConnectivityEndpoints, @@ -23,36 +52,134 @@ export { ComputeInstanceProperties, ComputeInstanceSshSettings, ComputeResource, + ComputeSchedules, + ComputeStartStopSchedule, + ContainerResourceRequirements, + CosmosDbSettings, + Cron, Databricks, DatabricksProperties, + DataContainer, + DataContainerResource, DataFactory, DataLakeAnalytics, DataLakeAnalyticsProperties, + DataPathAssetReference, + DatastoreContents, + DatastoreCredentials, + DatastoreProperties, + DatastorePropertiesResource, + DatastoreSecrets, + DataVersion, + DataVersionResource, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicy, EncryptionProperty, + EndpointAuthKeys, + EnvironmentContainer, + EnvironmentContainerResource, + EnvironmentSpecificationVersion, + EnvironmentSpecificationVersionResource, + ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + FlavorData, + GlusterFsContents, HDInsight, HDInsightProperties, + IdAssetReference, Identity, - IdentityUserAssignedIdentitiesValue, + IdentityConfiguration, + IdentityForCmk, + InferenceContainerProperties, + InputDataBinding, + JobBase, + JobBaseResource, + JobEndpoint, + JobOutput, + K8sOnlineDeployment, KeyVaultProperties, - MachineLearningServiceError, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJob, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + ManagedIdentity, + ManagedOnlineDeployment, + ManualScaleSettings, + MedianStoppingPolicy, + MLAssistConfiguration, + ModelContainer, + ModelContainerResource, + ModelVersion, + ModelVersionResource, + Mpi, NodeStateCounts, + NoneDatastoreCredentials, + NoneDatastoreSecrets, NotebookPreparationError, NotebookResourceInfo, + Objective, + OnlineDeployment, + OnlineDeploymentTrackedResource, + OnlineEndpoint, + OnlineEndpointTrackedResource, + OnlineRequestSettings, + OnlineScaleSettings, + OutputDataBinding, + OutputPathAssetReference, + PersonalComputeInstanceSettings, PrivateEndpoint, PrivateEndpointConnection, + PrivateEndpointConnectionListResult, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProbeSettings, + ProgressMetrics, + ProxyResource, + PyTorch, + Recurrence, + RecurrenceSchedule, Resource, ResourceId, + ResourceIdentity, + Route, + SasDatastoreCredentials, + SasDatastoreSecrets, ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServicePrincipalDatastoreCredentials, + ServicePrincipalDatastoreSecrets, + SetupScripts, SharedPrivateLinkResource, Sku, + SqlAdminDatastoreCredentials, + SqlAdminDatastoreSecrets, SslConfiguration, + StatusMessage, + SweepJob, + SystemData, SystemService, + TensorFlow, + TrackedResource, + TrialComponent, + TruncationSelectionPolicy, UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, VirtualMachine, + VirtualMachineImage, VirtualMachineProperties, VirtualMachineSshCredentials, Workspace, diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateLinkResourcesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateLinkResourcesMappers.ts index 07a5f2631978..57ef01222f7d 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateLinkResourcesMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateLinkResourcesMappers.ts @@ -8,14 +8,43 @@ export { discriminators, + AccountKeyDatastoreCredentials, + AccountKeyDatastoreSecrets, AKS, AksNetworkingConfiguration, AKSProperties, AmlCompute, AmlComputeProperties, + AmlToken, + AssetReferenceBase, + AssignedUser, + AutoScaleSettings, + AzureBlobContents, + AzureDataLakeGen1Contents, + AzureDataLakeGen2Contents, + AzureEntityResource, + AzureFileContents, + AzurePostgreSqlContents, + AzureSqlDatabaseContents, + BanditPolicy, BaseResource, + BatchDeployment, + BatchDeploymentTrackedResource, + BatchEndpoint, + BatchEndpointTrackedResource, + BatchOutputConfiguration, + BatchRetrySettings, + CertificateDatastoreCredentials, + CertificateDatastoreSecrets, CloudError, + CodeConfiguration, + CodeContainer, + CodeContainerResource, + CodeVersion, + CodeVersionResource, + CommandJob, Compute, + ComputeConfiguration, ComputeInstance, ComputeInstanceApplication, ComputeInstanceConnectivityEndpoints, @@ -24,37 +53,134 @@ export { ComputeInstanceProperties, ComputeInstanceSshSettings, ComputeResource, + ComputeSchedules, + ComputeStartStopSchedule, + ContainerResourceRequirements, + CosmosDbSettings, + Cron, Databricks, DatabricksProperties, + DataContainer, + DataContainerResource, DataFactory, DataLakeAnalytics, DataLakeAnalyticsProperties, + DataPathAssetReference, + DatastoreContents, + DatastoreCredentials, + DatastoreProperties, + DatastorePropertiesResource, + DatastoreSecrets, + DataVersion, + DataVersionResource, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicy, EncryptionProperty, + EndpointAuthKeys, + EnvironmentContainer, + EnvironmentContainerResource, + EnvironmentSpecificationVersion, + EnvironmentSpecificationVersionResource, + ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + FlavorData, + GlusterFsContents, HDInsight, HDInsightProperties, + IdAssetReference, Identity, - IdentityUserAssignedIdentitiesValue, + IdentityConfiguration, + IdentityForCmk, + InferenceContainerProperties, + InputDataBinding, + JobBase, + JobBaseResource, + JobEndpoint, + JobOutput, + K8sOnlineDeployment, KeyVaultProperties, - MachineLearningServiceError, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJob, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + ManagedIdentity, + ManagedOnlineDeployment, + ManualScaleSettings, + MedianStoppingPolicy, + MLAssistConfiguration, + ModelContainer, + ModelContainerResource, + ModelVersion, + ModelVersionResource, + Mpi, NodeStateCounts, + NoneDatastoreCredentials, + NoneDatastoreSecrets, NotebookPreparationError, NotebookResourceInfo, + Objective, + OnlineDeployment, + OnlineDeploymentTrackedResource, + OnlineEndpoint, + OnlineEndpointTrackedResource, + OnlineRequestSettings, + OnlineScaleSettings, + OutputDataBinding, + OutputPathAssetReference, + PersonalComputeInstanceSettings, PrivateEndpoint, PrivateEndpointConnection, PrivateLinkResource, PrivateLinkResourceListResult, PrivateLinkServiceConnectionState, + ProbeSettings, + ProgressMetrics, + ProxyResource, + PyTorch, + Recurrence, + RecurrenceSchedule, Resource, ResourceId, + ResourceIdentity, + Route, + SasDatastoreCredentials, + SasDatastoreSecrets, ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServicePrincipalDatastoreCredentials, + ServicePrincipalDatastoreSecrets, + SetupScripts, SharedPrivateLinkResource, Sku, + SqlAdminDatastoreCredentials, + SqlAdminDatastoreSecrets, SslConfiguration, + StatusMessage, + SweepJob, + SystemData, SystemService, + TensorFlow, + TrackedResource, + TrialComponent, + TruncationSelectionPolicy, UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, VirtualMachine, + VirtualMachineImage, VirtualMachineProperties, VirtualMachineSshCredentials, Workspace, diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/quotasMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/quotasMappers.ts index aa49de236b1e..43ce8d7dc55d 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/quotasMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/quotasMappers.ts @@ -8,11 +8,10 @@ export { discriminators, - CloudError, + ErrorAdditionalInfo, ErrorDetail, ErrorResponse, ListWorkspaceQuotas, - MachineLearningServiceError, QuotaBaseProperties, QuotaUpdateParameters, ResourceName, diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts index 448b8d85198f..5ee1223ffa07 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts @@ -8,13 +8,42 @@ export { discriminators, + AccountKeyDatastoreCredentials, + AccountKeyDatastoreSecrets, AKS, AksNetworkingConfiguration, AKSProperties, AmlCompute, AmlComputeProperties, + AmlToken, + AssetReferenceBase, + AssignedUser, + AutoScaleSettings, + AzureBlobContents, + AzureDataLakeGen1Contents, + AzureDataLakeGen2Contents, + AzureEntityResource, + AzureFileContents, + AzurePostgreSqlContents, + AzureSqlDatabaseContents, + BanditPolicy, BaseResource, + BatchDeployment, + BatchDeploymentTrackedResource, + BatchEndpoint, + BatchEndpointTrackedResource, + BatchOutputConfiguration, + BatchRetrySettings, + CertificateDatastoreCredentials, + CertificateDatastoreSecrets, + CodeConfiguration, + CodeContainer, + CodeContainerResource, + CodeVersion, + CodeVersionResource, + CommandJob, Compute, + ComputeConfiguration, ComputeInstance, ComputeInstanceApplication, ComputeInstanceConnectivityEndpoints, @@ -23,40 +52,136 @@ export { ComputeInstanceProperties, ComputeInstanceSshSettings, ComputeResource, + ComputeSchedules, + ComputeStartStopSchedule, + ContainerResourceRequirements, + CosmosDbSettings, + Cron, Databricks, DatabricksProperties, + DataContainer, + DataContainerResource, DataFactory, DataLakeAnalytics, DataLakeAnalyticsProperties, + DataPathAssetReference, + DatastoreContents, + DatastoreCredentials, + DatastoreProperties, + DatastorePropertiesResource, + DatastoreSecrets, + DataVersion, + DataVersionResource, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicy, EncryptionProperty, + EndpointAuthKeys, + EnvironmentContainer, + EnvironmentContainerResource, + EnvironmentSpecificationVersion, + EnvironmentSpecificationVersionResource, + ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + FlavorData, + GlusterFsContents, HDInsight, HDInsightProperties, + IdAssetReference, Identity, - IdentityUserAssignedIdentitiesValue, + IdentityConfiguration, + IdentityForCmk, + InferenceContainerProperties, + InputDataBinding, + JobBase, + JobBaseResource, + JobEndpoint, + JobOutput, + K8sOnlineDeployment, KeyVaultProperties, - MachineLearningServiceError, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJob, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + ManagedIdentity, + ManagedOnlineDeployment, + ManualScaleSettings, + MedianStoppingPolicy, + MLAssistConfiguration, + ModelContainer, + ModelContainerResource, + ModelVersion, + ModelVersionResource, + Mpi, NodeStateCounts, + NoneDatastoreCredentials, + NoneDatastoreSecrets, NotebookPreparationError, NotebookResourceInfo, + Objective, + OnlineDeployment, + OnlineDeploymentTrackedResource, + OnlineEndpoint, + OnlineEndpointTrackedResource, + OnlineRequestSettings, + OnlineScaleSettings, + OutputDataBinding, + OutputPathAssetReference, PaginatedWorkspaceConnectionsList, + PersonalComputeInstanceSettings, PrivateEndpoint, PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProbeSettings, + ProgressMetrics, + ProxyResource, + PyTorch, + Recurrence, + RecurrenceSchedule, Resource, ResourceId, + ResourceIdentity, + Route, + SasDatastoreCredentials, + SasDatastoreSecrets, ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServicePrincipalDatastoreCredentials, + ServicePrincipalDatastoreSecrets, + SetupScripts, SharedPrivateLinkResource, Sku, + SqlAdminDatastoreCredentials, + SqlAdminDatastoreSecrets, SslConfiguration, + StatusMessage, + SweepJob, + SystemData, SystemService, + TensorFlow, + TrackedResource, + TrialComponent, + TruncationSelectionPolicy, UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, VirtualMachine, + VirtualMachineImage, VirtualMachineProperties, VirtualMachineSshCredentials, Workspace, - WorkspaceConnection, - WorkspaceConnectionDto + WorkspaceConnection } from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts index 5115670bfab0..c9e6fb6c5495 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts @@ -9,8 +9,8 @@ export { discriminators, AmlUserFeature, + ErrorAdditionalInfo, ErrorDetail, ErrorResponse, - ListAmlUserFeatureResult, - MachineLearningServiceError + ListAmlUserFeatureResult } from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/notebooksMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceSkusMappers.ts similarity index 69% rename from sdk/machinelearningservices/arm-machinelearningservices/src/models/notebooksMappers.ts rename to sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceSkusMappers.ts index 3088316919ec..d6a41db203ad 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/notebooksMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceSkusMappers.ts @@ -8,9 +8,13 @@ export { discriminators, + ErrorAdditionalInfo, ErrorDetail, ErrorResponse, - MachineLearningServiceError, - NotebookPreparationError, - NotebookResourceInfo + ResourceSkuLocationInfo, + ResourceSkuZoneDetails, + Restriction, + SKUCapability, + SkuListResult, + WorkspaceSku } from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts index d8e1137cd946..bf54abe85135 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts @@ -8,13 +8,42 @@ export { discriminators, + AccountKeyDatastoreCredentials, + AccountKeyDatastoreSecrets, AKS, AksNetworkingConfiguration, AKSProperties, AmlCompute, AmlComputeProperties, + AmlToken, + AssetReferenceBase, + AssignedUser, + AutoScaleSettings, + AzureBlobContents, + AzureDataLakeGen1Contents, + AzureDataLakeGen2Contents, + AzureEntityResource, + AzureFileContents, + AzurePostgreSqlContents, + AzureSqlDatabaseContents, + BanditPolicy, BaseResource, + BatchDeployment, + BatchDeploymentTrackedResource, + BatchEndpoint, + BatchEndpointTrackedResource, + BatchOutputConfiguration, + BatchRetrySettings, + CertificateDatastoreCredentials, + CertificateDatastoreSecrets, + CodeConfiguration, + CodeContainer, + CodeContainerResource, + CodeVersion, + CodeVersionResource, + CommandJob, Compute, + ComputeConfiguration, ComputeInstance, ComputeInstanceApplication, ComputeInstanceConnectivityEndpoints, @@ -23,40 +52,139 @@ export { ComputeInstanceProperties, ComputeInstanceSshSettings, ComputeResource, + ComputeSchedules, + ComputeStartStopSchedule, + ContainerResourceRequirements, + CosmosDbSettings, + Cron, Databricks, DatabricksProperties, + DataContainer, + DataContainerResource, DataFactory, DataLakeAnalytics, DataLakeAnalyticsProperties, + DataPathAssetReference, + DatastoreContents, + DatastoreCredentials, + DatastoreProperties, + DatastorePropertiesResource, + DatastoreSecrets, + DataVersion, + DataVersionResource, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicy, EncryptionProperty, + EndpointAuthKeys, + EnvironmentContainer, + EnvironmentContainerResource, + EnvironmentSpecificationVersion, + EnvironmentSpecificationVersionResource, + ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + FlavorData, + GlusterFsContents, HDInsight, HDInsightProperties, + IdAssetReference, Identity, - IdentityUserAssignedIdentitiesValue, + IdentityConfiguration, + IdentityForCmk, + InferenceContainerProperties, + InputDataBinding, + JobBase, + JobBaseResource, + JobEndpoint, + JobOutput, + K8sOnlineDeployment, KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJob, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + ListNotebookKeysResult, + ListStorageAccountKeysResult, ListWorkspaceKeysResult, - MachineLearningServiceError, + ManagedIdentity, + ManagedOnlineDeployment, + ManualScaleSettings, + MedianStoppingPolicy, + MLAssistConfiguration, + ModelContainer, + ModelContainerResource, + ModelVersion, + ModelVersionResource, + Mpi, NodeStateCounts, - NotebookListCredentialsResult, + NoneDatastoreCredentials, + NoneDatastoreSecrets, + NotebookAccessTokenResult, NotebookPreparationError, NotebookResourceInfo, + Objective, + OnlineDeployment, + OnlineDeploymentTrackedResource, + OnlineEndpoint, + OnlineEndpointTrackedResource, + OnlineRequestSettings, + OnlineScaleSettings, + OutputDataBinding, + OutputPathAssetReference, Password, + PersonalComputeInstanceSettings, PrivateEndpoint, PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProbeSettings, + ProgressMetrics, + ProxyResource, + PyTorch, + Recurrence, + RecurrenceSchedule, RegistryListCredentialsResult, Resource, ResourceId, + ResourceIdentity, + Route, + SasDatastoreCredentials, + SasDatastoreSecrets, ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServicePrincipalDatastoreCredentials, + ServicePrincipalDatastoreSecrets, + SetupScripts, SharedPrivateLinkResource, Sku, + SqlAdminDatastoreCredentials, + SqlAdminDatastoreSecrets, SslConfiguration, + StatusMessage, + SweepJob, + SystemData, SystemService, + TensorFlow, + TrackedResource, + TrialComponent, + TruncationSelectionPolicy, UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, VirtualMachine, + VirtualMachineImage, VirtualMachineProperties, VirtualMachineSshCredentials, Workspace, 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..f77900cfe99c --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/batchDeployments.ts @@ -0,0 +1,441 @@ +/* + * 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 Models from "../models"; +import * as Mappers from "../models/batchDeploymentsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a BatchDeployments. */ +export class BatchDeployments { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a BatchDeployments. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + list(endpointName: string, resourceGroupName: string, workspaceName: string, options?: Models.BatchDeploymentsListOptionalParams): Promise; + /** + * @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 callback The callback + */ + list(endpointName: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + list(endpointName: string, resourceGroupName: string, workspaceName: string, options: Models.BatchDeploymentsListOptionalParams, callback: msRest.ServiceCallback): void; + list(endpointName: string, resourceGroupName: string, workspaceName: string, options?: Models.BatchDeploymentsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + deleteMethod(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + deleteMethod(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + deleteMethod(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + get(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + get(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + get(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + update(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.PartialBatchDeploymentPartialTrackedResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + update(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.PartialBatchDeploymentPartialTrackedResource, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + update(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.PartialBatchDeploymentPartialTrackedResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.PartialBatchDeploymentPartialTrackedResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + body, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + createOrUpdate(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.BatchDeploymentTrackedResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + createOrUpdate(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.BatchDeploymentTrackedResource, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + createOrUpdate(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.BatchDeploymentTrackedResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.BatchDeploymentTrackedResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary Lists Batch inference deployments in the workspace. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.BatchDeploymentsListNextOptionalParams): 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(nextPageLink: string, options: Models.BatchDeploymentsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BatchDeploymentsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments", + urlParameters: [ + Parameters.endpointName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.orderBy0, + Parameters.top, + Parameters.skip + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BatchDeploymentTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}", + urlParameters: [ + Parameters.endpointName0, + Parameters.deploymentName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}", + urlParameters: [ + Parameters.endpointName0, + Parameters.deploymentName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BatchDeploymentTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}", + urlParameters: [ + Parameters.endpointName1, + Parameters.deploymentName1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.PartialBatchDeploymentPartialTrackedResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.BatchDeploymentTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}", + urlParameters: [ + Parameters.endpointName1, + Parameters.deploymentName1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.BatchDeploymentTrackedResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.BatchDeploymentTrackedResource + }, + 201: { + bodyMapper: Mappers.BatchDeploymentTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.orderBy0, + Parameters.top, + Parameters.skip + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BatchDeploymentTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + 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..8107bbd621da --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/batchEndpoints.ts @@ -0,0 +1,476 @@ +/* + * 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 Models from "../models"; +import * as Mappers from "../models/batchEndpointsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a BatchEndpoints. */ +export class BatchEndpoints { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a BatchEndpoints. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: Models.BatchEndpointsListOptionalParams): Promise; + /** + * @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 + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 + */ + list(resourceGroupName: string, workspaceName: string, options: Models.BatchEndpointsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: Models.BatchEndpointsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + deleteMethod(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + deleteMethod(endpointName: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + deleteMethod(endpointName: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + get(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + get(endpointName: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + get(endpointName: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + update(endpointName: string, resourceGroupName: string, workspaceName: string, body: Models.PartialBatchEndpointPartialTrackedResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + update(endpointName: string, resourceGroupName: string, workspaceName: string, body: Models.PartialBatchEndpointPartialTrackedResource, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + update(endpointName: string, resourceGroupName: string, workspaceName: string, body: Models.PartialBatchEndpointPartialTrackedResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(endpointName: string, resourceGroupName: string, workspaceName: string, body: Models.PartialBatchEndpointPartialTrackedResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + resourceGroupName, + workspaceName, + body, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + createOrUpdate(endpointName: string, resourceGroupName: string, workspaceName: string, body: Models.BatchEndpointTrackedResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + createOrUpdate(endpointName: string, resourceGroupName: string, workspaceName: string, body: Models.BatchEndpointTrackedResource, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + createOrUpdate(endpointName: string, resourceGroupName: string, workspaceName: string, body: Models.BatchEndpointTrackedResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(endpointName: string, resourceGroupName: string, workspaceName: string, body: Models.BatchEndpointTrackedResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + listKeys(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + listKeys(endpointName: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + listKeys(endpointName: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listKeys(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + resourceGroupName, + workspaceName, + options + }, + listKeysOperationSpec, + callback) as Promise; + } + + /** + * @summary Lists Batch inference endpoint in the workspace. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.BatchEndpointsListNextOptionalParams): 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(nextPageLink: string, options: Models.BatchEndpointsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BatchEndpointsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.count0, + Parameters.skip + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BatchEndpointTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}", + urlParameters: [ + Parameters.endpointName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}", + urlParameters: [ + Parameters.endpointName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BatchEndpointTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}", + urlParameters: [ + Parameters.endpointName1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.PartialBatchEndpointPartialTrackedResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.BatchEndpointTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}", + urlParameters: [ + Parameters.endpointName1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.BatchEndpointTrackedResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.BatchEndpointTrackedResource + }, + 201: { + bodyMapper: Mappers.BatchEndpointTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/listkeys", + urlParameters: [ + Parameters.endpointName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EndpointAuthKeys + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.count0, + Parameters.skip + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BatchEndpointTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + 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..a4840d219bc1 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/codeContainers.ts @@ -0,0 +1,339 @@ +/* + * 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 Models from "../models"; +import * as Mappers from "../models/codeContainersMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a CodeContainers. */ +export class CodeContainers { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a CodeContainers. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: Models.CodeContainersListOptionalParams): Promise; + /** + * @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 + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 + */ + list(resourceGroupName: string, workspaceName: string, options: Models.CodeContainersListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: Models.CodeContainersListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.CodeContainerResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.CodeContainerResource, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.CodeContainerResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.CodeContainerResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary List containers. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.CodeContainersListNextOptionalParams): 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(nextPageLink: string, options: Models.CodeContainersListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.CodeContainersListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CodeContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}", + urlParameters: [ + Parameters.name0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}", + urlParameters: [ + Parameters.name0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CodeContainerResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.CodeContainerResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CodeContainerResource + }, + 201: { + bodyMapper: Mappers.CodeContainerResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CodeContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + 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..6ecf3d2a7a6c --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/codeVersions.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 * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/codeVersionsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a CodeVersions. */ +export class CodeVersions { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a CodeVersions. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + list(name: string, resourceGroupName: string, workspaceName: string, options?: Models.CodeVersionsListOptionalParams): Promise; + /** + * @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 callback The callback + */ + list(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + list(name: string, resourceGroupName: string, workspaceName: string, options: Models.CodeVersionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(name: string, resourceGroupName: string, workspaceName: string, options?: Models.CodeVersionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.CodeVersionResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.CodeVersionResource, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.CodeVersionResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.CodeVersionResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary List versions. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.CodeVersionsListNextOptionalParams): 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(nextPageLink: string, options: Models.CodeVersionsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.CodeVersionsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions", + urlParameters: [ + Parameters.name0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.orderBy0, + Parameters.top, + Parameters.skip + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CodeVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}", + urlParameters: [ + Parameters.name0, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}", + urlParameters: [ + Parameters.name0, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CodeVersionResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}", + urlParameters: [ + Parameters.name1, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.CodeVersionResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CodeVersionResource + }, + 201: { + bodyMapper: Mappers.CodeVersionResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.orderBy0, + Parameters.top, + Parameters.skip + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CodeVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/computeOperations.ts similarity index 66% rename from sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts rename to sdk/machinelearningservices/arm-machinelearningservices/src/operations/computeOperations.ts index 1fc94951a321..4eace02e3b71 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/computeOperations.ts @@ -10,16 +10,16 @@ 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 Mappers from "../models/computeOperationsMappers"; import * as Parameters from "../models/parameters"; import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; -/** Class representing a MachineLearningCompute. */ -export class MachineLearningCompute { +/** Class representing a ComputeOperations. */ +export class ComputeOperations { private readonly client: AzureMachineLearningWorkspacesContext; /** - * Create a MachineLearningCompute. + * Create a ComputeOperations. * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. */ constructor(client: AzureMachineLearningWorkspacesContext) { @@ -28,62 +28,62 @@ export class MachineLearningCompute { /** * Gets computes in specified 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 + * @returns Promise */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: Models.MachineLearningComputeListByWorkspaceOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: Models.ComputeListOptionalParams): 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 callback The callback */ - listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; /** - * @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 * @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 { + list(resourceGroupName: string, workspaceName: string, options: Models.ComputeListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: Models.ComputeListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listByWorkspaceOperationSpec, - callback) as Promise; + listOperationSpec, + 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 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 optional parameters - * @returns Promise + * @returns Promise */ - get(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): 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 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 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 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 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 { + get(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -92,80 +92,80 @@ export class MachineLearningCompute { options }, getOperationSpec, - callback) as Promise; + 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 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 optional parameters - * @returns Promise + * @returns Promise */ - createOrUpdate(resourceGroupName: string, workspaceName: string, computeName: string, parameters: Models.ComputeResource, options?: msRest.RequestOptionsBase): 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; + .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 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 optional parameters - * @returns Promise + * @returns Promise */ - update(resourceGroupName: string, workspaceName: string, computeName: string, parameters: Models.ClusterUpdateParameters, options?: msRest.RequestOptionsBase): 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; + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** * Deletes specified Machine Learning compute. - * @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 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 + * @returns Promise */ - deleteMethod(resourceGroupName: string, workspaceName: string, computeName: string, underlyingResourceAction: Models.UnderlyingResourceAction, options?: msRest.RequestOptionsBase): 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; + .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 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 optional parameters - * @returns Promise + * @returns Promise */ - listNodes(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): 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 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 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 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 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 { + listNodes(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -174,34 +174,34 @@ export class MachineLearningCompute { options }, listNodesOperationSpec, - callback) as Promise; + 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 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 optional parameters - * @returns Promise + * @returns Promise */ - listKeys(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): 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 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 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 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 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 { + listKeys(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -210,70 +210,60 @@ export class MachineLearningCompute { options }, listKeysOperationSpec, - callback) as Promise; + callback) as Promise; } /** * Posts a start action to a compute instance - * @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 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; + start(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginStart(resourceGroupName,workspaceName,computeName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * 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 optional parameters - * @param callback The callback + * @param [options] The optional parameters + * @returns Promise */ - 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); + stop(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginStop(resourceGroupName,workspaceName,computeName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** - * Posts a stop action to a compute instance - * @param resourceGroupName Name of the resource group in which workspace is located. + * 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 optional parameters * @returns Promise */ - stop(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): 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 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 callback The callback */ - stop(resourceGroupName: string, workspaceName: string, computeName: string, callback: msRest.ServiceCallback): void; + restart(resourceGroupName: string, workspaceName: string, computeName: string, callback: msRest.ServiceCallback): void; /** - * @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 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 { + 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, @@ -281,35 +271,35 @@ export class MachineLearningCompute { computeName, options }, - stopOperationSpec, + restartOperationSpec, callback); } /** - * Posts a restart action to a compute instance - * @param resourceGroupName Name of the resource group in which workspace is located. + * 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 optional parameters * @returns Promise */ - restart(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise; + updateSchedules(resourceGroupName: string, workspaceName: string, computeName: string, options?: Models.ComputeUpdateSchedulesOptionalParams): 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 computeName Name of the Azure Machine Learning compute. * @param callback The callback */ - restart(resourceGroupName: string, workspaceName: string, computeName: string, callback: msRest.ServiceCallback): void; + updateSchedules(resourceGroupName: string, workspaceName: string, computeName: string, callback: msRest.ServiceCallback): void; /** - * @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 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 { + updateSchedules(resourceGroupName: string, workspaceName: string, computeName: string, options: Models.ComputeUpdateSchedulesOptionalParams, callback: msRest.ServiceCallback): void; + updateSchedules(resourceGroupName: string, workspaceName: string, computeName: string, options?: Models.ComputeUpdateSchedulesOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -317,7 +307,7 @@ export class MachineLearningCompute { computeName, options }, - restartOperationSpec, + updateSchedulesOperationSpec, callback); } @@ -325,7 +315,7 @@ export class MachineLearningCompute { * 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 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. @@ -348,7 +338,7 @@ export class MachineLearningCompute { /** * 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 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. @@ -370,7 +360,7 @@ export class MachineLearningCompute { /** * Deletes specified Machine Learning compute. - * @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 computeName Name of the Azure Machine Learning compute. * @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the @@ -391,38 +381,106 @@ export class MachineLearningCompute { options); } + /** + * 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 optional parameters + * @returns Promise + */ + beginStart(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + computeName, + options + }, + beginStartOperationSpec, + options); + } + + /** + * 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 optional parameters + * @returns Promise + */ + beginStop(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + computeName, + options + }, + beginStopOperationSpec, + 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 + * @returns Promise */ - listByWorkspaceNext(nextPageLink: string, options?: Models.MachineLearningComputeListByWorkspaceNextOptionalParams): Promise; + listNext(nextPageLink: string, options?: Models.ComputeListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByWorkspaceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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 */ - listByWorkspaceNext(nextPageLink: string, options: Models.MachineLearningComputeListByWorkspaceNextOptionalParams, callback: msRest.ServiceCallback): void; - listByWorkspaceNext(nextPageLink: string, options?: Models.MachineLearningComputeListByWorkspaceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.ComputeListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ComputeListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listByWorkspaceNextOperationSpec, - callback) as Promise; + listNextOperationSpec, + callback) as Promise; + } + + /** + * Get the details (e.g IP address, port etc) of all the compute nodes in the compute. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNodesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNodesNext(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 + */ + listNodesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNodesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNodesNextOperationSpec, + callback) as Promise; } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const listByWorkspaceOperationSpec: msRest.OperationSpec = { +const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes", urlParameters: [ @@ -432,7 +490,7 @@ const listByWorkspaceOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.apiVersion, - Parameters.skiptoken + Parameters.skip ], headerParameters: [ Parameters.acceptLanguage @@ -442,7 +500,7 @@ const listByWorkspaceOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PaginatedComputeResourcesList }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -468,7 +526,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ComputeResource }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -494,7 +552,7 @@ const listNodesOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.AmlComputeNodesInformation }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -520,15 +578,15 @@ const listKeysOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ComputeSecrets }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer }; -const startOperationSpec: msRest.OperationSpec = { +const restartOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/start", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/restart", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -544,15 +602,15 @@ const startOperationSpec: msRest.OperationSpec = { responses: { 200: {}, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer }; -const stopOperationSpec: msRest.OperationSpec = { +const updateSchedulesOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/stop", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/updateSchedules", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -565,34 +623,17 @@ const stopOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.ComputeSchedules }, - 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 + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -623,15 +664,15 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { responses: { 200: { bodyMapper: Mappers.ComputeResource, - headersMapper: Mappers.MachineLearningComputeCreateOrUpdateHeaders + headersMapper: Mappers.ComputeCreateOrUpdateHeaders }, 201: { bodyMapper: Mappers.ComputeResource, - headersMapper: Mappers.MachineLearningComputeCreateOrUpdateHeaders + headersMapper: Mappers.ComputeCreateOrUpdateHeaders }, default: { - bodyMapper: Mappers.MachineLearningServiceError, - headersMapper: Mappers.MachineLearningComputeCreateOrUpdateHeaders + bodyMapper: Mappers.ErrorResponse, + headersMapper: Mappers.ComputeCreateOrUpdateHeaders } }, serializer @@ -664,7 +705,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ComputeResource }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -688,20 +729,68 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - headersMapper: Mappers.MachineLearningComputeDeleteHeaders + headersMapper: Mappers.ComputeDeleteHeaders }, 202: { - headersMapper: Mappers.MachineLearningComputeDeleteHeaders + headersMapper: Mappers.ComputeDeleteHeaders }, default: { - bodyMapper: Mappers.MachineLearningServiceError, - headersMapper: Mappers.MachineLearningComputeDeleteHeaders + bodyMapper: Mappers.ErrorResponse, + headersMapper: Mappers.ComputeDeleteHeaders } }, serializer }; -const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { +const beginStartOperationSpec: 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: { + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginStopOperationSpec: 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: { + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", @@ -710,7 +799,7 @@ const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.apiVersion, - Parameters.skiptoken + Parameters.skip ], headerParameters: [ Parameters.acceptLanguage @@ -720,7 +809,31 @@ const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PaginatedComputeResourcesList }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNodesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AmlComputeNodesInformation + }, + default: { + bodyMapper: Mappers.ErrorResponse } }, 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..306cc7e558ef --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/dataContainers.ts @@ -0,0 +1,339 @@ +/* + * 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 Models from "../models"; +import * as Mappers from "../models/dataContainersMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a DataContainers. */ +export class DataContainers { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a DataContainers. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: Models.DataContainersListOptionalParams): Promise; + /** + * @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 + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 + */ + list(resourceGroupName: string, workspaceName: string, options: Models.DataContainersListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: Models.DataContainersListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.DataContainerResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.DataContainerResource, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.DataContainerResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.DataContainerResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary List containers. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.DataContainersListNextOptionalParams): 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(nextPageLink: string, options: Models.DataContainersListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.DataContainersListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}", + urlParameters: [ + Parameters.name0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}", + urlParameters: [ + Parameters.name0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataContainerResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.DataContainerResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DataContainerResource + }, + 201: { + bodyMapper: Mappers.DataContainerResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + 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..d1791b9279b0 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/dataVersions.ts @@ -0,0 +1,365 @@ +/* + * 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 Models from "../models"; +import * as Mappers from "../models/dataVersionsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a DataVersions. */ +export class DataVersions { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a DataVersions. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + list(name: string, resourceGroupName: string, workspaceName: string, options?: Models.DataVersionsListOptionalParams): Promise; + /** + * @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 callback The callback + */ + list(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + list(name: string, resourceGroupName: string, workspaceName: string, options: Models.DataVersionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(name: string, resourceGroupName: string, workspaceName: string, options?: Models.DataVersionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.DataVersionResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.DataVersionResource, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.DataVersionResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.DataVersionResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary List data versions. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.DataVersionsListNextOptionalParams): 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(nextPageLink: string, options: Models.DataVersionsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.DataVersionsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions", + urlParameters: [ + Parameters.name0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.orderBy0, + Parameters.top, + Parameters.skip, + Parameters.tags0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}", + urlParameters: [ + Parameters.name0, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}", + urlParameters: [ + Parameters.name0, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataVersionResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}", + urlParameters: [ + Parameters.name1, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.DataVersionResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DataVersionResource + }, + 201: { + bodyMapper: Mappers.DataVersionResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.orderBy0, + Parameters.top, + Parameters.skip, + Parameters.tags0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + 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..6ea68b639c3c --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/datastores.ts @@ -0,0 +1,414 @@ +/* + * 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 Models from "../models"; +import * as Mappers from "../models/datastoresMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a Datastores. */ +export class Datastores { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a Datastores. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: Models.DatastoresListOptionalParams): Promise; + /** + * @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 + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 + */ + list(resourceGroupName: string, workspaceName: string, options: Models.DatastoresListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: Models.DatastoresListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.DatastorePropertiesResource, options?: Models.DatastoresCreateOrUpdateOptionalParams): Promise; + /** + * @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 callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.DatastorePropertiesResource, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.DatastorePropertiesResource, options: Models.DatastoresCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.DatastorePropertiesResource, options?: Models.DatastoresCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + listSecrets(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + listSecrets(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + listSecrets(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSecrets(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + listSecretsOperationSpec, + callback) as Promise; + } + + /** + * @summary List datastores. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.DatastoresListNextOptionalParams): 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(nextPageLink: string, options: Models.DatastoresListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.DatastoresListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.count1, + Parameters.isDefault, + Parameters.names, + Parameters.searchText, + Parameters.orderBy1, + Parameters.orderByAsc + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatastorePropertiesResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}", + urlParameters: [ + Parameters.name0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}", + urlParameters: [ + Parameters.name0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatastorePropertiesResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipValidation + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.DatastorePropertiesResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DatastorePropertiesResource + }, + 201: { + bodyMapper: Mappers.DatastorePropertiesResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listSecretsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}/listSecrets", + urlParameters: [ + Parameters.name0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatastoreSecrets + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.count1, + Parameters.isDefault, + Parameters.names, + Parameters.searchText, + Parameters.orderBy1, + Parameters.orderByAsc + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatastorePropertiesResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + 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..bc7a2bbbc424 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/environmentContainers.ts @@ -0,0 +1,339 @@ +/* + * 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 Models from "../models"; +import * as Mappers from "../models/environmentContainersMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a EnvironmentContainers. */ +export class EnvironmentContainers { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a EnvironmentContainers. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: Models.EnvironmentContainersListOptionalParams): Promise; + /** + * @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 + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 + */ + list(resourceGroupName: string, workspaceName: string, options: Models.EnvironmentContainersListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: Models.EnvironmentContainersListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.EnvironmentContainerResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.EnvironmentContainerResource, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.EnvironmentContainerResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.EnvironmentContainerResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary List containers. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.EnvironmentContainersListNextOptionalParams): 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(nextPageLink: string, options: Models.EnvironmentContainersListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.EnvironmentContainersListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}", + urlParameters: [ + Parameters.name0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}", + urlParameters: [ + Parameters.name0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainerResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.EnvironmentContainerResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainerResource + }, + 201: { + bodyMapper: Mappers.EnvironmentContainerResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + 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..7c3aea987889 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/environmentSpecificationVersions.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 * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/environmentSpecificationVersionsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a EnvironmentSpecificationVersions. */ +export class EnvironmentSpecificationVersions { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a EnvironmentSpecificationVersions. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + list(name: string, resourceGroupName: string, workspaceName: string, options?: Models.EnvironmentSpecificationVersionsListOptionalParams): Promise; + /** + * @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 callback The callback + */ + list(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + list(name: string, resourceGroupName: string, workspaceName: string, options: Models.EnvironmentSpecificationVersionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(name: string, resourceGroupName: string, workspaceName: string, options?: Models.EnvironmentSpecificationVersionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.EnvironmentSpecificationVersionResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.EnvironmentSpecificationVersionResource, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.EnvironmentSpecificationVersionResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.EnvironmentSpecificationVersionResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary List versions. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.EnvironmentSpecificationVersionsListNextOptionalParams): 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(nextPageLink: string, options: Models.EnvironmentSpecificationVersionsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.EnvironmentSpecificationVersionsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions", + urlParameters: [ + Parameters.name0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.orderBy0, + Parameters.top, + Parameters.skip + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EnvironmentSpecificationVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}", + urlParameters: [ + Parameters.name0, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}", + urlParameters: [ + Parameters.name0, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EnvironmentSpecificationVersionResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}", + urlParameters: [ + Parameters.name1, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.EnvironmentSpecificationVersionResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.EnvironmentSpecificationVersionResource + }, + 201: { + bodyMapper: Mappers.EnvironmentSpecificationVersionResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.orderBy0, + Parameters.top, + Parameters.skip + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EnvironmentSpecificationVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts index 3ddc3bba43e8..6cbe51f3e386 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts @@ -9,12 +9,27 @@ 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..516a981eab8a --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/jobs.ts @@ -0,0 +1,411 @@ +/* + * 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/jobsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a Jobs. */ +export class Jobs { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a Jobs. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: Models.JobsListOptionalParams): Promise; + /** + * @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 + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 + */ + list(resourceGroupName: string, workspaceName: string, options: Models.JobsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: Models.JobsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + deleteMethod(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(id,resourceGroupName,workspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + get(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + get(id: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + get(id: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + id, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + createOrUpdate(id: string, resourceGroupName: string, workspaceName: string, body: Models.JobBaseResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + createOrUpdate(id: string, resourceGroupName: string, workspaceName: string, body: Models.JobBaseResource, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + createOrUpdate(id: string, resourceGroupName: string, workspaceName: string, body: Models.JobBaseResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(id: string, resourceGroupName: string, workspaceName: string, body: Models.JobBaseResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + id, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + cancel(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + cancel(id: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + cancel(id: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + cancel(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + id, + resourceGroupName, + workspaceName, + options + }, + cancelOperationSpec, + callback); + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + beginDeleteMethod(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + id, + resourceGroupName, + workspaceName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * @summary Lists Jobs in the workspace. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.JobsListNextOptionalParams): 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(nextPageLink: string, options: Models.JobsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.JobsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.jobType, + Parameters.tags1, + Parameters.tag + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JobBaseResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", + urlParameters: [ + Parameters.id0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JobBaseResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", + urlParameters: [ + Parameters.id1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.JobBaseResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.JobBaseResource + }, + 201: { + bodyMapper: Mappers.JobBaseResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const cancelOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}/cancel", + urlParameters: [ + Parameters.id0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", + urlParameters: [ + Parameters.id0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.JobsDeleteHeaders + }, + 202: { + headersMapper: Mappers.JobsDeleteHeaders + }, + 204: { + headersMapper: Mappers.JobsDeleteHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse, + headersMapper: Mappers.JobsDeleteHeaders + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.jobType, + Parameters.tags1, + Parameters.tag + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JobBaseResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + 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..809e7d21cbfa --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/labelingJobs.ts @@ -0,0 +1,540 @@ +/* + * 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/labelingJobsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a LabelingJobs. */ +export class LabelingJobs { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a LabelingJobs. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: Models.LabelingJobsListOptionalParams): Promise; + /** + * @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 + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 + */ + list(resourceGroupName: string, workspaceName: string, options: Models.LabelingJobsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: Models.LabelingJobsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + deleteMethod(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + deleteMethod(id: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + deleteMethod(id: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + id, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + get(id: string, resourceGroupName: string, workspaceName: string, options?: Models.LabelingJobsGetOptionalParams): Promise; + /** + * @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 callback The callback + */ + get(id: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + get(id: string, resourceGroupName: string, workspaceName: string, options: Models.LabelingJobsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(id: string, resourceGroupName: string, workspaceName: string, options?: Models.LabelingJobsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + id, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + createOrUpdate(id: string, resourceGroupName: string, workspaceName: string, body: Models.LabelingJobResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(id,resourceGroupName,workspaceName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + exportLabels(id: string, resourceGroupName: string, workspaceName: string, body: Models.ExportSummaryUnion, options?: msRest.RequestOptionsBase): Promise { + return this.beginExportLabels(id,resourceGroupName,workspaceName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + pause(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + pause(id: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + pause(id: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + pause(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + id, + resourceGroupName, + workspaceName, + options + }, + pauseOperationSpec, + callback); + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + resume(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginResume(id,resourceGroupName,workspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + beginCreateOrUpdate(id: string, resourceGroupName: string, workspaceName: string, body: Models.LabelingJobResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + id, + resourceGroupName, + workspaceName, + body, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + beginExportLabels(id: string, resourceGroupName: string, workspaceName: string, body: Models.ExportSummaryUnion, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + id, + resourceGroupName, + workspaceName, + body, + options + }, + beginExportLabelsOperationSpec, + options); + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + beginResume(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + id, + resourceGroupName, + workspaceName, + options + }, + beginResumeOperationSpec, + options); + } + + /** + * @summary Lists labeling jobs in the workspace. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.LabelingJobsListNextOptionalParams): 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(nextPageLink: string, options: Models.LabelingJobsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.LabelingJobsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.count0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LabelingJobResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", + urlParameters: [ + Parameters.id0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", + urlParameters: [ + Parameters.id0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.includeJobInstructions, + Parameters.includeLabelCategories + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LabelingJobResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const pauseOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/pause", + urlParameters: [ + Parameters.id0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", + urlParameters: [ + Parameters.id1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.LabelingJobResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.LabelingJobResource, + headersMapper: Mappers.LabelingJobsCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.LabelingJobResource, + headersMapper: Mappers.LabelingJobsCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse, + headersMapper: Mappers.LabelingJobsCreateOrUpdateHeaders + } + }, + serializer +}; + +const beginExportLabelsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/exportLabels", + urlParameters: [ + Parameters.id0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.ExportSummary, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ExportSummary, + headersMapper: Mappers.LabelingJobsExportLabelsHeaders + }, + 202: { + headersMapper: Mappers.LabelingJobsExportLabelsHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse, + headersMapper: Mappers.LabelingJobsExportLabelsHeaders + } + }, + serializer +}; + +const beginResumeOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/resume", + urlParameters: [ + Parameters.id0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.LabelingJobsResumeHeaders + }, + 202: { + headersMapper: Mappers.LabelingJobsResumeHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse, + headersMapper: Mappers.LabelingJobsResumeHeaders + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.count0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LabelingJobResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + 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..c767c789e2d9 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/modelContainers.ts @@ -0,0 +1,341 @@ +/* + * 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 Models from "../models"; +import * as Mappers from "../models/modelContainersMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a ModelContainers. */ +export class ModelContainers { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a ModelContainers. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: Models.ModelContainersListOptionalParams): Promise; + /** + * @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 + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 + */ + list(resourceGroupName: string, workspaceName: string, options: Models.ModelContainersListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: Models.ModelContainersListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.ModelContainerResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.ModelContainerResource, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.ModelContainerResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.ModelContainerResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary List model containers. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.ModelContainersListNextOptionalParams): 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(nextPageLink: string, options: Models.ModelContainersListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ModelContainersListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.count0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ModelContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}", + urlParameters: [ + Parameters.name0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}", + urlParameters: [ + Parameters.name0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ModelContainerResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.ModelContainerResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ModelContainerResource + }, + 201: { + bodyMapper: Mappers.ModelContainerResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.count0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ModelContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + 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..c40f1c663897 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/modelVersions.ts @@ -0,0 +1,373 @@ +/* + * 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 Models from "../models"; +import * as Mappers from "../models/modelVersionsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a ModelVersions. */ +export class ModelVersions { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a ModelVersions. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + list(name: string, resourceGroupName: string, workspaceName: string, options?: Models.ModelVersionsListOptionalParams): Promise; + /** + * @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 callback The callback + */ + list(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + list(name: string, resourceGroupName: string, workspaceName: string, options: Models.ModelVersionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(name: string, resourceGroupName: string, workspaceName: string, options?: Models.ModelVersionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.ModelVersionResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.ModelVersionResource, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.ModelVersionResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.ModelVersionResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary List model versions. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.ModelVersionsListNextOptionalParams): 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(nextPageLink: string, options: Models.ModelVersionsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ModelVersionsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions", + urlParameters: [ + Parameters.name0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy0, + Parameters.top, + Parameters.version1, + Parameters.description, + Parameters.offset, + Parameters.tags1, + Parameters.properties + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ModelVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}", + urlParameters: [ + Parameters.name0, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}", + urlParameters: [ + Parameters.name0, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ModelVersionResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}", + urlParameters: [ + Parameters.name1, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.ModelVersionResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ModelVersionResource + }, + 201: { + bodyMapper: Mappers.ModelVersionResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy0, + Parameters.top, + Parameters.version1, + Parameters.description, + Parameters.offset, + Parameters.tags1, + Parameters.properties + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ModelVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + 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..e16b2757b65d --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/onlineDeployments.ts @@ -0,0 +1,522 @@ +/* + * 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/onlineDeploymentsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a OnlineDeployments. */ +export class OnlineDeployments { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a OnlineDeployments. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + list(endpointName: string, resourceGroupName: string, workspaceName: string, options?: Models.OnlineDeploymentsListOptionalParams): Promise; + /** + * @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 callback The callback + */ + list(endpointName: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + list(endpointName: string, resourceGroupName: string, workspaceName: string, options: Models.OnlineDeploymentsListOptionalParams, callback: msRest.ServiceCallback): void; + list(endpointName: string, resourceGroupName: string, workspaceName: string, options?: Models.OnlineDeploymentsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + deleteMethod(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(endpointName,deploymentName,resourceGroupName,workspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + get(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + get(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + get(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + update(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.PartialOnlineDeploymentPartialTrackedResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(endpointName,deploymentName,resourceGroupName,workspaceName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + createOrUpdate(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.OnlineDeploymentTrackedResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(endpointName,deploymentName,resourceGroupName,workspaceName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + getLogs(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.DeploymentLogsRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + getLogs(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.DeploymentLogsRequest, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + getLogs(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.DeploymentLogsRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getLogs(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.DeploymentLogsRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + body, + options + }, + getLogsOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + beginDeleteMethod(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + beginUpdate(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.PartialOnlineDeploymentPartialTrackedResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + body, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + beginCreateOrUpdate(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.OnlineDeploymentTrackedResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + body, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * @summary List Inference Endpoint Deployments. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.OnlineDeploymentsListNextOptionalParams): 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(nextPageLink: string, options: Models.OnlineDeploymentsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.OnlineDeploymentsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments", + urlParameters: [ + Parameters.endpointName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.orderBy0, + Parameters.top, + Parameters.skip + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OnlineDeploymentTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", + urlParameters: [ + Parameters.endpointName0, + Parameters.deploymentName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OnlineDeploymentTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getLogsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}/getLogs", + urlParameters: [ + Parameters.endpointName0, + Parameters.deploymentName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.DeploymentLogsRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DeploymentLogs + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", + urlParameters: [ + Parameters.endpointName0, + Parameters.deploymentName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.OnlineDeploymentsDeleteHeaders + }, + 202: { + headersMapper: Mappers.OnlineDeploymentsDeleteHeaders + }, + 204: { + headersMapper: Mappers.OnlineDeploymentsDeleteHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse, + headersMapper: Mappers.OnlineDeploymentsDeleteHeaders + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", + urlParameters: [ + Parameters.endpointName1, + Parameters.deploymentName1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.PartialOnlineDeploymentPartialTrackedResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OnlineDeploymentTrackedResource, + headersMapper: Mappers.OnlineDeploymentsUpdateHeaders + }, + 202: { + headersMapper: Mappers.OnlineDeploymentsUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse, + headersMapper: Mappers.OnlineDeploymentsUpdateHeaders + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", + urlParameters: [ + Parameters.endpointName1, + Parameters.deploymentName1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.OnlineDeploymentTrackedResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OnlineDeploymentTrackedResource, + headersMapper: Mappers.OnlineDeploymentsCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.OnlineDeploymentTrackedResource, + headersMapper: Mappers.OnlineDeploymentsCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse, + headersMapper: Mappers.OnlineDeploymentsCreateOrUpdateHeaders + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.orderBy0, + Parameters.top, + Parameters.skip + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OnlineDeploymentTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + 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..f624b3f53de5 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/onlineEndpoints.ts @@ -0,0 +1,629 @@ +/* + * 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/onlineEndpointsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a OnlineEndpoints. */ +export class OnlineEndpoints { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a OnlineEndpoints. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: Models.OnlineEndpointsListOptionalParams): Promise; + /** + * @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 + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 + */ + list(resourceGroupName: string, workspaceName: string, options: Models.OnlineEndpointsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: Models.OnlineEndpointsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + deleteMethod(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(endpointName,resourceGroupName,workspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + get(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + get(endpointName: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + get(endpointName: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + update(endpointName: string, resourceGroupName: string, workspaceName: string, body: Models.PartialOnlineEndpointPartialTrackedResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(endpointName,resourceGroupName,workspaceName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + createOrUpdate(endpointName: string, resourceGroupName: string, workspaceName: string, body: Models.OnlineEndpointTrackedResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(endpointName,resourceGroupName,workspaceName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + listKeys(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + listKeys(endpointName: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + listKeys(endpointName: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listKeys(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + resourceGroupName, + workspaceName, + options + }, + listKeysOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + regenerateKeys(endpointName: string, resourceGroupName: string, workspaceName: string, body: Models.RegenerateEndpointKeysRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginRegenerateKeys(endpointName,resourceGroupName,workspaceName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + getToken(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + getToken(endpointName: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + getToken(endpointName: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getToken(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + resourceGroupName, + workspaceName, + options + }, + getTokenOperationSpec, + callback) as Promise; + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + beginDeleteMethod(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + endpointName, + resourceGroupName, + workspaceName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + beginUpdate(endpointName: string, resourceGroupName: string, workspaceName: string, body: Models.PartialOnlineEndpointPartialTrackedResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + endpointName, + resourceGroupName, + workspaceName, + body, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + beginCreateOrUpdate(endpointName: string, resourceGroupName: string, workspaceName: string, body: Models.OnlineEndpointTrackedResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + endpointName, + resourceGroupName, + workspaceName, + body, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * @summary 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 optional parameters + * @returns Promise + */ + beginRegenerateKeys(endpointName: string, resourceGroupName: string, workspaceName: string, body: Models.RegenerateEndpointKeysRequest, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + endpointName, + resourceGroupName, + workspaceName, + body, + options + }, + beginRegenerateKeysOperationSpec, + options); + } + + /** + * @summary List Online Endpoints. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.OnlineEndpointsListNextOptionalParams): 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(nextPageLink: string, options: Models.OnlineEndpointsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.OnlineEndpointsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.name2, + Parameters.count0, + Parameters.computeType, + Parameters.skip, + Parameters.tags1, + Parameters.properties, + Parameters.orderBy1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OnlineEndpointTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", + urlParameters: [ + Parameters.endpointName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OnlineEndpointTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/listKeys", + urlParameters: [ + Parameters.endpointName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EndpointAuthKeys + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getTokenOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/token", + urlParameters: [ + Parameters.endpointName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EndpointAuthToken + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", + urlParameters: [ + Parameters.endpointName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.OnlineEndpointsDeleteHeaders + }, + 202: { + headersMapper: Mappers.OnlineEndpointsDeleteHeaders + }, + 204: { + headersMapper: Mappers.OnlineEndpointsDeleteHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse, + headersMapper: Mappers.OnlineEndpointsDeleteHeaders + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", + urlParameters: [ + Parameters.endpointName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.PartialOnlineEndpointPartialTrackedResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OnlineEndpointTrackedResource, + headersMapper: Mappers.OnlineEndpointsUpdateHeaders + }, + 202: { + headersMapper: Mappers.OnlineEndpointsUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse, + headersMapper: Mappers.OnlineEndpointsUpdateHeaders + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", + urlParameters: [ + Parameters.endpointName1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.OnlineEndpointTrackedResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OnlineEndpointTrackedResource, + headersMapper: Mappers.OnlineEndpointsCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.OnlineEndpointTrackedResource, + headersMapper: Mappers.OnlineEndpointsCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse, + headersMapper: Mappers.OnlineEndpointsCreateOrUpdateHeaders + } + }, + serializer +}; + +const beginRegenerateKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/regenerateKeys", + urlParameters: [ + Parameters.endpointName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.RegenerateEndpointKeysRequest, + required: true + } + }, + responses: { + 200: { + headersMapper: Mappers.OnlineEndpointsRegenerateKeysHeaders + }, + 202: { + headersMapper: Mappers.OnlineEndpointsRegenerateKeysHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse, + headersMapper: Mappers.OnlineEndpointsRegenerateKeysHeaders + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.name2, + Parameters.count0, + Parameters.computeType, + Parameters.skip, + Parameters.tags1, + Parameters.properties, + Parameters.orderBy1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OnlineEndpointTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/operations.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/operations.ts index 7ffd14de81bc..a68a2144639e 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/operations.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/operations.ts @@ -66,7 +66,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.OperationListResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts index 187767656333..dbe044b051ac 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts @@ -8,7 +8,6 @@ */ 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 * as Parameters from "../models/parameters"; @@ -26,9 +25,41 @@ export class PrivateEndpointConnections { this.client = client; } + /** + * 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 optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 + */ + 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( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + /** * Gets 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 @@ -37,7 +68,7 @@ export class PrivateEndpointConnections { */ get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: 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 privateEndpointConnectionName The name of the private endpoint connection associated with * the workspace @@ -45,7 +76,7 @@ export class PrivateEndpointConnections { */ get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; /** - * @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 @@ -67,26 +98,26 @@ export class PrivateEndpointConnections { /** * 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 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 optional parameters - * @returns Promise + * @returns Promise */ - put(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise; + createOrUpdate(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 properties The private endpoint connection properties. * @param callback The callback */ - put(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, callback: msRest.ServiceCallback): void; + createOrUpdate(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 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 @@ -94,8 +125,8 @@ export class PrivateEndpointConnections { * @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: Models.PrivateEndpointConnection, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -104,48 +135,77 @@ export class PrivateEndpointConnections { properties, options }, - putOperationSpec, - callback) as Promise; + createOrUpdateOperationSpec, + callback) as Promise; } /** * 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 */ - deleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,workspaceName,privateEndpointConnectionName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - + deleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; /** - * 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 callback The callback + */ + deleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @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 */ - beginDeleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( + deleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( { resourceGroupName, workspaceName, privateEndpointConnectionName, options }, - beginDeleteMethodOperationSpec, - options); + deleteMethodOperationSpec, + callback); } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", @@ -166,13 +226,13 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateEndpointConnection }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer }; -const putOperationSpec: msRest.OperationSpec = { +const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", urlParameters: [ @@ -199,13 +259,13 @@ const putOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateEndpointConnection }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer }; -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { +const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", urlParameters: [ @@ -222,10 +282,9 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { ], responses: { 200: {}, - 202: {}, 204: {}, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateLinkResources.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateLinkResources.ts index a0de2b6f5817..e38e28fe8ca7 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateLinkResources.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateLinkResources.ts @@ -27,40 +27,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 + * @returns Promise */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + list(resourceGroupName: string, workspaceName: 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 callback The callback */ - listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; /** - * @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 * @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: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listByWorkspaceOperationSpec, - callback) as Promise; + listOperationSpec, + callback) as Promise; } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const listByWorkspaceOperationSpec: msRest.OperationSpec = { +const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateLinkResources", urlParameters: [ diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/quotas.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/quotas.ts index fbf9d1cc0c0d..54d2d869d7e1 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/quotas.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/quotas.ts @@ -141,7 +141,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.UpdateWorkspaceQuotasResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -149,7 +149,7 @@ const updateOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/Quotas", + path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/quotas", urlParameters: [ Parameters.subscriptionId, Parameters.location @@ -165,7 +165,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ListWorkspaceQuotas }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -189,7 +189,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ListWorkspaceQuotas }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts index 9be626180c93..5a99cbbea522 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts @@ -31,7 +31,7 @@ export class VirtualMachineSizes { * @param [options] The optional parameters * @returns Promise */ - list(location: string, options?: Models.VirtualMachineSizesListOptionalParams): Promise; + list(location: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location The location upon which virtual-machine-sizes is queried. * @param callback The callback @@ -42,8 +42,8 @@ export class VirtualMachineSizes { * @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: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -64,9 +64,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion, - Parameters.computeType, - Parameters.recommended + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceConnections.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceConnections.ts index 77864d7360ee..02bd84048028 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceConnections.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceConnections.ts @@ -27,20 +27,20 @@ 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 */ list(resourceGroupName: string, workspaceName: string, options?: Models.WorkspaceConnectionsListOptionalParams): 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 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 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 @@ -59,32 +59,32 @@ export class WorkspaceConnections { /** * 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 */ - create(resourceGroupName: string, workspaceName: string, connectionName: string, parameters: Models.WorkspaceConnectionDto, options?: msRest.RequestOptionsBase): Promise; + create(resourceGroupName: string, workspaceName: string, connectionName: string, parameters: Models.WorkspaceConnection, 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 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; + create(resourceGroupName: string, workspaceName: string, connectionName: string, parameters: Models.WorkspaceConnection, callback: msRest.ServiceCallback): void; /** - * @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 * @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: Models.WorkspaceConnection, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, workspaceName: string, connectionName: string, parameters: Models.WorkspaceConnection, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -99,7 +99,7 @@ export class WorkspaceConnections { /** * 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 @@ -107,14 +107,14 @@ export class WorkspaceConnections { */ get(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 */ get(resourceGroupName: string, workspaceName: string, connectionName: string, callback: msRest.ServiceCallback): void; /** - * @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 @@ -135,7 +135,7 @@ export class WorkspaceConnections { /** * Delete 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 @@ -143,14 +143,14 @@ export class WorkspaceConnections { */ 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 */ deleteMethod(resourceGroupName: string, workspaceName: string, connectionName: string, callback: msRest.ServiceCallback): void; /** - * @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 @@ -193,7 +193,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PaginatedWorkspaceConnectionsList }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -217,7 +217,7 @@ const createOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "parameters", mapper: { - ...Mappers.WorkspaceConnectionDto, + ...Mappers.WorkspaceConnection, required: true } }, @@ -226,7 +226,7 @@ const createOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.WorkspaceConnection }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -252,7 +252,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.WorkspaceConnection }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -277,7 +277,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceFeatures.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceFeatures.ts index a887c0669d7f..136f02269a30 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceFeatures.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceFeatures.ts @@ -27,20 +27,20 @@ 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 */ list(resourceGroupName: string, workspaceName: 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 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 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 @@ -107,7 +107,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ListAmlUserFeatureResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -131,7 +131,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ListAmlUserFeatureResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, 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..f386df5179ad --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceSkus.ts @@ -0,0 +1,128 @@ +/* + * 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 Models from "../models"; +import * as Mappers from "../models/workspaceSkusMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a WorkspaceSkus. */ +export class WorkspaceSkus { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a WorkspaceSkus. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * Lists all skus with associated features + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + 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; + } + + /** + * 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 + */ + 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(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: 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.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: 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.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaces.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaces.ts index 9fc610c5256c..98cd88001eda 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaces.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaces.ts @@ -28,20 +28,20 @@ export class Workspaces { /** * Gets the properties of the specified 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 */ get(resourceGroupName: string, workspaceName: 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 callback The callback */ get(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; /** - * @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 * @param callback The callback @@ -60,7 +60,7 @@ export class Workspaces { /** * 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 @@ -73,7 +73,7 @@ export class Workspaces { /** * 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 @@ -85,7 +85,7 @@ export class Workspaces { /** * Updates a machine learning 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 updating a machine learning workspace. * @param [options] The optional parameters @@ -93,14 +93,14 @@ export class Workspaces { */ update(resourceGroupName: string, workspaceName: string, parameters: Models.WorkspaceUpdateParameters, 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 parameters The parameters for updating a machine learning workspace. * @param callback The callback */ update(resourceGroupName: string, workspaceName: string, parameters: Models.WorkspaceUpdateParameters, callback: msRest.ServiceCallback): void; /** - * @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 updating a machine learning workspace. * @param options The optional parameters @@ -121,18 +121,18 @@ export class Workspaces { /** * 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 resourceGroupName The name of the resource group. The name is case insensitive. * @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 resourceGroupName The name of the resource group. The name is case insensitive. * @param callback The callback */ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** - * @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 options The optional parameters * @param callback The callback */ @@ -150,20 +150,20 @@ export class Workspaces { /** * 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. + * @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 */ listKeys(resourceGroupName: string, workspaceName: 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 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 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 @@ -183,63 +183,148 @@ export class Workspaces { /** * 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 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 */ - resyncKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + resyncKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginResyncKeys(resourceGroupName,workspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Lists all the available machine learning workspaces under the specified subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(options?: Models.WorkspacesListBySubscriptionOptionalParams): Promise; + /** + * @param callback The callback + */ + listBySubscription(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 + */ + listBySubscription(options: Models.WorkspacesListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscription(options?: Models.WorkspacesListBySubscriptionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listBySubscriptionOperationSpec, + callback) as 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 optional parameters + * @returns Promise + */ + listNotebookAccessToken(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 */ - resyncKeys(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + listNotebookAccessToken(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; /** - * @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 * @param callback The callback */ - 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 { + listNotebookAccessToken(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNotebookAccessToken(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - resyncKeysOperationSpec, - callback); + listNotebookAccessTokenOperationSpec, + callback) as Promise; } /** - * Lists all the available machine learning workspaces under the specified subscription. + * @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 + * @returns Promise */ - listBySubscription(options?: Models.WorkspacesListBySubscriptionOptionalParams): Promise; + prepareNotebook(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginPrepareNotebook(resourceGroupName,workspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as 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 optional parameters + * @returns Promise + */ + listStorageAccountKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 */ - listBySubscription(callback: msRest.ServiceCallback): void; + listStorageAccountKeys(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; /** + * @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 */ - listBySubscription(options: Models.WorkspacesListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; - listBySubscription(options?: Models.WorkspacesListBySubscriptionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listStorageAccountKeys(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listStorageAccountKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + resourceGroupName, + workspaceName, options }, - listBySubscriptionOperationSpec, - callback) as Promise; + listStorageAccountKeysOperationSpec, + callback) as 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 optional parameters + * @returns Promise + */ + listNotebookKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 + */ + listNotebookKeys(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @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 + */ + listNotebookKeys(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNotebookKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listNotebookKeysOperationSpec, + callback) as Promise; } /** * 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 @@ -259,7 +344,7 @@ export class Workspaces { /** * 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 @@ -275,6 +360,42 @@ export class Workspaces { options); } + /** + * 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 + * @returns Promise + */ + beginResyncKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + options + }, + beginResyncKeysOperationSpec, + options); + } + + /** + * @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 + */ + beginPrepareNotebook(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + options + }, + beginPrepareNotebookOperationSpec, + options); + } + /** * Lists all the available machine learning workspaces under the specified resource group. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -353,7 +474,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Workspace }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -385,7 +506,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Workspace }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -400,7 +521,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.apiVersion, - Parameters.skiptoken + Parameters.skip ], headerParameters: [ Parameters.acceptLanguage @@ -410,7 +531,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.WorkspaceListResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -435,15 +556,39 @@ const listKeysOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ListWorkspaceKeysResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer }; -const resyncKeysOperationSpec: msRest.OperationSpec = { +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkspaceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNotebookAccessTokenOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookAccessToken", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -456,33 +601,61 @@ const resyncKeysOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 200: {}, + 200: { + bodyMapper: Mappers.NotebookAccessTokenResult + }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer }; -const listBySubscriptionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces", +const listStorageAccountKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listStorageAccountKeys", urlParameters: [ - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName ], queryParameters: [ - Parameters.apiVersion, - Parameters.skiptoken + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.WorkspaceListResult + bodyMapper: Mappers.ListStorageAccountKeysResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNotebookKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookKeys", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListNotebookKeysResult + }, + default: { + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -518,7 +691,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -543,7 +716,57 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginResyncKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginPrepareNotebookOperationSpec: 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.ErrorResponse } }, serializer @@ -558,7 +781,7 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.apiVersion, - Parameters.skiptoken + Parameters.skip ], headerParameters: [ Parameters.acceptLanguage @@ -568,7 +791,7 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.WorkspaceListResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -583,7 +806,7 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.apiVersion, - Parameters.skiptoken + Parameters.skip ], headerParameters: [ Parameters.acceptLanguage @@ -593,7 +816,7 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.WorkspaceListResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer