From 94598fe292d02e8ae2e8d0d4a7aeb3a032b41404 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 5 Aug 2022 05:53:12 +0000 Subject: [PATCH] CodeGen from PR 19842 in Azure/azure-rest-api-specs [Hub Generated] Review request for Microsoft.MachineLearningServices to add version preview/2022-06-01-preview (#19842) * Adds base for updating Microsoft.MachineLearningServices from version stable/2022-05-01 to version 2022-06-01-preview * Updates readme * Updates API version in new specs and examples * Add idleShutdownSetting to Compute Instances (#19748) * Added idleTimeBeforeShutdown to compute instance properties * Added api UpdateIdleShutdownSetting Co-authored-by: Teo Magnino Chaban * Add mfe.json 2022-06-01-preview changes (#19740) * update mfe.json with 2022-06-01-preview spec * update go.md with preview-2022-06 * add AutoMLJob examples (initial) * add LabelingJob examples (initial) * add Schedule examples (initial) * prettier * update AutoMLJob examples * update LabelingJob examples * update LabelingJob examples * prettier * typo fixes * add Vectorizer to custom-words.txt * add missing * is this a breaking change? * Revert "update go.md with preview-2022-06" This reverts commit b49c64ae0eb258069251c8c13085fd1e5dde56e2. * Updating Swagger Spec for MLC for CustomServices (#19781) * Updating Swagger Spec for MLC for CustomServices * Added Examples * Removing update API in favor of exisiting Patch API and Fixing some Validation issues * Fixed Pretty Issue * Fixed Id Issue * Changed case * Updated Examples * Changing Description * Added nullable fields * Added update APIs * Fixing validation errors * Fix model validation Co-authored-by: Srivatsa Sinha * Add encryption property to workspace update parameters (#19893) * Add encryption property to workspace update parameters Adding the ability for users to update CMK keyIdentifier property for workspace update. * Apply prettier changes Co-authored-by: Joshua Loeffler * Add enum value to OutputDataDeliveryMode (#19964) * add soft delete related properties (#19907) * add soft delete related properties * resolve lint diff issue that enum name duplicaton Co-authored-by: Xi Jin * Remove SoftDeleteEnabled. (#20005) * reorder DeploymentResourceConfiguration Definition (#20057) Co-authored-by: Teddy Todorov Co-authored-by: teochaban Co-authored-by: Teo Magnino Chaban Co-authored-by: Teddy Todorov Co-authored-by: srivatsasinha <102133347+srivatsasinha@users.noreply.github.com> Co-authored-by: Srivatsa Sinha Co-authored-by: jloeffler7 <102193043+jloeffler7@users.noreply.github.com> Co-authored-by: Joshua Loeffler Co-authored-by: XI JIN Co-authored-by: Xi Jin Co-authored-by: ZhidaLiu <86350902+ZhidaLiu@users.noreply.github.com> --- .../arm-machinelearning/CHANGELOG.md | 291 +- .../arm-machinelearning/README.md | 2 +- .../arm-machinelearning/_meta.json | 6 +- .../arm-machinelearning/package.json | 14 +- .../review/arm-machinelearning.api.md | 1639 +++- .../src/azureMachineLearningWorkspaces.ts | 12 +- .../arm-machinelearning/src/models/index.ts | 3798 ++++++++- .../arm-machinelearning/src/models/mappers.ts | 7340 +++++++++++++---- .../src/models/parameters.ts | 101 +- .../src/operations/computeOperations.ts | 98 + .../src/operations/index.ts | 2 + .../src/operations/jobs.ts | 8 +- .../src/operations/labelingJobs.ts | 691 ++ .../src/operations/modelContainers.ts | 2 +- .../src/operations/modelVersions.ts | 2 +- .../src/operations/onlineDeployments.ts | 6 +- .../src/operations/onlineEndpoints.ts | 4 +- .../src/operations/schedules.ts | 468 ++ .../src/operations/workspaceConnections.ts | 2 +- .../operationsInterfaces/computeOperations.ts | 36 +- .../src/operationsInterfaces/index.ts | 2 + .../src/operationsInterfaces/labelingJobs.ts | 175 + .../src/operationsInterfaces/schedules.ts | 109 + .../arm-machinelearning/tsconfig.json | 10 +- 24 files changed, 12736 insertions(+), 2082 deletions(-) create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/labelingJobs.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/schedules.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/labelingJobs.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/schedules.ts diff --git a/sdk/machinelearning/arm-machinelearning/CHANGELOG.md b/sdk/machinelearning/arm-machinelearning/CHANGELOG.md index e78d3d20bfb1b..a5cb4d9c650f4 100644 --- a/sdk/machinelearning/arm-machinelearning/CHANGELOG.md +++ b/sdk/machinelearning/arm-machinelearning/CHANGELOG.md @@ -1,15 +1,290 @@ # Release History + +## 2.0.0-beta.1 (2022-08-05) + +**Features** -## 1.0.1 (Unreleased) + - Added operation group LabelingJobs + - Added operation group Schedules + - Added operation ComputeOperations.updateCustomServices + - Added operation ComputeOperations.updateIdleShutdownSetting + - Added Interface AutoForecastHorizon + - Added Interface AutoMLJob + - Added Interface AutoMLVertical + - Added Interface AutoNCrossValidations + - Added Interface AutoSeasonality + - Added Interface AutoTargetLags + - Added Interface AutoTargetRollingWindowSize + - Added Interface AzureDatastore + - Added Interface BindOptions + - Added Interface Classification + - Added Interface ClassificationTrainingSettings + - Added Interface CocoExportSummary + - Added Interface ColumnTransformer + - Added Interface ComputeUpdateCustomServicesOptionalParams + - Added Interface ComputeUpdateIdleShutdownSettingOptionalParams + - Added Interface CronTrigger + - Added Interface CsvExportSummary + - Added Interface CustomForecastHorizon + - Added Interface CustomNCrossValidations + - Added Interface CustomSeasonality + - Added Interface CustomService + - Added Interface CustomTargetLags + - Added Interface CustomTargetRollingWindowSize + - Added Interface DatasetExportSummary + - Added Interface DeploymentResourceConfiguration + - Added Interface Docker + - Added Interface EncryptionKeyVaultUpdateProperties + - Added Interface EncryptionUpdateProperties + - Added Interface Endpoint + - Added Interface EndpointScheduleAction + - Added Interface EnvironmentVariable + - Added Interface ExportSummary + - Added Interface FeaturizationSettings + - Added Interface ForecastHorizon + - Added Interface Forecasting + - Added Interface ForecastingSettings + - Added Interface ForecastingTrainingSettings + - Added Interface HdfsDatastore + - Added Interface IdleShutdownSetting + - Added Interface Image_2 + - Added Interface ImageClassification + - Added Interface ImageClassificationBase + - Added Interface ImageClassificationMultilabel + - Added Interface ImageInstanceSegmentation + - Added Interface ImageLimitSettings + - Added Interface ImageModelDistributionSettings + - Added Interface ImageModelDistributionSettingsClassification + - Added Interface ImageModelDistributionSettingsObjectDetection + - Added Interface ImageModelSettings + - Added Interface ImageModelSettingsClassification + - Added Interface ImageModelSettingsObjectDetection + - Added Interface ImageObjectDetection + - Added Interface ImageObjectDetectionBase + - Added Interface ImageSweepLimitSettings + - Added Interface ImageSweepSettings + - Added Interface ImageVertical + - Added Interface JobResourceConfiguration + - Added Interface JobScheduleAction + - Added Interface KerberosCredentials + - Added Interface KerberosKeytabCredentials + - Added Interface KerberosKeytabSecrets + - Added Interface KerberosPasswordCredentials + - Added Interface KerberosPasswordSecrets + - Added Interface LabelCategory + - Added Interface LabelClass + - Added Interface LabelingDataConfiguration + - Added Interface LabelingJob + - Added Interface LabelingJobImageProperties + - Added Interface LabelingJobInstructions + - Added Interface LabelingJobMediaProperties + - Added Interface LabelingJobProperties + - Added Interface LabelingJobResourceArmPaginatedResult + - Added Interface LabelingJobsCreateOrUpdateHeaders + - Added Interface LabelingJobsCreateOrUpdateOptionalParams + - Added Interface LabelingJobsDeleteOptionalParams + - Added Interface LabelingJobsExportLabelsHeaders + - Added Interface LabelingJobsExportLabelsOptionalParams + - Added Interface LabelingJobsGetOptionalParams + - Added Interface LabelingJobsListNextOptionalParams + - Added Interface LabelingJobsListOptionalParams + - Added Interface LabelingJobsPauseOptionalParams + - Added Interface LabelingJobsResumeHeaders + - Added Interface LabelingJobsResumeOptionalParams + - Added Interface LabelingJobTextProperties + - Added Interface MLAssistConfiguration + - Added Interface MLAssistConfigurationDisabled + - Added Interface MLAssistConfigurationEnabled + - Added Interface NCrossValidations + - Added Interface NlpVertical + - Added Interface NlpVerticalFeaturizationSettings + - Added Interface NlpVerticalLimitSettings + - Added Interface ProgressMetrics + - Added Interface RecurrenceSchedule + - Added Interface RecurrenceTrigger + - Added Interface Regression + - Added Interface RegressionTrainingSettings + - Added Interface Schedule + - Added Interface ScheduleActionBase + - Added Interface ScheduleProperties + - Added Interface ScheduleResourceArmPaginatedResult + - Added Interface SchedulesCreateOrUpdateHeaders + - Added Interface SchedulesCreateOrUpdateOptionalParams + - Added Interface SchedulesDeleteHeaders + - Added Interface SchedulesDeleteOptionalParams + - Added Interface SchedulesGetOptionalParams + - Added Interface SchedulesListNextOptionalParams + - Added Interface SchedulesListOptionalParams + - Added Interface Seasonality + - Added Interface SparkJob + - Added Interface SparkJobEntry + - Added Interface SparkJobPythonEntry + - Added Interface SparkJobScalaEntry + - Added Interface SparkResourceConfiguration + - Added Interface StackEnsembleSettings + - Added Interface StatusMessage + - Added Interface TableVertical + - Added Interface TableVerticalFeaturizationSettings + - Added Interface TableVerticalLimitSettings + - Added Interface TargetLags + - Added Interface TargetRollingWindowSize + - Added Interface TextClassification + - Added Interface TextClassificationMultilabel + - Added Interface TextNer + - Added Interface TmpfsOptions + - Added Interface TrainingSettings + - Added Interface TriggerBase + - Added Interface VolumeDefinition + - Added Interface VolumeOptions + - Added Type Alias AutoMLVerticalUnion + - Added Type Alias BlockedTransformers + - Added Type Alias ClassificationModels + - Added Type Alias ClassificationMultilabelPrimaryMetrics + - Added Type Alias ClassificationPrimaryMetrics + - Added Type Alias ComputeProvisioningState + - Added Type Alias EgressPublicNetworkAccessType + - Added Type Alias EnvironmentVariableType + - Added Type Alias ExportFormatType + - Added Type Alias ExportSummaryUnion + - Added Type Alias FeatureLags + - Added Type Alias FeaturizationMode + - Added Type Alias ForecastHorizonMode + - Added Type Alias ForecastHorizonUnion + - Added Type Alias ForecastingModels + - Added Type Alias ForecastingPrimaryMetrics + - Added Type Alias ImageAnnotationType + - Added Type Alias ImageType + - Added Type Alias InstanceSegmentationPrimaryMetrics + - Added Type Alias JobProvisioningState + - Added Type Alias LabelingJobMediaPropertiesUnion + - Added Type Alias LabelingJobsCreateOrUpdateResponse + - Added Type Alias LabelingJobsExportLabelsResponse + - Added Type Alias LabelingJobsGetResponse + - Added Type Alias LabelingJobsListNextResponse + - Added Type Alias LabelingJobsListResponse + - Added Type Alias LearningRateScheduler + - Added Type Alias LogVerbosity + - Added Type Alias MediaType + - Added Type Alias MLAssistConfigurationType + - Added Type Alias MLAssistConfigurationUnion + - Added Type Alias ModelSize + - Added Type Alias NCrossValidationsMode + - Added Type Alias NCrossValidationsUnion + - Added Type Alias ObjectDetectionPrimaryMetrics + - Added Type Alias Protocol + - Added Type Alias PublicNetworkAccessType + - Added Type Alias RecurrenceFrequency + - Added Type Alias RegressionModels + - Added Type Alias RegressionPrimaryMetrics + - Added Type Alias ScheduleActionBaseUnion + - Added Type Alias ScheduleActionType + - Added Type Alias ScheduleProvisioningStatus + - Added Type Alias SchedulesCreateOrUpdateResponse + - Added Type Alias SchedulesGetResponse + - Added Type Alias SchedulesListNextResponse + - Added Type Alias SchedulesListResponse + - Added Type Alias SeasonalityMode + - Added Type Alias SeasonalityUnion + - Added Type Alias ShortSeriesHandlingConfiguration + - Added Type Alias SparkJobEntryType + - Added Type Alias SparkJobEntryUnion + - Added Type Alias StackMetaLearnerType + - Added Type Alias StatusMessageLevel + - Added Type Alias StochasticOptimizer + - Added Type Alias TargetAggregationFunction + - Added Type Alias TargetLagsMode + - Added Type Alias TargetLagsUnion + - Added Type Alias TargetRollingWindowSizeMode + - Added Type Alias TargetRollingWindowSizeUnion + - Added Type Alias TaskType + - Added Type Alias TextAnnotationType + - Added Type Alias TriggerBaseUnion + - Added Type Alias TriggerType + - Added Type Alias UseStl + - Added Type Alias ValidationMetricType + - Added Type Alias VolumeDefinitionType + - Added Type Alias WeekDay + - Added Type Alias WorkspaceProvisioningState + - Interface ComputeInstanceProperties has a new optional parameter customServices + - Interface ComputeInstanceProperties has a new optional parameter idleTimeBeforeShutdown + - Interface JobBaseProperties has a new optional parameter componentId + - Interface JobsListNextOptionalParams has a new optional parameter scheduled + - Interface JobsListNextOptionalParams has a new optional parameter scheduleId + - Interface JobsListOptionalParams has a new optional parameter scheduled + - Interface JobsListOptionalParams has a new optional parameter scheduleId + - Interface OnlineDeploymentProperties has a new optional parameter egressPublicNetworkAccess + - Interface OnlineEndpointProperties has a new optional parameter mirrorTraffic + - Interface OnlineEndpointProperties has a new optional parameter publicNetworkAccess + - Interface PipelineJob has a new optional parameter sourceJobId + - Interface Workspace has a new optional parameter scheduledPurgeDate + - Interface Workspace has a new optional parameter softDeletedAt + - Interface WorkspaceUpdateParameters has a new optional parameter encryption + - Class AzureMachineLearningWorkspaces has a new parameter labelingJobs + - Class AzureMachineLearningWorkspaces has a new parameter schedules + - Added Enum KnownBlockedTransformers + - Added Enum KnownClassificationModels + - Added Enum KnownClassificationMultilabelPrimaryMetrics + - Added Enum KnownClassificationPrimaryMetrics + - Added Enum KnownComputeProvisioningState + - Added Enum KnownEgressPublicNetworkAccessType + - Added Enum KnownEnvironmentVariableType + - Added Enum KnownExportFormatType + - Added Enum KnownFeatureLags + - Added Enum KnownFeaturizationMode + - Added Enum KnownForecastHorizonMode + - Added Enum KnownForecastingModels + - Added Enum KnownForecastingPrimaryMetrics + - Added Enum KnownImageAnnotationType + - Added Enum KnownImageType + - Added Enum KnownInstanceSegmentationPrimaryMetrics + - Added Enum KnownJobProvisioningState + - Added Enum KnownLearningRateScheduler + - Added Enum KnownLogVerbosity + - Added Enum KnownMediaType + - Added Enum KnownMLAssistConfigurationType + - Added Enum KnownModelSize + - Added Enum KnownNCrossValidationsMode + - Added Enum KnownObjectDetectionPrimaryMetrics + - Added Enum KnownProtocol + - Added Enum KnownPublicNetworkAccessType + - Added Enum KnownRecurrenceFrequency + - Added Enum KnownRegressionModels + - Added Enum KnownRegressionPrimaryMetrics + - Added Enum KnownScheduleActionType + - Added Enum KnownScheduleProvisioningStatus + - Added Enum KnownSeasonalityMode + - Added Enum KnownShortSeriesHandlingConfiguration + - Added Enum KnownSparkJobEntryType + - Added Enum KnownStackMetaLearnerType + - Added Enum KnownStatusMessageLevel + - Added Enum KnownStochasticOptimizer + - Added Enum KnownTargetAggregationFunction + - Added Enum KnownTargetLagsMode + - Added Enum KnownTargetRollingWindowSizeMode + - Added Enum KnownTaskType + - Added Enum KnownTextAnnotationType + - Added Enum KnownTriggerType + - Added Enum KnownUseStl + - Added Enum KnownValidationMetricType + - Added Enum KnownVolumeDefinitionType + - Added Enum KnownWeekDay + - Added Enum KnownWorkspaceProvisioningState + - Enum KnownCredentialsType has a new value KerberosKeytab + - Enum KnownCredentialsType has a new value KerberosPassword + - Enum KnownDatastoreType has a new value Hdfs + - Enum KnownJobStatus has a new value Scheduled + - Enum KnownJobType has a new value AutoML + - Enum KnownJobType has a new value Labeling + - Enum KnownJobType has a new value Spark + - Enum KnownOutputDeliveryMode has a new value Direct + - Enum KnownSecretsType has a new value KerberosKeytab + - Enum KnownSecretsType has a new value KerberosPassword -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +**Breaking Changes** + - Removed Enum KnownProvisioningState + + ## 1.0.0 (2022-07-13) The package of @azure/arm-machinelearning is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/machinelearning/arm-machinelearning/README.md b/sdk/machinelearning/arm-machinelearning/README.md index bf3e58b8e061c..0ad2e27050e1f 100644 --- a/sdk/machinelearning/arm-machinelearning/README.md +++ b/sdk/machinelearning/arm-machinelearning/README.md @@ -6,7 +6,7 @@ These APIs allow end users to operate on Azure Machine Learning Workspace resour [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-machinelearning) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-machinelearning) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-machinelearning) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-machinelearning?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/machinelearning/arm-machinelearning/_meta.json b/sdk/machinelearning/arm-machinelearning/_meta.json index 9f0f59fa6cb44..9fcc9e6cfca1a 100644 --- a/sdk/machinelearning/arm-machinelearning/_meta.json +++ b/sdk/machinelearning/arm-machinelearning/_meta.json @@ -1,8 +1,8 @@ { - "commit": "49e2859d9eef95013f083af9506127cfffd1e866", + "commit": "7f284e06ffccbde5db35773eb4548e76496d9221", "readme": "specification/machinelearningservices/resource-manager/readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\machinelearningservices\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.1 --generate-sample=true", + "autorest_command": "", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.4.0", + "release_tool": "@azure-tools/js-sdk-release-tools@2.4.1", "use": "@autorest/typescript@6.0.0-rc.1" } \ No newline at end of file diff --git a/sdk/machinelearning/arm-machinelearning/package.json b/sdk/machinelearning/arm-machinelearning/package.json index aabf6bc1776ea..c2ea030329fb8 100644 --- a/sdk/machinelearning/arm-machinelearning/package.json +++ b/sdk/machinelearning/arm-machinelearning/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for AzureMachineLearningWorkspaces.", - "version": "1.0.1", + "version": "2.0.0-beta.1", "engines": { "node": ">=12.0.0" }, @@ -109,13 +109,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-machinelearning?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md b/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md index df34d190fa638..e582a1993e4e8 100644 --- a/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md +++ b/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md @@ -189,6 +189,40 @@ export interface AssignedUser { tenantId: string; } +// @public +export interface AutoForecastHorizon extends ForecastHorizon { + mode: "Auto"; +} + +// @public +export interface AutoMLJob extends JobBaseProperties { + environmentId?: string; + environmentVariables?: { + [propertyName: string]: string | null; + }; + outputs?: { + [propertyName: string]: JobOutputUnion | null; + }; + resources?: JobResourceConfiguration; + taskDetails: AutoMLVerticalUnion; +} + +// @public +export interface AutoMLVertical { + logVerbosity?: LogVerbosity; + targetColumnName?: string; + taskType: "Classification" | "Forecasting" | "ImageClassification" | "ImageClassificationMultilabel" | "ImageInstanceSegmentation" | "ImageObjectDetection" | "Regression" | "TextClassification" | "TextClassificationMultilabel" | "TextNER"; + trainingData: MLTableJobInput; +} + +// @public (undocumented) +export type AutoMLVerticalUnion = AutoMLVertical | Classification | Forecasting | ImageClassification | ImageClassificationMultilabel | ImageInstanceSegmentation | ImageObjectDetection | Regression | TextClassification | TextClassificationMultilabel | TextNer; + +// @public +export interface AutoNCrossValidations extends NCrossValidations { + mode: "Auto"; +} + // @public export interface AutoPauseProperties { // (undocumented) @@ -210,8 +244,23 @@ export interface AutoScaleProperties { minNodeCount?: number; } +// @public (undocumented) +export interface AutoSeasonality extends Seasonality { + mode: "Auto"; +} + +// @public (undocumented) +export interface AutoTargetLags extends TargetLags { + mode: "Auto"; +} + +// @public +export interface AutoTargetRollingWindowSize extends TargetRollingWindowSize { + mode: "Auto"; +} + // @public -export interface AzureBlobDatastore extends DatastoreProperties { +export interface AzureBlobDatastore extends AzureDatastore, DatastoreProperties { accountName?: string; containerName?: string; endpoint?: string; @@ -220,13 +269,13 @@ export interface AzureBlobDatastore extends DatastoreProperties { } // @public -export interface AzureDataLakeGen1Datastore extends DatastoreProperties { +export interface AzureDataLakeGen1Datastore extends AzureDatastore, DatastoreProperties { serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; storeName: string; } // @public -export interface AzureDataLakeGen2Datastore extends DatastoreProperties { +export interface AzureDataLakeGen2Datastore extends AzureDatastore, DatastoreProperties { accountName: string; endpoint?: string; filesystem: string; @@ -235,7 +284,13 @@ export interface AzureDataLakeGen2Datastore extends DatastoreProperties { } // @public -export interface AzureFileDatastore extends DatastoreProperties { +export interface AzureDatastore { + resourceGroup?: string; + subscriptionId?: string; +} + +// @public +export interface AzureFileDatastore extends AzureDatastore, DatastoreProperties { accountName: string; endpoint?: string; fileShareName: string; @@ -277,6 +332,8 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { // (undocumented) jobs: Jobs; // (undocumented) + labelingJobs: LabelingJobs; + // (undocumented) modelContainers: ModelContainers; // (undocumented) modelVersions: ModelVersions; @@ -293,6 +350,8 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { // (undocumented) quotas: Quotas; // (undocumented) + schedules: Schedules; + // (undocumented) subscriptionId: string; // (undocumented) usages: Usages; @@ -339,7 +398,7 @@ export interface BatchDeploymentProperties extends EndpointDeploymentPropertiesB outputAction?: BatchOutputAction; outputFileName?: string; readonly provisioningState?: DeploymentProvisioningState; - resources?: ResourceConfiguration; + resources?: DeploymentResourceConfiguration; retrySettings?: BatchRetrySettings; } @@ -566,6 +625,16 @@ export interface BayesianSamplingAlgorithm extends SamplingAlgorithm { // @public export type BillingCurrency = string; +// @public (undocumented) +export interface BindOptions { + createHostPath?: boolean; + propagation?: string; + selinux?: string; +} + +// @public +export type BlockedTransformers = string; + // @public export interface BuildContext { contextUri: string; @@ -592,6 +661,28 @@ export interface CertificateDatastoreSecrets extends DatastoreSecrets { secretsType: "Certificate"; } +// @public +export interface Classification extends TableVertical, AutoMLVertical { + positiveLabel?: string; + primaryMetric?: ClassificationPrimaryMetrics; + trainingSettings?: ClassificationTrainingSettings; +} + +// @public +export type ClassificationModels = string; + +// @public +export type ClassificationMultilabelPrimaryMetrics = string; + +// @public +export type ClassificationPrimaryMetrics = string; + +// @public +export interface ClassificationTrainingSettings extends TrainingSettings { + allowedTrainingAlgorithms?: ClassificationModels[]; + blockedTrainingAlgorithms?: ClassificationModels[]; +} + // @public export type ClusterPurpose = string; @@ -600,6 +691,13 @@ export interface ClusterUpdateParameters { properties?: ScaleSettingsInformation; } +// @public (undocumented) +export interface CocoExportSummary extends ExportSummary { + readonly containerName?: string; + format: "Coco"; + readonly snapshotPath?: string; +} + // @public export interface CodeConfiguration { codeId?: string; @@ -725,6 +823,12 @@ export interface CodeVersionsListOptionalParams extends coreClient.OperationOpti // @public export type CodeVersionsListResponse = CodeVersionResourceArmPaginatedResult; +// @public +export interface ColumnTransformer { + fields?: string[]; + parameters?: Record; +} + // @public export interface CommandJob extends JobBaseProperties { codeId?: string; @@ -742,7 +846,7 @@ export interface CommandJob extends JobBaseProperties { [propertyName: string]: JobOutputUnion | null; }; readonly parameters?: Record; - resources?: ResourceConfiguration; + resources?: JobResourceConfiguration; } // @public @@ -883,7 +987,7 @@ export interface Compute { readonly isAttachedCompute?: boolean; readonly modifiedOn?: Date; readonly provisioningErrors?: ErrorResponse[]; - readonly provisioningState?: ProvisioningState; + readonly provisioningState?: ComputeProvisioningState; resourceId?: string; } @@ -1000,10 +1104,12 @@ export interface ComputeInstanceProperties { readonly connectivityEndpoints?: ComputeInstanceConnectivityEndpoints; readonly containers?: ComputeInstanceContainer[]; readonly createdBy?: ComputeInstanceCreatedBy; + customServices?: CustomService[]; readonly dataDisks?: ComputeInstanceDataDisk[]; readonly dataMounts?: ComputeInstanceDataMount[]; enableNodePublicIp?: boolean; readonly errors?: ErrorResponse[]; + idleTimeBeforeShutdown?: string; readonly lastOperation?: ComputeInstanceLastOperation; personalComputeInstanceSettings?: PersonalComputeInstanceSettings; readonly schedules?: ComputeSchedules; @@ -1091,11 +1197,16 @@ export interface ComputeOperations { list(resourceGroupName: string, workspaceName: string, options?: ComputeListOptionalParams): PagedAsyncIterableIterator; listKeys(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeListKeysOptionalParams): Promise; listNodes(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeListNodesOptionalParams): PagedAsyncIterableIterator; + updateCustomServices(resourceGroupName: string, workspaceName: string, computeName: string, customServices: CustomService[], options?: ComputeUpdateCustomServicesOptionalParams): Promise; + updateIdleShutdownSetting(resourceGroupName: string, workspaceName: string, computeName: string, parameters: IdleShutdownSetting, options?: ComputeUpdateIdleShutdownSettingOptionalParams): Promise; } // @public export type ComputePowerAction = string; +// @public +export type ComputeProvisioningState = string; + // @public export interface ComputeResource extends Resource, ComputeResourceSchema { identity?: ManagedServiceIdentity; @@ -1157,6 +1268,14 @@ export type ComputeType = string; // @public (undocumented) export type ComputeUnion = Compute | Aks | Kubernetes | AmlCompute | ComputeInstance | VirtualMachine | HDInsight | DataFactory | Databricks | DataLakeAnalytics | SynapseSpark; +// @public +export interface ComputeUpdateCustomServicesOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ComputeUpdateIdleShutdownSettingOptionalParams extends coreClient.OperationOptions { +} + // @public export interface ComputeUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1199,6 +1318,25 @@ export type CreatedByType = string; // @public export type CredentialsType = string; +// @public (undocumented) +export interface CronTrigger extends TriggerBase { + expression: string; + triggerType: "Cron"; +} + +// @public (undocumented) +export interface CsvExportSummary extends ExportSummary { + readonly containerName?: string; + format: "CSV"; + readonly snapshotPath?: string; +} + +// @public +export interface CustomForecastHorizon extends ForecastHorizon { + mode: "Custom"; + value: number; +} + // @public (undocumented) export interface CustomModelJobInput extends AssetJobInput, JobInput { } @@ -1207,6 +1345,43 @@ export interface CustomModelJobInput extends AssetJobInput, JobInput { export interface CustomModelJobOutput extends AssetJobOutput, JobOutput { } +// @public +export interface CustomNCrossValidations extends NCrossValidations { + mode: "Custom"; + value: number; +} + +// @public (undocumented) +export interface CustomSeasonality extends Seasonality { + mode: "Custom"; + value: number; +} + +// @public +export interface CustomService { + [property: string]: any; + docker?: Docker; + endpoints?: Endpoint[]; + environmentVariables?: { + [propertyName: string]: EnvironmentVariable; + }; + image?: Image_2; + name?: string; + volumes?: VolumeDefinition[]; +} + +// @public (undocumented) +export interface CustomTargetLags extends TargetLags { + mode: "Custom"; + values: number[]; +} + +// @public (undocumented) +export interface CustomTargetRollingWindowSize extends TargetRollingWindowSize { + mode: "Custom"; + value: number; +} + // @public export interface Databricks extends Compute, DatabricksSchema { computeType: "Databricks"; @@ -1321,6 +1496,12 @@ export interface DataPathAssetReference extends AssetReferenceBase { referenceType: "DataPath"; } +// @public (undocumented) +export interface DatasetExportSummary extends ExportSummary { + format: "Dataset"; + readonly labeledAssetName?: string; +} + // @public export interface Datastore extends Resource { properties: DatastorePropertiesUnion; @@ -1328,11 +1509,11 @@ export interface Datastore extends Resource { // @public export interface DatastoreCredentials { - credentialsType: "AccountKey" | "Certificate" | "None" | "Sas" | "ServicePrincipal"; + credentialsType: "AccountKey" | "Certificate" | "KerberosKeytab" | "KerberosPassword" | "None" | "Sas" | "ServicePrincipal"; } // @public (undocumented) -export type DatastoreCredentialsUnion = DatastoreCredentials | AccountKeyDatastoreCredentials | CertificateDatastoreCredentials | NoneDatastoreCredentials | SasDatastoreCredentials | ServicePrincipalDatastoreCredentials; +export type DatastoreCredentialsUnion = DatastoreCredentials | AccountKeyDatastoreCredentials | CertificateDatastoreCredentials | KerberosKeytabCredentials | KerberosPasswordCredentials | NoneDatastoreCredentials | SasDatastoreCredentials | ServicePrincipalDatastoreCredentials; // @public export interface DatastoreProperties extends ResourceBase { @@ -1342,7 +1523,7 @@ export interface DatastoreProperties extends ResourceBase { } // @public (undocumented) -export type DatastorePropertiesUnion = DatastoreProperties | AzureBlobDatastore | AzureDataLakeGen1Datastore | AzureDataLakeGen2Datastore | AzureFileDatastore; +export type DatastorePropertiesUnion = DatastoreProperties | AzureBlobDatastore | AzureDataLakeGen1Datastore | AzureDataLakeGen2Datastore | AzureFileDatastore | HdfsDatastore; // @public export interface DatastoreResourceArmPaginatedResult { @@ -1373,11 +1554,11 @@ export interface DatastoresDeleteOptionalParams extends coreClient.OperationOpti // @public export interface DatastoreSecrets { - secretsType: "AccountKey" | "Certificate" | "Sas" | "ServicePrincipal"; + secretsType: "AccountKey" | "Certificate" | "KerberosKeytab" | "KerberosPassword" | "Sas" | "ServicePrincipal"; } // @public (undocumented) -export type DatastoreSecretsUnion = DatastoreSecrets | AccountKeyDatastoreSecrets | CertificateDatastoreSecrets | SasDatastoreSecrets | ServicePrincipalDatastoreSecrets; +export type DatastoreSecretsUnion = DatastoreSecrets | AccountKeyDatastoreSecrets | CertificateDatastoreSecrets | KerberosKeytabSecrets | KerberosPasswordSecrets | SasDatastoreSecrets | ServicePrincipalDatastoreSecrets; // @public export interface DatastoresGetOptionalParams extends coreClient.OperationOptions { @@ -1516,6 +1697,10 @@ export interface DeploymentLogsRequest { // @public export type DeploymentProvisioningState = string; +// @public (undocumented) +export interface DeploymentResourceConfiguration extends ResourceConfiguration { +} + // @public (undocumented) export interface DiagnoseRequestProperties { applicationInsights?: { @@ -1601,6 +1786,12 @@ export type DistributionConfigurationUnion = DistributionConfiguration | Mpi | P // @public export type DistributionType = string; +// @public (undocumented) +export interface Docker { + [property: string]: any; + privileged?: boolean; +} + // @public export interface EarlyTerminationPolicy { delayEvaluation?: number; @@ -1614,6 +1805,9 @@ export type EarlyTerminationPolicyType = string; // @public (undocumented) export type EarlyTerminationPolicyUnion = EarlyTerminationPolicy | BanditPolicy | MedianStoppingPolicy | TruncationSelectionPolicy; +// @public +export type EgressPublicNetworkAccessType = string; + // @public (undocumented) export interface EncryptionKeyVaultProperties { identityClientId?: string; @@ -1621,6 +1815,11 @@ export interface EncryptionKeyVaultProperties { keyVaultArmId: string; } +// @public (undocumented) +export interface EncryptionKeyVaultUpdateProperties { + keyIdentifier: string; +} + // @public (undocumented) export interface EncryptionProperty { identity?: IdentityForCmk; @@ -1631,6 +1830,20 @@ export interface EncryptionProperty { // @public export type EncryptionStatus = string; +// @public (undocumented) +export interface EncryptionUpdateProperties { + keyVaultProperties: EncryptionKeyVaultUpdateProperties; +} + +// @public (undocumented) +export interface Endpoint { + hostIp?: string; + name?: string; + protocol?: Protocol; + published?: number; + target?: number; +} + // @public export interface EndpointAuthKeys { primaryKey?: string; @@ -1679,6 +1892,12 @@ export interface EndpointPropertiesBase { // @public export type EndpointProvisioningState = string; +// @public (undocumented) +export interface EndpointScheduleAction extends ScheduleActionBase { + actionType: "InvokeBatchEndpoint"; + endpointInvocationDefinition: Record; +} + // @public export interface EnvironmentContainer extends Resource { properties: EnvironmentContainerProperties; @@ -1741,6 +1960,16 @@ export type EnvironmentContainersListResponse = EnvironmentContainerResourceArmP // @public export type EnvironmentType = string; +// @public (undocumented) +export interface EnvironmentVariable { + [property: string]: any; + type?: EnvironmentVariableType; + value?: string; +} + +// @public +export type EnvironmentVariableType = string; + // @public export interface EnvironmentVersion extends Resource { properties: EnvironmentVersionProperties; @@ -1844,12 +2073,38 @@ export interface EstimatedVMPrices { values: EstimatedVMPrice[]; } +// @public +export type ExportFormatType = string; + +// @public (undocumented) +export interface ExportSummary { + readonly endDateTime?: Date; + readonly exportedRowCount?: number; + format: "Coco" | "CSV" | "Dataset"; + readonly labelingJobId?: string; + readonly startDateTime?: Date; +} + +// @public (undocumented) +export type ExportSummaryUnion = ExportSummary | CocoExportSummary | CsvExportSummary | DatasetExportSummary; + // @public (undocumented) export interface ExternalFqdnResponse { // (undocumented) value?: FqdnEndpoints[]; } +// @public +export type FeatureLags = string; + +// @public +export type FeaturizationMode = string; + +// @public +export interface FeaturizationSettings { + datasetLanguage?: string; +} + // @public (undocumented) export interface FlavorData { data?: { @@ -1857,6 +2112,53 @@ export interface FlavorData { }; } +// @public +export interface ForecastHorizon { + mode: "Auto" | "Custom"; +} + +// @public +export type ForecastHorizonMode = string; + +// @public (undocumented) +export type ForecastHorizonUnion = ForecastHorizon | AutoForecastHorizon | CustomForecastHorizon; + +// @public +export interface Forecasting extends TableVertical, AutoMLVertical { + forecastingSettings?: ForecastingSettings; + primaryMetric?: ForecastingPrimaryMetrics; + trainingSettings?: ForecastingTrainingSettings; +} + +// @public +export type ForecastingModels = string; + +// @public +export type ForecastingPrimaryMetrics = string; + +// @public +export interface ForecastingSettings { + countryOrRegionForHolidays?: string; + cvStepSize?: number; + featureLags?: FeatureLags; + forecastHorizon?: ForecastHorizonUnion; + frequency?: string; + seasonality?: SeasonalityUnion; + shortSeriesHandlingConfig?: ShortSeriesHandlingConfiguration; + targetAggregateFunction?: TargetAggregationFunction; + targetLags?: TargetLagsUnion; + targetRollingWindowSize?: TargetRollingWindowSizeUnion; + timeColumnName?: string; + timeSeriesIdColumnNames?: string[]; + useStl?: UseStl; +} + +// @public +export interface ForecastingTrainingSettings extends TrainingSettings { + allowedTrainingAlgorithms?: ForecastingModels[]; + blockedTrainingAlgorithms?: ForecastingModels[]; +} + // @public (undocumented) export interface FqdnEndpoint { // (undocumented) @@ -1893,6 +2195,13 @@ export interface GridSamplingAlgorithm extends SamplingAlgorithm { samplingAlgorithmType: "Grid"; } +// @public (undocumented) +export interface HdfsDatastore extends DatastoreProperties { + hdfsServerCertificate?: string; + nameNodeAddress: string; + protocol?: string; +} + // @public export interface HDInsight extends Compute, HDInsightSchema { computeType: "HDInsight"; @@ -1932,6 +2241,207 @@ export interface IdentityForCmk { userAssignedIdentity?: string; } +// @public +export interface IdleShutdownSetting { + idleTimeBeforeShutdown?: string; +} + +// @public (undocumented) +interface Image_2 { + [property: string]: any; + reference?: string; + type?: ImageType; +} +export { Image_2 as Image } + +// @public +export type ImageAnnotationType = string; + +// @public +export interface ImageClassification extends ImageClassificationBase, AutoMLVertical { + primaryMetric?: ClassificationPrimaryMetrics; + taskType: "ImageClassification"; +} + +// @public (undocumented) +export interface ImageClassificationBase extends ImageVertical { + modelSettings?: ImageModelSettingsClassification; + searchSpace?: ImageModelDistributionSettingsClassification[]; +} + +// @public +export interface ImageClassificationMultilabel extends ImageClassificationBase, AutoMLVertical { + primaryMetric?: ClassificationMultilabelPrimaryMetrics; + taskType: "ImageClassificationMultilabel"; +} + +// @public +export interface ImageInstanceSegmentation extends ImageObjectDetectionBase, AutoMLVertical { + primaryMetric?: InstanceSegmentationPrimaryMetrics; + taskType: "ImageInstanceSegmentation"; +} + +// @public +export interface ImageLimitSettings { + maxConcurrentTrials?: number; + maxTrials?: number; + timeout?: string; +} + +// @public +export interface ImageModelDistributionSettings { + amsGradient?: string; + augmentations?: string; + beta1?: string; + beta2?: string; + distributed?: string; + earlyStopping?: string; + earlyStoppingDelay?: string; + earlyStoppingPatience?: string; + enableOnnxNormalization?: string; + evaluationFrequency?: string; + gradientAccumulationStep?: string; + layersToFreeze?: string; + learningRate?: string; + learningRateScheduler?: string; + modelName?: string; + momentum?: string; + nesterov?: string; + numberOfEpochs?: string; + numberOfWorkers?: string; + optimizer?: string; + randomSeed?: string; + stepLRGamma?: string; + stepLRStepSize?: string; + trainingBatchSize?: string; + validationBatchSize?: string; + warmupCosineLRCycles?: string; + warmupCosineLRWarmupEpochs?: string; + weightDecay?: string; +} + +// @public +export interface ImageModelDistributionSettingsClassification extends ImageModelDistributionSettings { + trainingCropSize?: string; + validationCropSize?: string; + validationResizeSize?: string; + weightedLoss?: string; +} + +// @public +export interface ImageModelDistributionSettingsObjectDetection extends ImageModelDistributionSettings { + boxDetectionsPerImage?: string; + boxScoreThreshold?: string; + imageSize?: string; + maxSize?: string; + minSize?: string; + modelSize?: string; + multiScale?: string; + nmsIouThreshold?: string; + tileGridSize?: string; + tileOverlapRatio?: string; + tilePredictionsNmsThreshold?: string; + validationIouThreshold?: string; + validationMetricType?: string; +} + +// @public +export interface ImageModelSettings { + advancedSettings?: string; + amsGradient?: boolean; + augmentations?: string; + beta1?: number; + beta2?: number; + checkpointFrequency?: number; + checkpointModel?: MLFlowModelJobInput; + checkpointRunId?: string; + distributed?: boolean; + earlyStopping?: boolean; + earlyStoppingDelay?: number; + earlyStoppingPatience?: number; + enableOnnxNormalization?: boolean; + evaluationFrequency?: number; + gradientAccumulationStep?: number; + layersToFreeze?: number; + learningRate?: number; + learningRateScheduler?: LearningRateScheduler; + modelName?: string; + momentum?: number; + nesterov?: boolean; + numberOfEpochs?: number; + numberOfWorkers?: number; + optimizer?: StochasticOptimizer; + randomSeed?: number; + stepLRGamma?: number; + stepLRStepSize?: number; + trainingBatchSize?: number; + validationBatchSize?: number; + warmupCosineLRCycles?: number; + warmupCosineLRWarmupEpochs?: number; + weightDecay?: number; +} + +// @public +export interface ImageModelSettingsClassification extends ImageModelSettings { + trainingCropSize?: number; + validationCropSize?: number; + validationResizeSize?: number; + weightedLoss?: number; +} + +// @public +export interface ImageModelSettingsObjectDetection extends ImageModelSettings { + boxDetectionsPerImage?: number; + boxScoreThreshold?: number; + imageSize?: number; + maxSize?: number; + minSize?: number; + modelSize?: ModelSize; + multiScale?: boolean; + nmsIouThreshold?: number; + tileGridSize?: string; + tileOverlapRatio?: number; + tilePredictionsNmsThreshold?: number; + validationIouThreshold?: number; + validationMetricType?: ValidationMetricType; +} + +// @public +export interface ImageObjectDetection extends ImageObjectDetectionBase, AutoMLVertical { + primaryMetric?: ObjectDetectionPrimaryMetrics; + taskType: "ImageObjectDetection"; +} + +// @public (undocumented) +export interface ImageObjectDetectionBase extends ImageVertical { + modelSettings?: ImageModelSettingsObjectDetection; + searchSpace?: ImageModelDistributionSettingsObjectDetection[]; +} + +// @public +export interface ImageSweepLimitSettings { + maxConcurrentTrials?: number; + maxTrials?: number; +} + +// @public +export interface ImageSweepSettings { + earlyTermination?: EarlyTerminationPolicyUnion; + limits: ImageSweepLimitSettings; + samplingAlgorithm: SamplingAlgorithmType; +} + +// @public +export type ImageType = string; + +// @public +export interface ImageVertical { + limitSettings: ImageLimitSettings; + sweepSettings?: ImageSweepSettings; + validationData?: MLTableJobInput; + validationDataSize?: number; +} + // @public (undocumented) export interface InferenceContainerProperties { livenessRoute?: Route; @@ -1942,6 +2452,9 @@ export interface InferenceContainerProperties { // @public export type InputDeliveryMode = string; +// @public +export type InstanceSegmentationPrimaryMetrics = string; + // @public export interface InstanceTypeSchema { nodeSelector?: { @@ -1967,6 +2480,7 @@ export interface JobBase extends Resource { // @public export interface JobBaseProperties extends ResourceBase { + componentId?: string; computeId?: string; displayName?: string; experimentName?: string; @@ -1980,7 +2494,7 @@ export interface JobBaseProperties extends ResourceBase { } // @public (undocumented) -export type JobBasePropertiesUnion = JobBaseProperties | CommandJob | PipelineJob | SweepJob; +export type JobBasePropertiesUnion = JobBaseProperties | LabelingJobProperties | AutoMLJob | CommandJob | PipelineJob | SparkJob | SweepJob; // @public export interface JobBaseResourceArmPaginatedResult { @@ -1991,14 +2505,14 @@ export interface JobBaseResourceArmPaginatedResult { // @public export interface JobInput { description?: string; - jobInputType: "custom_model" | "literal" | "mlflow_model" | "mltable" | "triton_model" | "uri_file" | "uri_folder"; + jobInputType: "mltable" | "custom_model" | "mlflow_model" | "literal" | "triton_model" | "uri_file" | "uri_folder"; } // @public export type JobInputType = string; // @public (undocumented) -export type JobInputUnion = JobInput | CustomModelJobInput | LiteralJobInput | MLFlowModelJobInput | MLTableJobInput | TritonModelJobInput | UriFileJobInput | UriFolderJobInput; +export type JobInputUnion = JobInput | MLTableJobInput | CustomModelJobInput | MLFlowModelJobInput | LiteralJobInput | TritonModelJobInput | UriFileJobInput | UriFolderJobInput; // @public (undocumented) export interface JobLimits { @@ -2024,6 +2538,15 @@ export type JobOutputType = string; // @public (undocumented) export type JobOutputUnion = JobOutput | CustomModelJobOutput | MLFlowModelJobOutput | MLTableJobOutput | TritonModelJobOutput | UriFileJobOutput | UriFolderJobOutput; +// @public +export type JobProvisioningState = string; + +// @public (undocumented) +export interface JobResourceConfiguration extends ResourceConfiguration { + dockerArgs?: string; + shmSize?: string; +} + // @public export interface Jobs { beginCancel(resourceGroupName: string, workspaceName: string, id: string, options?: JobsCancelOptionalParams): Promise, void>>; @@ -2047,6 +2570,12 @@ export interface JobsCancelOptionalParams extends coreClient.OperationOptions { updateIntervalInMs?: number; } +// @public (undocumented) +export interface JobScheduleAction extends ScheduleActionBase { + actionType: "CreateJob"; + jobDefinition: JobBasePropertiesUnion; +} + // @public export interface JobsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } @@ -2090,6 +2619,8 @@ export type JobsGetResponse = JobBase; export interface JobsListNextOptionalParams extends coreClient.OperationOptions { jobType?: string; listViewType?: ListViewType; + scheduled?: boolean; + scheduleId?: string; skip?: string; tag?: string; } @@ -2101,6 +2632,8 @@ export type JobsListNextResponse = JobBaseResourceArmPaginatedResult; export interface JobsListOptionalParams extends coreClient.OperationOptions { jobType?: string; listViewType?: ListViewType; + scheduled?: boolean; + scheduleId?: string; skip?: string; tag?: string; } @@ -2114,6 +2647,35 @@ export type JobStatus = string; // @public export type JobType = string; +// @public (undocumented) +export interface KerberosCredentials { + kerberosKdcAddress: string; + kerberosPrincipal: string; + kerberosRealm: string; +} + +// @public (undocumented) +export interface KerberosKeytabCredentials extends KerberosCredentials, DatastoreCredentials { + secrets: KerberosKeytabSecrets; +} + +// @public (undocumented) +export interface KerberosKeytabSecrets extends DatastoreSecrets { + kerberosKeytab?: string; + secretsType: "KerberosKeytab"; +} + +// @public (undocumented) +export interface KerberosPasswordCredentials extends KerberosCredentials, DatastoreCredentials { + secrets: KerberosPasswordSecrets; +} + +// @public (undocumented) +export interface KerberosPasswordSecrets extends DatastoreSecrets { + kerberosPassword?: string; + secretsType: "KerberosPassword"; +} + // @public type KeyType_2 = string; export { KeyType_2 as KeyType } @@ -2155,6 +2717,20 @@ export enum KnownBillingCurrency { USD = "USD" } +// @public +export enum KnownBlockedTransformers { + CatTargetEncoder = "CatTargetEncoder", + CountVectorizer = "CountVectorizer", + HashOneHotEncoder = "HashOneHotEncoder", + LabelEncoder = "LabelEncoder", + NaiveBayes = "NaiveBayes", + OneHotEncoder = "OneHotEncoder", + TextTargetEncoder = "TextTargetEncoder", + TfIdf = "TfIdf", + WoETargetEncoder = "WoETargetEncoder", + WordEmbedding = "WordEmbedding" +} + // @public export enum KnownCaching { None = "None", @@ -2162,6 +2738,42 @@ export enum KnownCaching { ReadWrite = "ReadWrite" } +// @public +export enum KnownClassificationModels { + BernoulliNaiveBayes = "BernoulliNaiveBayes", + DecisionTree = "DecisionTree", + ExtremeRandomTrees = "ExtremeRandomTrees", + GradientBoosting = "GradientBoosting", + KNN = "KNN", + LightGBM = "LightGBM", + LinearSVM = "LinearSVM", + LogisticRegression = "LogisticRegression", + MultinomialNaiveBayes = "MultinomialNaiveBayes", + RandomForest = "RandomForest", + SGD = "SGD", + SVM = "SVM", + XGBoostClassifier = "XGBoostClassifier" +} + +// @public +export enum KnownClassificationMultilabelPrimaryMetrics { + Accuracy = "Accuracy", + AUCWeighted = "AUCWeighted", + AveragePrecisionScoreWeighted = "AveragePrecisionScoreWeighted", + IOU = "IOU", + NormMacroRecall = "NormMacroRecall", + PrecisionScoreWeighted = "PrecisionScoreWeighted" +} + +// @public +export enum KnownClassificationPrimaryMetrics { + Accuracy = "Accuracy", + AUCWeighted = "AUCWeighted", + AveragePrecisionScoreWeighted = "AveragePrecisionScoreWeighted", + NormMacroRecall = "NormMacroRecall", + PrecisionScoreWeighted = "PrecisionScoreWeighted" +} + // @public export enum KnownClusterPurpose { DenseProd = "DenseProd", @@ -2199,6 +2811,17 @@ export enum KnownComputePowerAction { Stop = "Stop" } +// @public +export enum KnownComputeProvisioningState { + Canceled = "Canceled", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed", + Succeeded = "Succeeded", + Unknown = "Unknown", + Updating = "Updating" +} + // @public export enum KnownComputeType { AKS = "AKS", @@ -2247,6 +2870,8 @@ export enum KnownCreatedByType { export enum KnownCredentialsType { AccountKey = "AccountKey", Certificate = "Certificate", + KerberosKeytab = "KerberosKeytab", + KerberosPassword = "KerberosPassword", None = "None", Sas = "Sas", ServicePrincipal = "ServicePrincipal" @@ -2257,7 +2882,8 @@ export enum KnownDatastoreType { AzureBlob = "AzureBlob", AzureDataLakeGen1 = "AzureDataLakeGen1", AzureDataLakeGen2 = "AzureDataLakeGen2", - AzureFile = "AzureFile" + AzureFile = "AzureFile", + Hdfs = "Hdfs" } // @public @@ -2300,7 +2926,13 @@ export enum KnownEarlyTerminationPolicyType { } // @public -export enum KnownEncryptionStatus { +export enum KnownEgressPublicNetworkAccessType { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownEncryptionStatus { Disabled = "Disabled", Enabled = "Enabled" } @@ -2335,6 +2967,68 @@ export enum KnownEnvironmentType { UserCreated = "UserCreated" } +// @public +export enum KnownEnvironmentVariableType { + Local = "local" +} + +// @public +export enum KnownExportFormatType { + Coco = "Coco", + CSV = "CSV", + Dataset = "Dataset" +} + +// @public +export enum KnownFeatureLags { + Auto = "Auto", + None = "None" +} + +// @public +export enum KnownFeaturizationMode { + Auto = "Auto", + Custom = "Custom", + Off = "Off" +} + +// @public +export enum KnownForecastHorizonMode { + Auto = "Auto", + Custom = "Custom" +} + +// @public +export enum KnownForecastingModels { + Arimax = "Arimax", + AutoArima = "AutoArima", + Average = "Average", + DecisionTree = "DecisionTree", + ElasticNet = "ElasticNet", + ExponentialSmoothing = "ExponentialSmoothing", + ExtremeRandomTrees = "ExtremeRandomTrees", + GradientBoosting = "GradientBoosting", + KNN = "KNN", + LassoLars = "LassoLars", + LightGBM = "LightGBM", + Naive = "Naive", + Prophet = "Prophet", + RandomForest = "RandomForest", + SeasonalAverage = "SeasonalAverage", + SeasonalNaive = "SeasonalNaive", + SGD = "SGD", + TCNForecaster = "TCNForecaster", + XGBoostRegressor = "XGBoostRegressor" +} + +// @public +export enum KnownForecastingPrimaryMetrics { + NormalizedMeanAbsoluteError = "NormalizedMeanAbsoluteError", + NormalizedRootMeanSquaredError = "NormalizedRootMeanSquaredError", + R2Score = "R2Score", + SpearmanCorrelation = "SpearmanCorrelation" +} + // @public export enum KnownGoal { Maximize = "Maximize", @@ -2348,6 +3042,19 @@ export enum KnownIdentityConfigurationType { UserIdentity = "UserIdentity" } +// @public +export enum KnownImageAnnotationType { + BoundingBox = "BoundingBox", + Classification = "Classification", + InstanceSegmentation = "InstanceSegmentation" +} + +// @public +export enum KnownImageType { + Azureml = "azureml", + Docker = "docker" +} + // @public export enum KnownInputDeliveryMode { Direct = "Direct", @@ -2358,6 +3065,11 @@ export enum KnownInputDeliveryMode { ReadWriteMount = "ReadWriteMount" } +// @public +export enum KnownInstanceSegmentationPrimaryMetrics { + MeanAveragePrecision = "MeanAveragePrecision" +} + // @public export enum KnownJobInputType { CustomModel = "custom_model", @@ -2385,6 +3097,14 @@ export enum KnownJobOutputType { UriFolder = "uri_folder" } +// @public +export enum KnownJobProvisioningState { + Canceled = "Canceled", + Failed = "Failed", + InProgress = "InProgress", + Succeeded = "Succeeded" +} + // @public export enum KnownJobStatus { Canceled = "Canceled", @@ -2399,14 +3119,18 @@ export enum KnownJobStatus { Provisioning = "Provisioning", Queued = "Queued", Running = "Running", + Scheduled = "Scheduled", Starting = "Starting", Unknown = "Unknown" } // @public export enum KnownJobType { + AutoML = "AutoML", Command = "Command", + Labeling = "Labeling", Pipeline = "Pipeline", + Spark = "Spark", Sweep = "Sweep" } @@ -2416,6 +3140,13 @@ export enum KnownKeyType { Secondary = "Secondary" } +// @public +export enum KnownLearningRateScheduler { + None = "None", + Step = "Step", + WarmupCosine = "WarmupCosine" +} + // @public export enum KnownListViewType { ActiveOnly = "ActiveOnly", @@ -2429,6 +3160,16 @@ export enum KnownLoadBalancerType { PublicIp = "PublicIp" } +// @public +export enum KnownLogVerbosity { + Critical = "Critical", + Debug = "Debug", + Error = "Error", + Info = "Info", + NotSet = "NotSet", + Warning = "Warning" +} + // @public export enum KnownManagedServiceIdentityType { None = "None", @@ -2437,6 +3178,27 @@ export enum KnownManagedServiceIdentityType { UserAssigned = "UserAssigned" } +// @public +export enum KnownMediaType { + Image = "Image", + Text = "Text" +} + +// @public +export enum KnownMLAssistConfigurationType { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownModelSize { + ExtraLarge = "ExtraLarge", + Large = "Large", + Medium = "Medium", + None = "None", + Small = "Small" +} + // @public export enum KnownMountAction { Mount = "Mount", @@ -2453,6 +3215,12 @@ export enum KnownMountState { UnmountRequested = "UnmountRequested" } +// @public +export enum KnownNCrossValidationsMode { + Auto = "Auto", + Custom = "Custom" +} + // @public export enum KnownNetwork { Bridge = "Bridge", @@ -2469,6 +3237,11 @@ export enum KnownNodeState { Unusable = "unusable" } +// @public +export enum KnownObjectDetectionPrimaryMetrics { + MeanAveragePrecision = "MeanAveragePrecision" +} + // @public export enum KnownOperatingSystemType { Linux = "Linux", @@ -2520,6 +3293,7 @@ export enum KnownOsType { // @public export enum KnownOutputDeliveryMode { + Direct = "Direct", ReadWriteMount = "ReadWriteMount", Upload = "Upload" } @@ -2542,14 +3316,10 @@ export enum KnownPrivateEndpointServiceConnectionStatus { } // @public -export enum KnownProvisioningState { - Canceled = "Canceled", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Succeeded = "Succeeded", - Unknown = "Unknown", - Updating = "Updating" +export enum KnownProtocol { + Http = "http", + Tcp = "tcp", + Udp = "udp" } // @public @@ -2565,6 +3335,12 @@ export enum KnownPublicNetworkAccess { Enabled = "Enabled" } +// @public +export enum KnownPublicNetworkAccessType { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownQuotaUnit { Count = "Count" @@ -2576,6 +3352,15 @@ export enum KnownRandomSamplingAlgorithmRule { Sobol = "Sobol" } +// @public +export enum KnownRecurrenceFrequency { + Day = "Day", + Hour = "Hour", + Minute = "Minute", + Month = "Month", + Week = "Week" +} + // @public export enum KnownReferenceType { DataPath = "DataPath", @@ -2583,6 +3368,28 @@ export enum KnownReferenceType { OutputPath = "OutputPath" } +// @public +export enum KnownRegressionModels { + DecisionTree = "DecisionTree", + ElasticNet = "ElasticNet", + ExtremeRandomTrees = "ExtremeRandomTrees", + GradientBoosting = "GradientBoosting", + KNN = "KNN", + LassoLars = "LassoLars", + LightGBM = "LightGBM", + RandomForest = "RandomForest", + SGD = "SGD", + XGBoostRegressor = "XGBoostRegressor" +} + +// @public +export enum KnownRegressionPrimaryMetrics { + NormalizedMeanAbsoluteError = "NormalizedMeanAbsoluteError", + NormalizedRootMeanSquaredError = "NormalizedRootMeanSquaredError", + R2Score = "R2Score", + SpearmanCorrelation = "SpearmanCorrelation" +} + // @public export enum KnownRemoteLoginPortPublicAccess { Disabled = "Disabled", @@ -2603,6 +3410,12 @@ export enum KnownScaleType { TargetUtilization = "TargetUtilization" } +// @public +export enum KnownScheduleActionType { + CreateJob = "CreateJob", + InvokeBatchEndpoint = "InvokeBatchEndpoint" +} + // @public export enum KnownScheduleProvisioningState { Completed = "Completed", @@ -2610,16 +3423,34 @@ export enum KnownScheduleProvisioningState { Provisioning = "Provisioning" } +// @public +export enum KnownScheduleProvisioningStatus { + Canceled = "Canceled", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed", + Succeeded = "Succeeded", + Updating = "Updating" +} + // @public export enum KnownScheduleStatus { Disabled = "Disabled", Enabled = "Enabled" } +// @public +export enum KnownSeasonalityMode { + Auto = "Auto", + Custom = "Custom" +} + // @public export enum KnownSecretsType { AccountKey = "AccountKey", Certificate = "Certificate", + KerberosKeytab = "KerberosKeytab", + KerberosPassword = "KerberosPassword", Sas = "Sas", ServicePrincipal = "ServicePrincipal" } @@ -2631,6 +3462,14 @@ export enum KnownServiceDataAccessAuthIdentity { WorkspaceUserAssignedIdentity = "WorkspaceUserAssignedIdentity" } +// @public +export enum KnownShortSeriesHandlingConfiguration { + Auto = "Auto", + Drop = "Drop", + None = "None", + Pad = "Pad" +} + // @public export enum KnownSkuScaleType { Automatic = "Automatic", @@ -2645,6 +3484,12 @@ export enum KnownSourceType { URI = "URI" } +// @public +export enum KnownSparkJobEntryType { + SparkJobPythonEntry = "SparkJobPythonEntry", + SparkJobScalaEntry = "SparkJobScalaEntry" +} + // @public export enum KnownSshPublicAccess { Disabled = "Disabled", @@ -2658,6 +3503,18 @@ export enum KnownSslConfigStatus { Enabled = "Enabled" } +// @public +export enum KnownStackMetaLearnerType { + ElasticNet = "ElasticNet", + ElasticNetCV = "ElasticNetCV", + LightGBMClassifier = "LightGBMClassifier", + LightGBMRegressor = "LightGBMRegressor", + LinearRegression = "LinearRegression", + LogisticRegression = "LogisticRegression", + LogisticRegressionCV = "LogisticRegressionCV", + None = "None" +} + // @public export enum KnownStatus { Failure = "Failure", @@ -2670,12 +3527,74 @@ export enum KnownStatus { Undefined = "Undefined" } +// @public +export enum KnownStatusMessageLevel { + Error = "Error", + Information = "Information", + Warning = "Warning" +} + +// @public +export enum KnownStochasticOptimizer { + Adam = "Adam", + Adamw = "Adamw", + None = "None", + Sgd = "Sgd" +} + // @public export enum KnownStorageAccountType { PremiumLRS = "Premium_LRS", StandardLRS = "Standard_LRS" } +// @public +export enum KnownTargetAggregationFunction { + Max = "Max", + Mean = "Mean", + Min = "Min", + None = "None", + Sum = "Sum" +} + +// @public +export enum KnownTargetLagsMode { + Auto = "Auto", + Custom = "Custom" +} + +// @public +export enum KnownTargetRollingWindowSizeMode { + Auto = "Auto", + Custom = "Custom" +} + +// @public +export enum KnownTaskType { + Classification = "Classification", + Forecasting = "Forecasting", + ImageClassification = "ImageClassification", + ImageClassificationMultilabel = "ImageClassificationMultilabel", + ImageInstanceSegmentation = "ImageInstanceSegmentation", + ImageObjectDetection = "ImageObjectDetection", + Regression = "Regression", + TextClassification = "TextClassification", + TextClassificationMultilabel = "TextClassificationMultilabel", + TextNER = "TextNER" +} + +// @public +export enum KnownTextAnnotationType { + Classification = "Classification", + NamedEntityRecognition = "NamedEntityRecognition" +} + +// @public +export enum KnownTriggerType { + Cron = "Cron", + Recurrence = "Recurrence" +} + // @public export enum KnownUnderlyingResourceAction { Delete = "Delete", @@ -2692,6 +3611,21 @@ export enum KnownUsageUnit { Count = "Count" } +// @public +export enum KnownUseStl { + None = "None", + Season = "Season", + SeasonTrend = "SeasonTrend" +} + +// @public +export enum KnownValidationMetricType { + Coco = "Coco", + CocoVoc = "CocoVoc", + None = "None", + Voc = "Voc" +} + // @public export enum KnownValueFormat { Json = "JSON" @@ -2716,6 +3650,37 @@ export enum KnownVMTier { Standard = "Standard" } +// @public +export enum KnownVolumeDefinitionType { + Bind = "bind", + Npipe = "npipe", + Tmpfs = "tmpfs", + Volume = "volume" +} + +// @public +export enum KnownWeekDay { + Friday = "Friday", + Monday = "Monday", + Saturday = "Saturday", + Sunday = "Sunday", + Thursday = "Thursday", + Tuesday = "Tuesday", + Wednesday = "Wednesday" +} + +// @public +export enum KnownWorkspaceProvisioningState { + Canceled = "Canceled", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed", + SoftDeleted = "SoftDeleted", + Succeeded = "Succeeded", + Unknown = "Unknown", + Updating = "Updating" +} + // @public export interface Kubernetes extends Compute, KubernetesSchema { computeType: "Kubernetes"; @@ -2745,6 +3710,175 @@ export interface KubernetesSchema { properties?: KubernetesProperties; } +// @public +export interface LabelCategory { + classes?: { + [propertyName: string]: LabelClass | null; + }; + displayName?: string; + multiSelectEnabled?: boolean; +} + +// @public +export interface LabelClass { + displayName?: string; + subclasses?: { + [propertyName: string]: LabelClass | null; + }; +} + +// @public +export interface LabelingDataConfiguration { + dataId?: string; + incrementalDataRefreshEnabled?: boolean; +} + +// @public +export interface LabelingJob extends Resource { + properties: LabelingJobProperties; +} + +// @public +export interface LabelingJobImageProperties extends LabelingJobMediaProperties { + annotationType?: ImageAnnotationType; + mediaType: "Image"; +} + +// @public +export interface LabelingJobInstructions { + uri?: string; +} + +// @public +export interface LabelingJobMediaProperties { + mediaType: "Image" | "Text"; +} + +// @public (undocumented) +export type LabelingJobMediaPropertiesUnion = LabelingJobMediaProperties | LabelingJobImageProperties | LabelingJobTextProperties; + +// @public +export interface LabelingJobProperties extends JobBaseProperties { + readonly createdDateTime?: Date; + dataConfiguration?: LabelingDataConfiguration; + jobInstructions?: LabelingJobInstructions; + labelCategories?: { + [propertyName: string]: LabelCategory | null; + }; + labelingJobMediaProperties?: LabelingJobMediaPropertiesUnion; + mlAssistConfiguration?: MLAssistConfigurationUnion; + readonly progressMetrics?: ProgressMetrics; + readonly projectId?: string; + readonly provisioningState?: JobProvisioningState; + readonly statusMessages?: StatusMessage[]; +} + +// @public +export interface LabelingJobResourceArmPaginatedResult { + nextLink?: string; + value?: LabelingJob[]; +} + +// @public +export interface LabelingJobs { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, id: string, body: LabelingJob, options?: LabelingJobsCreateOrUpdateOptionalParams): Promise, LabelingJobsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, id: string, body: LabelingJob, options?: LabelingJobsCreateOrUpdateOptionalParams): Promise; + beginExportLabels(resourceGroupName: string, workspaceName: string, id: string, body: ExportSummaryUnion, options?: LabelingJobsExportLabelsOptionalParams): Promise, LabelingJobsExportLabelsResponse>>; + beginExportLabelsAndWait(resourceGroupName: string, workspaceName: string, id: string, body: ExportSummaryUnion, options?: LabelingJobsExportLabelsOptionalParams): Promise; + beginResume(resourceGroupName: string, workspaceName: string, id: string, options?: LabelingJobsResumeOptionalParams): Promise, void>>; + beginResumeAndWait(resourceGroupName: string, workspaceName: string, id: string, options?: LabelingJobsResumeOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, id: string, options?: LabelingJobsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, id: string, options?: LabelingJobsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: LabelingJobsListOptionalParams): PagedAsyncIterableIterator; + pause(resourceGroupName: string, workspaceName: string, id: string, options?: LabelingJobsPauseOptionalParams): Promise; +} + +// @public +export interface LabelingJobsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface LabelingJobsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type LabelingJobsCreateOrUpdateResponse = LabelingJob; + +// @public +export interface LabelingJobsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface LabelingJobsExportLabelsHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface LabelingJobsExportLabelsOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type LabelingJobsExportLabelsResponse = ExportSummaryUnion; + +// @public +export interface LabelingJobsGetOptionalParams extends coreClient.OperationOptions { + includeJobInstructions?: boolean; + includeLabelCategories?: boolean; +} + +// @public +export type LabelingJobsGetResponse = LabelingJob; + +// @public +export interface LabelingJobsListNextOptionalParams extends coreClient.OperationOptions { + count?: number; + skip?: string; +} + +// @public +export type LabelingJobsListNextResponse = LabelingJobResourceArmPaginatedResult; + +// @public +export interface LabelingJobsListOptionalParams extends coreClient.OperationOptions { + count?: number; + skip?: string; +} + +// @public +export type LabelingJobsListResponse = LabelingJobResourceArmPaginatedResult; + +// @public +export interface LabelingJobsPauseOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface LabelingJobsResumeHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface LabelingJobsResumeOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface LabelingJobTextProperties extends LabelingJobMediaProperties { + annotationType?: TextAnnotationType; + mediaType: "Text"; +} + +// @public +export type LearningRateScheduler = string; + // @public export interface ListAmlUserFeatureResult { readonly nextLink?: string; @@ -2795,6 +3929,9 @@ export interface LiteralJobInput extends JobInput { // @public export type LoadBalancerType = string; +// @public +export type LogVerbosity = string; + // @public export interface ManagedIdentity extends IdentityConfiguration { clientId?: string; @@ -2832,6 +3969,32 @@ export interface MedianStoppingPolicy extends EarlyTerminationPolicy { policyType: "MedianStopping"; } +// @public +export type MediaType = string; + +// @public +export interface MLAssistConfiguration { + mlAssist: "Disabled" | "Enabled"; +} + +// @public +export interface MLAssistConfigurationDisabled extends MLAssistConfiguration { + mlAssist: "Disabled"; +} + +// @public +export interface MLAssistConfigurationEnabled extends MLAssistConfiguration { + inferencingComputeBinding: string; + mlAssist: "Enabled"; + trainingComputeBinding: string; +} + +// @public +export type MLAssistConfigurationType = string; + +// @public (undocumented) +export type MLAssistConfigurationUnion = MLAssistConfiguration | MLAssistConfigurationDisabled | MLAssistConfigurationEnabled; + // @public (undocumented) export interface MLFlowModelJobInput extends AssetJobInput, JobInput { } @@ -2914,6 +4077,9 @@ export interface ModelContainersListOptionalParams extends coreClient.OperationO // @public export type ModelContainersListResponse = ModelContainerResourceArmPaginatedResult; +// @public +export type ModelSize = string; + // @public export interface ModelVersion extends Resource { properties: ModelVersionProperties; @@ -3007,9 +4173,38 @@ export interface Mpi extends DistributionConfiguration { processCountPerInstance?: number; } +// @public +export interface NCrossValidations { + mode: "Auto" | "Custom"; +} + +// @public +export type NCrossValidationsMode = string; + +// @public (undocumented) +export type NCrossValidationsUnion = NCrossValidations | AutoNCrossValidations | CustomNCrossValidations; + // @public export type Network = string; +// @public +export interface NlpVertical { + featurizationSettings?: NlpVerticalFeaturizationSettings; + limitSettings?: NlpVerticalLimitSettings; + validationData?: MLTableJobInput; +} + +// @public (undocumented) +export interface NlpVerticalFeaturizationSettings extends FeaturizationSettings { +} + +// @public +export interface NlpVerticalLimitSettings { + maxConcurrentTrials?: number; + maxTrials?: number; + timeout?: string; +} + // @public export type NodeState = string; @@ -3061,6 +4256,9 @@ export interface NotebookResourceInfo { resourceId?: string; } +// @public +export type ObjectDetectionPrimaryMetrics = string; + // @public export interface Objective { goal: Goal; @@ -3078,6 +4276,7 @@ export interface OnlineDeployment extends TrackedResource { // @public (undocumented) export interface OnlineDeploymentProperties extends EndpointDeploymentPropertiesBase { appInsightsEnabled?: boolean; + egressPublicNetworkAccess?: EgressPublicNetworkAccessType; endpointComputeType: EndpointComputeType; instanceType?: string; livenessProbe?: ProbeSettings; @@ -3219,7 +4418,11 @@ export interface OnlineEndpoint extends TrackedResource { // @public export interface OnlineEndpointProperties extends EndpointPropertiesBase { compute?: string; + mirrorTraffic?: { + [propertyName: string]: number; + }; readonly provisioningState?: EndpointProvisioningState; + publicNetworkAccess?: PublicNetworkAccessType; traffic?: { [propertyName: string]: number; }; @@ -3490,6 +4693,7 @@ export interface PipelineJob extends JobBaseProperties { [propertyName: string]: JobOutputUnion | null; }; settings?: Record; + sourceJobId?: string; } // @public @@ -3602,7 +4806,15 @@ export interface ProbeSettings { } // @public -export type ProvisioningState = string; +export interface ProgressMetrics { + readonly completedDatapointCount?: number; + readonly incrementalDataLastRefreshDateTime?: Date; + readonly skippedDatapointCount?: number; + readonly totalDatapointCount?: number; +} + +// @public +export type Protocol = string; // @public export type ProvisioningStatus = string; @@ -3610,6 +4822,9 @@ export type ProvisioningStatus = string; // @public export type PublicNetworkAccess = string; +// @public +export type PublicNetworkAccessType = string; + // @public export interface PyTorch extends DistributionConfiguration { distributionType: "PyTorch"; @@ -3670,6 +4885,24 @@ export interface RandomSamplingAlgorithm extends SamplingAlgorithm { // @public export type RandomSamplingAlgorithmRule = string; +// @public +export type RecurrenceFrequency = string; + +// @public (undocumented) +export interface RecurrenceSchedule { + hours: number[]; + minutes: number[]; + weekDays?: WeekDay[]; +} + +// @public (undocumented) +export interface RecurrenceTrigger extends TriggerBase { + frequency: RecurrenceFrequency; + interval: number; + schedule: RecurrenceSchedule; + triggerType: "Recurrence"; +} + // @public export type ReferenceType = string; @@ -3687,6 +4920,24 @@ export interface RegistryListCredentialsResult { readonly username?: string; } +// @public +export interface Regression extends TableVertical, AutoMLVertical { + primaryMetric?: RegressionPrimaryMetrics; + trainingSettings?: RegressionTrainingSettings; +} + +// @public +export type RegressionModels = string; + +// @public +export type RegressionPrimaryMetrics = string; + +// @public +export interface RegressionTrainingSettings extends TrainingSettings { + allowedTrainingAlgorithms?: RegressionModels[]; + blockedTrainingAlgorithms?: RegressionModels[]; +} + // @public export type RemoteLoginPortPublicAccess = string; @@ -3790,6 +5041,22 @@ export interface ScaleSettingsInformation { // @public export type ScaleType = string; +// @public +export interface Schedule extends Resource { + properties: ScheduleProperties; +} + +// @public (undocumented) +export interface ScheduleActionBase { + actionType: "InvokeBatchEndpoint" | "CreateJob"; +} + +// @public (undocumented) +export type ScheduleActionBaseUnion = ScheduleActionBase | EndpointScheduleAction | JobScheduleAction; + +// @public +export type ScheduleActionType = string; + // @public (undocumented) export interface ScheduleBase { // (undocumented) @@ -3800,9 +5067,88 @@ export interface ScheduleBase { status?: ScheduleStatus; } +// @public +export interface ScheduleProperties extends ResourceBase { + action: ScheduleActionBaseUnion; + displayName?: string; + isEnabled?: boolean; + readonly provisioningState?: ScheduleProvisioningStatus; + trigger: TriggerBaseUnion; +} + // @public export type ScheduleProvisioningState = string; +// @public +export type ScheduleProvisioningStatus = string; + +// @public +export interface ScheduleResourceArmPaginatedResult { + nextLink?: string; + value?: Schedule[]; +} + +// @public +export interface Schedules { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: Schedule, options?: SchedulesCreateOrUpdateOptionalParams): Promise, SchedulesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, name: string, body: Schedule, options?: SchedulesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, name: string, options?: SchedulesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, name: string, options?: SchedulesDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, options?: SchedulesGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: SchedulesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SchedulesCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface SchedulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type SchedulesCreateOrUpdateResponse = Schedule; + +// @public +export interface SchedulesDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface SchedulesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface SchedulesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SchedulesGetResponse = Schedule; + +// @public +export interface SchedulesListNextOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type SchedulesListNextResponse = ScheduleResourceArmPaginatedResult; + +// @public +export interface SchedulesListOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type SchedulesListResponse = ScheduleResourceArmPaginatedResult; + // @public export type ScheduleStatus = string; @@ -3820,6 +5166,17 @@ export interface ScriptsToExecute { startupScript?: ScriptReference; } +// @public +export interface Seasonality { + mode: "Auto" | "Custom"; +} + +// @public +export type SeasonalityMode = string; + +// @public (undocumented) +export type SeasonalityUnion = Seasonality | AutoSeasonality | CustomSeasonality; + // @public export type SecretsType = string; @@ -3861,6 +5218,9 @@ export interface SharedPrivateLinkResource { status?: PrivateEndpointServiceConnectionStatus; } +// @public +export type ShortSeriesHandlingConfiguration = string; + // @public export interface Sku { capacity?: number; @@ -3906,6 +5266,57 @@ export type SkuTier = "Free" | "Basic" | "Standard" | "Premium"; // @public export type SourceType = string; +// @public +export interface SparkJob extends JobBaseProperties { + archives?: string[]; + args?: string; + codeId: string; + conf?: { + [propertyName: string]: string | null; + }; + entry: SparkJobEntryUnion; + environmentId?: string; + files?: string[]; + inputs?: { + [propertyName: string]: JobInputUnion | null; + }; + jars?: string[]; + outputs?: { + [propertyName: string]: JobOutputUnion | null; + }; + pyFiles?: string[]; + resources?: SparkResourceConfiguration; +} + +// @public +export interface SparkJobEntry { + sparkJobEntryType: "SparkJobPythonEntry" | "SparkJobPythonEntry"; +} + +// @public +export type SparkJobEntryType = string; + +// @public (undocumented) +export type SparkJobEntryUnion = SparkJobEntry | SparkJobPythonEntry | SparkJobScalaEntry; + +// @public (undocumented) +export interface SparkJobPythonEntry extends SparkJobEntry { + file: string; + sparkJobEntryType: "SparkJobPythonEntry"; +} + +// @public (undocumented) +export interface SparkJobScalaEntry extends SparkJobEntry { + className: string; + sparkJobEntryType: "SparkJobPythonEntry"; +} + +// @public (undocumented) +export interface SparkResourceConfiguration { + instanceType?: string; + runtimeVersion?: string; +} + // @public export type SshPublicAccess = string; @@ -3922,9 +5333,33 @@ export interface SslConfiguration { status?: SslConfigStatus; } +// @public +export interface StackEnsembleSettings { + stackMetaLearnerKWargs?: Record; + stackMetaLearnerTrainPercentage?: number; + stackMetaLearnerType?: StackMetaLearnerType; +} + +// @public +export type StackMetaLearnerType = string; + // @public export type Status = string; +// @public +export interface StatusMessage { + readonly code?: string; + readonly createdDateTime?: Date; + readonly level?: StatusMessageLevel; + readonly message?: string; +} + +// @public +export type StatusMessageLevel = string; + +// @public +export type StochasticOptimizer = string; + // @public export type StorageAccountType = string; @@ -3990,6 +5425,68 @@ export interface SystemService { readonly version?: string; } +// @public +export interface TableVertical { + cvSplitColumnNames?: string[]; + featurizationSettings?: TableVerticalFeaturizationSettings; + limitSettings?: TableVerticalLimitSettings; + nCrossValidations?: NCrossValidationsUnion; + testData?: MLTableJobInput; + testDataSize?: number; + validationData?: MLTableJobInput; + validationDataSize?: number; + weightColumnName?: string; +} + +// @public +export interface TableVerticalFeaturizationSettings extends FeaturizationSettings { + blockedTransformers?: BlockedTransformers[]; + columnNameAndTypes?: { + [propertyName: string]: string | null; + }; + enableDnnFeaturization?: boolean; + mode?: FeaturizationMode; + transformerParams?: { + [propertyName: string]: ColumnTransformer[] | null; + }; +} + +// @public +export interface TableVerticalLimitSettings { + enableEarlyTermination?: boolean; + exitScore?: number; + maxConcurrentTrials?: number; + maxCoresPerTrial?: number; + maxTrials?: number; + timeout?: string; + trialTimeout?: string; +} + +// @public +export type TargetAggregationFunction = string; + +// @public +export interface TargetLags { + mode: "Auto" | "Custom"; +} + +// @public +export type TargetLagsMode = string; + +// @public (undocumented) +export type TargetLagsUnion = TargetLags | AutoTargetLags | CustomTargetLags; + +// @public +export interface TargetRollingWindowSize { + mode: "Auto" | "Custom"; +} + +// @public +export type TargetRollingWindowSizeMode = string; + +// @public (undocumented) +export type TargetRollingWindowSizeUnion = TargetRollingWindowSize | AutoTargetRollingWindowSize | CustomTargetRollingWindowSize; + // @public (undocumented) export interface TargetUtilizationScaleSettings extends OnlineScaleSettings { maxInstances?: number; @@ -3999,6 +5496,9 @@ export interface TargetUtilizationScaleSettings extends OnlineScaleSettings { targetUtilizationPercentage?: number; } +// @public +export type TaskType = string; + // @public export interface TensorFlow extends DistributionConfiguration { distributionType: "TensorFlow"; @@ -4006,6 +5506,29 @@ export interface TensorFlow extends DistributionConfiguration { workerCount?: number; } +// @public +export type TextAnnotationType = string; + +// @public +export interface TextClassification extends NlpVertical, AutoMLVertical { + primaryMetric?: ClassificationPrimaryMetrics; +} + +// @public +export interface TextClassificationMultilabel extends NlpVertical, AutoMLVertical { + readonly primaryMetric?: ClassificationMultilabelPrimaryMetrics; +} + +// @public +export interface TextNer extends NlpVertical, AutoMLVertical { + readonly primaryMetric?: ClassificationPrimaryMetrics; +} + +// @public (undocumented) +export interface TmpfsOptions { + size?: number; +} + // @public export interface TrackedResource extends Resource { location: string; @@ -4014,6 +5537,17 @@ export interface TrackedResource extends Resource { }; } +// @public +export interface TrainingSettings { + enableDnnTraining?: boolean; + enableModelExplainability?: boolean; + enableOnnxCompatibleModels?: boolean; + enableStackEnsemble?: boolean; + enableVoteEnsemble?: boolean; + ensembleModelDownloadTimeout?: string; + stackEnsembleSettings?: StackEnsembleSettings; +} + // @public export interface TrialComponent { codeId?: string; @@ -4023,9 +5557,23 @@ export interface TrialComponent { environmentVariables?: { [propertyName: string]: string | null; }; - resources?: ResourceConfiguration; + resources?: JobResourceConfiguration; +} + +// @public (undocumented) +export interface TriggerBase { + endTime?: string; + startTime?: string; + timeZone?: string; + triggerType: "Cron" | "Recurrence"; } +// @public (undocumented) +export type TriggerBaseUnion = TriggerBase | CronTrigger | RecurrenceTrigger; + +// @public +export type TriggerType = string; + // @public (undocumented) export interface TritonModelJobInput extends AssetJobInput, JobInput { } @@ -4149,6 +5697,12 @@ export interface UsernamePasswordAuthTypeWorkspaceConnectionProperties extends W credentials?: WorkspaceConnectionUsernamePassword; } +// @public +export type UseStl = string; + +// @public +export type ValidationMetricType = string; + // @public export type ValueFormat = string; @@ -4237,6 +5791,29 @@ export type VmPriority = string; // @public export type VMTier = string; +// @public (undocumented) +export interface VolumeDefinition { + bind?: BindOptions; + consistency?: string; + readOnly?: boolean; + source?: string; + target?: string; + tmpfs?: TmpfsOptions; + type?: VolumeDefinitionType; + volume?: VolumeOptions; +} + +// @public +export type VolumeDefinitionType = string; + +// @public (undocumented) +export interface VolumeOptions { + nocopy?: boolean; +} + +// @public +export type WeekDay = string; + // @public export interface Workspace extends Resource { allowPublicAccessWhenBehindVnet?: boolean; @@ -4256,12 +5833,14 @@ export interface Workspace extends Resource { primaryUserAssignedIdentity?: string; readonly privateEndpointConnections?: PrivateEndpointConnection[]; readonly privateLinkCount?: number; - readonly provisioningState?: ProvisioningState; + readonly provisioningState?: WorkspaceProvisioningState; publicNetworkAccess?: PublicNetworkAccess; + readonly scheduledPurgeDate?: string; serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; readonly serviceProvisionedResourceGroup?: string; sharedPrivateLinkResources?: SharedPrivateLinkResource[]; sku?: Sku; + readonly softDeletedAt?: string; storageAccount?: string; readonly storageHnsEnabled?: boolean; tags?: { @@ -4399,6 +5978,9 @@ export interface WorkspaceListResult { value?: Workspace[]; } +// @public +export type WorkspaceProvisioningState = string; + // @public export interface Workspaces { beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise, WorkspacesCreateOrUpdateResponse>>; @@ -4557,6 +6139,7 @@ export interface WorkspaceUpdateParameters { applicationInsights?: string; containerRegistry?: string; description?: string; + encryption?: EncryptionUpdateProperties; friendlyName?: string; identity?: ManagedServiceIdentity; imageBuildCompute?: string; diff --git a/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts b/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts index 487c319279370..e2654b99a383a 100644 --- a/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts +++ b/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts @@ -36,10 +36,12 @@ import { EnvironmentContainersImpl, EnvironmentVersionsImpl, JobsImpl, + LabelingJobsImpl, ModelContainersImpl, ModelVersionsImpl, OnlineEndpointsImpl, OnlineDeploymentsImpl, + SchedulesImpl, WorkspaceFeaturesImpl } from "./operations"; import { @@ -64,10 +66,12 @@ import { EnvironmentContainers, EnvironmentVersions, Jobs, + LabelingJobs, ModelContainers, ModelVersions, OnlineEndpoints, OnlineDeployments, + Schedules, WorkspaceFeatures } from "./operationsInterfaces"; import { AzureMachineLearningWorkspacesOptionalParams } from "./models"; @@ -104,7 +108,7 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-machinelearning/1.0.1`; + const packageDetails = `azsdk-js-arm-machinelearning/2.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -151,7 +155,7 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-05-01"; + this.apiVersion = options.apiVersion || "2022-06-01-preview"; this.operations = new OperationsImpl(this); this.workspaces = new WorkspacesImpl(this); this.usages = new UsagesImpl(this); @@ -173,10 +177,12 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { this.environmentContainers = new EnvironmentContainersImpl(this); this.environmentVersions = new EnvironmentVersionsImpl(this); this.jobs = new JobsImpl(this); + this.labelingJobs = new LabelingJobsImpl(this); this.modelContainers = new ModelContainersImpl(this); this.modelVersions = new ModelVersionsImpl(this); this.onlineEndpoints = new OnlineEndpointsImpl(this); this.onlineDeployments = new OnlineDeploymentsImpl(this); + this.schedules = new SchedulesImpl(this); this.workspaceFeatures = new WorkspaceFeaturesImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -230,9 +236,11 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { environmentContainers: EnvironmentContainers; environmentVersions: EnvironmentVersions; jobs: Jobs; + labelingJobs: LabelingJobs; modelContainers: ModelContainers; modelVersions: ModelVersions; onlineEndpoints: OnlineEndpoints; onlineDeployments: OnlineDeployments; + schedules: Schedules; workspaceFeatures: WorkspaceFeatures; } diff --git a/sdk/machinelearning/arm-machinelearning/src/models/index.ts b/sdk/machinelearning/arm-machinelearning/src/models/index.ts index b1a57cfcbeaff..d8c8a911158c6 100644 --- a/sdk/machinelearning/arm-machinelearning/src/models/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/models/index.ts @@ -41,6 +41,8 @@ export type DatastoreCredentialsUnion = | DatastoreCredentials | AccountKeyDatastoreCredentials | CertificateDatastoreCredentials + | KerberosKeytabCredentials + | KerberosPasswordCredentials | NoneDatastoreCredentials | SasDatastoreCredentials | ServicePrincipalDatastoreCredentials; @@ -48,6 +50,8 @@ export type DatastoreSecretsUnion = | DatastoreSecrets | AccountKeyDatastoreSecrets | CertificateDatastoreSecrets + | KerberosKeytabSecrets + | KerberosPasswordSecrets | SasDatastoreSecrets | ServicePrincipalDatastoreSecrets; export type IdentityConfigurationUnion = @@ -55,10 +59,74 @@ export type IdentityConfigurationUnion = | AmlToken | ManagedIdentity | UserIdentity; +export type LabelingJobMediaPropertiesUnion = + | LabelingJobMediaProperties + | LabelingJobImageProperties + | LabelingJobTextProperties; +export type MLAssistConfigurationUnion = + | MLAssistConfiguration + | MLAssistConfigurationDisabled + | MLAssistConfigurationEnabled; +export type ExportSummaryUnion = + | ExportSummary + | CocoExportSummary + | CsvExportSummary + | DatasetExportSummary; export type OnlineScaleSettingsUnion = | OnlineScaleSettings | DefaultScaleSettings | TargetUtilizationScaleSettings; +export type ScheduleActionBaseUnion = + | ScheduleActionBase + | EndpointScheduleAction + | JobScheduleAction; +export type TriggerBaseUnion = TriggerBase | CronTrigger | RecurrenceTrigger; +export type ForecastHorizonUnion = + | ForecastHorizon + | AutoForecastHorizon + | CustomForecastHorizon; +export type JobOutputUnion = + | JobOutput + | CustomModelJobOutput + | MLFlowModelJobOutput + | MLTableJobOutput + | TritonModelJobOutput + | UriFileJobOutput + | UriFolderJobOutput; +export type AutoMLVerticalUnion = + | AutoMLVertical + | Classification + | Forecasting + | ImageClassification + | ImageClassificationMultilabel + | ImageInstanceSegmentation + | ImageObjectDetection + | Regression + | TextClassification + | TextClassificationMultilabel + | TextNer; +export type JobInputUnion = + | JobInput + | MLTableJobInput + | CustomModelJobInput + | MLFlowModelJobInput + | LiteralJobInput + | TritonModelJobInput + | UriFileJobInput + | UriFolderJobInput; +export type NCrossValidationsUnion = + | NCrossValidations + | AutoNCrossValidations + | CustomNCrossValidations; +export type SeasonalityUnion = + | Seasonality + | AutoSeasonality + | CustomSeasonality; +export type TargetLagsUnion = TargetLags | AutoTargetLags | CustomTargetLags; +export type TargetRollingWindowSizeUnion = + | TargetRollingWindowSize + | AutoTargetRollingWindowSize + | CustomTargetRollingWindowSize; export type EarlyTerminationPolicyUnion = | EarlyTerminationPolicy | BanditPolicy @@ -74,24 +142,11 @@ export type DistributionConfigurationUnion = | Mpi | PyTorch | TensorFlow; -export type JobInputUnion = - | JobInput - | CustomModelJobInput - | LiteralJobInput - | MLFlowModelJobInput - | MLTableJobInput - | TritonModelJobInput - | UriFileJobInput - | UriFolderJobInput; export type JobLimitsUnion = JobLimits | CommandJobLimits | SweepJobLimits; -export type JobOutputUnion = - | JobOutput - | CustomModelJobOutput - | MLFlowModelJobOutput - | MLTableJobOutput - | TritonModelJobOutput - | UriFileJobOutput - | UriFolderJobOutput; +export type SparkJobEntryUnion = + | SparkJobEntry + | SparkJobPythonEntry + | SparkJobScalaEntry; export type OnlineDeploymentPropertiesUnion = | OnlineDeploymentProperties | KubernetesOnlineDeployment @@ -101,11 +156,15 @@ export type DatastorePropertiesUnion = | AzureBlobDatastore | AzureDataLakeGen1Datastore | AzureDataLakeGen2Datastore - | AzureFileDatastore; + | AzureFileDatastore + | HdfsDatastore; export type JobBasePropertiesUnion = | JobBaseProperties + | LabelingJobProperties + | AutoMLJob | CommandJob | PipelineJob + | SparkJob | SweepJob; export type DataVersionBasePropertiesUnion = | DataVersionBaseProperties @@ -384,6 +443,18 @@ export interface WorkspaceUpdateParameters { applicationInsights?: string; /** ARM id of the container registry associated with this workspace. */ containerRegistry?: string; + /** The encryption settings of the workspace. */ + encryption?: EncryptionUpdateProperties; +} + +export interface EncryptionUpdateProperties { + /** Customer Key vault properties. */ + keyVaultProperties: EncryptionKeyVaultUpdateProperties; +} + +export interface EncryptionKeyVaultUpdateProperties { + /** Key Vault uri to access the encryption key. */ + keyIdentifier: string; } /** The result of a request to list machine learning workspaces. */ @@ -792,7 +863,7 @@ export interface Compute { * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly provisioningState?: ComputeProvisioningState; /** The description of the Machine Learning compute. */ description?: string; /** @@ -843,6 +914,100 @@ export interface ScaleSettings { nodeIdleTimeBeforeScaleDown?: string; } +/** Specifies the custom service configuration */ +export interface CustomService { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** Name of the Custom Service */ + name?: string; + /** Describes the Image Specifications */ + image?: Image; + /** Environment Variable for the container */ + environmentVariables?: { [propertyName: string]: EnvironmentVariable }; + /** Describes the docker settings for the image */ + docker?: Docker; + /** Configuring the endpoints for the container */ + endpoints?: Endpoint[]; + /** Configuring the volumes for the container */ + volumes?: VolumeDefinition[]; +} + +export interface Image { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** Type of the image. Possible values are: docker - For docker images. azureml - For AzureML images */ + type?: ImageType; + /** Image reference URL */ + reference?: string; +} + +export interface EnvironmentVariable { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** Type of the Environment Variable. Possible values are: local - For local variable */ + type?: EnvironmentVariableType; + /** Value of the Environment variable */ + value?: string; +} + +export interface Docker { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** Indicate whether container shall run in privileged or non-privileged mode. */ + privileged?: boolean; +} + +export interface Endpoint { + /** Protocol over which communication will happen over this endpoint */ + protocol?: Protocol; + /** Name of the Endpoint */ + name?: string; + /** Application port inside the container. */ + target?: number; + /** Port over which the application is exposed from container. */ + published?: number; + /** Host IP over which the application is exposed from the container */ + hostIp?: string; +} + +export interface VolumeDefinition { + /** Type of Volume Definition. Possible Values: bind,volume,tmpfs,npipe */ + type?: VolumeDefinitionType; + /** Indicate whether to mount volume as readOnly. Default value for this is false. */ + readOnly?: boolean; + /** Source of the mount. For bind mounts this is the host path. */ + source?: string; + /** Target of the mount. For bind mounts this is the path in the container. */ + target?: string; + /** Consistency of the volume */ + consistency?: string; + /** Bind Options of the mount */ + bind?: BindOptions; + /** Volume Options of the mount */ + volume?: VolumeOptions; + /** tmpfs option of the mount */ + tmpfs?: TmpfsOptions; +} + +export interface BindOptions { + /** Type of Bind Option */ + propagation?: string; + /** Indicate whether to create host path. */ + createHostPath?: boolean; + /** Mention the selinux options. */ + selinux?: string; +} + +export interface VolumeOptions { + /** Indicate whether volume is nocopy */ + nocopy?: boolean; +} + +export interface TmpfsOptions { + /** Mention the Tmpfs size */ + size?: number; +} + /** Result of AmlCompute Nodes */ export interface AmlComputeNodesInformation { /** @@ -916,6 +1081,12 @@ export interface ComputeSecrets { computeType: "AKS" | "VirtualMachine" | "Databricks"; } +/** Stops compute instance after user defined period of inactivity. */ +export interface IdleShutdownSetting { + /** Time is defined in ISO8601 format. Minimum is 15 min, maximum is 3 days. */ + idleTimeBeforeShutdown?: string; +} + /** List of private endpoint connection associated with the specified workspace */ export interface PrivateEndpointConnectionListResult { /** Array of private endpoint connections */ @@ -1074,7 +1245,7 @@ export interface EndpointDeploymentPropertiesBase { codeConfiguration?: CodeConfiguration; /** Description of the endpoint deployment. */ description?: string; - /** ARM resource ID or AssetId of the environment specification for the endpoint deployment. */ + /** ARM resource ID of the environment specification for the endpoint deployment. */ environmentId?: string; /** Environment variables configuration for the deployment. */ environmentVariables?: { [propertyName: string]: string | null }; @@ -1175,6 +1346,8 @@ export interface DatastoreCredentials { credentialsType: | "AccountKey" | "Certificate" + | "KerberosKeytab" + | "KerberosPassword" | "None" | "Sas" | "ServicePrincipal"; @@ -1183,7 +1356,13 @@ export interface DatastoreCredentials { /** Base definition for datastore secrets. */ export interface DatastoreSecrets { /** Polymorphic discriminator, which specifies the different types this object can be */ - secretsType: "AccountKey" | "Certificate" | "Sas" | "ServicePrincipal"; + secretsType: + | "AccountKey" + | "Certificate" + | "KerberosKeytab" + | "KerberosPassword" + | "Sas" + | "ServicePrincipal"; } /** A paginated list of EnvironmentContainer entities. */ @@ -1268,6 +1447,131 @@ export interface JobService { readonly status?: string; } +/** A paginated list of LabelingJob entities. */ +export interface LabelingJobResourceArmPaginatedResult { + /** The link to the next page of LabelingJob objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type LabelingJob. */ + value?: LabelingJob[]; +} + +/** Labeling data configuration definition */ +export interface LabelingDataConfiguration { + /** Resource Id of the data asset to perform labeling. */ + dataId?: string; + /** Indicates whether to enable incremental data refresh. */ + incrementalDataRefreshEnabled?: boolean; +} + +/** Instructions for labeling job */ +export interface LabelingJobInstructions { + /** The link to a page with detailed labeling instructions for labelers. */ + uri?: string; +} + +/** Label category definition */ +export interface LabelCategory { + /** Dictionary of label classes in this category. */ + classes?: { [propertyName: string]: LabelClass | null }; + /** Display name of the label category. */ + displayName?: string; + /** Indicates whether it is allowed to select multiple classes in this category. */ + multiSelectEnabled?: boolean; +} + +/** Label class definition */ +export interface LabelClass { + /** Display name of the label class. */ + displayName?: string; + /** Dictionary of subclasses of the label class. */ + subclasses?: { [propertyName: string]: LabelClass | null }; +} + +/** Properties of a labeling job */ +export interface LabelingJobMediaProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mediaType: "Image" | "Text"; +} + +/** Labeling MLAssist configuration definition */ +export interface MLAssistConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mlAssist: "Disabled" | "Enabled"; +} + +/** Progress metrics definition */ +export interface ProgressMetrics { + /** + * 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 data refresh in UTC. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly incrementalDataLastRefreshDateTime?: 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 createdDateTime?: Date; + /** + * Severity level of message. + * 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; +} + +export interface ExportSummary { + /** Polymorphic discriminator, which specifies the different types this object can be */ + format: "Coco" | "CSV" | "Dataset"; + /** + * The time when the export was completed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly endDateTime?: 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 startDateTime?: Date; +} + /** A paginated list of ModelContainer entities. */ export interface ModelContainerResourceArmPaginatedResult { /** The link to the next page of ModelContainer objects. If null, there are no additional pages. */ @@ -1427,6 +1731,37 @@ export interface EndpointAuthToken { tokenType?: string; } +/** A paginated list of Schedule entities. */ +export interface ScheduleResourceArmPaginatedResult { + /** The link to the next page of Schedule objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type Schedule. */ + value?: Schedule[]; +} + +export interface ScheduleActionBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + actionType: "InvokeBatchEndpoint" | "CreateJob"; +} + +export interface TriggerBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + triggerType: "Cron" | "Recurrence"; + /** + * Specifies end time of schedule in ISO 8601, but without a UTC offset. Refer https://en.wikipedia.org/wiki/ISO_8601. + * Recommented format would be "2022-06-01T00:00:01" + * If not present, the schedule will run indefinitely + */ + endTime?: string; + /** Specifies start time of schedule in ISO 8601 format, but without a UTC offset. */ + startTime?: string; + /** + * Specifies time zone in which the schedule runs. + * TimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11 + */ + timeZone?: string; +} + /** The List Aml user feature operation response. */ export interface ListAmlUserFeatureResult { /** @@ -1698,6 +2033,8 @@ export interface ComputeInstanceProperties { applicationSharingPolicy?: ApplicationSharingPolicy; /** Specifies policy and settings for SSH access. */ sshSettings?: ComputeInstanceSshSettings; + /** List of Custom Services added to the compute. */ + customServices?: CustomService[]; /** * Describes all connectivity endpoints available for this ComputeInstance. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1739,6 +2076,8 @@ export interface ComputeInstanceProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly schedules?: ComputeSchedules; + /** Stops compute instance after user defined period of inactivity. Time is defined in ISO8601 format. Minimum is 15 min, maximum is 3 days. */ + idleTimeBeforeShutdown?: string; /** Enable or disable node public IP address provisioning. Possible values are: Possible values are: true - Indicates that the compute nodes will have public IPs provisioned. false - Indicates that the compute nodes will have a private endpoint and no public IPs. */ enableNodePublicIp?: boolean; /** @@ -2135,6 +2474,101 @@ export interface AssetJobOutput { uri?: string; } +/** The desired maximum forecast horizon in units of time-series frequency. */ +export interface ForecastHorizon { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto" | "Custom"; +} + +/** Job output definition container information on where to find job output/logs. */ +export interface JobOutput { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobOutputType: + | "custom_model" + | "mlflow_model" + | "mltable" + | "triton_model" + | "uri_file" + | "uri_folder"; + /** Description for the output. */ + description?: string; +} + +/** + * AutoML vertical class. + * Base class for AutoML verticals - TableVertical/ImageVertical/NLPVertical + */ +export interface AutoMLVertical { + /** Polymorphic discriminator, which specifies the different types this object can be */ + taskType: + | "Classification" + | "Forecasting" + | "ImageClassification" + | "ImageClassificationMultilabel" + | "ImageInstanceSegmentation" + | "ImageObjectDetection" + | "Regression" + | "TextClassification" + | "TextClassificationMultilabel" + | "TextNER"; + /** Log verbosity for the job. */ + logVerbosity?: LogVerbosity; + /** + * Target column name: This is prediction values column. + * Also known as label column name in context of classification tasks. + */ + targetColumnName?: string; + /** [Required] Training data input. */ + trainingData: MLTableJobInput; +} + +/** Command job definition. */ +export interface JobInput { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobInputType: + | "mltable" + | "custom_model" + | "mlflow_model" + | "literal" + | "triton_model" + | "uri_file" + | "uri_folder"; + /** Description for the input. */ + description?: string; +} + +/** N-Cross validations value. */ +export interface NCrossValidations { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto" | "Custom"; +} + +/** Forecasting seasonality. */ +export interface Seasonality { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto" | "Custom"; +} + +/** The number of past periods to lag from the target column. */ +export interface TargetLags { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto" | "Custom"; +} + +/** Forecasting target rolling window size. */ +export interface TargetRollingWindowSize { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto" | "Custom"; +} + +/** Base definition for Azure datastore contents configuration. */ +export interface AzureDatastore { + /** Azure Resource Group name */ + resourceGroup?: string; + /** Azure Subscription Id */ + subscriptionId?: string; +} + /** Early termination policies enable canceling poor-performing runs before they complete */ export interface EarlyTerminationPolicy { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -2154,27 +2588,111 @@ export interface SamplingAlgorithm { samplingAlgorithmType: "Bayesian" | "Grid" | "Random"; } +/** Training related configuration. */ +export interface TrainingSettings { + /** Enable recommendation of DNN models. */ + enableDnnTraining?: boolean; + /** Flag to turn on explainability on best model. */ + enableModelExplainability?: boolean; + /** Flag for enabling onnx compatible models. */ + enableOnnxCompatibleModels?: boolean; + /** Enable stack ensemble run. */ + enableStackEnsemble?: boolean; + /** Enable voting ensemble run. */ + enableVoteEnsemble?: boolean; + /** + * During VotingEnsemble and StackEnsemble model generation, multiple fitted models from the previous child runs are downloaded. + * Configure this parameter with a higher value than 300 secs, if more time is needed. + */ + ensembleModelDownloadTimeout?: string; + /** Stack ensemble settings for stack ensemble run. */ + stackEnsembleSettings?: StackEnsembleSettings; +} + +/** Advances setting to customize StackEnsemble run. */ +export interface StackEnsembleSettings { + /** Optional parameters to pass to the initializer of the meta-learner. */ + stackMetaLearnerKWargs?: Record; + /** Specifies the proportion of the training set (when choosing train and validation type of training) to be reserved for training the meta-learner. Default value is 0.2. */ + stackMetaLearnerTrainPercentage?: number; + /** The meta-learner is a model trained on the output of the individual heterogeneous models. */ + stackMetaLearnerType?: StackMetaLearnerType; +} + +/** Abstract class for AutoML tasks that use table dataset as input - such as Classification/Regression/Forecasting. */ +export interface TableVertical { + /** Columns to use for CVSplit data. */ + cvSplitColumnNames?: string[]; + /** Featurization inputs needed for AutoML job. */ + featurizationSettings?: TableVerticalFeaturizationSettings; + /** Execution constraints for AutoMLJob. */ + limitSettings?: TableVerticalLimitSettings; + /** + * Number of cross validation folds to be applied on training dataset + * when validation dataset is not provided. + */ + nCrossValidations?: NCrossValidationsUnion; + /** Test data input. */ + testData?: MLTableJobInput; + /** + * The fraction of test dataset that needs to be set aside for validation purpose. + * Values between (0.0 , 1.0) + * Applied when validation dataset is not provided. + */ + testDataSize?: number; + /** Validation data inputs. */ + validationData?: MLTableJobInput; + /** + * The fraction of training dataset that needs to be set aside for validation purpose. + * Values between (0.0 , 1.0) + * Applied when validation dataset is not provided. + */ + validationDataSize?: number; + /** The name of the sample weight column. Automated ML supports a weighted column as an input, causing rows in the data to be weighted up or down. */ + weightColumnName?: string; +} + +/** Column transformer parameters. */ +export interface ColumnTransformer { + /** Fields to apply transformer logic on. */ + fields?: string[]; + /** + * Different properties to be passed to transformer. + * Input expected is dictionary of key,value pairs in JSON format. + */ + parameters?: Record; +} + +/** Featurization Configuration. */ +export interface FeaturizationSettings { + /** Dataset language, useful for the text data. */ + datasetLanguage?: string; +} + +/** Job execution constraints. */ +export interface TableVerticalLimitSettings { + /** Enable early termination, determines whether or not if AutoMLJob will terminate early if there is no score improvement in last 20 iterations. */ + enableEarlyTermination?: boolean; + /** Exit score for the AutoML job. */ + exitScore?: number; + /** Maximum Concurrent iterations. */ + maxConcurrentTrials?: number; + /** Max cores per iteration. */ + maxCoresPerTrial?: number; + /** Number of iterations. */ + maxTrials?: number; + /** AutoML job timeout. */ + timeout?: string; + /** Iteration timeout. */ + trialTimeout?: string; +} + /** Base definition for job distribution configuration. */ export interface DistributionConfiguration { /** Polymorphic discriminator, which specifies the different types this object can be */ distributionType: "Mpi" | "PyTorch" | "TensorFlow"; } -/** Command job definition. */ -export interface JobInput { - /** Polymorphic discriminator, which specifies the different types this object can be */ - jobInputType: - | "custom_model" - | "literal" - | "mlflow_model" - | "mltable" - | "triton_model" - | "uri_file" - | "uri_folder"; - /** Description for the input. */ - description?: string; -} - export interface JobLimits { /** Polymorphic discriminator, which specifies the different types this object can be */ jobLimitsType: "Command" | "Sweep"; @@ -2182,20 +2700,6 @@ export interface JobLimits { timeout?: string; } -/** Job output definition container information on where to find job output/logs. */ -export interface JobOutput { - /** Polymorphic discriminator, which specifies the different types this object can be */ - jobOutputType: - | "custom_model" - | "mlflow_model" - | "mltable" - | "triton_model" - | "uri_file" - | "uri_folder"; - /** Description for the output. */ - description?: string; -} - /** Resource requirements for each container instance within an online deployment. */ export interface ContainerResourceRequirements { /** Container resource limit info: */ @@ -2222,14 +2726,346 @@ export interface ContainerResourceSettings { memory?: string; } -/** Optimization objective. */ -export interface Objective { - /** [Required] Defines supported metric goals for hyperparameter tuning */ - goal: Goal; - /** [Required] Name of the metric to optimize. */ - primaryMetric: string; -} - +/** Forecasting specific parameters. */ +export interface ForecastingSettings { + /** + * Country or region for holidays for forecasting tasks. + * These should be ISO 3166 two-letter country/region codes, for example 'US' or 'GB'. + */ + countryOrRegionForHolidays?: string; + /** + * Number of periods between the origin time of one CV fold and the next fold. For + * example, if `CVStepSize` = 3 for daily data, the origin time for each fold will be + * three days apart. + */ + cvStepSize?: number; + /** Flag for generating lags for the numeric features with 'auto' or null. */ + featureLags?: FeatureLags; + /** The desired maximum forecast horizon in units of time-series frequency. */ + forecastHorizon?: ForecastHorizonUnion; + /** When forecasting, this parameter represents the period with which the forecast is desired, for example daily, weekly, yearly, etc. The forecast frequency is dataset frequency by default. */ + frequency?: string; + /** + * Set time series seasonality as an integer multiple of the series frequency. + * If seasonality is set to 'auto', it will be inferred. + */ + seasonality?: SeasonalityUnion; + /** The parameter defining how if AutoML should handle short time series. */ + shortSeriesHandlingConfig?: ShortSeriesHandlingConfiguration; + /** + * The function to be used to aggregate the time series target column to conform to a user specified frequency. + * If the TargetAggregateFunction is set i.e. not 'None', but the freq parameter is not set, the error is raised. The possible target aggregation functions are: "sum", "max", "min" and "mean". + */ + targetAggregateFunction?: TargetAggregationFunction; + /** The number of past periods to lag from the target column. */ + targetLags?: TargetLagsUnion; + /** The number of past periods used to create a rolling window average of the target column. */ + targetRollingWindowSize?: TargetRollingWindowSizeUnion; + /** The name of the time column. This parameter is required when forecasting to specify the datetime column in the input data used for building the time series and inferring its frequency. */ + timeColumnName?: string; + /** + * The names of columns used to group a timeseries. It can be used to create multiple series. + * If grain is not defined, the data set is assumed to be one time-series. This parameter is used with task type forecasting. + */ + timeSeriesIdColumnNames?: string[]; + /** Configure STL Decomposition of the time-series target column. */ + useStl?: UseStl; +} + +/** + * Settings used for training the model. + * For more information on the available settings please visit the official documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. + */ +export interface ImageModelSettings { + /** Settings for advanced scenarios. */ + advancedSettings?: string; + /** Enable AMSGrad when optimizer is 'adam' or 'adamw'. */ + amsGradient?: boolean; + /** Settings for using Augmentations. */ + augmentations?: string; + /** Value of 'beta1' when optimizer is 'adam' or 'adamw'. Must be a float in the range [0, 1]. */ + beta1?: number; + /** Value of 'beta2' when optimizer is 'adam' or 'adamw'. Must be a float in the range [0, 1]. */ + beta2?: number; + /** Frequency to store model checkpoints. Must be a positive integer. */ + checkpointFrequency?: number; + /** The pretrained checkpoint model for incremental training. */ + checkpointModel?: MLFlowModelJobInput; + /** The id of a previous run that has a pretrained checkpoint for incremental training. */ + checkpointRunId?: string; + /** Whether to use distributed training. */ + distributed?: boolean; + /** Enable early stopping logic during training. */ + earlyStopping?: boolean; + /** + * Minimum number of epochs or validation evaluations to wait before primary metric improvement + * is tracked for early stopping. Must be a positive integer. + */ + earlyStoppingDelay?: number; + /** + * Minimum number of epochs or validation evaluations with no primary metric improvement before + * the run is stopped. Must be a positive integer. + */ + earlyStoppingPatience?: number; + /** Enable normalization when exporting ONNX model. */ + enableOnnxNormalization?: boolean; + /** Frequency to evaluate validation dataset to get metric scores. Must be a positive integer. */ + evaluationFrequency?: number; + /** + * Gradient accumulation means running a configured number of "GradAccumulationStep" steps without + * updating the model weights while accumulating the gradients of those steps, and then using + * the accumulated gradients to compute the weight updates. Must be a positive integer. + */ + gradientAccumulationStep?: number; + /** + * Number of layers to freeze for the model. Must be a positive integer. + * For instance, passing 2 as value for 'seresnext' means + * freezing layer0 and layer1. For a full list of models supported and details on layer freeze, please + * see: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. + */ + layersToFreeze?: number; + /** Initial learning rate. Must be a float in the range [0, 1]. */ + learningRate?: number; + /** Type of learning rate scheduler. Must be 'warmup_cosine' or 'step'. */ + learningRateScheduler?: LearningRateScheduler; + /** + * Name of the model to use for training. + * For more information on the available models please visit the official documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. + */ + modelName?: string; + /** Value of momentum when optimizer is 'sgd'. Must be a float in the range [0, 1]. */ + momentum?: number; + /** Enable nesterov when optimizer is 'sgd'. */ + nesterov?: boolean; + /** Number of training epochs. Must be a positive integer. */ + numberOfEpochs?: number; + /** Number of data loader workers. Must be a non-negative integer. */ + numberOfWorkers?: number; + /** Type of optimizer. */ + optimizer?: StochasticOptimizer; + /** Random seed to be used when using deterministic training. */ + randomSeed?: number; + /** Value of gamma when learning rate scheduler is 'step'. Must be a float in the range [0, 1]. */ + stepLRGamma?: number; + /** Value of step size when learning rate scheduler is 'step'. Must be a positive integer. */ + stepLRStepSize?: number; + /** Training batch size. Must be a positive integer. */ + trainingBatchSize?: number; + /** Validation batch size. Must be a positive integer. */ + validationBatchSize?: number; + /** Value of cosine cycle when learning rate scheduler is 'warmup_cosine'. Must be a float in the range [0, 1]. */ + warmupCosineLRCycles?: number; + /** Value of warmup epochs when learning rate scheduler is 'warmup_cosine'. Must be a positive integer. */ + warmupCosineLRWarmupEpochs?: number; + /** Value of weight decay when optimizer is 'sgd', 'adam', or 'adamw'. Must be a float in the range[0, 1]. */ + weightDecay?: number; +} + +/** + * Distribution expressions to sweep over values of model settings. + * + * Some examples are: + * + * ModelName = "choice('seresnext', 'resnest50')"; + * LearningRate = "uniform(0.001, 0.01)"; + * LayersToFreeze = "choice(0, 2)"; + * + * All distributions can be specified as distribution_name(min, max) or choice(val1, val2, ..., valn) + * where distribution name can be: uniform, quniform, loguniform, etc + * For more details on how to compose distribution expressions please check the documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-tune-hyperparameters + * For more information on the available settings please visit the official documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. + */ +export interface ImageModelDistributionSettings { + /** Enable AMSGrad when optimizer is 'adam' or 'adamw'. */ + amsGradient?: string; + /** Settings for using Augmentations. */ + augmentations?: string; + /** Value of 'beta1' when optimizer is 'adam' or 'adamw'. Must be a float in the range [0, 1]. */ + beta1?: string; + /** Value of 'beta2' when optimizer is 'adam' or 'adamw'. Must be a float in the range [0, 1]. */ + beta2?: string; + /** Whether to use distributer training. */ + distributed?: string; + /** Enable early stopping logic during training. */ + earlyStopping?: string; + /** + * Minimum number of epochs or validation evaluations to wait before primary metric improvement + * is tracked for early stopping. Must be a positive integer. + */ + earlyStoppingDelay?: string; + /** + * Minimum number of epochs or validation evaluations with no primary metric improvement before + * the run is stopped. Must be a positive integer. + */ + earlyStoppingPatience?: string; + /** Enable normalization when exporting ONNX model. */ + enableOnnxNormalization?: string; + /** Frequency to evaluate validation dataset to get metric scores. Must be a positive integer. */ + evaluationFrequency?: string; + /** + * Gradient accumulation means running a configured number of "GradAccumulationStep" steps without + * updating the model weights while accumulating the gradients of those steps, and then using + * the accumulated gradients to compute the weight updates. Must be a positive integer. + */ + gradientAccumulationStep?: string; + /** + * Number of layers to freeze for the model. Must be a positive integer. + * For instance, passing 2 as value for 'seresnext' means + * freezing layer0 and layer1. For a full list of models supported and details on layer freeze, please + * see: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. + */ + layersToFreeze?: string; + /** Initial learning rate. Must be a float in the range [0, 1]. */ + learningRate?: string; + /** Type of learning rate scheduler. Must be 'warmup_cosine' or 'step'. */ + learningRateScheduler?: string; + /** + * Name of the model to use for training. + * For more information on the available models please visit the official documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. + */ + modelName?: string; + /** Value of momentum when optimizer is 'sgd'. Must be a float in the range [0, 1]. */ + momentum?: string; + /** Enable nesterov when optimizer is 'sgd'. */ + nesterov?: string; + /** Number of training epochs. Must be a positive integer. */ + numberOfEpochs?: string; + /** Number of data loader workers. Must be a non-negative integer. */ + numberOfWorkers?: string; + /** Type of optimizer. Must be either 'sgd', 'adam', or 'adamw'. */ + optimizer?: string; + /** Random seed to be used when using deterministic training. */ + randomSeed?: string; + /** Value of gamma when learning rate scheduler is 'step'. Must be a float in the range [0, 1]. */ + stepLRGamma?: string; + /** Value of step size when learning rate scheduler is 'step'. Must be a positive integer. */ + stepLRStepSize?: string; + /** Training batch size. Must be a positive integer. */ + trainingBatchSize?: string; + /** Validation batch size. Must be a positive integer. */ + validationBatchSize?: string; + /** Value of cosine cycle when learning rate scheduler is 'warmup_cosine'. Must be a float in the range [0, 1]. */ + warmupCosineLRCycles?: string; + /** Value of warmup epochs when learning rate scheduler is 'warmup_cosine'. Must be a positive integer. */ + warmupCosineLRWarmupEpochs?: string; + /** Value of weight decay when optimizer is 'sgd', 'adam', or 'adamw'. Must be a float in the range[0, 1]. */ + weightDecay?: string; +} + +/** + * Abstract class for AutoML tasks that train image (computer vision) models - + * such as Image Classification / Image Classification Multilabel / Image Object Detection / Image Instance Segmentation. + */ +export interface ImageVertical { + /** [Required] Limit settings for the AutoML job. */ + limitSettings: ImageLimitSettings; + /** Model sweeping and hyperparameter sweeping related settings. */ + sweepSettings?: ImageSweepSettings; + /** Validation data inputs. */ + validationData?: MLTableJobInput; + /** + * The fraction of training dataset that needs to be set aside for validation purpose. + * Values between (0.0 , 1.0) + * Applied when validation dataset is not provided. + */ + validationDataSize?: number; +} + +/** Limit settings for the AutoML job. */ +export interface ImageLimitSettings { + /** Maximum number of concurrent AutoML iterations. */ + maxConcurrentTrials?: number; + /** Maximum number of AutoML iterations. */ + maxTrials?: number; + /** AutoML job timeout. */ + timeout?: string; +} + +/** Model sweeping and hyperparameter sweeping related settings. */ +export interface ImageSweepSettings { + /** Type of early termination policy. */ + earlyTermination?: EarlyTerminationPolicyUnion; + /** [Required] Limit settings for model sweeping and hyperparameter sweeping. */ + limits: ImageSweepLimitSettings; + /** [Required] Type of the hyperparameter sampling algorithms. */ + samplingAlgorithm: SamplingAlgorithmType; +} + +/** Limit settings for model sweeping and hyperparameter sweeping. */ +export interface ImageSweepLimitSettings { + /** Maximum number of concurrent iterations for the underlying Sweep job. */ + maxConcurrentTrials?: number; + /** Maximum number of iterations for the underlying Sweep job. */ + maxTrials?: number; +} + +export interface KerberosCredentials { + /** [Required] IP Address or DNS HostName. */ + kerberosKdcAddress: string; + /** [Required] Kerberos Username */ + kerberosPrincipal: string; + /** [Required] Domain over which a Kerberos authentication server has the authority to authenticate a user, host or service. */ + kerberosRealm: string; +} + +/** + * Abstract class for NLP related AutoML tasks. + * NLP - Natural Language Processing. + */ +export interface NlpVertical { + /** Featurization inputs needed for AutoML job. */ + featurizationSettings?: NlpVerticalFeaturizationSettings; + /** Execution constraints for AutoMLJob. */ + limitSettings?: NlpVerticalLimitSettings; + /** Validation data inputs. */ + validationData?: MLTableJobInput; +} + +/** Job execution constraints. */ +export interface NlpVerticalLimitSettings { + /** Maximum Concurrent AutoML iterations. */ + maxConcurrentTrials?: number; + /** Number of AutoML iterations. */ + maxTrials?: number; + /** AutoML job timeout. */ + timeout?: string; +} + +/** Optimization objective. */ +export interface Objective { + /** [Required] Defines supported metric goals for hyperparameter tuning */ + goal: Goal; + /** [Required] Name of the metric to optimize. */ + primaryMetric: string; +} + +export interface RecurrenceSchedule { + /** [Required] List of hours for the schedule. */ + hours: number[]; + /** [Required] List of minutes for the schedule. */ + minutes: number[]; + /** List of days for the schedule. */ + weekDays?: WeekDay[]; +} + +/** Spark job entry point definition. */ +export interface SparkJobEntry { + /** Polymorphic discriminator, which specifies the different types this object can be */ + sparkJobEntryType: "SparkJobPythonEntry" | "SparkJobPythonEntry"; +} + +export interface SparkResourceConfiguration { + /** Optional type of VM used as supported by the compute target. */ + instanceType?: string; + /** Version of spark runtime used for the job. */ + runtimeVersion?: string; +} + /** Trial component definition. */ export interface TrialComponent { /** ARM resource ID of the code asset. */ @@ -2243,7 +3079,7 @@ export interface TrialComponent { /** Environment variables included in the job. */ environmentVariables?: { [propertyName: string]: string | null }; /** Compute Resource configuration for the job. */ - resources?: ResourceConfiguration; + resources?: JobResourceConfiguration; } /** The Private Endpoint Connection resource. */ @@ -2300,7 +3136,7 @@ export interface Workspace extends Resource { * The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly provisioningState?: WorkspaceProvisioningState; /** The encryption settings of Azure ML workspace. */ encryption?: EncryptionProperty; /** The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service */ @@ -2354,6 +3190,16 @@ export interface Workspace extends Resource { readonly mlFlowTrackingUri?: string; /** Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. */ v1LegacyMode?: boolean; + /** + * The timestamp when the workspace was soft deleted + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly softDeletedAt?: string; + /** + * The timestamp when the soft deleted workspace is going to be purged + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly scheduledPurgeDate?: string; } /** Machine Learning compute object wrapped into ARM resource envelope. */ @@ -2464,6 +3310,12 @@ export interface JobBase extends Resource { properties: JobBasePropertiesUnion; } +/** Azure Resource Manager resource envelope. */ +export interface LabelingJob extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: LabelingJobProperties; +} + /** Azure Resource Manager resource envelope. */ export interface ModelContainer extends Resource { /** [Required] Additional attributes of the entity. */ @@ -2476,6 +3328,12 @@ export interface ModelVersion extends Resource { properties: ModelVersionProperties; } +/** Azure Resource Manager resource envelope. */ +export interface Schedule extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: ScheduleProperties; +} + /** A Machine Learning compute based on AKS. */ export interface Aks extends Compute, AKSSchema { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -2613,11 +3471,15 @@ export interface OnlineEndpointProperties extends EndpointPropertiesBase { * optional */ compute?: string; + /** Percentage of traffic to be mirrored to each deployment without using returned scoring. Traffic values need to sum to utmost 50. */ + mirrorTraffic?: { [propertyName: string]: number }; /** * Provisioning state for the endpoint. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: EndpointProvisioningState; + /** Set to "Enabled" for endpoints that should allow public access when Private Link is enabled. */ + publicNetworkAccess?: PublicNetworkAccessType; /** Percentage of traffic from endpoint to divert to each deployment. Traffic values need to sum to 100. */ traffic?: { [propertyName: string]: number }; } @@ -2664,6 +3526,16 @@ export interface OutputPathAssetReference extends AssetReferenceBase { path?: string; } +export interface DeploymentResourceConfiguration + extends ResourceConfiguration {} + +export interface JobResourceConfiguration extends ResourceConfiguration { + /** Extra arguments to pass to the Docker run command. This would override any parameters that have already been set by the system, or in this section. This parameter is only supported for Azure ML compute types. */ + dockerArgs?: string; + /** Size of the docker container's shared memory block. This should be in the format of (number)(unit) where number as to be greater than 0 and the unit can be one of b(bytes), k(kilobytes), m(megabytes), or g(gigabytes). */ + shmSize?: string; +} + /** Batch inference settings per deployment. */ export interface BatchDeploymentProperties extends EndpointDeploymentPropertiesBase { @@ -2702,7 +3574,7 @@ export interface BatchDeploymentProperties * Indicates compute configuration for the job. * If not provided, will default to the defaults defined in ResourceConfiguration. */ - resources?: ResourceConfiguration; + resources?: DeploymentResourceConfiguration; /** * Retry Settings for the batch inference operation. * If not provided, will default to the defaults defined in BatchRetrySettings. @@ -2714,6 +3586,8 @@ export interface OnlineDeploymentProperties extends EndpointDeploymentPropertiesBase { /** If true, enables Application Insights logging. */ appInsightsEnabled?: boolean; + /** If Enabled, allow egress public network access. If Disabled, this will create secure egress. Default: Enabled. */ + egressPublicNetworkAccess?: EgressPublicNetworkAccessType; /** [Required] The compute type of the endpoint. */ endpointComputeType: EndpointComputeType; /** Compute instance type. */ @@ -2779,6 +3653,8 @@ export interface DatastoreProperties extends ResourceBase { /** Base definition for a job. */ export interface JobBaseProperties extends ResourceBase { + /** ARM resource ID of the component resource. */ + componentId?: string; /** ARM resource ID of the compute resource. */ computeId?: string; /** Display name of job. */ @@ -2806,6 +3682,23 @@ export interface JobBaseProperties extends ResourceBase { readonly status?: JobStatus; } +/** Base definition of a schedule */ +export interface ScheduleProperties extends ResourceBase { + /** [Required] Specifies the action of the schedule */ + action: ScheduleActionBaseUnion; + /** Display name of schedule. */ + displayName?: string; + /** Is the schedule enabled? */ + isEnabled?: boolean; + /** + * Provisioning state for the schedule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ScheduleProvisioningStatus; + /** [Required] Specifies the trigger details */ + trigger: TriggerBaseUnion; +} + /** Account key datastore credentials configuration. */ export interface AccountKeyDatastoreCredentials extends DatastoreCredentials { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -2832,6 +3725,20 @@ export interface CertificateDatastoreCredentials extends DatastoreCredentials { thumbprint: string; } +export interface KerberosKeytabCredentials + extends KerberosCredentials, + DatastoreCredentials { + /** [Required] Keytab secrets. */ + secrets: KerberosKeytabSecrets; +} + +export interface KerberosPasswordCredentials + extends KerberosCredentials, + DatastoreCredentials { + /** [Required] Kerberos password secrets. */ + secrets: KerberosPasswordSecrets; +} + /** Empty/none datastore credentials. */ export interface NoneDatastoreCredentials extends DatastoreCredentials { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -2879,6 +3786,20 @@ export interface CertificateDatastoreSecrets extends DatastoreSecrets { certificate?: string; } +export interface KerberosKeytabSecrets extends DatastoreSecrets { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: "KerberosKeytab"; + /** Kerberos keytab secret. */ + kerberosKeytab?: string; +} + +export interface KerberosPasswordSecrets extends DatastoreSecrets { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: "KerberosPassword"; + /** Kerberos password secret. */ + kerberosPassword?: string; +} + /** Datastore SAS secrets. */ export interface SasDatastoreSecrets extends DatastoreSecrets { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -2919,6 +3840,78 @@ export interface UserIdentity extends IdentityConfiguration { identityType: "UserIdentity"; } +/** Properties of a labeling job for image data */ +export interface LabelingJobImageProperties extends LabelingJobMediaProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mediaType: "Image"; + /** Annotation type of image labeling job. */ + annotationType?: ImageAnnotationType; +} + +/** Properties of a labeling job for text data */ +export interface LabelingJobTextProperties extends LabelingJobMediaProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mediaType: "Text"; + /** Annotation type of text labeling job. */ + annotationType?: TextAnnotationType; +} + +/** Labeling MLAssist configuration definition when MLAssist is disabled */ +export interface MLAssistConfigurationDisabled extends MLAssistConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mlAssist: "Disabled"; +} + +/** Labeling MLAssist configuration definition when MLAssist is enabled */ +export interface MLAssistConfigurationEnabled extends MLAssistConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mlAssist: "Enabled"; + /** [Required] AML compute binding used in inferencing. */ + inferencingComputeBinding: string; + /** [Required] AML compute binding used in training. */ + trainingComputeBinding: string; +} + +export interface CocoExportSummary extends ExportSummary { + /** Polymorphic discriminator, which specifies the different types this object can be */ + format: "Coco"; + /** + * The container name to which the labels will be exported. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly containerName?: string; + /** + * The output path where the labels will be exported. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly snapshotPath?: string; +} + +export interface CsvExportSummary extends ExportSummary { + /** Polymorphic discriminator, which specifies the different types this object can be */ + format: "CSV"; + /** + * The container name to which the labels will be exported. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly containerName?: string; + /** + * The output path where the labels will be exported. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly snapshotPath?: string; +} + +export interface DatasetExportSummary extends ExportSummary { + /** Polymorphic discriminator, which specifies the different types this object can be */ + format: "Dataset"; + /** + * The unique name of the labeled data asset. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly labeledAssetName?: string; +} + export interface DefaultScaleSettings extends OnlineScaleSettings { /** Polymorphic discriminator, which specifies the different types this object can be */ scaleType: "Default"; @@ -2937,12 +3930,50 @@ export interface TargetUtilizationScaleSettings extends OnlineScaleSettings { targetUtilizationPercentage?: number; } -export interface CustomModelJobInput extends AssetJobInput, JobInput {} +export interface EndpointScheduleAction extends ScheduleActionBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + actionType: "InvokeBatchEndpoint"; + /** + * [Required] Defines Schedule action definition details. + * + */ + endpointInvocationDefinition: Record; +} -export interface MLFlowModelJobInput extends AssetJobInput, JobInput {} +export interface JobScheduleAction extends ScheduleActionBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + actionType: "CreateJob"; + /** [Required] Defines Schedule action definition details. */ + jobDefinition: JobBasePropertiesUnion; +} + +export interface CronTrigger extends TriggerBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + triggerType: "Cron"; + /** + * [Required] Specifies cron expression of schedule. + * The expression should follow NCronTab format. + */ + expression: string; +} + +export interface RecurrenceTrigger extends TriggerBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + triggerType: "Recurrence"; + /** [Required] The frequency to trigger schedule. */ + frequency: RecurrenceFrequency; + /** [Required] Specifies schedule interval in conjunction with frequency */ + interval: number; + /** [Required] The recurrence schedule. */ + schedule: RecurrenceSchedule; +} export interface MLTableJobInput extends AssetJobInput, JobInput {} +export interface CustomModelJobInput extends AssetJobInput, JobInput {} + +export interface MLFlowModelJobInput extends AssetJobInput, JobInput {} + export interface TritonModelJobInput extends AssetJobInput, JobInput {} export interface UriFileJobInput extends AssetJobInput, JobInput {} @@ -2961,76 +3992,136 @@ export interface UriFileJobOutput extends AssetJobOutput, JobOutput {} export interface UriFolderJobOutput extends AssetJobOutput, JobOutput {} -/** Defines an early termination policy based on slack criteria, and a frequency and delay interval for evaluation */ -export interface BanditPolicy extends EarlyTerminationPolicy { +/** Forecast horizon determined automatically by system. */ +export interface AutoForecastHorizon extends ForecastHorizon { /** Polymorphic discriminator, which specifies the different types this object can be */ - policyType: "Bandit"; - /** Absolute distance allowed from the best performing run. */ - slackAmount?: number; - /** Ratio of the allowed distance from the best performing run. */ - slackFactor?: number; + mode: "Auto"; } -/** Defines an early termination policy based on running averages of the primary metric of all runs */ -export interface MedianStoppingPolicy extends EarlyTerminationPolicy { +/** The desired maximum forecast horizon in units of time-series frequency. */ +export interface CustomForecastHorizon extends ForecastHorizon { /** Polymorphic discriminator, which specifies the different types this object can be */ - policyType: "MedianStopping"; + mode: "Custom"; + /** [Required] Forecast horizon value. */ + value: number; } -/** Defines an early termination policy that cancels a given percentage of runs at each evaluation interval. */ -export interface TruncationSelectionPolicy extends EarlyTerminationPolicy { - /** Polymorphic discriminator, which specifies the different types this object can be */ - policyType: "TruncationSelection"; - /** The percentage of runs to cancel at each evaluation interval. */ - truncationPercentage?: number; +/** Classification task in AutoML Table vertical. */ +export interface Classification extends TableVertical, AutoMLVertical { + /** Positive label for binary metrics calculation. */ + positiveLabel?: string; + /** Primary metric for the task. */ + primaryMetric?: ClassificationPrimaryMetrics; + /** Inputs for training phase for an AutoML Job. */ + trainingSettings?: ClassificationTrainingSettings; } -/** Defines a Sampling Algorithm that generates values based on previous values */ -export interface BayesianSamplingAlgorithm extends SamplingAlgorithm { - /** Polymorphic discriminator, which specifies the different types this object can be */ - samplingAlgorithmType: "Bayesian"; +/** Forecasting task in AutoML Table vertical. */ +export interface Forecasting extends TableVertical, AutoMLVertical { + /** Forecasting task specific inputs. */ + forecastingSettings?: ForecastingSettings; + /** Primary metric for forecasting task. */ + primaryMetric?: ForecastingPrimaryMetrics; + /** Inputs for training phase for an AutoML Job. */ + trainingSettings?: ForecastingTrainingSettings; } -/** Defines a Sampling Algorithm that exhaustively generates every value combination in the space */ -export interface GridSamplingAlgorithm extends SamplingAlgorithm { +/** + * Image Classification. Multi-class image classification is used when an image is classified with only a single label + * from a set of classes - e.g. each image is classified as either an image of a 'cat' or a 'dog' or a 'duck'. + */ +export interface ImageClassification + extends ImageClassificationBase, + AutoMLVertical { /** Polymorphic discriminator, which specifies the different types this object can be */ - samplingAlgorithmType: "Grid"; + taskType: "ImageClassification"; + /** Primary metric to optimize for this task. */ + primaryMetric?: ClassificationPrimaryMetrics; } -/** Defines a Sampling Algorithm that generates values randomly */ -export interface RandomSamplingAlgorithm extends SamplingAlgorithm { +/** + * Image Classification Multilabel. Multi-label image classification is used when an image could have one or more labels + * from a set of labels - e.g. an image could be labeled with both 'cat' and 'dog'. + */ +export interface ImageClassificationMultilabel + extends ImageClassificationBase, + AutoMLVertical { /** Polymorphic discriminator, which specifies the different types this object can be */ - samplingAlgorithmType: "Random"; - /** The specific type of random algorithm */ - rule?: RandomSamplingAlgorithmRule; - /** An optional integer to use as the seed for random number generation */ - seed?: number; + taskType: "ImageClassificationMultilabel"; + /** Primary metric to optimize for this task. */ + primaryMetric?: ClassificationMultilabelPrimaryMetrics; } -/** MPI distribution configuration. */ -export interface Mpi extends DistributionConfiguration { +/** + * Image Instance Segmentation. Instance segmentation is used to identify objects in an image at the pixel level, + * drawing a polygon around each object in the image. + */ +export interface ImageInstanceSegmentation + extends ImageObjectDetectionBase, + AutoMLVertical { /** Polymorphic discriminator, which specifies the different types this object can be */ - distributionType: "Mpi"; - /** Number of processes per MPI node. */ - processCountPerInstance?: number; + taskType: "ImageInstanceSegmentation"; + /** Primary metric to optimize for this task. */ + primaryMetric?: InstanceSegmentationPrimaryMetrics; } -/** PyTorch distribution configuration. */ -export interface PyTorch extends DistributionConfiguration { +/** + * Image Object Detection. Object detection is used to identify objects in an image and locate each object with a + * bounding box e.g. locate all dogs and cats in an image and draw a bounding box around each. + */ +export interface ImageObjectDetection + extends ImageObjectDetectionBase, + AutoMLVertical { /** Polymorphic discriminator, which specifies the different types this object can be */ - distributionType: "PyTorch"; - /** Number of processes per node. */ - processCountPerInstance?: number; + taskType: "ImageObjectDetection"; + /** Primary metric to optimize for this task. */ + primaryMetric?: ObjectDetectionPrimaryMetrics; } -/** TensorFlow distribution configuration. */ -export interface TensorFlow extends DistributionConfiguration { - /** Polymorphic discriminator, which specifies the different types this object can be */ - distributionType: "TensorFlow"; - /** Number of parameter server tasks. */ - parameterServerCount?: number; - /** Number of workers. If not specified, will default to the instance count. */ - workerCount?: number; +/** Regression task in AutoML Table vertical. */ +export interface Regression extends TableVertical, AutoMLVertical { + /** Primary metric for regression task. */ + primaryMetric?: RegressionPrimaryMetrics; + /** Inputs for training phase for an AutoML Job. */ + trainingSettings?: RegressionTrainingSettings; +} + +/** + * Text Classification task in AutoML NLP vertical. + * NLP - Natural Language Processing. + */ +export interface TextClassification extends NlpVertical, AutoMLVertical { + /** Primary metric for Text-Classification task. */ + primaryMetric?: ClassificationPrimaryMetrics; +} + +/** + * Text Classification Multilabel task in AutoML NLP vertical. + * NLP - Natural Language Processing. + */ +export interface TextClassificationMultilabel + extends NlpVertical, + AutoMLVertical { + /** + * Primary metric for Text-Classification-Multilabel task. + * Currently only Accuracy is supported as primary metric, hence user need not set it explicitly. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly primaryMetric?: ClassificationMultilabelPrimaryMetrics; +} + +/** + * Text-NER task in AutoML NLP vertical. + * NER - Named Entity Recognition. + * NLP - Natural Language Processing. + */ +export interface TextNer extends NlpVertical, AutoMLVertical { + /** + * Primary metric for Text-NER task. + * Only 'Accuracy' is supported for Text-NER, so user need not set this explicitly. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly primaryMetric?: ClassificationPrimaryMetrics; } /** Literal input type. */ @@ -3041,44 +4132,500 @@ export interface LiteralJobInput extends JobInput { value: string; } -/** Command Job limit class. */ -export interface CommandJobLimits extends JobLimits { +/** N-Cross validations determined automatically. */ +export interface AutoNCrossValidations extends NCrossValidations { /** Polymorphic discriminator, which specifies the different types this object can be */ - jobLimitsType: "Command"; + mode: "Auto"; } -/** Sweep Job limit class. */ -export interface SweepJobLimits extends JobLimits { +/** N-Cross validations are specified by user. */ +export interface CustomNCrossValidations extends NCrossValidations { /** Polymorphic discriminator, which specifies the different types this object can be */ - jobLimitsType: "Sweep"; - /** Sweep Job max concurrent trials. */ - maxConcurrentTrials?: number; - /** Sweep Job max total trials. */ - maxTotalTrials?: number; - /** Sweep Job Trial timeout value. */ - trialTimeout?: string; + mode: "Custom"; + /** [Required] N-Cross validations value. */ + value: number; } -export interface BatchEndpoint extends TrackedResource { - /** Managed service identity (system assigned and/or user assigned identities) */ - identity?: ManagedServiceIdentity; - /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ - kind?: string; - /** [Required] Additional attributes of the entity. */ - properties: BatchEndpointProperties; - /** Sku details required for ARM contract for Autoscaling. */ - sku?: Sku; +export interface AutoSeasonality extends Seasonality { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto"; } -export interface BatchDeployment extends TrackedResource { - /** Managed service identity (system assigned and/or user assigned identities) */ - identity?: ManagedServiceIdentity; - /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ - kind?: string; - /** [Required] Additional attributes of the entity. */ - properties: BatchDeploymentProperties; - /** Sku details required for ARM contract for Autoscaling. */ - sku?: Sku; +export interface CustomSeasonality extends Seasonality { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Custom"; + /** [Required] Seasonality value. */ + value: number; +} + +export interface AutoTargetLags extends TargetLags { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto"; +} + +export interface CustomTargetLags extends TargetLags { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Custom"; + /** [Required] Set target lags values. */ + values: number[]; +} + +/** Target lags rolling window determined automatically. */ +export interface AutoTargetRollingWindowSize extends TargetRollingWindowSize { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto"; +} + +export interface CustomTargetRollingWindowSize extends TargetRollingWindowSize { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Custom"; + /** [Required] TargetRollingWindowSize value. */ + value: number; +} + +/** Azure Blob datastore configuration. */ +export interface AzureBlobDatastore + extends AzureDatastore, + DatastoreProperties { + /** Storage account name. */ + accountName?: string; + /** Storage account container name. */ + containerName?: string; + /** Azure cloud endpoint for the storage account. */ + endpoint?: string; + /** Protocol used to communicate with the storage account. */ + protocol?: string; + /** Indicates which identity to use to authenticate service data access to customer's storage. */ + serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; +} + +/** Azure Data Lake Gen1 datastore configuration. */ +export interface AzureDataLakeGen1Datastore + extends AzureDatastore, + DatastoreProperties { + /** Indicates which identity to use to authenticate service data access to customer's storage. */ + serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; + /** [Required] Azure Data Lake store name. */ + storeName: string; +} + +/** Azure Data Lake Gen2 datastore configuration. */ +export interface AzureDataLakeGen2Datastore + extends AzureDatastore, + DatastoreProperties { + /** [Required] Storage account name. */ + accountName: string; + /** Azure cloud endpoint for the storage account. */ + endpoint?: string; + /** [Required] The name of the Data Lake Gen2 filesystem. */ + filesystem: string; + /** Protocol used to communicate with the storage account. */ + protocol?: string; + /** Indicates which identity to use to authenticate service data access to customer's storage. */ + serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; +} + +/** Azure File datastore configuration. */ +export interface AzureFileDatastore + extends AzureDatastore, + DatastoreProperties { + /** [Required] Storage account name. */ + accountName: string; + /** Azure cloud endpoint for the storage account. */ + endpoint?: string; + /** [Required] The name of the Azure file share that the datastore points to. */ + fileShareName: string; + /** Protocol used to communicate with the storage account. */ + protocol?: string; + /** Indicates which identity to use to authenticate service data access to customer's storage. */ + serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; +} + +/** Defines an early termination policy based on slack criteria, and a frequency and delay interval for evaluation */ +export interface BanditPolicy extends EarlyTerminationPolicy { + /** Polymorphic discriminator, which specifies the different types this object can be */ + policyType: "Bandit"; + /** Absolute distance allowed from the best performing run. */ + slackAmount?: number; + /** Ratio of the allowed distance from the best performing run. */ + slackFactor?: number; +} + +/** Defines an early termination policy based on running averages of the primary metric of all runs */ +export interface MedianStoppingPolicy extends EarlyTerminationPolicy { + /** Polymorphic discriminator, which specifies the different types this object can be */ + policyType: "MedianStopping"; +} + +/** Defines an early termination policy that cancels a given percentage of runs at each evaluation interval. */ +export interface TruncationSelectionPolicy extends EarlyTerminationPolicy { + /** Polymorphic discriminator, which specifies the different types this object can be */ + policyType: "TruncationSelection"; + /** The percentage of runs to cancel at each evaluation interval. */ + truncationPercentage?: number; +} + +/** Defines a Sampling Algorithm that generates values based on previous values */ +export interface BayesianSamplingAlgorithm extends SamplingAlgorithm { + /** Polymorphic discriminator, which specifies the different types this object can be */ + samplingAlgorithmType: "Bayesian"; +} + +/** Defines a Sampling Algorithm that exhaustively generates every value combination in the space */ +export interface GridSamplingAlgorithm extends SamplingAlgorithm { + /** Polymorphic discriminator, which specifies the different types this object can be */ + samplingAlgorithmType: "Grid"; +} + +/** Defines a Sampling Algorithm that generates values randomly */ +export interface RandomSamplingAlgorithm extends SamplingAlgorithm { + /** Polymorphic discriminator, which specifies the different types this object can be */ + samplingAlgorithmType: "Random"; + /** The specific type of random algorithm */ + rule?: RandomSamplingAlgorithmRule; + /** An optional integer to use as the seed for random number generation */ + seed?: number; +} + +/** Classification Training related configuration. */ +export interface ClassificationTrainingSettings extends TrainingSettings { + /** Allowed models for classification task. */ + allowedTrainingAlgorithms?: ClassificationModels[]; + /** Blocked models for classification task. */ + blockedTrainingAlgorithms?: ClassificationModels[]; +} + +/** Forecasting Training related configuration. */ +export interface ForecastingTrainingSettings extends TrainingSettings { + /** Allowed models for forecasting task. */ + allowedTrainingAlgorithms?: ForecastingModels[]; + /** Blocked models for forecasting task. */ + blockedTrainingAlgorithms?: ForecastingModels[]; +} + +/** Regression Training related configuration. */ +export interface RegressionTrainingSettings extends TrainingSettings { + /** Allowed models for regression task. */ + allowedTrainingAlgorithms?: RegressionModels[]; + /** Blocked models for regression task. */ + blockedTrainingAlgorithms?: RegressionModels[]; +} + +/** Featurization Configuration. */ +export interface TableVerticalFeaturizationSettings + extends FeaturizationSettings { + /** These transformers shall not be used in featurization. */ + blockedTransformers?: BlockedTransformers[]; + /** Dictionary of column name and its type (int, float, string, datetime etc). */ + columnNameAndTypes?: { [propertyName: string]: string | null }; + /** Determines whether to use Dnn based featurizers for data featurization. */ + enableDnnFeaturization?: boolean; + /** + * Featurization mode - User can keep the default 'Auto' mode and AutoML will take care of necessary transformation of the data in featurization phase. + * If 'Off' is selected then no featurization is done. + * If 'Custom' is selected then user can specify additional inputs to customize how featurization is done. + */ + mode?: FeaturizationMode; + /** User can specify additional transformers to be used along with the columns to which it would be applied and parameters for the transformer constructor. */ + transformerParams?: { [propertyName: string]: ColumnTransformer[] | null }; +} + +export interface NlpVerticalFeaturizationSettings + extends FeaturizationSettings {} + +/** MPI distribution configuration. */ +export interface Mpi extends DistributionConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + distributionType: "Mpi"; + /** Number of processes per MPI node. */ + processCountPerInstance?: number; +} + +/** PyTorch distribution configuration. */ +export interface PyTorch extends DistributionConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + distributionType: "PyTorch"; + /** Number of processes per node. */ + processCountPerInstance?: number; +} + +/** TensorFlow distribution configuration. */ +export interface TensorFlow extends DistributionConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + distributionType: "TensorFlow"; + /** Number of parameter server tasks. */ + parameterServerCount?: number; + /** Number of workers. If not specified, will default to the instance count. */ + workerCount?: number; +} + +/** Command Job limit class. */ +export interface CommandJobLimits extends JobLimits { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobLimitsType: "Command"; +} + +/** Sweep Job limit class. */ +export interface SweepJobLimits extends JobLimits { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobLimitsType: "Sweep"; + /** Sweep Job max concurrent trials. */ + maxConcurrentTrials?: number; + /** Sweep Job max total trials. */ + maxTotalTrials?: number; + /** Sweep Job Trial timeout value. */ + trialTimeout?: string; +} + +/** + * Settings used for training the model. + * For more information on the available settings please visit the official documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. + */ +export interface ImageModelSettingsClassification extends ImageModelSettings { + /** Image crop size that is input to the neural network for the training dataset. Must be a positive integer. */ + trainingCropSize?: number; + /** Image crop size that is input to the neural network for the validation dataset. Must be a positive integer. */ + validationCropSize?: number; + /** Image size to which to resize before cropping for validation dataset. Must be a positive integer. */ + validationResizeSize?: number; + /** + * Weighted loss. The accepted values are 0 for no weighted loss. + * 1 for weighted loss with sqrt.(class_weights). 2 for weighted loss with class_weights. Must be 0 or 1 or 2. + */ + weightedLoss?: number; +} + +/** + * Settings used for training the model. + * For more information on the available settings please visit the official documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. + */ +export interface ImageModelSettingsObjectDetection extends ImageModelSettings { + /** + * Maximum number of detections per image, for all classes. Must be a positive integer. + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + boxDetectionsPerImage?: number; + /** + * During inference, only return proposals with a classification score greater than + * BoxScoreThreshold. Must be a float in the range[0, 1]. + */ + boxScoreThreshold?: number; + /** + * Image size for train and validation. Must be a positive integer. + * Note: The training run may get into CUDA OOM if the size is too big. + * Note: This settings is only supported for the 'yolov5' algorithm. + */ + imageSize?: number; + /** + * Maximum size of the image to be rescaled before feeding it to the backbone. + * Must be a positive integer. Note: training run may get into CUDA OOM if the size is too big. + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + maxSize?: number; + /** + * Minimum size of the image to be rescaled before feeding it to the backbone. + * Must be a positive integer. Note: training run may get into CUDA OOM if the size is too big. + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + minSize?: number; + /** + * Model size. Must be 'small', 'medium', 'large', or 'xlarge'. + * Note: training run may get into CUDA OOM if the model size is too big. + * Note: This settings is only supported for the 'yolov5' algorithm. + */ + modelSize?: ModelSize; + /** + * Enable multi-scale image by varying image size by +/- 50%. + * Note: training run may get into CUDA OOM if no sufficient GPU memory. + * Note: This settings is only supported for the 'yolov5' algorithm. + */ + multiScale?: boolean; + /** IOU threshold used during inference in NMS post processing. Must be a float in the range [0, 1]. */ + nmsIouThreshold?: number; + /** + * The grid size to use for tiling each image. Note: TileGridSize must not be + * None to enable small object detection logic. A string containing two integers in mxn format. + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + tileGridSize?: string; + /** + * Overlap ratio between adjacent tiles in each dimension. Must be float in the range [0, 1). + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + tileOverlapRatio?: number; + /** + * The IOU threshold to use to perform NMS while merging predictions from tiles and image. + * Used in validation/ inference. Must be float in the range [0, 1]. + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + tilePredictionsNmsThreshold?: number; + /** IOU threshold to use when computing validation metric. Must be float in the range [0, 1]. */ + validationIouThreshold?: number; + /** Metric computation method to use for validation metrics. */ + validationMetricType?: ValidationMetricType; +} + +/** + * Distribution expressions to sweep over values of model settings. + * + * Some examples are: + * + * ModelName = "choice('seresnext', 'resnest50')"; + * LearningRate = "uniform(0.001, 0.01)"; + * LayersToFreeze = "choice(0, 2)"; + * + * For more details on how to compose distribution expressions please check the documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-tune-hyperparameters + * For more information on the available settings please visit the official documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. + */ +export interface ImageModelDistributionSettingsClassification + extends ImageModelDistributionSettings { + /** Image crop size that is input to the neural network for the training dataset. Must be a positive integer. */ + trainingCropSize?: string; + /** Image crop size that is input to the neural network for the validation dataset. Must be a positive integer. */ + validationCropSize?: string; + /** Image size to which to resize before cropping for validation dataset. Must be a positive integer. */ + validationResizeSize?: string; + /** + * Weighted loss. The accepted values are 0 for no weighted loss. + * 1 for weighted loss with sqrt.(class_weights). 2 for weighted loss with class_weights. Must be 0 or 1 or 2. + */ + weightedLoss?: string; +} + +/** + * Distribution expressions to sweep over values of model settings. + * + * Some examples are: + * + * ModelName = "choice('seresnext', 'resnest50')"; + * LearningRate = "uniform(0.001, 0.01)"; + * LayersToFreeze = "choice(0, 2)"; + * + * For more details on how to compose distribution expressions please check the documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-tune-hyperparameters + * For more information on the available settings please visit the official documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. + */ +export interface ImageModelDistributionSettingsObjectDetection + extends ImageModelDistributionSettings { + /** + * Maximum number of detections per image, for all classes. Must be a positive integer. + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + boxDetectionsPerImage?: string; + /** + * During inference, only return proposals with a classification score greater than + * BoxScoreThreshold. Must be a float in the range[0, 1]. + */ + boxScoreThreshold?: string; + /** + * Image size for train and validation. Must be a positive integer. + * Note: The training run may get into CUDA OOM if the size is too big. + * Note: This settings is only supported for the 'yolov5' algorithm. + */ + imageSize?: string; + /** + * Maximum size of the image to be rescaled before feeding it to the backbone. + * Must be a positive integer. Note: training run may get into CUDA OOM if the size is too big. + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + maxSize?: string; + /** + * Minimum size of the image to be rescaled before feeding it to the backbone. + * Must be a positive integer. Note: training run may get into CUDA OOM if the size is too big. + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + minSize?: string; + /** + * Model size. Must be 'small', 'medium', 'large', or 'xlarge'. + * Note: training run may get into CUDA OOM if the model size is too big. + * Note: This settings is only supported for the 'yolov5' algorithm. + */ + modelSize?: string; + /** + * Enable multi-scale image by varying image size by +/- 50%. + * Note: training run may get into CUDA OOM if no sufficient GPU memory. + * Note: This settings is only supported for the 'yolov5' algorithm. + */ + multiScale?: string; + /** IOU threshold used during inference in NMS post processing. Must be float in the range [0, 1]. */ + nmsIouThreshold?: string; + /** + * The grid size to use for tiling each image. Note: TileGridSize must not be + * None to enable small object detection logic. A string containing two integers in mxn format. + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + tileGridSize?: string; + /** + * Overlap ratio between adjacent tiles in each dimension. Must be float in the range [0, 1). + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + tileOverlapRatio?: string; + /** + * The IOU threshold to use to perform NMS while merging predictions from tiles and image. + * Used in validation/ inference. Must be float in the range [0, 1]. + * Note: This settings is not supported for the 'yolov5' algorithm. + * NMS: Non-maximum suppression + */ + tilePredictionsNmsThreshold?: string; + /** IOU threshold to use when computing validation metric. Must be float in the range [0, 1]. */ + validationIouThreshold?: string; + /** Metric computation method to use for validation metrics. Must be 'none', 'coco', 'voc', or 'coco_voc'. */ + validationMetricType?: string; +} + +export interface ImageClassificationBase extends ImageVertical { + /** Settings used for training the model. */ + modelSettings?: ImageModelSettingsClassification; + /** Search space for sampling different combinations of models and their hyperparameters. */ + searchSpace?: ImageModelDistributionSettingsClassification[]; +} + +export interface ImageObjectDetectionBase extends ImageVertical { + /** Settings used for training the model. */ + modelSettings?: ImageModelSettingsObjectDetection; + /** Search space for sampling different combinations of models and their hyperparameters. */ + searchSpace?: ImageModelDistributionSettingsObjectDetection[]; +} + +export interface SparkJobPythonEntry extends SparkJobEntry { + /** Polymorphic discriminator, which specifies the different types this object can be */ + sparkJobEntryType: "SparkJobPythonEntry"; + /** [Required] Relative python file path for job entry point. */ + file: string; +} + +export interface SparkJobScalaEntry extends SparkJobEntry { + /** Polymorphic discriminator, which specifies the different types this object can be */ + sparkJobEntryType: "SparkJobPythonEntry"; + /** [Required] Scala class name used as entry point. */ + className: string; +} + +export interface BatchEndpoint extends TrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** [Required] Additional attributes of the entity. */ + properties: BatchEndpointProperties; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: Sku; +} + +export interface BatchDeployment extends TrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** [Required] Additional attributes of the entity. */ + properties: BatchDeploymentProperties; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: Sku; } export interface OnlineEndpoint extends TrackedResource { @@ -3151,7 +4698,7 @@ export interface ComponentVersionProperties extends AssetBase { export interface DataVersionBaseProperties extends AssetBase { /** [Required] Specifies the type of data. */ dataType: DataType; - /** [Required] Uri of the data. Usage/meaning depends on Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20220501.Assets.DataVersionBase.DataType */ + /** [Required] Uri of the data. Usage/meaning depends on Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20220601Preview.Assets.DataVersionBase.DataType */ dataUri: string; } @@ -3193,54 +4740,73 @@ export interface ModelVersionProperties extends AssetBase { modelUri?: string; } -/** Azure Blob datastore configuration. */ -export interface AzureBlobDatastore extends DatastoreProperties { - /** Storage account name. */ - accountName?: string; - /** Storage account container name. */ - containerName?: string; - /** Azure cloud endpoint for the storage account. */ - endpoint?: string; - /** Protocol used to communicate with the storage account. */ +export interface HdfsDatastore extends DatastoreProperties { + /** The TLS cert of the HDFS server. Needs to be a base64 encoded string. Required if "Https" protocol is selected. */ + hdfsServerCertificate?: string; + /** [Required] IP Address or DNS HostName. */ + nameNodeAddress: string; + /** Protocol used to communicate with the storage account (Https/Http). */ protocol?: string; - /** Indicates which identity to use to authenticate service data access to customer's storage. */ - serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; -} - -/** Azure Data Lake Gen1 datastore configuration. */ -export interface AzureDataLakeGen1Datastore extends DatastoreProperties { - /** Indicates which identity to use to authenticate service data access to customer's storage. */ - serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; - /** [Required] Azure Data Lake store name. */ - storeName: string; } -/** Azure Data Lake Gen2 datastore configuration. */ -export interface AzureDataLakeGen2Datastore extends DatastoreProperties { - /** [Required] Storage account name. */ - accountName: string; - /** Azure cloud endpoint for the storage account. */ - endpoint?: string; - /** [Required] The name of the Data Lake Gen2 filesystem. */ - filesystem: string; - /** Protocol used to communicate with the storage account. */ - protocol?: string; - /** Indicates which identity to use to authenticate service data access to customer's storage. */ - serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; +/** Labeling job definition */ +export interface LabelingJobProperties extends JobBaseProperties { + /** + * Created time of the job in UTC timezone. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdDateTime?: Date; + /** Configuration of data used in the job. */ + dataConfiguration?: LabelingDataConfiguration; + /** Labeling instructions of the job. */ + jobInstructions?: LabelingJobInstructions; + /** Label categories of the job. */ + labelCategories?: { [propertyName: string]: LabelCategory | null }; + /** Media type specific properties in the job. */ + labelingJobMediaProperties?: LabelingJobMediaPropertiesUnion; + /** Configuration of MLAssist feature in the job. */ + mlAssistConfiguration?: MLAssistConfigurationUnion; + /** + * Progress metrics of the job. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly progressMetrics?: ProgressMetrics; + /** + * Internal id of the job(Previously called project). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly projectId?: string; + /** + * Specifies the labeling job provisioning state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: JobProvisioningState; + /** + * Status messages of the job. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly statusMessages?: StatusMessage[]; } -/** Azure File datastore configuration. */ -export interface AzureFileDatastore extends DatastoreProperties { - /** [Required] Storage account name. */ - accountName: string; - /** Azure cloud endpoint for the storage account. */ - endpoint?: string; - /** [Required] The name of the Azure file share that the datastore points to. */ - fileShareName: string; - /** Protocol used to communicate with the storage account. */ - protocol?: string; - /** Indicates which identity to use to authenticate service data access to customer's storage. */ - serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; +/** + * AutoMLJob class. + * Use this class for executing AutoML tasks like Classification/Regression etc. + * See TaskType enum for all the tasks supported. + */ +export interface AutoMLJob extends JobBaseProperties { + /** + * The ARM resource ID of the Environment specification for the job. + * This is optional value to provide, if not provided, AutoML will default this to Production AutoML curated environment version when running the job. + */ + environmentId?: string; + /** Environment variables included in the job. */ + environmentVariables?: { [propertyName: string]: string | null }; + /** Mapping of output data bindings used in the job. */ + outputs?: { [propertyName: string]: JobOutputUnion | null }; + /** Compute Resource configuration for the job. */ + resources?: JobResourceConfiguration; + /** [Required] This represents scenario which can be one of Tables/NLP/Image */ + taskDetails: AutoMLVerticalUnion; } /** Command job definition. */ @@ -3267,7 +4833,7 @@ export interface CommandJob extends JobBaseProperties { */ readonly parameters?: Record; /** Compute Resource configuration for the job. */ - resources?: ResourceConfiguration; + resources?: JobResourceConfiguration; } /** Pipeline Job definition: defines generic to MFE attributes. */ @@ -3280,6 +4846,36 @@ export interface PipelineJob extends JobBaseProperties { outputs?: { [propertyName: string]: JobOutputUnion | null }; /** Pipeline settings, for things like ContinueRunOnStepFailure etc. */ settings?: Record; + /** ARM resource ID of source job. */ + sourceJobId?: string; +} + +/** Spark job definition. */ +export interface SparkJob extends JobBaseProperties { + /** Archive files used in the job. */ + archives?: string[]; + /** Arguments for the job. */ + args?: string; + /** [Required] ARM resource ID of the code asset. */ + codeId: string; + /** Spark configured properties. */ + conf?: { [propertyName: string]: string | null }; + /** [Required] The entry to execute on startup of the job. */ + entry: SparkJobEntryUnion; + /** The ARM resource ID of the Environment specification for the job. */ + environmentId?: string; + /** Files used in the job. */ + files?: string[]; + /** Mapping of input data bindings used in the job. */ + inputs?: { [propertyName: string]: JobInputUnion | null }; + /** Jar files used in the job. */ + jars?: string[]; + /** Mapping of output data bindings used in the job. */ + outputs?: { [propertyName: string]: JobOutputUnion | null }; + /** Python files used in the job. */ + pyFiles?: string[]; + /** Compute Resource configuration for the job. */ + resources?: SparkResourceConfiguration; } /** Sweep job definition. */ @@ -3410,6 +5006,30 @@ export interface JobsCancelHeaders { retryAfter?: number; } +/** Defines headers for LabelingJobs_createOrUpdate operation. */ +export interface LabelingJobsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for LabelingJobs_exportLabels operation. */ +export interface LabelingJobsExportLabelsHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for LabelingJobs_resume operation. */ +export interface LabelingJobsResumeHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + /** Defines headers for OnlineEndpoints_delete operation. */ export interface OnlineEndpointsDeleteHeaders { /** Timeout for the client to use when polling the asynchronous operation. */ @@ -3474,8 +5094,26 @@ export interface OnlineDeploymentsCreateOrUpdateHeaders { azureAsyncOperation?: string; } -/** Known values of {@link ProvisioningState} that the service accepts. */ -export enum KnownProvisioningState { +/** Defines headers for Schedules_delete operation. */ +export interface SchedulesDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for Schedules_createOrUpdate operation. */ +export interface SchedulesCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Known values of {@link WorkspaceProvisioningState} that the service accepts. */ +export enum KnownWorkspaceProvisioningState { /** Unknown */ Unknown = "Unknown", /** Updating */ @@ -3489,12 +5127,14 @@ export enum KnownProvisioningState { /** Failed */ Failed = "Failed", /** Canceled */ - Canceled = "Canceled" + Canceled = "Canceled", + /** SoftDeleted */ + SoftDeleted = "SoftDeleted" } /** - * Defines values for ProvisioningState. \ - * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * Defines values for WorkspaceProvisioningState. \ + * {@link KnownWorkspaceProvisioningState} can be used interchangeably with WorkspaceProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Unknown** \ @@ -3503,9 +5143,10 @@ export enum KnownProvisioningState { * **Deleting** \ * **Succeeded** \ * **Failed** \ - * **Canceled** + * **Canceled** \ + * **SoftDeleted** */ -export type ProvisioningState = string; +export type WorkspaceProvisioningState = string; /** Known values of {@link EncryptionStatus} that the service accepts. */ export enum KnownEncryptionStatus { @@ -3840,6 +5481,39 @@ export enum KnownComputeType { */ export type ComputeType = string; +/** Known values of {@link ComputeProvisioningState} that the service accepts. */ +export enum KnownComputeProvisioningState { + /** Unknown */ + Unknown = "Unknown", + /** Updating */ + Updating = "Updating", + /** Creating */ + Creating = "Creating", + /** Deleting */ + Deleting = "Deleting", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled" +} + +/** + * Defines values for ComputeProvisioningState. \ + * {@link KnownComputeProvisioningState} can be used interchangeably with ComputeProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unknown** \ + * **Updating** \ + * **Creating** \ + * **Deleting** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** + */ +export type ComputeProvisioningState = string; + /** Known values of {@link UnderlyingResourceAction} that the service accepts. */ export enum KnownUnderlyingResourceAction { /** Delete */ @@ -3858,6 +5532,84 @@ export enum KnownUnderlyingResourceAction { */ export type UnderlyingResourceAction = string; +/** Known values of {@link ImageType} that the service accepts. */ +export enum KnownImageType { + /** Docker */ + Docker = "docker", + /** Azureml */ + Azureml = "azureml" +} + +/** + * Defines values for ImageType. \ + * {@link KnownImageType} can be used interchangeably with ImageType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **docker** \ + * **azureml** + */ +export type ImageType = string; + +/** Known values of {@link EnvironmentVariableType} that the service accepts. */ +export enum KnownEnvironmentVariableType { + /** Local */ + Local = "local" +} + +/** + * Defines values for EnvironmentVariableType. \ + * {@link KnownEnvironmentVariableType} can be used interchangeably with EnvironmentVariableType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **local** + */ +export type EnvironmentVariableType = string; + +/** Known values of {@link Protocol} that the service accepts. */ +export enum KnownProtocol { + /** Tcp */ + Tcp = "tcp", + /** Udp */ + Udp = "udp", + /** Http */ + Http = "http" +} + +/** + * Defines values for Protocol. \ + * {@link KnownProtocol} can be used interchangeably with Protocol, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **tcp** \ + * **udp** \ + * **http** + */ +export type Protocol = string; + +/** Known values of {@link VolumeDefinitionType} that the service accepts. */ +export enum KnownVolumeDefinitionType { + /** Bind */ + Bind = "bind", + /** Volume */ + Volume = "volume", + /** Tmpfs */ + Tmpfs = "tmpfs", + /** Npipe */ + Npipe = "npipe" +} + +/** + * Defines values for VolumeDefinitionType. \ + * {@link KnownVolumeDefinitionType} can be used interchangeably with VolumeDefinitionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **bind** \ + * **volume** \ + * **tmpfs** \ + * **npipe** + */ +export type VolumeDefinitionType = string; + /** Known values of {@link NodeState} that the service accepts. */ export enum KnownNodeState { /** Idle */ @@ -4148,7 +5900,11 @@ export enum KnownCredentialsType { /** Sas */ Sas = "Sas", /** ServicePrincipal */ - ServicePrincipal = "ServicePrincipal" + ServicePrincipal = "ServicePrincipal", + /** KerberosKeytab */ + KerberosKeytab = "KerberosKeytab", + /** KerberosPassword */ + KerberosPassword = "KerberosPassword" } /** @@ -4160,7 +5916,9 @@ export enum KnownCredentialsType { * **Certificate** \ * **None** \ * **Sas** \ - * **ServicePrincipal** + * **ServicePrincipal** \ + * **KerberosKeytab** \ + * **KerberosPassword** */ export type CredentialsType = string; @@ -4173,7 +5931,9 @@ export enum KnownDatastoreType { /** AzureDataLakeGen2 */ AzureDataLakeGen2 = "AzureDataLakeGen2", /** AzureFile */ - AzureFile = "AzureFile" + AzureFile = "AzureFile", + /** Hdfs */ + Hdfs = "Hdfs" } /** @@ -4184,7 +5944,8 @@ export enum KnownDatastoreType { * **AzureBlob** \ * **AzureDataLakeGen1** \ * **AzureDataLakeGen2** \ - * **AzureFile** + * **AzureFile** \ + * **Hdfs** */ export type DatastoreType = string; @@ -4197,7 +5958,11 @@ export enum KnownSecretsType { /** Sas */ Sas = "Sas", /** ServicePrincipal */ - ServicePrincipal = "ServicePrincipal" + ServicePrincipal = "ServicePrincipal", + /** KerberosPassword */ + KerberosPassword = "KerberosPassword", + /** KerberosKeytab */ + KerberosKeytab = "KerberosKeytab" } /** @@ -4208,7 +5973,9 @@ export enum KnownSecretsType { * **AccountKey** \ * **Certificate** \ * **Sas** \ - * **ServicePrincipal** + * **ServicePrincipal** \ + * **KerberosPassword** \ + * **KerberosKeytab** */ export type SecretsType = string; @@ -4271,12 +6038,18 @@ export type IdentityConfigurationType = string; /** Known values of {@link JobType} that the service accepts. */ export enum KnownJobType { + /** AutoML */ + AutoML = "AutoML", /** Command */ Command = "Command", + /** Labeling */ + Labeling = "Labeling", /** Sweep */ Sweep = "Sweep", /** Pipeline */ - Pipeline = "Pipeline" + Pipeline = "Pipeline", + /** Spark */ + Spark = "Spark" } /** @@ -4284,9 +6057,12 @@ export enum KnownJobType { * {@link KnownJobType} can be used interchangeably with JobType, * this enum contains the known values that the service supports. * ### Known values supported by the service + * **AutoML** \ * **Command** \ + * **Labeling** \ * **Sweep** \ - * **Pipeline** + * **Pipeline** \ + * **Spark** */ export type JobType = string; @@ -4322,7 +6098,9 @@ export enum KnownJobStatus { /** The job is paused by users. Some adjustment to labeling jobs can be made only in paused state. */ Paused = "Paused", /** Default job status if not mapped to all other statuses */ - Unknown = "Unknown" + Unknown = "Unknown", + /** The job is in a scheduled state. Job is not in any active state. */ + Scheduled = "Scheduled" } /** @@ -4344,10 +6122,113 @@ export enum KnownJobStatus { * **NotResponding**: When heartbeat is enabled, if the run isn't updating any information to RunHistory then the run goes to NotResponding state. * NotResponding is the only state that is exempt from strict transition orders. A run can go from NotResponding to any of the previous states. \ * **Paused**: The job is paused by users. Some adjustment to labeling jobs can be made only in paused state. \ - * **Unknown**: Default job status if not mapped to all other statuses + * **Unknown**: Default job status if not mapped to all other statuses \ + * **Scheduled**: The job is in a scheduled state. Job is not in any active state. */ export type JobStatus = string; +/** Known values of {@link MediaType} that the service accepts. */ +export enum KnownMediaType { + /** Image */ + Image = "Image", + /** Text */ + Text = "Text" +} + +/** + * Defines values for MediaType. \ + * {@link KnownMediaType} can be used interchangeably with MediaType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Image** \ + * **Text** + */ +export type MediaType = string; + +/** Known values of {@link MLAssistConfigurationType} that the service accepts. */ +export enum KnownMLAssistConfigurationType { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for MLAssistConfigurationType. \ + * {@link KnownMLAssistConfigurationType} can be used interchangeably with MLAssistConfigurationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type MLAssistConfigurationType = string; + +/** Known values of {@link JobProvisioningState} that the service accepts. */ +export enum KnownJobProvisioningState { + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled", + /** InProgress */ + InProgress = "InProgress" +} + +/** + * Defines values for JobProvisioningState. \ + * {@link KnownJobProvisioningState} can be used interchangeably with JobProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **InProgress** + */ +export type JobProvisioningState = string; + +/** Known values of {@link StatusMessageLevel} that the service accepts. */ +export enum KnownStatusMessageLevel { + /** Error */ + Error = "Error", + /** Information */ + Information = "Information", + /** Warning */ + Warning = "Warning" +} + +/** + * Defines values for StatusMessageLevel. \ + * {@link KnownStatusMessageLevel} can be used interchangeably with StatusMessageLevel, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Error** \ + * **Information** \ + * **Warning** + */ +export type StatusMessageLevel = string; + +/** Known values of {@link ExportFormatType} that the service accepts. */ +export enum KnownExportFormatType { + /** Dataset */ + Dataset = "Dataset", + /** Coco */ + Coco = "Coco", + /** CSV */ + CSV = "CSV" +} + +/** + * Defines values for ExportFormatType. \ + * {@link KnownExportFormatType} can be used interchangeably with ExportFormatType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Dataset** \ + * **Coco** \ + * **CSV** + */ +export type ExportFormatType = string; + /** Known values of {@link EndpointComputeType} that the service accepts. */ export enum KnownEndpointComputeType { /** Managed */ @@ -4393,6 +6274,42 @@ export enum KnownOrderString { */ export type OrderString = string; +/** Known values of {@link PublicNetworkAccessType} that the service accepts. */ +export enum KnownPublicNetworkAccessType { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for PublicNetworkAccessType. \ + * {@link KnownPublicNetworkAccessType} can be used interchangeably with PublicNetworkAccessType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type PublicNetworkAccessType = string; + +/** Known values of {@link EgressPublicNetworkAccessType} that the service accepts. */ +export enum KnownEgressPublicNetworkAccessType { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for EgressPublicNetworkAccessType. \ + * {@link KnownEgressPublicNetworkAccessType} can be used interchangeably with EgressPublicNetworkAccessType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type EgressPublicNetworkAccessType = string; + /** Known values of {@link ScaleType} that the service accepts. */ export enum KnownScaleType { /** Default */ @@ -4468,26 +6385,92 @@ export enum KnownKeyType { */ export type KeyType = string; -/** Known values of {@link ClusterPurpose} that the service accepts. */ -export enum KnownClusterPurpose { - /** FastProd */ - FastProd = "FastProd", - /** DenseProd */ - DenseProd = "DenseProd", - /** DevTest */ - DevTest = "DevTest" +/** Known values of {@link ScheduleActionType} that the service accepts. */ +export enum KnownScheduleActionType { + /** CreateJob */ + CreateJob = "CreateJob", + /** InvokeBatchEndpoint */ + InvokeBatchEndpoint = "InvokeBatchEndpoint" } /** - * Defines values for ClusterPurpose. \ - * {@link KnownClusterPurpose} can be used interchangeably with ClusterPurpose, + * Defines values for ScheduleActionType. \ + * {@link KnownScheduleActionType} can be used interchangeably with ScheduleActionType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **FastProd** \ - * **DenseProd** \ - * **DevTest** + * **CreateJob** \ + * **InvokeBatchEndpoint** */ -export type ClusterPurpose = string; +export type ScheduleActionType = string; + +/** Known values of {@link ScheduleProvisioningStatus} that the service accepts. */ +export enum KnownScheduleProvisioningStatus { + /** Creating */ + Creating = "Creating", + /** Updating */ + Updating = "Updating", + /** Deleting */ + Deleting = "Deleting", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled" +} + +/** + * Defines values for ScheduleProvisioningStatus. \ + * {@link KnownScheduleProvisioningStatus} can be used interchangeably with ScheduleProvisioningStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Updating** \ + * **Deleting** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** + */ +export type ScheduleProvisioningStatus = string; + +/** Known values of {@link TriggerType} that the service accepts. */ +export enum KnownTriggerType { + /** Recurrence */ + Recurrence = "Recurrence", + /** Cron */ + Cron = "Cron" +} + +/** + * Defines values for TriggerType. \ + * {@link KnownTriggerType} can be used interchangeably with TriggerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Recurrence** \ + * **Cron** + */ +export type TriggerType = string; + +/** Known values of {@link ClusterPurpose} that the service accepts. */ +export enum KnownClusterPurpose { + /** FastProd */ + FastProd = "FastProd", + /** DenseProd */ + DenseProd = "DenseProd", + /** DevTest */ + DevTest = "DevTest" +} + +/** + * Defines values for ClusterPurpose. \ + * {@link KnownClusterPurpose} can be used interchangeably with ClusterPurpose, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **FastProd** \ + * **DenseProd** \ + * **DevTest** + */ +export type ClusterPurpose = string; /** Known values of {@link SslConfigStatus} that the service accepts. */ export enum KnownSslConfigStatus { @@ -5058,7 +7041,9 @@ export enum KnownOutputDeliveryMode { /** ReadWriteMount */ ReadWriteMount = "ReadWriteMount", /** Upload */ - Upload = "Upload" + Upload = "Upload", + /** Direct */ + Direct = "Direct" } /** @@ -5067,10 +7052,268 @@ export enum KnownOutputDeliveryMode { * this enum contains the known values that the service supports. * ### Known values supported by the service * **ReadWriteMount** \ - * **Upload** + * **Upload** \ + * **Direct** */ export type OutputDeliveryMode = string; +/** Known values of {@link ForecastHorizonMode} that the service accepts. */ +export enum KnownForecastHorizonMode { + /** Forecast horizon to be determined automatically. */ + Auto = "Auto", + /** Use the custom forecast horizon. */ + Custom = "Custom" +} + +/** + * Defines values for ForecastHorizonMode. \ + * {@link KnownForecastHorizonMode} can be used interchangeably with ForecastHorizonMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Auto**: Forecast horizon to be determined automatically. \ + * **Custom**: Use the custom forecast horizon. + */ +export type ForecastHorizonMode = string; + +/** Known values of {@link JobOutputType} that the service accepts. */ +export enum KnownJobOutputType { + /** UriFile */ + UriFile = "uri_file", + /** UriFolder */ + UriFolder = "uri_folder", + /** Mltable */ + Mltable = "mltable", + /** CustomModel */ + CustomModel = "custom_model", + /** MlflowModel */ + MlflowModel = "mlflow_model", + /** TritonModel */ + TritonModel = "triton_model" +} + +/** + * Defines values for JobOutputType. \ + * {@link KnownJobOutputType} can be used interchangeably with JobOutputType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **uri_file** \ + * **uri_folder** \ + * **mltable** \ + * **custom_model** \ + * **mlflow_model** \ + * **triton_model** + */ +export type JobOutputType = string; + +/** Known values of {@link LogVerbosity} that the service accepts. */ +export enum KnownLogVerbosity { + /** No logs emitted. */ + NotSet = "NotSet", + /** Debug and above log statements logged. */ + Debug = "Debug", + /** Info and above log statements logged. */ + Info = "Info", + /** Warning and above log statements logged. */ + Warning = "Warning", + /** Error and above log statements logged. */ + Error = "Error", + /** Only critical statements logged. */ + Critical = "Critical" +} + +/** + * Defines values for LogVerbosity. \ + * {@link KnownLogVerbosity} can be used interchangeably with LogVerbosity, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotSet**: No logs emitted. \ + * **Debug**: Debug and above log statements logged. \ + * **Info**: Info and above log statements logged. \ + * **Warning**: Warning and above log statements logged. \ + * **Error**: Error and above log statements logged. \ + * **Critical**: Only critical statements logged. + */ +export type LogVerbosity = string; + +/** Known values of {@link TaskType} that the service accepts. */ +export enum KnownTaskType { + /** + * Classification in machine learning and statistics is a supervised learning approach in which + * the computer program learns from the data given to it and make new observations or classifications. + */ + Classification = "Classification", + /** Regression means to predict the value using the input data. Regression models are used to predict a continuous value. */ + Regression = "Regression", + /** + * Forecasting is a special kind of regression task that deals with time-series data and creates forecasting model + * that can be used to predict the near future values based on the inputs. + */ + Forecasting = "Forecasting", + /** + * Image Classification. Multi-class image classification is used when an image is classified with only a single label + * from a set of classes - e.g. each image is classified as either an image of a 'cat' or a 'dog' or a 'duck'. + */ + ImageClassification = "ImageClassification", + /** + * Image Classification Multilabel. Multi-label image classification is used when an image could have one or more labels + * from a set of labels - e.g. an image could be labeled with both 'cat' and 'dog'. + */ + ImageClassificationMultilabel = "ImageClassificationMultilabel", + /** + * Image Object Detection. Object detection is used to identify objects in an image and locate each object with a + * bounding box e.g. locate all dogs and cats in an image and draw a bounding box around each. + */ + ImageObjectDetection = "ImageObjectDetection", + /** + * Image Instance Segmentation. Instance segmentation is used to identify objects in an image at the pixel level, + * drawing a polygon around each object in the image. + */ + ImageInstanceSegmentation = "ImageInstanceSegmentation", + /** + * Text classification (also known as text tagging or text categorization) is the process of sorting texts into categories. + * Categories are mutually exclusive. + */ + TextClassification = "TextClassification", + /** Multilabel classification task assigns each sample to a group (zero or more) of target labels. */ + TextClassificationMultilabel = "TextClassificationMultilabel", + /** + * Text Named Entity Recognition a.k.a. TextNER. + * Named Entity Recognition (NER) is the ability to take free-form text and identify the occurrences of entities such as people, locations, organizations, and more. + */ + TextNER = "TextNER" +} + +/** + * Defines values for TaskType. \ + * {@link KnownTaskType} can be used interchangeably with TaskType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Classification**: Classification in machine learning and statistics is a supervised learning approach in which + * the computer program learns from the data given to it and make new observations or classifications. \ + * **Regression**: Regression means to predict the value using the input data. Regression models are used to predict a continuous value. \ + * **Forecasting**: Forecasting is a special kind of regression task that deals with time-series data and creates forecasting model + * that can be used to predict the near future values based on the inputs. \ + * **ImageClassification**: Image Classification. Multi-class image classification is used when an image is classified with only a single label + * from a set of classes - e.g. each image is classified as either an image of a 'cat' or a 'dog' or a 'duck'. \ + * **ImageClassificationMultilabel**: Image Classification Multilabel. Multi-label image classification is used when an image could have one or more labels + * from a set of labels - e.g. an image could be labeled with both 'cat' and 'dog'. \ + * **ImageObjectDetection**: Image Object Detection. Object detection is used to identify objects in an image and locate each object with a + * bounding box e.g. locate all dogs and cats in an image and draw a bounding box around each. \ + * **ImageInstanceSegmentation**: Image Instance Segmentation. Instance segmentation is used to identify objects in an image at the pixel level, + * drawing a polygon around each object in the image. \ + * **TextClassification**: Text classification (also known as text tagging or text categorization) is the process of sorting texts into categories. + * Categories are mutually exclusive. \ + * **TextClassificationMultilabel**: Multilabel classification task assigns each sample to a group (zero or more) of target labels. \ + * **TextNER**: Text Named Entity Recognition a.k.a. TextNER. + * Named Entity Recognition (NER) is the ability to take free-form text and identify the occurrences of entities such as people, locations, organizations, and more. + */ +export type TaskType = string; + +/** Known values of {@link JobInputType} that the service accepts. */ +export enum KnownJobInputType { + /** Literal */ + Literal = "literal", + /** UriFile */ + UriFile = "uri_file", + /** UriFolder */ + UriFolder = "uri_folder", + /** Mltable */ + Mltable = "mltable", + /** CustomModel */ + CustomModel = "custom_model", + /** MlflowModel */ + MlflowModel = "mlflow_model", + /** TritonModel */ + TritonModel = "triton_model" +} + +/** + * Defines values for JobInputType. \ + * {@link KnownJobInputType} can be used interchangeably with JobInputType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **literal** \ + * **uri_file** \ + * **uri_folder** \ + * **mltable** \ + * **custom_model** \ + * **mlflow_model** \ + * **triton_model** + */ +export type JobInputType = string; + +/** Known values of {@link NCrossValidationsMode} that the service accepts. */ +export enum KnownNCrossValidationsMode { + /** Determine N-Cross validations value automatically. Supported only for 'Forecasting' AutoML task. */ + Auto = "Auto", + /** Use custom N-Cross validations value. */ + Custom = "Custom" +} + +/** + * Defines values for NCrossValidationsMode. \ + * {@link KnownNCrossValidationsMode} can be used interchangeably with NCrossValidationsMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Auto**: Determine N-Cross validations value automatically. Supported only for 'Forecasting' AutoML task. \ + * **Custom**: Use custom N-Cross validations value. + */ +export type NCrossValidationsMode = string; + +/** Known values of {@link SeasonalityMode} that the service accepts. */ +export enum KnownSeasonalityMode { + /** Seasonality to be determined automatically. */ + Auto = "Auto", + /** Use the custom seasonality value. */ + Custom = "Custom" +} + +/** + * Defines values for SeasonalityMode. \ + * {@link KnownSeasonalityMode} can be used interchangeably with SeasonalityMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Auto**: Seasonality to be determined automatically. \ + * **Custom**: Use the custom seasonality value. + */ +export type SeasonalityMode = string; + +/** Known values of {@link TargetLagsMode} that the service accepts. */ +export enum KnownTargetLagsMode { + /** Target lags to be determined automatically. */ + Auto = "Auto", + /** Use the custom target lags. */ + Custom = "Custom" +} + +/** + * Defines values for TargetLagsMode. \ + * {@link KnownTargetLagsMode} can be used interchangeably with TargetLagsMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Auto**: Target lags to be determined automatically. \ + * **Custom**: Use the custom target lags. + */ +export type TargetLagsMode = string; + +/** Known values of {@link TargetRollingWindowSizeMode} that the service accepts. */ +export enum KnownTargetRollingWindowSizeMode { + /** Determine rolling windows size automatically. */ + Auto = "Auto", + /** Use the specified rolling window size. */ + Custom = "Custom" +} + +/** + * Defines values for TargetRollingWindowSizeMode. \ + * {@link KnownTargetRollingWindowSizeMode} can be used interchangeably with TargetRollingWindowSizeMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Auto**: Determine rolling windows size automatically. \ + * **Custom**: Use the specified rolling window size. + */ +export type TargetRollingWindowSizeMode = string; + /** Known values of {@link ServiceDataAccessAuthIdentity} that the service accepts. */ export enum KnownServiceDataAccessAuthIdentity { /** Do not use any identity for service data access. */ @@ -5086,155 +7329,755 @@ export enum KnownServiceDataAccessAuthIdentity { * {@link KnownServiceDataAccessAuthIdentity} can be used interchangeably with ServiceDataAccessAuthIdentity, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None**: Do not use any identity for service data access. \ - * **WorkspaceSystemAssignedIdentity**: Use the system assigned managed identity of the Workspace to authenticate service data access. \ - * **WorkspaceUserAssignedIdentity**: Use the user assigned managed identity of the Workspace to authenticate service data access. + * **None**: Do not use any identity for service data access. \ + * **WorkspaceSystemAssignedIdentity**: Use the system assigned managed identity of the Workspace to authenticate service data access. \ + * **WorkspaceUserAssignedIdentity**: Use the user assigned managed identity of the Workspace to authenticate service data access. + */ +export type ServiceDataAccessAuthIdentity = string; + +/** Known values of {@link EarlyTerminationPolicyType} that the service accepts. */ +export enum KnownEarlyTerminationPolicyType { + /** Bandit */ + Bandit = "Bandit", + /** MedianStopping */ + MedianStopping = "MedianStopping", + /** TruncationSelection */ + TruncationSelection = "TruncationSelection" +} + +/** + * Defines values for EarlyTerminationPolicyType. \ + * {@link KnownEarlyTerminationPolicyType} can be used interchangeably with EarlyTerminationPolicyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Bandit** \ + * **MedianStopping** \ + * **TruncationSelection** + */ +export type EarlyTerminationPolicyType = string; + +/** Known values of {@link SamplingAlgorithmType} that the service accepts. */ +export enum KnownSamplingAlgorithmType { + /** Grid */ + Grid = "Grid", + /** Random */ + Random = "Random", + /** Bayesian */ + Bayesian = "Bayesian" +} + +/** + * Defines values for SamplingAlgorithmType. \ + * {@link KnownSamplingAlgorithmType} can be used interchangeably with SamplingAlgorithmType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Grid** \ + * **Random** \ + * **Bayesian** + */ +export type SamplingAlgorithmType = string; + +/** Known values of {@link ClassificationPrimaryMetrics} that the service accepts. */ +export enum KnownClassificationPrimaryMetrics { + /** + * AUC is the Area under the curve. + * This metric represents arithmetic mean of the score for each class, + * weighted by the number of true instances in each class. + */ + AUCWeighted = "AUCWeighted", + /** Accuracy is the ratio of predictions that exactly match the true class labels. */ + Accuracy = "Accuracy", + /** + * Normalized macro recall is recall macro-averaged and normalized, so that random + * performance has a score of 0, and perfect performance has a score of 1. + */ + NormMacroRecall = "NormMacroRecall", + /** + * The arithmetic mean of the average precision score for each class, weighted by + * the number of true instances in each class. + */ + AveragePrecisionScoreWeighted = "AveragePrecisionScoreWeighted", + /** The arithmetic mean of precision for each class, weighted by number of true instances in each class. */ + PrecisionScoreWeighted = "PrecisionScoreWeighted" +} + +/** + * Defines values for ClassificationPrimaryMetrics. \ + * {@link KnownClassificationPrimaryMetrics} can be used interchangeably with ClassificationPrimaryMetrics, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AUCWeighted**: AUC is the Area under the curve. + * This metric represents arithmetic mean of the score for each class, + * weighted by the number of true instances in each class. \ + * **Accuracy**: Accuracy is the ratio of predictions that exactly match the true class labels. \ + * **NormMacroRecall**: Normalized macro recall is recall macro-averaged and normalized, so that random + * performance has a score of 0, and perfect performance has a score of 1. \ + * **AveragePrecisionScoreWeighted**: The arithmetic mean of the average precision score for each class, weighted by + * the number of true instances in each class. \ + * **PrecisionScoreWeighted**: The arithmetic mean of precision for each class, weighted by number of true instances in each class. + */ +export type ClassificationPrimaryMetrics = string; + +/** Known values of {@link ClassificationModels} that the service accepts. */ +export enum KnownClassificationModels { + /** + * Logistic regression is a fundamental classification technique. + * It belongs to the group of linear classifiers and is somewhat similar to polynomial and linear regression. + * Logistic regression is fast and relatively uncomplicated, and it's convenient for you to interpret the results. + * Although it's essentially a method for binary classification, it can also be applied to multiclass problems. + */ + LogisticRegression = "LogisticRegression", + /** + * SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications + * to find the model parameters that correspond to the best fit between predicted and actual outputs. + */ + SGD = "SGD", + /** + * The multinomial Naive Bayes classifier is suitable for classification with discrete features (e.g., word counts for text classification). + * The multinomial distribution normally requires integer feature counts. However, in practice, fractional counts such as tf-idf may also work. + */ + MultinomialNaiveBayes = "MultinomialNaiveBayes", + /** Naive Bayes classifier for multivariate Bernoulli models. */ + BernoulliNaiveBayes = "BernoulliNaiveBayes", + /** + * A support vector machine (SVM) is a supervised machine learning model that uses classification algorithms for two-group classification problems. + * After giving an SVM model sets of labeled training data for each category, they're able to categorize new text. + */ + SVM = "SVM", + /** + * A support vector machine (SVM) is a supervised machine learning model that uses classification algorithms for two-group classification problems. + * After giving an SVM model sets of labeled training data for each category, they're able to categorize new text. + * Linear SVM performs best when input data is linear, i.e., data can be easily classified by drawing the straight line between classified values on a plotted graph. + */ + LinearSVM = "LinearSVM", + /** + * K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints + * which further means that the new data point will be assigned a value based on how closely it matches the points in the training set. + */ + KNN = "KNN", + /** + * Decision Trees are a non-parametric supervised learning method used for both classification and regression tasks. + * The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. + */ + DecisionTree = "DecisionTree", + /** + * Random forest is a supervised learning algorithm. + * The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method. + * The general idea of the bagging method is that a combination of learning models increases the overall result. + */ + RandomForest = "RandomForest", + /** Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. */ + ExtremeRandomTrees = "ExtremeRandomTrees", + /** LightGBM is a gradient boosting framework that uses tree based learning algorithms. */ + LightGBM = "LightGBM", + /** The technique of transiting week learners into a strong learner is called Boosting. The gradient boosting algorithm process works on this theory of execution. */ + GradientBoosting = "GradientBoosting", + /** XGBoost: Extreme Gradient Boosting Algorithm. This algorithm is used for structured data where target column values can be divided into distinct class values. */ + XGBoostClassifier = "XGBoostClassifier" +} + +/** + * Defines values for ClassificationModels. \ + * {@link KnownClassificationModels} can be used interchangeably with ClassificationModels, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **LogisticRegression**: Logistic regression is a fundamental classification technique. + * It belongs to the group of linear classifiers and is somewhat similar to polynomial and linear regression. + * Logistic regression is fast and relatively uncomplicated, and it's convenient for you to interpret the results. + * Although it's essentially a method for binary classification, it can also be applied to multiclass problems. \ + * **SGD**: SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications + * to find the model parameters that correspond to the best fit between predicted and actual outputs. \ + * **MultinomialNaiveBayes**: The multinomial Naive Bayes classifier is suitable for classification with discrete features (e.g., word counts for text classification). + * The multinomial distribution normally requires integer feature counts. However, in practice, fractional counts such as tf-idf may also work. \ + * **BernoulliNaiveBayes**: Naive Bayes classifier for multivariate Bernoulli models. \ + * **SVM**: A support vector machine (SVM) is a supervised machine learning model that uses classification algorithms for two-group classification problems. + * After giving an SVM model sets of labeled training data for each category, they're able to categorize new text. \ + * **LinearSVM**: A support vector machine (SVM) is a supervised machine learning model that uses classification algorithms for two-group classification problems. + * After giving an SVM model sets of labeled training data for each category, they're able to categorize new text. + * Linear SVM performs best when input data is linear, i.e., data can be easily classified by drawing the straight line between classified values on a plotted graph. \ + * **KNN**: K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints + * which further means that the new data point will be assigned a value based on how closely it matches the points in the training set. \ + * **DecisionTree**: Decision Trees are a non-parametric supervised learning method used for both classification and regression tasks. + * The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. \ + * **RandomForest**: Random forest is a supervised learning algorithm. + * The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method. + * The general idea of the bagging method is that a combination of learning models increases the overall result. \ + * **ExtremeRandomTrees**: Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. \ + * **LightGBM**: LightGBM is a gradient boosting framework that uses tree based learning algorithms. \ + * **GradientBoosting**: The technique of transiting week learners into a strong learner is called Boosting. The gradient boosting algorithm process works on this theory of execution. \ + * **XGBoostClassifier**: XGBoost: Extreme Gradient Boosting Algorithm. This algorithm is used for structured data where target column values can be divided into distinct class values. + */ +export type ClassificationModels = string; + +/** Known values of {@link StackMetaLearnerType} that the service accepts. */ +export enum KnownStackMetaLearnerType { + /** None */ + None = "None", + /** Default meta-learners are LogisticRegression for classification tasks. */ + LogisticRegression = "LogisticRegression", + /** Default meta-learners are LogisticRegression for classification task when CV is on. */ + LogisticRegressionCV = "LogisticRegressionCV", + /** LightGBMClassifier */ + LightGBMClassifier = "LightGBMClassifier", + /** Default meta-learners are LogisticRegression for regression task. */ + ElasticNet = "ElasticNet", + /** Default meta-learners are LogisticRegression for regression task when CV is on. */ + ElasticNetCV = "ElasticNetCV", + /** LightGBMRegressor */ + LightGBMRegressor = "LightGBMRegressor", + /** LinearRegression */ + LinearRegression = "LinearRegression" +} + +/** + * Defines values for StackMetaLearnerType. \ + * {@link KnownStackMetaLearnerType} can be used interchangeably with StackMetaLearnerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **LogisticRegression**: Default meta-learners are LogisticRegression for classification tasks. \ + * **LogisticRegressionCV**: Default meta-learners are LogisticRegression for classification task when CV is on. \ + * **LightGBMClassifier** \ + * **ElasticNet**: Default meta-learners are LogisticRegression for regression task. \ + * **ElasticNetCV**: Default meta-learners are LogisticRegression for regression task when CV is on. \ + * **LightGBMRegressor** \ + * **LinearRegression** + */ +export type StackMetaLearnerType = string; + +/** Known values of {@link BlockedTransformers} that the service accepts. */ +export enum KnownBlockedTransformers { + /** Target encoding for text data. */ + TextTargetEncoder = "TextTargetEncoder", + /** Ohe hot encoding creates a binary feature transformation. */ + OneHotEncoder = "OneHotEncoder", + /** Target encoding for categorical data. */ + CatTargetEncoder = "CatTargetEncoder", + /** Tf-Idf stands for, term-frequency times inverse document-frequency. This is a common term weighting scheme for identifying information from documents. */ + TfIdf = "TfIdf", + /** Weight of Evidence encoding is a technique used to encode categorical variables. It uses the natural log of the P(1)/P(0) to create weights. */ + WoETargetEncoder = "WoETargetEncoder", + /** Label encoder converts labels/categorical variables in a numerical form. */ + LabelEncoder = "LabelEncoder", + /** Word embedding helps represents words or phrases as a vector, or a series of numbers. */ + WordEmbedding = "WordEmbedding", + /** Naive Bayes is a classified that is used for classification of discrete features that are categorically distributed. */ + NaiveBayes = "NaiveBayes", + /** Count Vectorizer converts a collection of text documents to a matrix of token counts. */ + CountVectorizer = "CountVectorizer", + /** Hashing One Hot Encoder can turn categorical variables into a limited number of new features. This is often used for high-cardinality categorical features. */ + HashOneHotEncoder = "HashOneHotEncoder" +} + +/** + * Defines values for BlockedTransformers. \ + * {@link KnownBlockedTransformers} can be used interchangeably with BlockedTransformers, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **TextTargetEncoder**: Target encoding for text data. \ + * **OneHotEncoder**: Ohe hot encoding creates a binary feature transformation. \ + * **CatTargetEncoder**: Target encoding for categorical data. \ + * **TfIdf**: Tf-Idf stands for, term-frequency times inverse document-frequency. This is a common term weighting scheme for identifying information from documents. \ + * **WoETargetEncoder**: Weight of Evidence encoding is a technique used to encode categorical variables. It uses the natural log of the P(1)\/P(0) to create weights. \ + * **LabelEncoder**: Label encoder converts labels\/categorical variables in a numerical form. \ + * **WordEmbedding**: Word embedding helps represents words or phrases as a vector, or a series of numbers. \ + * **NaiveBayes**: Naive Bayes is a classified that is used for classification of discrete features that are categorically distributed. \ + * **CountVectorizer**: Count Vectorizer converts a collection of text documents to a matrix of token counts. \ + * **HashOneHotEncoder**: Hashing One Hot Encoder can turn categorical variables into a limited number of new features. This is often used for high-cardinality categorical features. + */ +export type BlockedTransformers = string; + +/** Known values of {@link FeaturizationMode} that the service accepts. */ +export enum KnownFeaturizationMode { + /** Auto mode, system performs featurization without any custom featurization inputs. */ + Auto = "Auto", + /** Custom featurization. */ + Custom = "Custom", + /** Featurization off. 'Forecasting' task cannot use this value. */ + Off = "Off" +} + +/** + * Defines values for FeaturizationMode. \ + * {@link KnownFeaturizationMode} can be used interchangeably with FeaturizationMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Auto**: Auto mode, system performs featurization without any custom featurization inputs. \ + * **Custom**: Custom featurization. \ + * **Off**: Featurization off. 'Forecasting' task cannot use this value. + */ +export type FeaturizationMode = string; + +/** Known values of {@link DistributionType} that the service accepts. */ +export enum KnownDistributionType { + /** PyTorch */ + PyTorch = "PyTorch", + /** TensorFlow */ + TensorFlow = "TensorFlow", + /** Mpi */ + Mpi = "Mpi" +} + +/** + * Defines values for DistributionType. \ + * {@link KnownDistributionType} can be used interchangeably with DistributionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PyTorch** \ + * **TensorFlow** \ + * **Mpi** + */ +export type DistributionType = string; + +/** Known values of {@link JobLimitsType} that the service accepts. */ +export enum KnownJobLimitsType { + /** Command */ + Command = "Command", + /** Sweep */ + Sweep = "Sweep" +} + +/** + * Defines values for JobLimitsType. \ + * {@link KnownJobLimitsType} can be used interchangeably with JobLimitsType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Command** \ + * **Sweep** + */ +export type JobLimitsType = string; + +/** Known values of {@link FeatureLags} that the service accepts. */ +export enum KnownFeatureLags { + /** No feature lags generated. */ + None = "None", + /** System auto-generates feature lags. */ + Auto = "Auto" +} + +/** + * Defines values for FeatureLags. \ + * {@link KnownFeatureLags} can be used interchangeably with FeatureLags, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: No feature lags generated. \ + * **Auto**: System auto-generates feature lags. + */ +export type FeatureLags = string; + +/** Known values of {@link ShortSeriesHandlingConfiguration} that the service accepts. */ +export enum KnownShortSeriesHandlingConfiguration { + /** Represents no/null value. */ + None = "None", + /** Short series will be padded if there are no long series, otherwise short series will be dropped. */ + Auto = "Auto", + /** All the short series will be padded. */ + Pad = "Pad", + /** All the short series will be dropped. */ + Drop = "Drop" +} + +/** + * Defines values for ShortSeriesHandlingConfiguration. \ + * {@link KnownShortSeriesHandlingConfiguration} can be used interchangeably with ShortSeriesHandlingConfiguration, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: Represents no\/null value. \ + * **Auto**: Short series will be padded if there are no long series, otherwise short series will be dropped. \ + * **Pad**: All the short series will be padded. \ + * **Drop**: All the short series will be dropped. + */ +export type ShortSeriesHandlingConfiguration = string; + +/** Known values of {@link TargetAggregationFunction} that the service accepts. */ +export enum KnownTargetAggregationFunction { + /** Represent no value set. */ + None = "None", + /** Sum */ + Sum = "Sum", + /** Max */ + Max = "Max", + /** Min */ + Min = "Min", + /** Mean */ + Mean = "Mean" +} + +/** + * Defines values for TargetAggregationFunction. \ + * {@link KnownTargetAggregationFunction} can be used interchangeably with TargetAggregationFunction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: Represent no value set. \ + * **Sum** \ + * **Max** \ + * **Min** \ + * **Mean** + */ +export type TargetAggregationFunction = string; + +/** Known values of {@link UseStl} that the service accepts. */ +export enum KnownUseStl { + /** No stl decomposition. */ + None = "None", + /** Season */ + Season = "Season", + /** SeasonTrend */ + SeasonTrend = "SeasonTrend" +} + +/** + * Defines values for UseStl. \ + * {@link KnownUseStl} can be used interchangeably with UseStl, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: No stl decomposition. \ + * **Season** \ + * **SeasonTrend** + */ +export type UseStl = string; + +/** Known values of {@link ForecastingPrimaryMetrics} that the service accepts. */ +export enum KnownForecastingPrimaryMetrics { + /** The Spearman's rank coefficient of correlation is a non-parametric measure of rank correlation. */ + SpearmanCorrelation = "SpearmanCorrelation", + /** The Normalized Root Mean Squared Error (NRMSE) the RMSE facilitates the comparison between models with different scales. */ + NormalizedRootMeanSquaredError = "NormalizedRootMeanSquaredError", + /** The R2 score is one of the performance evaluation measures for forecasting-based machine learning models. */ + R2Score = "R2Score", + /** The Normalized Mean Absolute Error (NMAE) is a validation metric to compare the Mean Absolute Error (MAE) of (time) series with different scales. */ + NormalizedMeanAbsoluteError = "NormalizedMeanAbsoluteError" +} + +/** + * Defines values for ForecastingPrimaryMetrics. \ + * {@link KnownForecastingPrimaryMetrics} can be used interchangeably with ForecastingPrimaryMetrics, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SpearmanCorrelation**: The Spearman's rank coefficient of correlation is a non-parametric measure of rank correlation. \ + * **NormalizedRootMeanSquaredError**: The Normalized Root Mean Squared Error (NRMSE) the RMSE facilitates the comparison between models with different scales. \ + * **R2Score**: The R2 score is one of the performance evaluation measures for forecasting-based machine learning models. \ + * **NormalizedMeanAbsoluteError**: The Normalized Mean Absolute Error (NMAE) is a validation metric to compare the Mean Absolute Error (MAE) of (time) series with different scales. + */ +export type ForecastingPrimaryMetrics = string; + +/** Known values of {@link ForecastingModels} that the service accepts. */ +export enum KnownForecastingModels { + /** + * Auto-Autoregressive Integrated Moving Average (ARIMA) model uses time-series data and statistical analysis to interpret the data and make future predictions. + * This model aims to explain data by using time series data on its past values and uses linear regression to make predictions. + */ + AutoArima = "AutoArima", + /** + * Prophet is a procedure for forecasting time series data based on an additive model where non-linear trends are fit with yearly, weekly, and daily seasonality, plus holiday effects. + * It works best with time series that have strong seasonal effects and several seasons of historical data. Prophet is robust to missing data and shifts in the trend, and typically handles outliers well. + */ + Prophet = "Prophet", + /** The Naive forecasting model makes predictions by carrying forward the latest target value for each time-series in the training data. */ + Naive = "Naive", + /** The Seasonal Naive forecasting model makes predictions by carrying forward the latest season of target values for each time-series in the training data. */ + SeasonalNaive = "SeasonalNaive", + /** The Average forecasting model makes predictions by carrying forward the average of the target values for each time-series in the training data. */ + Average = "Average", + /** The Seasonal Average forecasting model makes predictions by carrying forward the average value of the latest season of data for each time-series in the training data. */ + SeasonalAverage = "SeasonalAverage", + /** Exponential smoothing is a time series forecasting method for univariate data that can be extended to support data with a systematic trend or seasonal component. */ + ExponentialSmoothing = "ExponentialSmoothing", + /** + * An Autoregressive Integrated Moving Average with Explanatory Variable (ARIMAX) model can be viewed as a multiple regression model with one or more autoregressive (AR) terms and/or one or more moving average (MA) terms. + * This method is suitable for forecasting when data is stationary/non stationary, and multivariate with any type of data pattern, i.e., level/trend /seasonality/cyclicity. + */ + Arimax = "Arimax", + /** TCNForecaster: Temporal Convolutional Networks Forecaster. //TODO: Ask forecasting team for brief intro. */ + TCNForecaster = "TCNForecaster", + /** Elastic net is a popular type of regularized linear regression that combines two popular penalties, specifically the L1 and L2 penalty functions. */ + ElasticNet = "ElasticNet", + /** The technique of transiting week learners into a strong learner is called Boosting. The gradient boosting algorithm process works on this theory of execution. */ + GradientBoosting = "GradientBoosting", + /** + * Decision Trees are a non-parametric supervised learning method used for both classification and regression tasks. + * The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. + */ + DecisionTree = "DecisionTree", + /** + * K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints + * which further means that the new data point will be assigned a value based on how closely it matches the points in the training set. + */ + KNN = "KNN", + /** Lasso model fit with Least Angle Regression a.k.a. Lars. It is a Linear Model trained with an L1 prior as regularizer. */ + LassoLars = "LassoLars", + /** + * SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications + * to find the model parameters that correspond to the best fit between predicted and actual outputs. + * It's an inexact but powerful technique. + */ + SGD = "SGD", + /** + * Random forest is a supervised learning algorithm. + * The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method. + * The general idea of the bagging method is that a combination of learning models increases the overall result. + */ + RandomForest = "RandomForest", + /** Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. */ + ExtremeRandomTrees = "ExtremeRandomTrees", + /** LightGBM is a gradient boosting framework that uses tree based learning algorithms. */ + LightGBM = "LightGBM", + /** XGBoostRegressor: Extreme Gradient Boosting Regressor is a supervised machine learning model using ensemble of base learners. */ + XGBoostRegressor = "XGBoostRegressor" +} + +/** + * Defines values for ForecastingModels. \ + * {@link KnownForecastingModels} can be used interchangeably with ForecastingModels, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AutoArima**: Auto-Autoregressive Integrated Moving Average (ARIMA) model uses time-series data and statistical analysis to interpret the data and make future predictions. + * This model aims to explain data by using time series data on its past values and uses linear regression to make predictions. \ + * **Prophet**: Prophet is a procedure for forecasting time series data based on an additive model where non-linear trends are fit with yearly, weekly, and daily seasonality, plus holiday effects. + * It works best with time series that have strong seasonal effects and several seasons of historical data. Prophet is robust to missing data and shifts in the trend, and typically handles outliers well. \ + * **Naive**: The Naive forecasting model makes predictions by carrying forward the latest target value for each time-series in the training data. \ + * **SeasonalNaive**: The Seasonal Naive forecasting model makes predictions by carrying forward the latest season of target values for each time-series in the training data. \ + * **Average**: The Average forecasting model makes predictions by carrying forward the average of the target values for each time-series in the training data. \ + * **SeasonalAverage**: The Seasonal Average forecasting model makes predictions by carrying forward the average value of the latest season of data for each time-series in the training data. \ + * **ExponentialSmoothing**: Exponential smoothing is a time series forecasting method for univariate data that can be extended to support data with a systematic trend or seasonal component. \ + * **Arimax**: An Autoregressive Integrated Moving Average with Explanatory Variable (ARIMAX) model can be viewed as a multiple regression model with one or more autoregressive (AR) terms and\/or one or more moving average (MA) terms. + * This method is suitable for forecasting when data is stationary\/non stationary, and multivariate with any type of data pattern, i.e., level\/trend \/seasonality\/cyclicity. \ + * **TCNForecaster**: TCNForecaster: Temporal Convolutional Networks Forecaster. \/\/TODO: Ask forecasting team for brief intro. \ + * **ElasticNet**: Elastic net is a popular type of regularized linear regression that combines two popular penalties, specifically the L1 and L2 penalty functions. \ + * **GradientBoosting**: The technique of transiting week learners into a strong learner is called Boosting. The gradient boosting algorithm process works on this theory of execution. \ + * **DecisionTree**: Decision Trees are a non-parametric supervised learning method used for both classification and regression tasks. + * The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. \ + * **KNN**: K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints + * which further means that the new data point will be assigned a value based on how closely it matches the points in the training set. \ + * **LassoLars**: Lasso model fit with Least Angle Regression a.k.a. Lars. It is a Linear Model trained with an L1 prior as regularizer. \ + * **SGD**: SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications + * to find the model parameters that correspond to the best fit between predicted and actual outputs. + * It's an inexact but powerful technique. \ + * **RandomForest**: Random forest is a supervised learning algorithm. + * The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method. + * The general idea of the bagging method is that a combination of learning models increases the overall result. \ + * **ExtremeRandomTrees**: Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. \ + * **LightGBM**: LightGBM is a gradient boosting framework that uses tree based learning algorithms. \ + * **XGBoostRegressor**: XGBoostRegressor: Extreme Gradient Boosting Regressor is a supervised machine learning model using ensemble of base learners. + */ +export type ForecastingModels = string; + +/** Known values of {@link LearningRateScheduler} that the service accepts. */ +export enum KnownLearningRateScheduler { + /** No learning rate scheduler selected. */ + None = "None", + /** Cosine Annealing With Warmup. */ + WarmupCosine = "WarmupCosine", + /** Step learning rate scheduler. */ + Step = "Step" +} + +/** + * Defines values for LearningRateScheduler. \ + * {@link KnownLearningRateScheduler} can be used interchangeably with LearningRateScheduler, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: No learning rate scheduler selected. \ + * **WarmupCosine**: Cosine Annealing With Warmup. \ + * **Step**: Step learning rate scheduler. + */ +export type LearningRateScheduler = string; + +/** Known values of {@link StochasticOptimizer} that the service accepts. */ +export enum KnownStochasticOptimizer { + /** No optimizer selected. */ + None = "None", + /** Stochastic Gradient Descent optimizer. */ + Sgd = "Sgd", + /** Adam is algorithm the optimizes stochastic objective functions based on adaptive estimates of moments */ + Adam = "Adam", + /** AdamW is a variant of the optimizer Adam that has an improved implementation of weight decay. */ + Adamw = "Adamw" +} + +/** + * Defines values for StochasticOptimizer. \ + * {@link KnownStochasticOptimizer} can be used interchangeably with StochasticOptimizer, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: No optimizer selected. \ + * **Sgd**: Stochastic Gradient Descent optimizer. \ + * **Adam**: Adam is algorithm the optimizes stochastic objective functions based on adaptive estimates of moments \ + * **Adamw**: AdamW is a variant of the optimizer Adam that has an improved implementation of weight decay. + */ +export type StochasticOptimizer = string; + +/** Known values of {@link ClassificationMultilabelPrimaryMetrics} that the service accepts. */ +export enum KnownClassificationMultilabelPrimaryMetrics { + /** + * AUC is the Area under the curve. + * This metric represents arithmetic mean of the score for each class, + * weighted by the number of true instances in each class. + */ + AUCWeighted = "AUCWeighted", + /** Accuracy is the ratio of predictions that exactly match the true class labels. */ + Accuracy = "Accuracy", + /** + * Normalized macro recall is recall macro-averaged and normalized, so that random + * performance has a score of 0, and perfect performance has a score of 1. + */ + NormMacroRecall = "NormMacroRecall", + /** + * The arithmetic mean of the average precision score for each class, weighted by + * the number of true instances in each class. + */ + AveragePrecisionScoreWeighted = "AveragePrecisionScoreWeighted", + /** The arithmetic mean of precision for each class, weighted by number of true instances in each class. */ + PrecisionScoreWeighted = "PrecisionScoreWeighted", + /** Intersection Over Union. Intersection of predictions divided by union of predictions. */ + IOU = "IOU" +} + +/** + * Defines values for ClassificationMultilabelPrimaryMetrics. \ + * {@link KnownClassificationMultilabelPrimaryMetrics} can be used interchangeably with ClassificationMultilabelPrimaryMetrics, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AUCWeighted**: AUC is the Area under the curve. + * This metric represents arithmetic mean of the score for each class, + * weighted by the number of true instances in each class. \ + * **Accuracy**: Accuracy is the ratio of predictions that exactly match the true class labels. \ + * **NormMacroRecall**: Normalized macro recall is recall macro-averaged and normalized, so that random + * performance has a score of 0, and perfect performance has a score of 1. \ + * **AveragePrecisionScoreWeighted**: The arithmetic mean of the average precision score for each class, weighted by + * the number of true instances in each class. \ + * **PrecisionScoreWeighted**: The arithmetic mean of precision for each class, weighted by number of true instances in each class. \ + * **IOU**: Intersection Over Union. Intersection of predictions divided by union of predictions. */ -export type ServiceDataAccessAuthIdentity = string; +export type ClassificationMultilabelPrimaryMetrics = string; -/** Known values of {@link EarlyTerminationPolicyType} that the service accepts. */ -export enum KnownEarlyTerminationPolicyType { - /** Bandit */ - Bandit = "Bandit", - /** MedianStopping */ - MedianStopping = "MedianStopping", - /** TruncationSelection */ - TruncationSelection = "TruncationSelection" +/** Known values of {@link InstanceSegmentationPrimaryMetrics} that the service accepts. */ +export enum KnownInstanceSegmentationPrimaryMetrics { + /** + * Mean Average Precision (MAP) is the average of AP (Average Precision). + * AP is calculated for each class and averaged to get the MAP. + */ + MeanAveragePrecision = "MeanAveragePrecision" } /** - * Defines values for EarlyTerminationPolicyType. \ - * {@link KnownEarlyTerminationPolicyType} can be used interchangeably with EarlyTerminationPolicyType, + * Defines values for InstanceSegmentationPrimaryMetrics. \ + * {@link KnownInstanceSegmentationPrimaryMetrics} can be used interchangeably with InstanceSegmentationPrimaryMetrics, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Bandit** \ - * **MedianStopping** \ - * **TruncationSelection** + * **MeanAveragePrecision**: Mean Average Precision (MAP) is the average of AP (Average Precision). + * AP is calculated for each class and averaged to get the MAP. */ -export type EarlyTerminationPolicyType = string; +export type InstanceSegmentationPrimaryMetrics = string; -/** Known values of {@link SamplingAlgorithmType} that the service accepts. */ -export enum KnownSamplingAlgorithmType { - /** Grid */ - Grid = "Grid", - /** Random */ - Random = "Random", - /** Bayesian */ - Bayesian = "Bayesian" +/** Known values of {@link ModelSize} that the service accepts. */ +export enum KnownModelSize { + /** No value selected. */ + None = "None", + /** Small size. */ + Small = "Small", + /** Medium size. */ + Medium = "Medium", + /** Large size. */ + Large = "Large", + /** Extra large size. */ + ExtraLarge = "ExtraLarge" } /** - * Defines values for SamplingAlgorithmType. \ - * {@link KnownSamplingAlgorithmType} can be used interchangeably with SamplingAlgorithmType, + * Defines values for ModelSize. \ + * {@link KnownModelSize} can be used interchangeably with ModelSize, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Grid** \ - * **Random** \ - * **Bayesian** + * **None**: No value selected. \ + * **Small**: Small size. \ + * **Medium**: Medium size. \ + * **Large**: Large size. \ + * **ExtraLarge**: Extra large size. */ -export type SamplingAlgorithmType = string; +export type ModelSize = string; -/** Known values of {@link DistributionType} that the service accepts. */ -export enum KnownDistributionType { - /** PyTorch */ - PyTorch = "PyTorch", - /** TensorFlow */ - TensorFlow = "TensorFlow", - /** Mpi */ - Mpi = "Mpi" +/** Known values of {@link ValidationMetricType} that the service accepts. */ +export enum KnownValidationMetricType { + /** No metric. */ + None = "None", + /** Coco metric. */ + Coco = "Coco", + /** Voc metric. */ + Voc = "Voc", + /** CocoVoc metric. */ + CocoVoc = "CocoVoc" } /** - * Defines values for DistributionType. \ - * {@link KnownDistributionType} can be used interchangeably with DistributionType, + * Defines values for ValidationMetricType. \ + * {@link KnownValidationMetricType} can be used interchangeably with ValidationMetricType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **PyTorch** \ - * **TensorFlow** \ - * **Mpi** + * **None**: No metric. \ + * **Coco**: Coco metric. \ + * **Voc**: Voc metric. \ + * **CocoVoc**: CocoVoc metric. */ -export type DistributionType = string; +export type ValidationMetricType = string; -/** Known values of {@link JobInputType} that the service accepts. */ -export enum KnownJobInputType { - /** Literal */ - Literal = "literal", - /** UriFile */ - UriFile = "uri_file", - /** UriFolder */ - UriFolder = "uri_folder", - /** Mltable */ - Mltable = "mltable", - /** CustomModel */ - CustomModel = "custom_model", - /** MlflowModel */ - MlflowModel = "mlflow_model", - /** TritonModel */ - TritonModel = "triton_model" +/** Known values of {@link ObjectDetectionPrimaryMetrics} that the service accepts. */ +export enum KnownObjectDetectionPrimaryMetrics { + /** + * Mean Average Precision (MAP) is the average of AP (Average Precision). + * AP is calculated for each class and averaged to get the MAP. + */ + MeanAveragePrecision = "MeanAveragePrecision" } /** - * Defines values for JobInputType. \ - * {@link KnownJobInputType} can be used interchangeably with JobInputType, + * Defines values for ObjectDetectionPrimaryMetrics. \ + * {@link KnownObjectDetectionPrimaryMetrics} can be used interchangeably with ObjectDetectionPrimaryMetrics, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **literal** \ - * **uri_file** \ - * **uri_folder** \ - * **mltable** \ - * **custom_model** \ - * **mlflow_model** \ - * **triton_model** + * **MeanAveragePrecision**: Mean Average Precision (MAP) is the average of AP (Average Precision). + * AP is calculated for each class and averaged to get the MAP. */ -export type JobInputType = string; +export type ObjectDetectionPrimaryMetrics = string; -/** Known values of {@link JobLimitsType} that the service accepts. */ -export enum KnownJobLimitsType { - /** Command */ - Command = "Command", - /** Sweep */ - Sweep = "Sweep" +/** Known values of {@link ImageAnnotationType} that the service accepts. */ +export enum KnownImageAnnotationType { + /** Classification */ + Classification = "Classification", + /** BoundingBox */ + BoundingBox = "BoundingBox", + /** InstanceSegmentation */ + InstanceSegmentation = "InstanceSegmentation" } /** - * Defines values for JobLimitsType. \ - * {@link KnownJobLimitsType} can be used interchangeably with JobLimitsType, + * Defines values for ImageAnnotationType. \ + * {@link KnownImageAnnotationType} can be used interchangeably with ImageAnnotationType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Command** \ - * **Sweep** + * **Classification** \ + * **BoundingBox** \ + * **InstanceSegmentation** */ -export type JobLimitsType = string; +export type ImageAnnotationType = string; -/** Known values of {@link JobOutputType} that the service accepts. */ -export enum KnownJobOutputType { - /** UriFile */ - UriFile = "uri_file", - /** UriFolder */ - UriFolder = "uri_folder", - /** Mltable */ - Mltable = "mltable", - /** CustomModel */ - CustomModel = "custom_model", - /** MlflowModel */ - MlflowModel = "mlflow_model", - /** TritonModel */ - TritonModel = "triton_model" +/** Known values of {@link TextAnnotationType} that the service accepts. */ +export enum KnownTextAnnotationType { + /** Classification */ + Classification = "Classification", + /** NamedEntityRecognition */ + NamedEntityRecognition = "NamedEntityRecognition" } /** - * Defines values for JobOutputType. \ - * {@link KnownJobOutputType} can be used interchangeably with JobOutputType, + * Defines values for TextAnnotationType. \ + * {@link KnownTextAnnotationType} can be used interchangeably with TextAnnotationType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **uri_file** \ - * **uri_folder** \ - * **mltable** \ - * **custom_model** \ - * **mlflow_model** \ - * **triton_model** + * **Classification** \ + * **NamedEntityRecognition** */ -export type JobOutputType = string; +export type TextAnnotationType = string; /** Known values of {@link Goal} that the service accepts. */ export enum KnownGoal { @@ -5271,6 +8114,170 @@ export enum KnownRandomSamplingAlgorithmRule { * **Sobol** */ export type RandomSamplingAlgorithmRule = string; + +/** Known values of {@link WeekDay} that the service accepts. */ +export enum KnownWeekDay { + /** Monday weekday */ + Monday = "Monday", + /** Tuesday weekday */ + Tuesday = "Tuesday", + /** Wednesday weekday */ + Wednesday = "Wednesday", + /** Thursday weekday */ + Thursday = "Thursday", + /** Friday weekday */ + Friday = "Friday", + /** Saturday weekday */ + Saturday = "Saturday", + /** Sunday weekday */ + Sunday = "Sunday" +} + +/** + * Defines values for WeekDay. \ + * {@link KnownWeekDay} can be used interchangeably with WeekDay, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Monday**: Monday weekday \ + * **Tuesday**: Tuesday weekday \ + * **Wednesday**: Wednesday weekday \ + * **Thursday**: Thursday weekday \ + * **Friday**: Friday weekday \ + * **Saturday**: Saturday weekday \ + * **Sunday**: Sunday weekday + */ +export type WeekDay = string; + +/** Known values of {@link RecurrenceFrequency} that the service accepts. */ +export enum KnownRecurrenceFrequency { + /** Minute frequency */ + Minute = "Minute", + /** Hour frequency */ + Hour = "Hour", + /** Day frequency */ + Day = "Day", + /** Week frequency */ + Week = "Week", + /** Month frequency */ + Month = "Month" +} + +/** + * Defines values for RecurrenceFrequency. \ + * {@link KnownRecurrenceFrequency} can be used interchangeably with RecurrenceFrequency, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Minute**: Minute frequency \ + * **Hour**: Hour frequency \ + * **Day**: Day frequency \ + * **Week**: Week frequency \ + * **Month**: Month frequency + */ +export type RecurrenceFrequency = string; + +/** Known values of {@link RegressionPrimaryMetrics} that the service accepts. */ +export enum KnownRegressionPrimaryMetrics { + /** The Spearman's rank coefficient of correlation is a nonparametric measure of rank correlation. */ + SpearmanCorrelation = "SpearmanCorrelation", + /** The Normalized Root Mean Squared Error (NRMSE) the RMSE facilitates the comparison between models with different scales. */ + NormalizedRootMeanSquaredError = "NormalizedRootMeanSquaredError", + /** The R2 score is one of the performance evaluation measures for forecasting-based machine learning models. */ + R2Score = "R2Score", + /** The Normalized Mean Absolute Error (NMAE) is a validation metric to compare the Mean Absolute Error (MAE) of (time) series with different scales. */ + NormalizedMeanAbsoluteError = "NormalizedMeanAbsoluteError" +} + +/** + * Defines values for RegressionPrimaryMetrics. \ + * {@link KnownRegressionPrimaryMetrics} can be used interchangeably with RegressionPrimaryMetrics, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SpearmanCorrelation**: The Spearman's rank coefficient of correlation is a nonparametric measure of rank correlation. \ + * **NormalizedRootMeanSquaredError**: The Normalized Root Mean Squared Error (NRMSE) the RMSE facilitates the comparison between models with different scales. \ + * **R2Score**: The R2 score is one of the performance evaluation measures for forecasting-based machine learning models. \ + * **NormalizedMeanAbsoluteError**: The Normalized Mean Absolute Error (NMAE) is a validation metric to compare the Mean Absolute Error (MAE) of (time) series with different scales. + */ +export type RegressionPrimaryMetrics = string; + +/** Known values of {@link RegressionModels} that the service accepts. */ +export enum KnownRegressionModels { + /** Elastic net is a popular type of regularized linear regression that combines two popular penalties, specifically the L1 and L2 penalty functions. */ + ElasticNet = "ElasticNet", + /** The technique of transiting week learners into a strong learner is called Boosting. The gradient boosting algorithm process works on this theory of execution. */ + GradientBoosting = "GradientBoosting", + /** + * Decision Trees are a non-parametric supervised learning method used for both classification and regression tasks. + * The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. + */ + DecisionTree = "DecisionTree", + /** + * K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints + * which further means that the new data point will be assigned a value based on how closely it matches the points in the training set. + */ + KNN = "KNN", + /** Lasso model fit with Least Angle Regression a.k.a. Lars. It is a Linear Model trained with an L1 prior as regularizer. */ + LassoLars = "LassoLars", + /** + * SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications + * to find the model parameters that correspond to the best fit between predicted and actual outputs. + * It's an inexact but powerful technique. + */ + SGD = "SGD", + /** + * Random forest is a supervised learning algorithm. + * The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method. + * The general idea of the bagging method is that a combination of learning models increases the overall result. + */ + RandomForest = "RandomForest", + /** Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. */ + ExtremeRandomTrees = "ExtremeRandomTrees", + /** LightGBM is a gradient boosting framework that uses tree based learning algorithms. */ + LightGBM = "LightGBM", + /** XGBoostRegressor: Extreme Gradient Boosting Regressor is a supervised machine learning model using ensemble of base learners. */ + XGBoostRegressor = "XGBoostRegressor" +} + +/** + * Defines values for RegressionModels. \ + * {@link KnownRegressionModels} can be used interchangeably with RegressionModels, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ElasticNet**: Elastic net is a popular type of regularized linear regression that combines two popular penalties, specifically the L1 and L2 penalty functions. \ + * **GradientBoosting**: The technique of transiting week learners into a strong learner is called Boosting. The gradient boosting algorithm process works on this theory of execution. \ + * **DecisionTree**: Decision Trees are a non-parametric supervised learning method used for both classification and regression tasks. + * The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. \ + * **KNN**: K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints + * which further means that the new data point will be assigned a value based on how closely it matches the points in the training set. \ + * **LassoLars**: Lasso model fit with Least Angle Regression a.k.a. Lars. It is a Linear Model trained with an L1 prior as regularizer. \ + * **SGD**: SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications + * to find the model parameters that correspond to the best fit between predicted and actual outputs. + * It's an inexact but powerful technique. \ + * **RandomForest**: Random forest is a supervised learning algorithm. + * The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method. + * The general idea of the bagging method is that a combination of learning models increases the overall result. \ + * **ExtremeRandomTrees**: Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. \ + * **LightGBM**: LightGBM is a gradient boosting framework that uses tree based learning algorithms. \ + * **XGBoostRegressor**: XGBoostRegressor: Extreme Gradient Boosting Regressor is a supervised machine learning model using ensemble of base learners. + */ +export type RegressionModels = string; + +/** Known values of {@link SparkJobEntryType} that the service accepts. */ +export enum KnownSparkJobEntryType { + /** SparkJobPythonEntry */ + SparkJobPythonEntry = "SparkJobPythonEntry", + /** SparkJobScalaEntry */ + SparkJobScalaEntry = "SparkJobScalaEntry" +} + +/** + * Defines values for SparkJobEntryType. \ + * {@link KnownSparkJobEntryType} can be used interchangeably with SparkJobEntryType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SparkJobPythonEntry** \ + * **SparkJobScalaEntry** + */ +export type SparkJobEntryType = string; /** Defines values for SkuTier. */ export type SkuTier = "Free" | "Basic" | "Standard" | "Premium"; @@ -5519,6 +8526,10 @@ export interface ComputeDeleteOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface ComputeUpdateCustomServicesOptionalParams + extends coreClient.OperationOptions {} + /** Optional parameters. */ export interface ComputeListNodesOptionalParams extends coreClient.OperationOptions {} @@ -5559,6 +8570,10 @@ export interface ComputeRestartOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface ComputeUpdateIdleShutdownSettingOptionalParams + extends coreClient.OperationOptions {} + /** Optional parameters. */ export interface ComputeListNextOptionalParams extends coreClient.OperationOptions { @@ -6241,6 +9256,10 @@ export interface JobsListOptionalParams extends coreClient.OperationOptions { jobType?: string; /** Jobs returned will have this tag key. */ tag?: string; + /** Indicator whether the job is scheduled job. */ + scheduled?: boolean; + /** The scheduled id for listing the job triggered from */ + scheduleId?: string; } /** Contains response data for the list operation. */ @@ -6286,11 +9305,92 @@ export interface JobsListNextOptionalParams jobType?: string; /** Jobs returned will have this tag key. */ tag?: string; + /** Indicator whether the job is scheduled job. */ + scheduled?: boolean; + /** The scheduled id for listing the job triggered from */ + scheduleId?: string; } /** Contains response data for the listNext operation. */ export type JobsListNextResponse = JobBaseResourceArmPaginatedResult; +/** Optional parameters. */ +export interface LabelingJobsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Number of labeling jobs to return. */ + count?: number; +} + +/** Contains response data for the list operation. */ +export type LabelingJobsListResponse = LabelingJobResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface LabelingJobsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface LabelingJobsGetOptionalParams + extends coreClient.OperationOptions { + /** Boolean value to indicate whether to include JobInstructions in response. */ + includeJobInstructions?: boolean; + /** Boolean value to indicate Whether to include LabelCategories in response. */ + includeLabelCategories?: boolean; +} + +/** Contains response data for the get operation. */ +export type LabelingJobsGetResponse = LabelingJob; + +/** Optional parameters. */ +export interface LabelingJobsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type LabelingJobsCreateOrUpdateResponse = LabelingJob; + +/** Optional parameters. */ +export interface LabelingJobsExportLabelsOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the exportLabels operation. */ +export type LabelingJobsExportLabelsResponse = ExportSummaryUnion; + +/** Optional parameters. */ +export interface LabelingJobsPauseOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface LabelingJobsResumeOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface LabelingJobsListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Number of labeling jobs to return. */ + count?: number; +} + +/** Contains response data for the listNext operation. */ +export type LabelingJobsListNextResponse = LabelingJobResourceArmPaginatedResult; + /** Optional parameters. */ export interface ModelContainersListOptionalParams extends coreClient.OperationOptions { @@ -6617,6 +9717,54 @@ export interface OnlineDeploymentsListSkusNextOptionalParams /** Contains response data for the listSkusNext operation. */ export type OnlineDeploymentsListSkusNextResponse = SkuResourceArmPaginatedResult; +/** Optional parameters. */ +export interface SchedulesListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the list operation. */ +export type SchedulesListResponse = ScheduleResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface SchedulesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface SchedulesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SchedulesGetResponse = Schedule; + +/** Optional parameters. */ +export interface SchedulesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type SchedulesCreateOrUpdateResponse = Schedule; + +/** Optional parameters. */ +export interface SchedulesListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the listNext operation. */ +export type SchedulesListNextResponse = ScheduleResourceArmPaginatedResult; + /** Optional parameters. */ export interface WorkspaceFeaturesListOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts b/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts index 7f42ac2198f4d..5e18e87151130 100644 --- a/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts @@ -688,6 +688,45 @@ export const WorkspaceUpdateParameters: coreClient.CompositeMapper = { type: { name: "String" } + }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "EncryptionUpdateProperties" + } + } + } + } +}; + +export const EncryptionUpdateProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EncryptionUpdateProperties", + modelProperties: { + keyVaultProperties: { + serializedName: "keyVaultProperties", + type: { + name: "Composite", + className: "EncryptionKeyVaultUpdateProperties" + } + } + } + } +}; + +export const EncryptionKeyVaultUpdateProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EncryptionKeyVaultUpdateProperties", + modelProperties: { + keyIdentifier: { + serializedName: "keyIdentifier", + required: true, + type: { + name: "String" + } } } } @@ -1829,27 +1868,84 @@ export const ScaleSettings: coreClient.CompositeMapper = { } }; -export const AmlComputeNodesInformation: coreClient.CompositeMapper = { +export const CustomService: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeNodesInformation", + className: "CustomService", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - nodes: { - serializedName: "nodes", - readOnly: true, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + image: { + serializedName: "image", + type: { + name: "Composite", + className: "Image" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "EnvironmentVariable" } + } + } + }, + docker: { + serializedName: "docker", + type: { + name: "Composite", + className: "Docker" + } + }, + endpoints: { + serializedName: "endpoints", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AmlComputeNodeInformation" + className: "Endpoint" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + volumes: { + serializedName: "volumes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VolumeDefinition" + } + } + } + } + } + } +}; + +export const Image: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Image", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + type: { + defaultValue: "docker", + serializedName: "type", + type: { + name: "String" + } + }, + reference: { + serializedName: "reference", type: { name: "String" } @@ -1858,51 +1954,79 @@ export const AmlComputeNodesInformation: coreClient.CompositeMapper = { } }; -export const AmlComputeNodeInformation: coreClient.CompositeMapper = { +export const EnvironmentVariable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeNodeInformation", + className: "EnvironmentVariable", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - nodeId: { - serializedName: "nodeId", - readOnly: true, + type: { + defaultValue: "local", + serializedName: "type", type: { name: "String" } }, - privateIpAddress: { - serializedName: "privateIpAddress", - readOnly: true, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const Docker: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Docker", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + privileged: { + serializedName: "privileged", nullable: true, + type: { + name: "Boolean" + } + } + } + } +}; + +export const Endpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Endpoint", + modelProperties: { + protocol: { + defaultValue: "tcp", + serializedName: "protocol", type: { name: "String" } }, - publicIpAddress: { - serializedName: "publicIpAddress", - readOnly: true, - nullable: true, + name: { + serializedName: "name", type: { name: "String" } }, - port: { - serializedName: "port", - readOnly: true, + target: { + serializedName: "target", type: { name: "Number" } }, - nodeState: { - serializedName: "nodeState", - readOnly: true, + published: { + serializedName: "published", + nullable: true, type: { - name: "String" + name: "Number" } }, - runId: { - serializedName: "runId", - readOnly: true, + hostIp: { + serializedName: "hostIp", nullable: true, type: { name: "String" @@ -1912,63 +2036,91 @@ export const AmlComputeNodeInformation: coreClient.CompositeMapper = { } }; -export const NotebookAccessTokenResult: coreClient.CompositeMapper = { +export const VolumeDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotebookAccessTokenResult", + className: "VolumeDefinition", modelProperties: { - notebookResourceId: { - serializedName: "notebookResourceId", - readOnly: true, + type: { + defaultValue: "bind", + serializedName: "type", type: { name: "String" } }, - hostName: { - serializedName: "hostName", - readOnly: true, + readOnly: { + serializedName: "readOnly", + nullable: true, type: { - name: "String" + name: "Boolean" } }, - publicDns: { - serializedName: "publicDns", - readOnly: true, + source: { + serializedName: "source", type: { name: "String" } }, - accessToken: { - serializedName: "accessToken", - readOnly: true, + target: { + serializedName: "target", type: { name: "String" } }, - tokenType: { - serializedName: "tokenType", - readOnly: true, + consistency: { + serializedName: "consistency", + nullable: true, type: { name: "String" } }, - expiresIn: { - serializedName: "expiresIn", - readOnly: true, + bind: { + serializedName: "bind", type: { - name: "Number" + name: "Composite", + className: "BindOptions" } }, - refreshToken: { - serializedName: "refreshToken", - readOnly: true, + volume: { + serializedName: "volume", + type: { + name: "Composite", + className: "VolumeOptions" + } + }, + tmpfs: { + serializedName: "tmpfs", + type: { + name: "Composite", + className: "TmpfsOptions" + } + } + } + } +}; + +export const BindOptions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BindOptions", + modelProperties: { + propagation: { + serializedName: "propagation", + nullable: true, type: { name: "String" } }, - scope: { - serializedName: "scope", - readOnly: true, + createHostPath: { + serializedName: "createHostPath", + nullable: true, + type: { + name: "Boolean" + } + }, + selinux: { + serializedName: "selinux", + nullable: true, type: { name: "String" } @@ -1977,75 +2129,269 @@ export const NotebookAccessTokenResult: coreClient.CompositeMapper = { } }; -export const ComputeSecrets: coreClient.CompositeMapper = { +export const VolumeOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeSecrets", - uberParent: "ComputeSecrets", - polymorphicDiscriminator: { - serializedName: "computeType", - clientName: "computeType" - }, + className: "VolumeOptions", modelProperties: { - computeType: { - serializedName: "computeType", - required: true, + nocopy: { + serializedName: "nocopy", + nullable: true, type: { - name: "String" + name: "Boolean" } } } } }; -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { +export const TmpfsOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "TmpfsOptions", modelProperties: { - value: { - serializedName: "value", + size: { + serializedName: "size", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } + name: "Number" } } } } }; -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { +export const AmlComputeNodesInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResourceListResult", + className: "AmlComputeNodesInformation", modelProperties: { - value: { - serializedName: "value", + nodes: { + serializedName: "nodes", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateLinkResource" + className: "AmlComputeNodeInformation" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const ListStorageAccountKeysResult: coreClient.CompositeMapper = { +export const AmlComputeNodeInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListStorageAccountKeysResult", + className: "AmlComputeNodeInformation", modelProperties: { - userStorageKey: { + nodeId: { + serializedName: "nodeId", + readOnly: true, + type: { + name: "String" + } + }, + privateIpAddress: { + serializedName: "privateIpAddress", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + publicIpAddress: { + serializedName: "publicIpAddress", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + port: { + serializedName: "port", + readOnly: true, + type: { + name: "Number" + } + }, + nodeState: { + serializedName: "nodeState", + readOnly: true, + type: { + name: "String" + } + }, + runId: { + serializedName: "runId", + readOnly: true, + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const NotebookAccessTokenResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NotebookAccessTokenResult", + modelProperties: { + notebookResourceId: { + serializedName: "notebookResourceId", + readOnly: true, + type: { + name: "String" + } + }, + hostName: { + serializedName: "hostName", + readOnly: true, + type: { + name: "String" + } + }, + publicDns: { + serializedName: "publicDns", + readOnly: true, + type: { + name: "String" + } + }, + accessToken: { + serializedName: "accessToken", + readOnly: true, + type: { + name: "String" + } + }, + tokenType: { + serializedName: "tokenType", + readOnly: true, + type: { + name: "String" + } + }, + expiresIn: { + serializedName: "expiresIn", + readOnly: true, + type: { + name: "Number" + } + }, + refreshToken: { + serializedName: "refreshToken", + readOnly: true, + type: { + name: "String" + } + }, + scope: { + serializedName: "scope", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ComputeSecrets: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, + modelProperties: { + computeType: { + serializedName: "computeType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const IdleShutdownSetting: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IdleShutdownSetting", + modelProperties: { + idleTimeBeforeShutdown: { + serializedName: "idleTimeBeforeShutdown", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + } + } + } +}; + +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } + } + } + } + } +}; + +export const ListStorageAccountKeysResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListStorageAccountKeysResult", + modelProperties: { + userStorageKey: { serializedName: "userStorageKey", readOnly: true, type: { @@ -3113,10 +3459,10 @@ export const JobService: coreClient.CompositeMapper = { } }; -export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const LabelingJobResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelContainerResourceArmPaginatedResult", + className: "LabelingJobResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -3131,7 +3477,7 @@ export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMappe element: { type: { name: "Composite", - className: "ModelContainer" + className: "LabelingJob" } } } @@ -3140,92 +3486,389 @@ export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMappe } }; -export const ModelVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const LabelingDataConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelVersionResourceArmPaginatedResult", + className: "LabelingDataConfiguration", modelProperties: { - nextLink: { - serializedName: "nextLink", + dataId: { + serializedName: "dataId", + nullable: true, type: { name: "String" } }, - value: { - serializedName: "value", + incrementalDataRefreshEnabled: { + defaultValue: false, + serializedName: "incrementalDataRefreshEnabled", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ModelVersion" - } - } + name: "Boolean" } } } } }; -export const FlavorData: coreClient.CompositeMapper = { +export const LabelingJobInstructions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FlavorData", + className: "LabelingJobInstructions", modelProperties: { - data: { - serializedName: "data", + uri: { + serializedName: "uri", nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } } } } }; -export const OnlineEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const LabelCategory: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointTrackedResourceArmPaginatedResult", + className: "LabelCategory", modelProperties: { - nextLink: { - serializedName: "nextLink", + classes: { + serializedName: "classes", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "LabelClass" } } + } + }, + displayName: { + serializedName: "displayName", + nullable: true, type: { name: "String" } }, - value: { - serializedName: "value", + multiSelectEnabled: { + defaultValue: false, + serializedName: "multiSelectEnabled", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OnlineEndpoint" - } - } + name: "Boolean" } } } } }; -export const OnlineDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const LabelClass: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineDeploymentTrackedResourceArmPaginatedResult", + className: "LabelClass", modelProperties: { - nextLink: { - serializedName: "nextLink", + displayName: { + serializedName: "displayName", + nullable: true, type: { name: "String" } }, - value: { - serializedName: "value", + subclasses: { + serializedName: "subclasses", + nullable: true, type: { - name: "Sequence", + name: "Dictionary", + value: { type: { name: "Composite", className: "LabelClass" } } + } + } + } + } +}; + +export const LabelingJobMediaProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelingJobMediaProperties", + uberParent: "LabelingJobMediaProperties", + polymorphicDiscriminator: { + serializedName: "mediaType", + clientName: "mediaType" + }, + modelProperties: { + mediaType: { + serializedName: "mediaType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const MLAssistConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MLAssistConfiguration", + uberParent: "MLAssistConfiguration", + polymorphicDiscriminator: { + serializedName: "mlAssist", + clientName: "mlAssist" + }, + modelProperties: { + mlAssist: { + serializedName: "mlAssist", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ProgressMetrics: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProgressMetrics", + modelProperties: { + completedDatapointCount: { + serializedName: "completedDatapointCount", + readOnly: true, + nullable: true, + type: { + name: "Number" + } + }, + incrementalDataLastRefreshDateTime: { + serializedName: "incrementalDataLastRefreshDateTime", + readOnly: true, + nullable: true, + type: { + name: "DateTime" + } + }, + skippedDatapointCount: { + serializedName: "skippedDatapointCount", + readOnly: true, + nullable: true, + type: { + name: "Number" + } + }, + totalDatapointCount: { + serializedName: "totalDatapointCount", + readOnly: true, + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +export const StatusMessage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StatusMessage", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + createdDateTime: { + serializedName: "createdDateTime", + readOnly: true, + nullable: true, + type: { + name: "DateTime" + } + }, + level: { + serializedName: "level", + readOnly: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const ExportSummary: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExportSummary", + uberParent: "ExportSummary", + polymorphicDiscriminator: { + serializedName: "format", + clientName: "format" + }, + modelProperties: { + endDateTime: { + serializedName: "endDateTime", + readOnly: true, + nullable: true, + type: { + name: "DateTime" + } + }, + exportedRowCount: { + serializedName: "exportedRowCount", + readOnly: true, + nullable: true, + type: { + name: "Number" + } + }, + format: { + serializedName: "format", + required: true, + type: { + name: "String" + } + }, + labelingJobId: { + serializedName: "labelingJobId", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + startDateTime: { + serializedName: "startDateTime", + readOnly: true, + nullable: true, + type: { + name: "DateTime" + } + } + } + } +}; + +export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelContainerResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ModelContainer" + } + } + } + } + } + } +}; + +export const ModelVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelVersionResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ModelVersion" + } + } + } + } + } + } +}; + +export const FlavorData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FlavorData", + modelProperties: { + data: { + serializedName: "data", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const OnlineEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineEndpointTrackedResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OnlineEndpoint" + } + } + } + } + } + } +}; + +export const OnlineDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineDeploymentTrackedResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", element: { type: { name: "Composite", @@ -3591,12 +4234,102 @@ export const EndpointAuthToken: coreClient.CompositeMapper = { } }; -export const ListAmlUserFeatureResult: coreClient.CompositeMapper = { +export const ScheduleResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListAmlUserFeatureResult", + className: "ScheduleResourceArmPaginatedResult", modelProperties: { - value: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Schedule" + } + } + } + } + } + } +}; + +export const ScheduleActionBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScheduleActionBase", + uberParent: "ScheduleActionBase", + polymorphicDiscriminator: { + serializedName: "actionType", + clientName: "actionType" + }, + modelProperties: { + actionType: { + serializedName: "actionType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const TriggerBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TriggerBase", + uberParent: "TriggerBase", + polymorphicDiscriminator: { + serializedName: "triggerType", + clientName: "triggerType" + }, + modelProperties: { + endTime: { + serializedName: "endTime", + nullable: true, + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + nullable: true, + type: { + name: "String" + } + }, + timeZone: { + defaultValue: "UTC", + serializedName: "timeZone", + type: { + name: "String" + } + }, + triggerType: { + serializedName: "triggerType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ListAmlUserFeatureResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListAmlUserFeatureResult", + modelProperties: { + value: { serializedName: "value", readOnly: true, type: { @@ -4294,6 +5027,19 @@ export const ComputeInstanceProperties: coreClient.CompositeMapper = { className: "ComputeInstanceSshSettings" } }, + customServices: { + serializedName: "customServices", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CustomService" + } + } + } + }, connectivityEndpoints: { serializedName: "connectivityEndpoints", type: { @@ -4377,6 +5123,12 @@ export const ComputeInstanceProperties: coreClient.CompositeMapper = { className: "ComputeSchedules" } }, + idleTimeBeforeShutdown: { + serializedName: "idleTimeBeforeShutdown", + type: { + name: "String" + } + }, enableNodePublicIp: { serializedName: "enableNodePublicIp", type: { @@ -5486,32 +6238,18 @@ export const AssetJobOutput: coreClient.CompositeMapper = { } }; -export const EarlyTerminationPolicy: coreClient.CompositeMapper = { +export const ForecastHorizon: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EarlyTerminationPolicy", - uberParent: "EarlyTerminationPolicy", + className: "ForecastHorizon", + uberParent: "ForecastHorizon", polymorphicDiscriminator: { - serializedName: "policyType", - clientName: "policyType" + serializedName: "mode", + clientName: "mode" }, modelProperties: { - delayEvaluation: { - defaultValue: 0, - serializedName: "delayEvaluation", - type: { - name: "Number" - } - }, - evaluationInterval: { - defaultValue: 0, - serializedName: "evaluationInterval", - type: { - name: "Number" - } - }, - policyType: { - serializedName: "policyType", + mode: { + serializedName: "mode", required: true, type: { name: "String" @@ -5521,18 +6259,25 @@ export const EarlyTerminationPolicy: coreClient.CompositeMapper = { } }; -export const SamplingAlgorithm: coreClient.CompositeMapper = { +export const JobOutput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SamplingAlgorithm", - uberParent: "SamplingAlgorithm", + className: "JobOutput", + uberParent: "JobOutput", polymorphicDiscriminator: { - serializedName: "samplingAlgorithmType", - clientName: "samplingAlgorithmType" + serializedName: "jobOutputType", + clientName: "jobOutputType" }, modelProperties: { - samplingAlgorithmType: { - serializedName: "samplingAlgorithmType", + description: { + serializedName: "description", + nullable: true, + type: { + name: "String" + } + }, + jobOutputType: { + serializedName: "jobOutputType", required: true, type: { name: "String" @@ -5542,22 +6287,42 @@ export const SamplingAlgorithm: coreClient.CompositeMapper = { } }; -export const DistributionConfiguration: coreClient.CompositeMapper = { +export const AutoMLVertical: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DistributionConfiguration", - uberParent: "DistributionConfiguration", + className: "AutoMLVertical", + uberParent: "AutoMLVertical", polymorphicDiscriminator: { - serializedName: "distributionType", - clientName: "distributionType" + serializedName: "taskType", + clientName: "taskType" }, modelProperties: { - distributionType: { - serializedName: "distributionType", + logVerbosity: { + serializedName: "logVerbosity", + type: { + name: "String" + } + }, + targetColumnName: { + serializedName: "targetColumnName", + nullable: true, + type: { + name: "String" + } + }, + taskType: { + serializedName: "taskType", required: true, type: { name: "String" } + }, + trainingData: { + serializedName: "trainingData", + type: { + name: "Composite", + className: "MLTableJobInput" + } } } } @@ -5591,53 +6356,39 @@ export const JobInput: coreClient.CompositeMapper = { } }; -export const JobLimits: coreClient.CompositeMapper = { +export const NCrossValidations: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobLimits", - uberParent: "JobLimits", + className: "NCrossValidations", + uberParent: "NCrossValidations", polymorphicDiscriminator: { - serializedName: "jobLimitsType", - clientName: "jobLimitsType" + serializedName: "mode", + clientName: "mode" }, modelProperties: { - jobLimitsType: { - serializedName: "jobLimitsType", + mode: { + serializedName: "mode", required: true, type: { name: "String" } - }, - timeout: { - serializedName: "timeout", - nullable: true, - type: { - name: "TimeSpan" - } } } } }; -export const JobOutput: coreClient.CompositeMapper = { +export const Seasonality: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobOutput", - uberParent: "JobOutput", + className: "Seasonality", + uberParent: "Seasonality", polymorphicDiscriminator: { - serializedName: "jobOutputType", - clientName: "jobOutputType" + serializedName: "mode", + clientName: "mode" }, modelProperties: { - description: { - serializedName: "description", - nullable: true, - type: { - name: "String" - } - }, - jobOutputType: { - serializedName: "jobOutputType", + mode: { + serializedName: "mode", required: true, type: { name: "String" @@ -5647,50 +6398,62 @@ export const JobOutput: coreClient.CompositeMapper = { } }; -export const ContainerResourceRequirements: coreClient.CompositeMapper = { +export const TargetLags: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContainerResourceRequirements", + className: "TargetLags", + uberParent: "TargetLags", + polymorphicDiscriminator: { + serializedName: "mode", + clientName: "mode" + }, modelProperties: { - containerResourceLimits: { - serializedName: "containerResourceLimits", - type: { - name: "Composite", - className: "ContainerResourceSettings" - } - }, - containerResourceRequests: { - serializedName: "containerResourceRequests", + mode: { + serializedName: "mode", + required: true, type: { - name: "Composite", - className: "ContainerResourceSettings" + name: "String" } } } } }; -export const ContainerResourceSettings: coreClient.CompositeMapper = { +export const TargetRollingWindowSize: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContainerResourceSettings", + className: "TargetRollingWindowSize", + uberParent: "TargetRollingWindowSize", + polymorphicDiscriminator: { + serializedName: "mode", + clientName: "mode" + }, modelProperties: { - cpu: { - serializedName: "cpu", - nullable: true, + mode: { + serializedName: "mode", + required: true, type: { name: "String" } - }, - gpu: { - serializedName: "gpu", + } + } + } +}; + +export const AzureDatastore: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureDatastore", + modelProperties: { + resourceGroup: { + serializedName: "resourceGroup", nullable: true, type: { name: "String" } }, - memory: { - serializedName: "memory", + subscriptionId: { + serializedName: "subscriptionId", nullable: true, type: { name: "String" @@ -5700,23 +6463,32 @@ export const ContainerResourceSettings: coreClient.CompositeMapper = { } }; -export const Objective: coreClient.CompositeMapper = { +export const EarlyTerminationPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Objective", + className: "EarlyTerminationPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: { + serializedName: "policyType", + clientName: "policyType" + }, modelProperties: { - goal: { - serializedName: "goal", - required: true, + delayEvaluation: { + defaultValue: 0, + serializedName: "delayEvaluation", type: { - name: "String" + name: "Number" } }, - primaryMetric: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "primaryMetric", + evaluationInterval: { + defaultValue: 0, + serializedName: "evaluationInterval", + type: { + name: "Number" + } + }, + policyType: { + serializedName: "policyType", required: true, type: { name: "String" @@ -5726,419 +6498,479 @@ export const Objective: coreClient.CompositeMapper = { } }; -export const TrialComponent: coreClient.CompositeMapper = { +export const SamplingAlgorithm: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrialComponent", + className: "SamplingAlgorithm", + uberParent: "SamplingAlgorithm", + polymorphicDiscriminator: { + serializedName: "samplingAlgorithmType", + clientName: "samplingAlgorithmType" + }, modelProperties: { - codeId: { - serializedName: "codeId", - nullable: true, - type: { - name: "String" - } - }, - command: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]"), - MinLength: 1 - }, - serializedName: "command", - required: true, - type: { - name: "String" - } - }, - distribution: { - serializedName: "distribution", - type: { - name: "Composite", - className: "DistributionConfiguration" - } - }, - environmentId: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "environmentId", + samplingAlgorithmType: { + serializedName: "samplingAlgorithmType", required: true, type: { name: "String" } - }, - environmentVariables: { - serializedName: "environmentVariables", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - resources: { - serializedName: "resources", - type: { - name: "Composite", - className: "ResourceConfiguration" - } } } } }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { +export const TrainingSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "TrainingSettings", modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "identity", + enableDnnTraining: { + defaultValue: false, + serializedName: "enableDnnTraining", type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "Boolean" } }, - location: { - serializedName: "location", + enableModelExplainability: { + defaultValue: true, + serializedName: "enableModelExplainability", type: { - name: "String" + name: "Boolean" } }, - tags: { - serializedName: "tags", + enableOnnxCompatibleModels: { + defaultValue: false, + serializedName: "enableOnnxCompatibleModels", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } }, - sku: { - serializedName: "sku", + enableStackEnsemble: { + defaultValue: true, + serializedName: "enableStackEnsemble", type: { - name: "Composite", - className: "Sku" + name: "Boolean" } }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + enableVoteEnsemble: { + defaultValue: true, + serializedName: "enableVoteEnsemble", type: { - name: "Composite", - className: "PrivateEndpoint" + name: "Boolean" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + ensembleModelDownloadTimeout: { + defaultValue: "PT5M", + serializedName: "ensembleModelDownloadTimeout", type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" + name: "TimeSpan" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + stackEnsembleSettings: { + serializedName: "stackEnsembleSettings", type: { - name: "String" + name: "Composite", + className: "StackEnsembleSettings" } } } } }; -export const Workspace: coreClient.CompositeMapper = { +export const StackEnsembleSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Workspace", + className: "StackEnsembleSettings", modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "identity", + stackMetaLearnerKWargs: { + serializedName: "stackMetaLearnerKWargs", + nullable: true, type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "Dictionary", + value: { type: { name: "any" } } } }, - location: { - serializedName: "location", + stackMetaLearnerTrainPercentage: { + defaultValue: 0.2, + serializedName: "stackMetaLearnerTrainPercentage", type: { - name: "String" + name: "Number" } }, - tags: { - serializedName: "tags", + stackMetaLearnerType: { + serializedName: "stackMetaLearnerType", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" + } + } + } + } +}; + +export const TableVertical: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TableVertical", + modelProperties: { + cvSplitColumnNames: { + serializedName: "cvSplitColumnNames", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - sku: { - serializedName: "sku", + featurizationSettings: { + serializedName: "featurizationSettings", type: { name: "Composite", - className: "Sku" + className: "TableVerticalFeaturizationSettings" } }, - workspaceId: { - serializedName: "properties.workspaceId", - readOnly: true, + limitSettings: { + serializedName: "limitSettings", type: { - name: "String" + name: "Composite", + className: "TableVerticalLimitSettings" } }, - description: { - serializedName: "properties.description", + nCrossValidations: { + serializedName: "nCrossValidations", type: { - name: "String" + name: "Composite", + className: "NCrossValidations" } }, - friendlyName: { - serializedName: "properties.friendlyName", + testData: { + serializedName: "testData", type: { - name: "String" + name: "Composite", + className: "MLTableJobInput" } }, - keyVault: { - serializedName: "properties.keyVault", + testDataSize: { + serializedName: "testDataSize", + nullable: true, type: { - name: "String" + name: "Number" } }, - applicationInsights: { - serializedName: "properties.applicationInsights", + validationData: { + serializedName: "validationData", type: { - name: "String" + name: "Composite", + className: "MLTableJobInput" } }, - containerRegistry: { - serializedName: "properties.containerRegistry", + validationDataSize: { + serializedName: "validationDataSize", nullable: true, type: { - name: "String" + name: "Number" } }, - storageAccount: { - serializedName: "properties.storageAccount", + weightColumnName: { + serializedName: "weightColumnName", + nullable: true, type: { name: "String" } - }, - discoveryUrl: { - serializedName: "properties.discoveryUrl", + } + } + } +}; + +export const ColumnTransformer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ColumnTransformer", + modelProperties: { + fields: { + serializedName: "fields", + nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + parameters: { + serializedName: "parameters", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } - }, - encryption: { - serializedName: "properties.encryption", + } + } + } +}; + +export const FeaturizationSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturizationSettings", + modelProperties: { + datasetLanguage: { + serializedName: "datasetLanguage", + nullable: true, type: { - name: "Composite", - className: "EncryptionProperty" + name: "String" } - }, - hbiWorkspace: { - defaultValue: false, - serializedName: "properties.hbiWorkspace", + } + } + } +}; + +export const TableVerticalLimitSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TableVerticalLimitSettings", + modelProperties: { + enableEarlyTermination: { + defaultValue: true, + serializedName: "enableEarlyTermination", type: { name: "Boolean" } }, - serviceProvisionedResourceGroup: { - serializedName: "properties.serviceProvisionedResourceGroup", - readOnly: true, + exitScore: { + serializedName: "exitScore", + nullable: true, type: { - name: "String" + name: "Number" } }, - privateLinkCount: { - serializedName: "properties.privateLinkCount", - readOnly: true, + maxConcurrentTrials: { + defaultValue: 1, + serializedName: "maxConcurrentTrials", type: { name: "Number" } }, - imageBuildCompute: { - serializedName: "properties.imageBuildCompute", + maxCoresPerTrial: { + defaultValue: -1, + serializedName: "maxCoresPerTrial", type: { - name: "String" + name: "Number" } }, - allowPublicAccessWhenBehindVnet: { - defaultValue: false, - serializedName: "properties.allowPublicAccessWhenBehindVnet", + maxTrials: { + defaultValue: 1000, + serializedName: "maxTrials", type: { - name: "Boolean" + name: "Number" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + timeout: { + defaultValue: "PT6H", + serializedName: "timeout", type: { - name: "String" + name: "TimeSpan" } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - readOnly: true, + trialTimeout: { + defaultValue: "PT30M", + serializedName: "trialTimeout", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } + name: "TimeSpan" } - }, - sharedPrivateLinkResources: { - serializedName: "properties.sharedPrivateLinkResources", + } + } + } +}; + +export const DistributionConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DistributionConfiguration", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: { + serializedName: "distributionType", + clientName: "distributionType" + }, + modelProperties: { + distributionType: { + serializedName: "distributionType", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharedPrivateLinkResource" - } - } + name: "String" } - }, - notebookInfo: { - serializedName: "properties.notebookInfo", + } + } + } +}; + +export const JobLimits: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobLimits", + uberParent: "JobLimits", + polymorphicDiscriminator: { + serializedName: "jobLimitsType", + clientName: "jobLimitsType" + }, + modelProperties: { + jobLimitsType: { + serializedName: "jobLimitsType", + required: true, type: { - name: "Composite", - className: "NotebookResourceInfo" + name: "String" } }, - serviceManagedResourcesSettings: { - serializedName: "properties.serviceManagedResourcesSettings", + timeout: { + serializedName: "timeout", + nullable: true, type: { - name: "Composite", - className: "ServiceManagedResourcesSettings" + name: "TimeSpan" } - }, - primaryUserAssignedIdentity: { - serializedName: "properties.primaryUserAssignedIdentity", + } + } + } +}; + +export const ContainerResourceRequirements: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContainerResourceRequirements", + modelProperties: { + containerResourceLimits: { + serializedName: "containerResourceLimits", type: { - name: "String" + name: "Composite", + className: "ContainerResourceSettings" } }, - tenantId: { - serializedName: "properties.tenantId", - readOnly: true, + containerResourceRequests: { + serializedName: "containerResourceRequests", type: { - name: "String" + name: "Composite", + className: "ContainerResourceSettings" } - }, - storageHnsEnabled: { - serializedName: "properties.storageHnsEnabled", - readOnly: true, + } + } + } +}; + +export const ContainerResourceSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContainerResourceSettings", + modelProperties: { + cpu: { + serializedName: "cpu", + nullable: true, type: { - name: "Boolean" + name: "String" } }, - mlFlowTrackingUri: { - serializedName: "properties.mlFlowTrackingUri", - readOnly: true, + gpu: { + serializedName: "gpu", + nullable: true, type: { name: "String" } }, - v1LegacyMode: { - defaultValue: false, - serializedName: "properties.v1LegacyMode", + memory: { + serializedName: "memory", + nullable: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const ComputeResource: coreClient.CompositeMapper = { +export const ForecastingSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeResource", + className: "ForecastingSettings", modelProperties: { - ...Resource.type.modelProperties, - ...ComputeResourceSchema.type.modelProperties, - identity: { - serializedName: "identity", + countryOrRegionForHolidays: { + serializedName: "countryOrRegionForHolidays", + nullable: true, type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "String" } }, - location: { - serializedName: "location", + cvStepSize: { + serializedName: "cvStepSize", + nullable: true, + type: { + name: "Number" + } + }, + featureLags: { + serializedName: "featureLags", type: { name: "String" } }, - tags: { - serializedName: "tags", + forecastHorizon: { + serializedName: "forecastHorizon", + type: { + name: "Composite", + className: "ForecastHorizon" + } + }, + frequency: { + serializedName: "frequency", nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - sku: { - serializedName: "sku", + seasonality: { + serializedName: "seasonality", type: { name: "Composite", - className: "Sku" + className: "Seasonality" } - } - } - } -}; - -export const PrivateLinkResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkResource", - modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "identity", + }, + shortSeriesHandlingConfig: { + serializedName: "shortSeriesHandlingConfig", type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "String" } }, - location: { - serializedName: "location", + targetAggregateFunction: { + serializedName: "targetAggregateFunction", type: { name: "String" } }, - tags: { - serializedName: "tags", + targetLags: { + serializedName: "targetLags", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "TargetLags" } }, - sku: { - serializedName: "sku", + targetRollingWindowSize: { + serializedName: "targetRollingWindowSize", type: { name: "Composite", - className: "Sku" + className: "TargetRollingWindowSize" } }, - groupId: { - serializedName: "properties.groupId", - readOnly: true, + timeColumnName: { + serializedName: "timeColumnName", + nullable: true, type: { name: "String" } }, - requiredMembers: { - serializedName: "properties.requiredMembers", - readOnly: true, + timeSeriesIdColumnNames: { + serializedName: "timeSeriesIdColumnNames", + nullable: true, type: { name: "Sequence", element: { @@ -6148,567 +6980,2692 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { } } }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", + useStl: { + serializedName: "useStl", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const WorkspaceConnectionPropertiesV2BasicResource: coreClient.CompositeMapper = { +export const ImageModelSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionPropertiesV2BasicResource", + className: "ImageModelSettings", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + advancedSettings: { + serializedName: "advancedSettings", + nullable: true, type: { - name: "Composite", - className: "WorkspaceConnectionPropertiesV2" + name: "String" } - } - } - } -}; - -export const TrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", + }, + amsGradient: { + serializedName: "amsGradient", + nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } }, - location: { - serializedName: "location", - required: true, + augmentations: { + serializedName: "augmentations", + nullable: true, type: { name: "String" } - } - } - } -}; - -export const CodeContainer: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CodeContainer", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + }, + beta1: { + serializedName: "beta1", + nullable: true, type: { - name: "Composite", - className: "CodeContainerProperties" + name: "Number" } - } - } - } -}; - -export const CodeVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", + }, + beta2: { + serializedName: "beta2", + nullable: true, + type: { + name: "Number" + } + }, + checkpointFrequency: { + serializedName: "checkpointFrequency", + nullable: true, + type: { + name: "Number" + } + }, + checkpointModel: { + serializedName: "checkpointModel", + type: { + name: "Composite", + className: "MLFlowModelJobInput" + } + }, + checkpointRunId: { + serializedName: "checkpointRunId", + nullable: true, + type: { + name: "String" + } + }, + distributed: { + serializedName: "distributed", + nullable: true, + type: { + name: "Boolean" + } + }, + earlyStopping: { + serializedName: "earlyStopping", + nullable: true, + type: { + name: "Boolean" + } + }, + earlyStoppingDelay: { + serializedName: "earlyStoppingDelay", + nullable: true, + type: { + name: "Number" + } + }, + earlyStoppingPatience: { + serializedName: "earlyStoppingPatience", + nullable: true, + type: { + name: "Number" + } + }, + enableOnnxNormalization: { + serializedName: "enableOnnxNormalization", + nullable: true, + type: { + name: "Boolean" + } + }, + evaluationFrequency: { + serializedName: "evaluationFrequency", + nullable: true, + type: { + name: "Number" + } + }, + gradientAccumulationStep: { + serializedName: "gradientAccumulationStep", + nullable: true, + type: { + name: "Number" + } + }, + layersToFreeze: { + serializedName: "layersToFreeze", + nullable: true, + type: { + name: "Number" + } + }, + learningRate: { + serializedName: "learningRate", + nullable: true, + type: { + name: "Number" + } + }, + learningRateScheduler: { + serializedName: "learningRateScheduler", + type: { + name: "String" + } + }, + modelName: { + serializedName: "modelName", + nullable: true, + type: { + name: "String" + } + }, + momentum: { + serializedName: "momentum", + nullable: true, + type: { + name: "Number" + } + }, + nesterov: { + serializedName: "nesterov", + nullable: true, + type: { + name: "Boolean" + } + }, + numberOfEpochs: { + serializedName: "numberOfEpochs", + nullable: true, + type: { + name: "Number" + } + }, + numberOfWorkers: { + serializedName: "numberOfWorkers", + nullable: true, + type: { + name: "Number" + } + }, + optimizer: { + serializedName: "optimizer", + type: { + name: "String" + } + }, + randomSeed: { + serializedName: "randomSeed", + nullable: true, + type: { + name: "Number" + } + }, + stepLRGamma: { + serializedName: "stepLRGamma", + nullable: true, + type: { + name: "Number" + } + }, + stepLRStepSize: { + serializedName: "stepLRStepSize", + nullable: true, + type: { + name: "Number" + } + }, + trainingBatchSize: { + serializedName: "trainingBatchSize", + nullable: true, + type: { + name: "Number" + } + }, + validationBatchSize: { + serializedName: "validationBatchSize", + nullable: true, + type: { + name: "Number" + } + }, + warmupCosineLRCycles: { + serializedName: "warmupCosineLRCycles", + nullable: true, + type: { + name: "Number" + } + }, + warmupCosineLRWarmupEpochs: { + serializedName: "warmupCosineLRWarmupEpochs", + nullable: true, + type: { + name: "Number" + } + }, + weightDecay: { + serializedName: "weightDecay", + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +export const ImageModelDistributionSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageModelDistributionSettings", + modelProperties: { + amsGradient: { + serializedName: "amsGradient", + nullable: true, + type: { + name: "String" + } + }, + augmentations: { + serializedName: "augmentations", + nullable: true, + type: { + name: "String" + } + }, + beta1: { + serializedName: "beta1", + nullable: true, + type: { + name: "String" + } + }, + beta2: { + serializedName: "beta2", + nullable: true, + type: { + name: "String" + } + }, + distributed: { + serializedName: "distributed", + nullable: true, + type: { + name: "String" + } + }, + earlyStopping: { + serializedName: "earlyStopping", + nullable: true, + type: { + name: "String" + } + }, + earlyStoppingDelay: { + serializedName: "earlyStoppingDelay", + nullable: true, + type: { + name: "String" + } + }, + earlyStoppingPatience: { + serializedName: "earlyStoppingPatience", + nullable: true, + type: { + name: "String" + } + }, + enableOnnxNormalization: { + serializedName: "enableOnnxNormalization", + nullable: true, + type: { + name: "String" + } + }, + evaluationFrequency: { + serializedName: "evaluationFrequency", + nullable: true, + type: { + name: "String" + } + }, + gradientAccumulationStep: { + serializedName: "gradientAccumulationStep", + nullable: true, + type: { + name: "String" + } + }, + layersToFreeze: { + serializedName: "layersToFreeze", + nullable: true, + type: { + name: "String" + } + }, + learningRate: { + serializedName: "learningRate", + nullable: true, + type: { + name: "String" + } + }, + learningRateScheduler: { + serializedName: "learningRateScheduler", + nullable: true, + type: { + name: "String" + } + }, + modelName: { + serializedName: "modelName", + nullable: true, + type: { + name: "String" + } + }, + momentum: { + serializedName: "momentum", + nullable: true, + type: { + name: "String" + } + }, + nesterov: { + serializedName: "nesterov", + nullable: true, + type: { + name: "String" + } + }, + numberOfEpochs: { + serializedName: "numberOfEpochs", + nullable: true, + type: { + name: "String" + } + }, + numberOfWorkers: { + serializedName: "numberOfWorkers", + nullable: true, + type: { + name: "String" + } + }, + optimizer: { + serializedName: "optimizer", + nullable: true, + type: { + name: "String" + } + }, + randomSeed: { + serializedName: "randomSeed", + nullable: true, + type: { + name: "String" + } + }, + stepLRGamma: { + serializedName: "stepLRGamma", + nullable: true, + type: { + name: "String" + } + }, + stepLRStepSize: { + serializedName: "stepLRStepSize", + nullable: true, + type: { + name: "String" + } + }, + trainingBatchSize: { + serializedName: "trainingBatchSize", + nullable: true, + type: { + name: "String" + } + }, + validationBatchSize: { + serializedName: "validationBatchSize", + nullable: true, + type: { + name: "String" + } + }, + warmupCosineLRCycles: { + serializedName: "warmupCosineLRCycles", + nullable: true, + type: { + name: "String" + } + }, + warmupCosineLRWarmupEpochs: { + serializedName: "warmupCosineLRWarmupEpochs", + nullable: true, + type: { + name: "String" + } + }, + weightDecay: { + serializedName: "weightDecay", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const ImageVertical: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageVertical", + modelProperties: { + limitSettings: { + serializedName: "limitSettings", + type: { + name: "Composite", + className: "ImageLimitSettings" + } + }, + sweepSettings: { + serializedName: "sweepSettings", + type: { + name: "Composite", + className: "ImageSweepSettings" + } + }, + validationData: { + serializedName: "validationData", + type: { + name: "Composite", + className: "MLTableJobInput" + } + }, + validationDataSize: { + serializedName: "validationDataSize", + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +export const ImageLimitSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageLimitSettings", + modelProperties: { + maxConcurrentTrials: { + defaultValue: 1, + serializedName: "maxConcurrentTrials", + type: { + name: "Number" + } + }, + maxTrials: { + defaultValue: 1, + serializedName: "maxTrials", + type: { + name: "Number" + } + }, + timeout: { + defaultValue: "P7D", + serializedName: "timeout", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const ImageSweepSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageSweepSettings", + modelProperties: { + earlyTermination: { + serializedName: "earlyTermination", + type: { + name: "Composite", + className: "EarlyTerminationPolicy" + } + }, + limits: { + serializedName: "limits", + type: { + name: "Composite", + className: "ImageSweepLimitSettings" + } + }, + samplingAlgorithm: { + serializedName: "samplingAlgorithm", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ImageSweepLimitSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageSweepLimitSettings", + modelProperties: { + maxConcurrentTrials: { + serializedName: "maxConcurrentTrials", + nullable: true, + type: { + name: "Number" + } + }, + maxTrials: { + serializedName: "maxTrials", + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +export const KerberosCredentials: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KerberosCredentials", + modelProperties: { + kerberosKdcAddress: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "kerberosKdcAddress", + required: true, + type: { + name: "String" + } + }, + kerberosPrincipal: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "kerberosPrincipal", + required: true, + type: { + name: "String" + } + }, + kerberosRealm: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "kerberosRealm", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const NlpVertical: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NlpVertical", + modelProperties: { + featurizationSettings: { + serializedName: "featurizationSettings", + type: { + name: "Composite", + className: "NlpVerticalFeaturizationSettings" + } + }, + limitSettings: { + serializedName: "limitSettings", + type: { + name: "Composite", + className: "NlpVerticalLimitSettings" + } + }, + validationData: { + serializedName: "validationData", + type: { + name: "Composite", + className: "MLTableJobInput" + } + } + } + } +}; + +export const NlpVerticalLimitSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NlpVerticalLimitSettings", + modelProperties: { + maxConcurrentTrials: { + defaultValue: 1, + serializedName: "maxConcurrentTrials", + type: { + name: "Number" + } + }, + maxTrials: { + defaultValue: 1, + serializedName: "maxTrials", + type: { + name: "Number" + } + }, + timeout: { + serializedName: "timeout", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const Objective: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Objective", + modelProperties: { + goal: { + serializedName: "goal", + required: true, + type: { + name: "String" + } + }, + primaryMetric: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "primaryMetric", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const RecurrenceSchedule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RecurrenceSchedule", + modelProperties: { + hours: { + serializedName: "hours", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Number" + } + } + } + }, + minutes: { + serializedName: "minutes", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Number" + } + } + } + }, + weekDays: { + serializedName: "weekDays", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const SparkJobEntry: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SparkJobEntry", + uberParent: "SparkJobEntry", + polymorphicDiscriminator: { + serializedName: "sparkJobEntryType", + clientName: "sparkJobEntryType" + }, + modelProperties: { + sparkJobEntryType: { + serializedName: "sparkJobEntryType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const SparkResourceConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SparkResourceConfiguration", + modelProperties: { + instanceType: { + serializedName: "instanceType", + nullable: true, + type: { + name: "String" + } + }, + runtimeVersion: { + defaultValue: "3.1", + serializedName: "runtimeVersion", + type: { + name: "String" + } + } + } + } +}; + +export const TrialComponent: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrialComponent", + modelProperties: { + codeId: { + serializedName: "codeId", + nullable: true, + type: { + name: "String" + } + }, + command: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "command", + required: true, + type: { + name: "String" + } + }, + distribution: { + serializedName: "distribution", + type: { + name: "Composite", + className: "DistributionConfiguration" + } + }, + environmentId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "environmentId", + required: true, + type: { + name: "String" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "JobResourceConfiguration" + } + } + } + } +}; + +export const PrivateEndpointConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint" + } + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const Workspace: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Workspace", + modelProperties: { + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + workspaceId: { + serializedName: "properties.workspaceId", + readOnly: true, + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + friendlyName: { + serializedName: "properties.friendlyName", + type: { + name: "String" + } + }, + keyVault: { + serializedName: "properties.keyVault", + type: { + name: "String" + } + }, + applicationInsights: { + serializedName: "properties.applicationInsights", + type: { + name: "String" + } + }, + containerRegistry: { + serializedName: "properties.containerRegistry", + nullable: true, + type: { + name: "String" + } + }, + storageAccount: { + serializedName: "properties.storageAccount", + type: { + name: "String" + } + }, + discoveryUrl: { + serializedName: "properties.discoveryUrl", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "EncryptionProperty" + } + }, + hbiWorkspace: { + defaultValue: false, + serializedName: "properties.hbiWorkspace", + type: { + name: "Boolean" + } + }, + serviceProvisionedResourceGroup: { + serializedName: "properties.serviceProvisionedResourceGroup", + readOnly: true, + type: { + name: "String" + } + }, + privateLinkCount: { + serializedName: "properties.privateLinkCount", + readOnly: true, + type: { + name: "Number" + } + }, + imageBuildCompute: { + serializedName: "properties.imageBuildCompute", + type: { + name: "String" + } + }, + allowPublicAccessWhenBehindVnet: { + defaultValue: false, + serializedName: "properties.allowPublicAccessWhenBehindVnet", + type: { + name: "Boolean" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + sharedPrivateLinkResources: { + serializedName: "properties.sharedPrivateLinkResources", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedPrivateLinkResource" + } + } + } + }, + notebookInfo: { + serializedName: "properties.notebookInfo", + type: { + name: "Composite", + className: "NotebookResourceInfo" + } + }, + serviceManagedResourcesSettings: { + serializedName: "properties.serviceManagedResourcesSettings", + type: { + name: "Composite", + className: "ServiceManagedResourcesSettings" + } + }, + primaryUserAssignedIdentity: { + serializedName: "properties.primaryUserAssignedIdentity", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "properties.tenantId", + readOnly: true, + type: { + name: "String" + } + }, + storageHnsEnabled: { + serializedName: "properties.storageHnsEnabled", + readOnly: true, + type: { + name: "Boolean" + } + }, + mlFlowTrackingUri: { + serializedName: "properties.mlFlowTrackingUri", + readOnly: true, + type: { + name: "String" + } + }, + v1LegacyMode: { + defaultValue: false, + serializedName: "properties.v1LegacyMode", + type: { + name: "Boolean" + } + }, + softDeletedAt: { + serializedName: "properties.softDeletedAt", + readOnly: true, + type: { + name: "String" + } + }, + scheduledPurgeDate: { + serializedName: "properties.scheduledPurgeDate", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ComputeResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeResource", + modelProperties: { + ...Resource.type.modelProperties, + ...ComputeResourceSchema.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +export const PrivateLinkResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + groupId: { + serializedName: "properties.groupId", + readOnly: true, + type: { + name: "String" + } + }, + requiredMembers: { + serializedName: "properties.requiredMembers", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const WorkspaceConnectionPropertiesV2BasicResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionPropertiesV2BasicResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "WorkspaceConnectionPropertiesV2" + } + } + } + } +}; + +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + location: { + serializedName: "location", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const CodeContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CodeContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CodeContainerProperties" + } + } + } + } +}; + +export const CodeVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", className: "CodeVersion", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CodeVersionProperties" + } + } + } + } +}; + +export const ComponentContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ComponentContainerProperties" + } + } + } + } +}; + +export const ComponentVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentVersion", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ComponentVersionProperties" + } + } + } + } +}; + +export const DataContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataContainerProperties" + } + } + } + } +}; + +export const DataVersionBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataVersionBase", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataVersionBaseProperties" + } + } + } + } +}; + +export const Datastore: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Datastore", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DatastoreProperties" + } + } + } + } +}; + +export const EnvironmentContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "EnvironmentContainerProperties" + } + } + } + } +}; + +export const EnvironmentVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentVersion", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "EnvironmentVersionProperties" + } + } + } + } +}; + +export const JobBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobBase", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "JobBaseProperties" + } + } + } + } +}; + +export const LabelingJob: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelingJob", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "LabelingJobProperties" + } + } + } + } +}; + +export const ModelContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ModelContainerProperties" + } + } + } + } +}; + +export const ModelVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelVersion", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ModelVersionProperties" + } + } + } + } +}; + +export const Schedule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Schedule", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ScheduleProperties" + } + } + } + } +}; + +export const Aks: coreClient.CompositeMapper = { + serializedName: "AKS", + type: { + name: "Composite", + className: "Aks", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...AKSSchema.type.modelProperties + } + } +}; + +export const Kubernetes: coreClient.CompositeMapper = { + serializedName: "Kubernetes", + type: { + name: "Composite", + className: "Kubernetes", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...KubernetesSchema.type.modelProperties + } + } +}; + +export const AmlCompute: coreClient.CompositeMapper = { + serializedName: "AmlCompute", + type: { + name: "Composite", + className: "AmlCompute", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...AmlComputeSchema.type.modelProperties + } + } +}; + +export const ComputeInstance: coreClient.CompositeMapper = { + serializedName: "ComputeInstance", + type: { + name: "Composite", + className: "ComputeInstance", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...ComputeInstanceSchema.type.modelProperties + } + } +}; + +export const VirtualMachine: coreClient.CompositeMapper = { + serializedName: "VirtualMachine", + type: { + name: "Composite", + className: "VirtualMachine", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...VirtualMachineSchema.type.modelProperties + } + } +}; + +export const HDInsight: coreClient.CompositeMapper = { + serializedName: "HDInsight", + type: { + name: "Composite", + className: "HDInsight", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...HDInsightSchema.type.modelProperties + } + } +}; + +export const DataFactory: coreClient.CompositeMapper = { + serializedName: "DataFactory", + type: { + name: "Composite", + className: "DataFactory", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties + } + } +}; + +export const Databricks: coreClient.CompositeMapper = { + serializedName: "Databricks", + type: { + name: "Composite", + className: "Databricks", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...DatabricksSchema.type.modelProperties + } + } +}; + +export const DataLakeAnalytics: coreClient.CompositeMapper = { + serializedName: "DataLakeAnalytics", + type: { + name: "Composite", + className: "DataLakeAnalytics", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...DataLakeAnalyticsSchema.type.modelProperties + } + } +}; + +export const SynapseSpark: coreClient.CompositeMapper = { + serializedName: "SynapseSpark", + type: { + name: "Composite", + className: "SynapseSpark", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "SynapseSparkProperties" + } + } + } + } +}; + +export const AksComputeSecrets: coreClient.CompositeMapper = { + serializedName: "AKS", + type: { + name: "Composite", + className: "AksComputeSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...ComputeSecrets.type.modelProperties, + ...AksComputeSecretsProperties.type.modelProperties + } + } +}; + +export const VirtualMachineSecrets: coreClient.CompositeMapper = { + serializedName: "VirtualMachine", + type: { + name: "Composite", + className: "VirtualMachineSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...ComputeSecrets.type.modelProperties, + ...VirtualMachineSecretsSchema.type.modelProperties + } + } +}; + +export const DatabricksComputeSecrets: coreClient.CompositeMapper = { + serializedName: "Databricks", + type: { + name: "Composite", + className: "DatabricksComputeSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...ComputeSecrets.type.modelProperties, + ...DatabricksComputeSecretsProperties.type.modelProperties + } + } +}; + +export const PATAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "PAT", + type: { + name: "Composite", + className: "PATAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "WorkspaceConnectionPersonalAccessToken" + } + } + } + } +}; + +export const SASAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "SAS", + type: { + name: "Composite", + className: "SASAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "WorkspaceConnectionSharedAccessSignature" + } + } + } + } +}; + +export const UsernamePasswordAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "UsernamePassword", + type: { + name: "Composite", + className: "UsernamePasswordAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "WorkspaceConnectionUsernamePassword" + } + } + } + } +}; + +export const NoneAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "None", + type: { + name: "Composite", + className: "NoneAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties + } + } +}; + +export const ManagedIdentityAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "ManagedIdentity", + type: { + name: "Composite", + className: "ManagedIdentityAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "WorkspaceConnectionManagedIdentity" + } + } + } + } +}; + +export const BatchEndpointProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchEndpointProperties", + modelProperties: { + ...EndpointPropertiesBase.type.modelProperties, + defaults: { + serializedName: "defaults", + type: { + name: "Composite", + className: "BatchEndpointDefaults" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const OnlineEndpointProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineEndpointProperties", + modelProperties: { + ...EndpointPropertiesBase.type.modelProperties, + compute: { + serializedName: "compute", + nullable: true, + type: { + name: "String" + } + }, + mirrorTraffic: { + serializedName: "mirrorTraffic", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Number" } } + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + publicNetworkAccess: { + serializedName: "publicNetworkAccess", + type: { + name: "String" + } + }, + traffic: { + serializedName: "traffic", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Number" } } + } + } + } + } +}; + +export const PartialMinimalTrackedResourceWithIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialMinimalTrackedResourceWithIdentity", + modelProperties: { + ...PartialMinimalTrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "PartialManagedServiceIdentity" + } + } + } + } +}; + +export const PartialMinimalTrackedResourceWithSku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialMinimalTrackedResourceWithSku", + modelProperties: { + ...PartialMinimalTrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "PartialSku" + } + } + } + } +}; + +export const DataPathAssetReference: coreClient.CompositeMapper = { + serializedName: "DataPath", + type: { + name: "Composite", + className: "DataPathAssetReference", + uberParent: "AssetReferenceBase", + polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + modelProperties: { + ...AssetReferenceBase.type.modelProperties, + datastoreId: { + serializedName: "datastoreId", + nullable: true, + type: { + name: "String" + } + }, + path: { + serializedName: "path", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const IdAssetReference: coreClient.CompositeMapper = { + serializedName: "Id", + type: { + name: "Composite", + className: "IdAssetReference", + uberParent: "AssetReferenceBase", + polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + modelProperties: { + ...AssetReferenceBase.type.modelProperties, + assetId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "assetId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const OutputPathAssetReference: coreClient.CompositeMapper = { + serializedName: "OutputPath", + type: { + name: "Composite", + className: "OutputPathAssetReference", + uberParent: "AssetReferenceBase", + polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + modelProperties: { + ...AssetReferenceBase.type.modelProperties, + jobId: { + serializedName: "jobId", + nullable: true, + type: { + name: "String" + } + }, + path: { + serializedName: "path", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const DeploymentResourceConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeploymentResourceConfiguration", + modelProperties: { + ...ResourceConfiguration.type.modelProperties + } + } +}; + +export const JobResourceConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobResourceConfiguration", + modelProperties: { + ...ResourceConfiguration.type.modelProperties, + dockerArgs: { + serializedName: "dockerArgs", + nullable: true, + type: { + name: "String" + } + }, + shmSize: { + defaultValue: "2g", + constraints: { + Pattern: new RegExp("\\d+[bBkKmMgG]") + }, + serializedName: "shmSize", + type: { + name: "String" + } + } + } + } +}; + +export const BatchDeploymentProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchDeploymentProperties", + modelProperties: { + ...EndpointDeploymentPropertiesBase.type.modelProperties, + compute: { + serializedName: "compute", + nullable: true, + type: { + name: "String" + } + }, + errorThreshold: { + defaultValue: -1, + serializedName: "errorThreshold", + type: { + name: "Number" + } + }, + loggingLevel: { + serializedName: "loggingLevel", + type: { + name: "String" + } + }, + maxConcurrencyPerInstance: { + defaultValue: 1, + serializedName: "maxConcurrencyPerInstance", + type: { + name: "Number" + } + }, + miniBatchSize: { + defaultValue: 10, + serializedName: "miniBatchSize", + type: { + name: "Number" + } + }, + model: { + serializedName: "model", + type: { + name: "Composite", + className: "AssetReferenceBase" + } + }, + outputAction: { + serializedName: "outputAction", + type: { + name: "String" + } + }, + outputFileName: { + defaultValue: "predictions.csv", + serializedName: "outputFileName", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "DeploymentResourceConfiguration" + } + }, + retrySettings: { + serializedName: "retrySettings", + type: { + name: "Composite", + className: "BatchRetrySettings" + } + } + } + } +}; + +export const OnlineDeploymentProperties: coreClient.CompositeMapper = { + serializedName: "OnlineDeploymentProperties", + type: { + name: "Composite", + className: "OnlineDeploymentProperties", + uberParent: "EndpointDeploymentPropertiesBase", + polymorphicDiscriminator: { + serializedName: "endpointComputeType", + clientName: "endpointComputeType" + }, + modelProperties: { + ...EndpointDeploymentPropertiesBase.type.modelProperties, + appInsightsEnabled: { + defaultValue: false, + serializedName: "appInsightsEnabled", + type: { + name: "Boolean" + } + }, + egressPublicNetworkAccess: { + serializedName: "egressPublicNetworkAccess", + type: { + name: "String" + } + }, + endpointComputeType: { + serializedName: "endpointComputeType", + required: true, + type: { + name: "String" + } + }, + instanceType: { + serializedName: "instanceType", + nullable: true, + type: { + name: "String" + } + }, + livenessProbe: { + serializedName: "livenessProbe", type: { name: "Composite", - className: "CodeVersionProperties" + className: "ProbeSettings" } - } - } - } -}; - -export const ComponentContainer: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComponentContainer", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + }, + model: { + serializedName: "model", + nullable: true, + type: { + name: "String" + } + }, + modelMountPath: { + serializedName: "modelMountPath", + nullable: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + readinessProbe: { + serializedName: "readinessProbe", type: { name: "Composite", - className: "ComponentContainerProperties" + className: "ProbeSettings" } - } - } - } -}; - -export const ComponentVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComponentVersion", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + }, + requestSettings: { + serializedName: "requestSettings", type: { name: "Composite", - className: "ComponentVersionProperties" + className: "OnlineRequestSettings" + } + }, + scaleSettings: { + serializedName: "scaleSettings", + type: { + name: "Composite", + className: "OnlineScaleSettings" } } } } }; -export const DataContainer: coreClient.CompositeMapper = { +export const AssetContainer: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataContainer", + className: "AssetContainer", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...ResourceBase.type.modelProperties, + isArchived: { + defaultValue: false, + serializedName: "isArchived", type: { - name: "Composite", - className: "DataContainerProperties" + name: "Boolean" + } + }, + latestVersion: { + serializedName: "latestVersion", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + nextVersion: { + serializedName: "nextVersion", + readOnly: true, + nullable: true, + type: { + name: "String" } } } } }; -export const DataVersionBase: coreClient.CompositeMapper = { +export const AssetBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataVersionBase", + className: "AssetBase", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...ResourceBase.type.modelProperties, + isAnonymous: { + defaultValue: false, + serializedName: "isAnonymous", type: { - name: "Composite", - className: "DataVersionBaseProperties" + name: "Boolean" + } + }, + isArchived: { + defaultValue: false, + serializedName: "isArchived", + type: { + name: "Boolean" } } } } }; -export const Datastore: coreClient.CompositeMapper = { +export const DatastoreProperties: coreClient.CompositeMapper = { + serializedName: "DatastoreProperties", type: { name: "Composite", - className: "Datastore", + className: "DatastoreProperties", + uberParent: "ResourceBase", + polymorphicDiscriminator: { + serializedName: "datastoreType", + clientName: "datastoreType" + }, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...ResourceBase.type.modelProperties, + credentials: { + serializedName: "credentials", type: { name: "Composite", - className: "DatastoreProperties" + className: "DatastoreCredentials" + } + }, + datastoreType: { + serializedName: "datastoreType", + required: true, + type: { + name: "String" + } + }, + isDefault: { + serializedName: "isDefault", + readOnly: true, + type: { + name: "Boolean" } } } } }; -export const EnvironmentContainer: coreClient.CompositeMapper = { +export const JobBaseProperties: coreClient.CompositeMapper = { + serializedName: "JobBaseProperties", type: { name: "Composite", - className: "EnvironmentContainer", + className: "JobBaseProperties", + uberParent: "ResourceBase", + polymorphicDiscriminator: { + serializedName: "jobType", + clientName: "jobType" + }, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...ResourceBase.type.modelProperties, + componentId: { + serializedName: "componentId", + nullable: true, + type: { + name: "String" + } + }, + computeId: { + serializedName: "computeId", + nullable: true, + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + nullable: true, + type: { + name: "String" + } + }, + experimentName: { + defaultValue: "Default", + serializedName: "experimentName", + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", type: { name: "Composite", - className: "EnvironmentContainerProperties" + className: "IdentityConfiguration" + } + }, + isArchived: { + defaultValue: false, + serializedName: "isArchived", + type: { + name: "Boolean" + } + }, + jobType: { + serializedName: "jobType", + required: true, + type: { + name: "String" + } + }, + services: { + serializedName: "services", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobService" } } + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String" } } } } }; -export const EnvironmentVersion: coreClient.CompositeMapper = { +export const ScheduleProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentVersion", + className: "ScheduleProperties", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...ResourceBase.type.modelProperties, + action: { + serializedName: "action", + type: { + name: "Composite", + className: "ScheduleActionBase" + } + }, + displayName: { + serializedName: "displayName", + nullable: true, + type: { + name: "String" + } + }, + isEnabled: { + defaultValue: true, + serializedName: "isEnabled", + type: { + name: "Boolean" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + trigger: { + serializedName: "trigger", type: { name: "Composite", - className: "EnvironmentVersionProperties" + className: "TriggerBase" } } } } }; -export const JobBase: coreClient.CompositeMapper = { +export const AccountKeyDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "AccountKey", type: { name: "Composite", - className: "JobBase", + className: "AccountKeyDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", type: { name: "Composite", - className: "JobBaseProperties" + className: "AccountKeyDatastoreSecrets" } } } } }; -export const ModelContainer: coreClient.CompositeMapper = { +export const CertificateDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "Certificate", type: { name: "Composite", - className: "ModelContainer", + className: "CertificateDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...DatastoreCredentials.type.modelProperties, + authorityUrl: { + serializedName: "authorityUrl", + nullable: true, + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", + required: true, + type: { + name: "Uuid" + } + }, + resourceUrl: { + serializedName: "resourceUrl", + nullable: true, + type: { + name: "String" + } + }, + secrets: { + serializedName: "secrets", type: { name: "Composite", - className: "ModelContainerProperties" + className: "CertificateDatastoreSecrets" + } + }, + tenantId: { + serializedName: "tenantId", + required: true, + type: { + name: "Uuid" + } + }, + thumbprint: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "thumbprint", + required: true, + type: { + name: "String" } } } } }; -export const ModelVersion: coreClient.CompositeMapper = { +export const KerberosKeytabCredentials: coreClient.CompositeMapper = { + serializedName: "KerberosKeytab", type: { name: "Composite", - className: "ModelVersion", + className: "KerberosKeytabCredentials", + uberParent: "KerberosCredentials", + polymorphicDiscriminator: KerberosCredentials.type.polymorphicDiscriminator, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...KerberosCredentials.type.modelProperties, + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", type: { name: "Composite", - className: "ModelVersionProperties" + className: "KerberosKeytabSecrets" } } } } }; -export const Aks: coreClient.CompositeMapper = { - serializedName: "AKS", - type: { - name: "Composite", - className: "Aks", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - modelProperties: { - ...Compute.type.modelProperties, - ...AKSSchema.type.modelProperties - } - } -}; - -export const Kubernetes: coreClient.CompositeMapper = { - serializedName: "Kubernetes", - type: { - name: "Composite", - className: "Kubernetes", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - modelProperties: { - ...Compute.type.modelProperties, - ...KubernetesSchema.type.modelProperties - } - } -}; - -export const AmlCompute: coreClient.CompositeMapper = { - serializedName: "AmlCompute", - type: { - name: "Composite", - className: "AmlCompute", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - modelProperties: { - ...Compute.type.modelProperties, - ...AmlComputeSchema.type.modelProperties - } - } -}; - -export const ComputeInstance: coreClient.CompositeMapper = { - serializedName: "ComputeInstance", - type: { - name: "Composite", - className: "ComputeInstance", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - modelProperties: { - ...Compute.type.modelProperties, - ...ComputeInstanceSchema.type.modelProperties - } - } -}; - -export const VirtualMachine: coreClient.CompositeMapper = { - serializedName: "VirtualMachine", - type: { - name: "Composite", - className: "VirtualMachine", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - modelProperties: { - ...Compute.type.modelProperties, - ...VirtualMachineSchema.type.modelProperties - } - } -}; - -export const HDInsight: coreClient.CompositeMapper = { - serializedName: "HDInsight", - type: { - name: "Composite", - className: "HDInsight", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - modelProperties: { - ...Compute.type.modelProperties, - ...HDInsightSchema.type.modelProperties - } - } -}; - -export const DataFactory: coreClient.CompositeMapper = { - serializedName: "DataFactory", - type: { - name: "Composite", - className: "DataFactory", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - modelProperties: { - ...Compute.type.modelProperties - } - } -}; - -export const Databricks: coreClient.CompositeMapper = { - serializedName: "Databricks", - type: { - name: "Composite", - className: "Databricks", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - modelProperties: { - ...Compute.type.modelProperties, - ...DatabricksSchema.type.modelProperties - } - } -}; - -export const DataLakeAnalytics: coreClient.CompositeMapper = { - serializedName: "DataLakeAnalytics", - type: { - name: "Composite", - className: "DataLakeAnalytics", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - modelProperties: { - ...Compute.type.modelProperties, - ...DataLakeAnalyticsSchema.type.modelProperties - } - } -}; - -export const SynapseSpark: coreClient.CompositeMapper = { - serializedName: "SynapseSpark", +export const KerberosPasswordCredentials: coreClient.CompositeMapper = { + serializedName: "KerberosPassword", type: { name: "Composite", - className: "SynapseSpark", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "KerberosPasswordCredentials", + uberParent: "KerberosCredentials", + polymorphicDiscriminator: KerberosCredentials.type.polymorphicDiscriminator, modelProperties: { - ...Compute.type.modelProperties, - properties: { - serializedName: "properties", + ...KerberosCredentials.type.modelProperties, + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", type: { name: "Composite", - className: "SynapseSparkProperties" + className: "KerberosPasswordSecrets" } } } } }; -export const AksComputeSecrets: coreClient.CompositeMapper = { - serializedName: "AKS", - type: { - name: "Composite", - className: "AksComputeSecrets", - uberParent: "ComputeSecrets", - polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, - modelProperties: { - ...ComputeSecrets.type.modelProperties, - ...AksComputeSecretsProperties.type.modelProperties - } - } -}; - -export const VirtualMachineSecrets: coreClient.CompositeMapper = { - serializedName: "VirtualMachine", - type: { - name: "Composite", - className: "VirtualMachineSecrets", - uberParent: "ComputeSecrets", - polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, - modelProperties: { - ...ComputeSecrets.type.modelProperties, - ...VirtualMachineSecretsSchema.type.modelProperties - } - } -}; - -export const DatabricksComputeSecrets: coreClient.CompositeMapper = { - serializedName: "Databricks", +export const NoneDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "None", type: { name: "Composite", - className: "DatabricksComputeSecrets", - uberParent: "ComputeSecrets", - polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + className: "NoneDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, modelProperties: { - ...ComputeSecrets.type.modelProperties, - ...DatabricksComputeSecretsProperties.type.modelProperties + ...DatastoreCredentials.type.modelProperties } } }; -export const PATAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "PAT", +export const SasDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "Sas", type: { name: "Composite", - className: "PATAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", + className: "SasDatastoreCredentials", + uberParent: "DatastoreCredentials", polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + DatastoreCredentials.type.polymorphicDiscriminator, modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", type: { name: "Composite", - className: "WorkspaceConnectionPersonalAccessToken" + className: "SasDatastoreSecrets" } } } } }; -export const SASAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "SAS", +export const ServicePrincipalDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "ServicePrincipal", type: { name: "Composite", - className: "SASAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", + className: "ServicePrincipalDatastoreCredentials", + uberParent: "DatastoreCredentials", polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + DatastoreCredentials.type.polymorphicDiscriminator, modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", + ...DatastoreCredentials.type.modelProperties, + authorityUrl: { + serializedName: "authorityUrl", + nullable: true, + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", + required: true, + type: { + name: "Uuid" + } + }, + resourceUrl: { + serializedName: "resourceUrl", + nullable: true, + type: { + name: "String" + } + }, + secrets: { + serializedName: "secrets", type: { name: "Composite", - className: "WorkspaceConnectionSharedAccessSignature" + className: "ServicePrincipalDatastoreSecrets" + } + }, + tenantId: { + serializedName: "tenantId", + required: true, + type: { + name: "Uuid" } } } } }; -export const UsernamePasswordAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "UsernamePassword", +export const AccountKeyDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "AccountKey", type: { name: "Composite", - className: "UsernamePasswordAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + className: "AccountKeyDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", + ...DatastoreSecrets.type.modelProperties, + key: { + serializedName: "key", + nullable: true, type: { - name: "Composite", - className: "WorkspaceConnectionUsernamePassword" + name: "String" } } } } }; -export const NoneAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "None", +export const CertificateDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "Certificate", type: { name: "Composite", - className: "NoneAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + className: "CertificateDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties + ...DatastoreSecrets.type.modelProperties, + certificate: { + serializedName: "certificate", + nullable: true, + type: { + name: "String" + } + } } } }; -export const ManagedIdentityAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "ManagedIdentity", +export const KerberosKeytabSecrets: coreClient.CompositeMapper = { + serializedName: "KerberosKeytab", type: { name: "Composite", - className: "ManagedIdentityAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + className: "KerberosKeytabSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", + ...DatastoreSecrets.type.modelProperties, + kerberosKeytab: { + serializedName: "kerberosKeytab", + nullable: true, type: { - name: "Composite", - className: "WorkspaceConnectionManagedIdentity" + name: "String" } } } } }; -export const BatchEndpointProperties: coreClient.CompositeMapper = { +export const KerberosPasswordSecrets: coreClient.CompositeMapper = { + serializedName: "KerberosPassword", type: { name: "Composite", - className: "BatchEndpointProperties", + className: "KerberosPasswordSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, modelProperties: { - ...EndpointPropertiesBase.type.modelProperties, - defaults: { - serializedName: "defaults", - type: { - name: "Composite", - className: "BatchEndpointDefaults" - } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + ...DatastoreSecrets.type.modelProperties, + kerberosPassword: { + serializedName: "kerberosPassword", + nullable: true, type: { name: "String" } @@ -6717,90 +9674,86 @@ export const BatchEndpointProperties: coreClient.CompositeMapper = { } }; -export const OnlineEndpointProperties: coreClient.CompositeMapper = { +export const SasDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "Sas", type: { name: "Composite", - className: "OnlineEndpointProperties", + className: "SasDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, modelProperties: { - ...EndpointPropertiesBase.type.modelProperties, - compute: { - serializedName: "compute", + ...DatastoreSecrets.type.modelProperties, + sasToken: { + serializedName: "sasToken", nullable: true, type: { name: "String" } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - traffic: { - serializedName: "traffic", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "Number" } } - } } } } }; -export const PartialMinimalTrackedResourceWithIdentity: coreClient.CompositeMapper = { +export const ServicePrincipalDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "ServicePrincipal", type: { name: "Composite", - className: "PartialMinimalTrackedResourceWithIdentity", + className: "ServicePrincipalDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, modelProperties: { - ...PartialMinimalTrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + ...DatastoreSecrets.type.modelProperties, + clientSecret: { + serializedName: "clientSecret", + nullable: true, type: { - name: "Composite", - className: "PartialManagedServiceIdentity" + name: "String" } } } } }; -export const PartialMinimalTrackedResourceWithSku: coreClient.CompositeMapper = { +export const AmlToken: coreClient.CompositeMapper = { + serializedName: "AMLToken", type: { name: "Composite", - className: "PartialMinimalTrackedResourceWithSku", + className: "AmlToken", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: + IdentityConfiguration.type.polymorphicDiscriminator, modelProperties: { - ...PartialMinimalTrackedResource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "PartialSku" - } - } + ...IdentityConfiguration.type.modelProperties } } }; -export const DataPathAssetReference: coreClient.CompositeMapper = { - serializedName: "DataPath", +export const ManagedIdentity: coreClient.CompositeMapper = { + serializedName: "Managed", type: { name: "Composite", - className: "DataPathAssetReference", - uberParent: "AssetReferenceBase", - polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + className: "ManagedIdentity", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: + IdentityConfiguration.type.polymorphicDiscriminator, modelProperties: { - ...AssetReferenceBase.type.modelProperties, - datastoreId: { - serializedName: "datastoreId", + ...IdentityConfiguration.type.modelProperties, + clientId: { + serializedName: "clientId", nullable: true, type: { - name: "String" + name: "Uuid" } }, - path: { - serializedName: "path", + objectId: { + serializedName: "objectId", + nullable: true, + type: { + name: "Uuid" + } + }, + resourceId: { + serializedName: "resourceId", nullable: true, type: { name: "String" @@ -6810,21 +9763,52 @@ export const DataPathAssetReference: coreClient.CompositeMapper = { } }; -export const IdAssetReference: coreClient.CompositeMapper = { - serializedName: "Id", +export const UserIdentity: coreClient.CompositeMapper = { + serializedName: "UserIdentity", + type: { + name: "Composite", + className: "UserIdentity", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: + IdentityConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...IdentityConfiguration.type.modelProperties + } + } +}; + +export const LabelingJobImageProperties: coreClient.CompositeMapper = { + serializedName: "Image", + type: { + name: "Composite", + className: "LabelingJobImageProperties", + uberParent: "LabelingJobMediaProperties", + polymorphicDiscriminator: + LabelingJobMediaProperties.type.polymorphicDiscriminator, + modelProperties: { + ...LabelingJobMediaProperties.type.modelProperties, + annotationType: { + serializedName: "annotationType", + type: { + name: "String" + } + } + } + } +}; + +export const LabelingJobTextProperties: coreClient.CompositeMapper = { + serializedName: "Text", type: { name: "Composite", - className: "IdAssetReference", - uberParent: "AssetReferenceBase", - polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + className: "LabelingJobTextProperties", + uberParent: "LabelingJobMediaProperties", + polymorphicDiscriminator: + LabelingJobMediaProperties.type.polymorphicDiscriminator, modelProperties: { - ...AssetReferenceBase.type.modelProperties, - assetId: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "assetId", - required: true, + ...LabelingJobMediaProperties.type.modelProperties, + annotationType: { + serializedName: "annotationType", type: { name: "String" } @@ -6833,25 +9817,46 @@ export const IdAssetReference: coreClient.CompositeMapper = { } }; -export const OutputPathAssetReference: coreClient.CompositeMapper = { - serializedName: "OutputPath", +export const MLAssistConfigurationDisabled: coreClient.CompositeMapper = { + serializedName: "Disabled", type: { name: "Composite", - className: "OutputPathAssetReference", - uberParent: "AssetReferenceBase", - polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + className: "MLAssistConfigurationDisabled", + uberParent: "MLAssistConfiguration", + polymorphicDiscriminator: + MLAssistConfiguration.type.polymorphicDiscriminator, modelProperties: { - ...AssetReferenceBase.type.modelProperties, - jobId: { - serializedName: "jobId", - nullable: true, + ...MLAssistConfiguration.type.modelProperties + } + } +}; + +export const MLAssistConfigurationEnabled: coreClient.CompositeMapper = { + serializedName: "Enabled", + type: { + name: "Composite", + className: "MLAssistConfigurationEnabled", + uberParent: "MLAssistConfiguration", + polymorphicDiscriminator: + MLAssistConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...MLAssistConfiguration.type.modelProperties, + inferencingComputeBinding: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "inferencingComputeBinding", + required: true, type: { name: "String" } }, - path: { - serializedName: "path", - nullable: true, + trainingComputeBinding: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "trainingComputeBinding", + required: true, type: { name: "String" } @@ -6860,416 +9865,618 @@ export const OutputPathAssetReference: coreClient.CompositeMapper = { } }; -export const BatchDeploymentProperties: coreClient.CompositeMapper = { +export const CocoExportSummary: coreClient.CompositeMapper = { + serializedName: "Coco", type: { name: "Composite", - className: "BatchDeploymentProperties", + className: "CocoExportSummary", + uberParent: "ExportSummary", + polymorphicDiscriminator: ExportSummary.type.polymorphicDiscriminator, modelProperties: { - ...EndpointDeploymentPropertiesBase.type.modelProperties, - compute: { - serializedName: "compute", + ...ExportSummary.type.modelProperties, + containerName: { + serializedName: "containerName", + readOnly: true, nullable: true, type: { name: "String" } }, - errorThreshold: { - defaultValue: -1, - serializedName: "errorThreshold", - type: { - name: "Number" - } - }, - loggingLevel: { - serializedName: "loggingLevel", - type: { - name: "String" - } - }, - maxConcurrencyPerInstance: { - defaultValue: 1, - serializedName: "maxConcurrencyPerInstance", - type: { - name: "Number" - } - }, - miniBatchSize: { - defaultValue: 10, - serializedName: "miniBatchSize", - type: { - name: "Number" - } - }, - model: { - serializedName: "model", - type: { - name: "Composite", - className: "AssetReferenceBase" - } - }, - outputAction: { - serializedName: "outputAction", - type: { - name: "String" - } - }, - outputFileName: { - defaultValue: "predictions.csv", - serializedName: "outputFileName", - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "provisioningState", + snapshotPath: { + serializedName: "snapshotPath", readOnly: true, + nullable: true, type: { name: "String" } - }, - resources: { - serializedName: "resources", - type: { - name: "Composite", - className: "ResourceConfiguration" - } - }, - retrySettings: { - serializedName: "retrySettings", - type: { - name: "Composite", - className: "BatchRetrySettings" - } } } } }; -export const OnlineDeploymentProperties: coreClient.CompositeMapper = { - serializedName: "OnlineDeploymentProperties", +export const CsvExportSummary: coreClient.CompositeMapper = { + serializedName: "CSV", type: { name: "Composite", - className: "OnlineDeploymentProperties", - uberParent: "EndpointDeploymentPropertiesBase", - polymorphicDiscriminator: { - serializedName: "endpointComputeType", - clientName: "endpointComputeType" - }, + className: "CsvExportSummary", + uberParent: "ExportSummary", + polymorphicDiscriminator: ExportSummary.type.polymorphicDiscriminator, modelProperties: { - ...EndpointDeploymentPropertiesBase.type.modelProperties, - appInsightsEnabled: { - defaultValue: false, - serializedName: "appInsightsEnabled", - type: { - name: "Boolean" - } - }, - endpointComputeType: { - serializedName: "endpointComputeType", - required: true, - type: { - name: "String" - } - }, - instanceType: { - serializedName: "instanceType", + ...ExportSummary.type.modelProperties, + containerName: { + serializedName: "containerName", + readOnly: true, nullable: true, type: { name: "String" } }, - livenessProbe: { - serializedName: "livenessProbe", - type: { - name: "Composite", - className: "ProbeSettings" - } - }, - model: { - serializedName: "model", + snapshotPath: { + serializedName: "snapshotPath", + readOnly: true, nullable: true, type: { name: "String" } - }, - modelMountPath: { - serializedName: "modelMountPath", + } + } + } +}; + +export const DatasetExportSummary: coreClient.CompositeMapper = { + serializedName: "Dataset", + type: { + name: "Composite", + className: "DatasetExportSummary", + uberParent: "ExportSummary", + polymorphicDiscriminator: ExportSummary.type.polymorphicDiscriminator, + modelProperties: { + ...ExportSummary.type.modelProperties, + labeledAssetName: { + serializedName: "labeledAssetName", + readOnly: true, nullable: true, type: { name: "String" } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + } + } + } +}; + +export const DefaultScaleSettings: coreClient.CompositeMapper = { + serializedName: "Default", + type: { + name: "Composite", + className: "DefaultScaleSettings", + uberParent: "OnlineScaleSettings", + polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, + modelProperties: { + ...OnlineScaleSettings.type.modelProperties + } + } +}; + +export const TargetUtilizationScaleSettings: coreClient.CompositeMapper = { + serializedName: "TargetUtilization", + type: { + name: "Composite", + className: "TargetUtilizationScaleSettings", + uberParent: "OnlineScaleSettings", + polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, + modelProperties: { + ...OnlineScaleSettings.type.modelProperties, + maxInstances: { + defaultValue: 1, + serializedName: "maxInstances", type: { - name: "String" + name: "Number" } }, - readinessProbe: { - serializedName: "readinessProbe", + minInstances: { + defaultValue: 1, + serializedName: "minInstances", type: { - name: "Composite", - className: "ProbeSettings" + name: "Number" } }, - requestSettings: { - serializedName: "requestSettings", + pollingInterval: { + defaultValue: "PT1S", + serializedName: "pollingInterval", type: { - name: "Composite", - className: "OnlineRequestSettings" + name: "TimeSpan" } }, - scaleSettings: { - serializedName: "scaleSettings", + targetUtilizationPercentage: { + defaultValue: 70, + serializedName: "targetUtilizationPercentage", type: { - name: "Composite", - className: "OnlineScaleSettings" + name: "Number" } } } } }; -export const AssetContainer: coreClient.CompositeMapper = { +export const EndpointScheduleAction: coreClient.CompositeMapper = { + serializedName: "InvokeBatchEndpoint", type: { name: "Composite", - className: "AssetContainer", + className: "EndpointScheduleAction", + uberParent: "ScheduleActionBase", + polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, modelProperties: { - ...ResourceBase.type.modelProperties, - isArchived: { - defaultValue: false, - serializedName: "isArchived", - type: { - name: "Boolean" - } - }, - latestVersion: { - serializedName: "latestVersion", - readOnly: true, - nullable: true, + ...ScheduleActionBase.type.modelProperties, + endpointInvocationDefinition: { + serializedName: "endpointInvocationDefinition", + required: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } - }, - nextVersion: { - serializedName: "nextVersion", - readOnly: true, - nullable: true, + } + } + } +}; + +export const JobScheduleAction: coreClient.CompositeMapper = { + serializedName: "CreateJob", + type: { + name: "Composite", + className: "JobScheduleAction", + uberParent: "ScheduleActionBase", + polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, + modelProperties: { + ...ScheduleActionBase.type.modelProperties, + jobDefinition: { + serializedName: "jobDefinition", type: { - name: "String" + name: "Composite", + className: "JobBaseProperties" } } } } }; -export const AssetBase: coreClient.CompositeMapper = { +export const CronTrigger: coreClient.CompositeMapper = { + serializedName: "Cron", type: { name: "Composite", - className: "AssetBase", + className: "CronTrigger", + uberParent: "TriggerBase", + polymorphicDiscriminator: TriggerBase.type.polymorphicDiscriminator, modelProperties: { - ...ResourceBase.type.modelProperties, - isAnonymous: { - defaultValue: false, - serializedName: "isAnonymous", - type: { - name: "Boolean" - } - }, - isArchived: { - defaultValue: false, - serializedName: "isArchived", + ...TriggerBase.type.modelProperties, + expression: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "expression", + required: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const DatastoreProperties: coreClient.CompositeMapper = { - serializedName: "DatastoreProperties", +export const RecurrenceTrigger: coreClient.CompositeMapper = { + serializedName: "Recurrence", type: { name: "Composite", - className: "DatastoreProperties", - uberParent: "ResourceBase", - polymorphicDiscriminator: { - serializedName: "datastoreType", - clientName: "datastoreType" - }, + className: "RecurrenceTrigger", + uberParent: "TriggerBase", + polymorphicDiscriminator: TriggerBase.type.polymorphicDiscriminator, modelProperties: { - ...ResourceBase.type.modelProperties, - credentials: { - serializedName: "credentials", + ...TriggerBase.type.modelProperties, + frequency: { + serializedName: "frequency", + required: true, type: { - name: "Composite", - className: "DatastoreCredentials" + name: "String" } }, - datastoreType: { - serializedName: "datastoreType", + interval: { + serializedName: "interval", required: true, type: { - name: "String" + name: "Number" } }, - isDefault: { - serializedName: "isDefault", - readOnly: true, + schedule: { + serializedName: "schedule", type: { - name: "Boolean" + name: "Composite", + className: "RecurrenceSchedule" } } } } }; -export const JobBaseProperties: coreClient.CompositeMapper = { - serializedName: "JobBaseProperties", +export const MLTableJobInput: coreClient.CompositeMapper = { + serializedName: "mltable", type: { name: "Composite", - className: "JobBaseProperties", - uberParent: "ResourceBase", - polymorphicDiscriminator: { - serializedName: "jobType", - clientName: "jobType" - }, + className: "MLTableJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, modelProperties: { - ...ResourceBase.type.modelProperties, - computeId: { - serializedName: "computeId", - nullable: true, + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties + } + } +}; + +export const CustomModelJobInput: coreClient.CompositeMapper = { + serializedName: "custom_model", + type: { + name: "Composite", + className: "CustomModelJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties + } + } +}; + +export const MLFlowModelJobInput: coreClient.CompositeMapper = { + serializedName: "mlflow_model", + type: { + name: "Composite", + className: "MLFlowModelJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties + } + } +}; + +export const TritonModelJobInput: coreClient.CompositeMapper = { + serializedName: "triton_model", + type: { + name: "Composite", + className: "TritonModelJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties + } + } +}; + +export const UriFileJobInput: coreClient.CompositeMapper = { + serializedName: "uri_file", + type: { + name: "Composite", + className: "UriFileJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties + } + } +}; + +export const UriFolderJobInput: coreClient.CompositeMapper = { + serializedName: "uri_folder", + type: { + name: "Composite", + className: "UriFolderJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties + } + } +}; + +export const CustomModelJobOutput: coreClient.CompositeMapper = { + serializedName: "custom_model", + type: { + name: "Composite", + className: "CustomModelJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties + } + } +}; + +export const MLFlowModelJobOutput: coreClient.CompositeMapper = { + serializedName: "mlflow_model", + type: { + name: "Composite", + className: "MLFlowModelJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties + } + } +}; + +export const MLTableJobOutput: coreClient.CompositeMapper = { + serializedName: "mltable", + type: { + name: "Composite", + className: "MLTableJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties + } + } +}; + +export const TritonModelJobOutput: coreClient.CompositeMapper = { + serializedName: "triton_model", + type: { + name: "Composite", + className: "TritonModelJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties + } + } +}; + +export const UriFileJobOutput: coreClient.CompositeMapper = { + serializedName: "uri_file", + type: { + name: "Composite", + className: "UriFileJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties + } + } +}; + +export const UriFolderJobOutput: coreClient.CompositeMapper = { + serializedName: "uri_folder", + type: { + name: "Composite", + className: "UriFolderJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties + } + } +}; + +export const AutoForecastHorizon: coreClient.CompositeMapper = { + serializedName: "Auto", + type: { + name: "Composite", + className: "AutoForecastHorizon", + uberParent: "ForecastHorizon", + polymorphicDiscriminator: ForecastHorizon.type.polymorphicDiscriminator, + modelProperties: { + ...ForecastHorizon.type.modelProperties + } + } +}; + +export const CustomForecastHorizon: coreClient.CompositeMapper = { + serializedName: "Custom", + type: { + name: "Composite", + className: "CustomForecastHorizon", + uberParent: "ForecastHorizon", + polymorphicDiscriminator: ForecastHorizon.type.polymorphicDiscriminator, + modelProperties: { + ...ForecastHorizon.type.modelProperties, + value: { + serializedName: "value", + required: true, type: { - name: "String" + name: "Number" } - }, - displayName: { - serializedName: "displayName", + } + } + } +}; + +export const Classification: coreClient.CompositeMapper = { + serializedName: "Classification", + type: { + name: "Composite", + className: "Classification", + uberParent: "TableVertical", + polymorphicDiscriminator: TableVertical.type.polymorphicDiscriminator, + modelProperties: { + ...TableVertical.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + positiveLabel: { + serializedName: "positiveLabel", nullable: true, type: { name: "String" } - }, - experimentName: { - defaultValue: "Default", - serializedName: "experimentName", + }, + primaryMetric: { + serializedName: "primaryMetric", type: { name: "String" } }, - identity: { - serializedName: "identity", + trainingSettings: { + serializedName: "trainingSettings", type: { name: "Composite", - className: "IdentityConfiguration" + className: "ClassificationTrainingSettings" } - }, - isArchived: { - defaultValue: false, - serializedName: "isArchived", + } + } + } +}; + +export const Forecasting: coreClient.CompositeMapper = { + serializedName: "Forecasting", + type: { + name: "Composite", + className: "Forecasting", + uberParent: "TableVertical", + polymorphicDiscriminator: TableVertical.type.polymorphicDiscriminator, + modelProperties: { + ...TableVertical.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + forecastingSettings: { + serializedName: "forecastingSettings", type: { - name: "Boolean" + name: "Composite", + className: "ForecastingSettings" } }, - jobType: { - serializedName: "jobType", - required: true, + primaryMetric: { + serializedName: "primaryMetric", type: { name: "String" } }, - services: { - serializedName: "services", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobService" } } - } - }, - status: { - serializedName: "status", - readOnly: true, + trainingSettings: { + serializedName: "trainingSettings", type: { - name: "String" + name: "Composite", + className: "ForecastingTrainingSettings" } } } } }; -export const AccountKeyDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "AccountKey", +export const ImageClassificationBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccountKeyDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "ImageClassificationBase", modelProperties: { - ...DatastoreCredentials.type.modelProperties, - secrets: { - serializedName: "secrets", + ...ImageVertical.type.modelProperties, + modelSettings: { + serializedName: "modelSettings", type: { name: "Composite", - className: "AccountKeyDatastoreSecrets" + className: "ImageModelSettingsClassification" + } + }, + searchSpace: { + serializedName: "searchSpace", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageModelDistributionSettingsClassification" + } + } } } } } }; -export const CertificateDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "Certificate", +export const ImageClassification: coreClient.CompositeMapper = { + serializedName: "ImageClassification", type: { name: "Composite", - className: "CertificateDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "ImageClassification", + uberParent: "AutoMLVertical", + polymorphicDiscriminator: AutoMLVertical.type.polymorphicDiscriminator, modelProperties: { - ...DatastoreCredentials.type.modelProperties, - authorityUrl: { - serializedName: "authorityUrl", - nullable: true, + ...ImageClassificationBase.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", type: { name: "String" } - }, - clientId: { - serializedName: "clientId", - required: true, - type: { - name: "Uuid" - } - }, - resourceUrl: { - serializedName: "resourceUrl", - nullable: true, + } + } + } +}; + +export const ImageClassificationMultilabel: coreClient.CompositeMapper = { + serializedName: "ImageClassificationMultilabel", + type: { + name: "Composite", + className: "ImageClassificationMultilabel", + uberParent: "AutoMLVertical", + polymorphicDiscriminator: AutoMLVertical.type.polymorphicDiscriminator, + modelProperties: { + ...ImageClassificationBase.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", type: { name: "String" } - }, - secrets: { - serializedName: "secrets", + } + } + } +}; + +export const ImageObjectDetectionBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageObjectDetectionBase", + modelProperties: { + ...ImageVertical.type.modelProperties, + modelSettings: { + serializedName: "modelSettings", type: { name: "Composite", - className: "CertificateDatastoreSecrets" + className: "ImageModelSettingsObjectDetection" } }, - tenantId: { - serializedName: "tenantId", - required: true, + searchSpace: { + serializedName: "searchSpace", + nullable: true, type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageModelDistributionSettingsObjectDetection" + } + } } - }, - thumbprint: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "thumbprint", - required: true, + } + } + } +}; + +export const ImageInstanceSegmentation: coreClient.CompositeMapper = { + serializedName: "ImageInstanceSegmentation", + type: { + name: "Composite", + className: "ImageInstanceSegmentation", + uberParent: "AutoMLVertical", + polymorphicDiscriminator: AutoMLVertical.type.polymorphicDiscriminator, + modelProperties: { + ...ImageObjectDetectionBase.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", type: { name: "String" } @@ -7278,279 +10485,483 @@ export const CertificateDatastoreCredentials: coreClient.CompositeMapper = { } }; -export const NoneDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "None", +export const ImageObjectDetection: coreClient.CompositeMapper = { + serializedName: "ImageObjectDetection", type: { name: "Composite", - className: "NoneDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "ImageObjectDetection", + uberParent: "AutoMLVertical", + polymorphicDiscriminator: AutoMLVertical.type.polymorphicDiscriminator, modelProperties: { - ...DatastoreCredentials.type.modelProperties + ...ImageObjectDetectionBase.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", + type: { + name: "String" + } + } } } }; -export const SasDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "Sas", +export const Regression: coreClient.CompositeMapper = { + serializedName: "Regression", type: { name: "Composite", - className: "SasDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "Regression", + uberParent: "TableVertical", + polymorphicDiscriminator: TableVertical.type.polymorphicDiscriminator, modelProperties: { - ...DatastoreCredentials.type.modelProperties, - secrets: { - serializedName: "secrets", + ...TableVertical.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", + type: { + name: "String" + } + }, + trainingSettings: { + serializedName: "trainingSettings", type: { name: "Composite", - className: "SasDatastoreSecrets" + className: "RegressionTrainingSettings" } } } } }; -export const ServicePrincipalDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "ServicePrincipal", +export const TextClassification: coreClient.CompositeMapper = { + serializedName: "TextClassification", type: { name: "Composite", - className: "ServicePrincipalDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "TextClassification", + uberParent: "NlpVertical", + polymorphicDiscriminator: NlpVertical.type.polymorphicDiscriminator, modelProperties: { - ...DatastoreCredentials.type.modelProperties, - authorityUrl: { - serializedName: "authorityUrl", - nullable: true, + ...NlpVertical.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", type: { name: "String" } - }, - clientId: { - serializedName: "clientId", - required: true, + } + } + } +}; + +export const TextClassificationMultilabel: coreClient.CompositeMapper = { + serializedName: "TextClassificationMultilabel", + type: { + name: "Composite", + className: "TextClassificationMultilabel", + uberParent: "NlpVertical", + polymorphicDiscriminator: NlpVertical.type.polymorphicDiscriminator, + modelProperties: { + ...NlpVertical.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", + readOnly: true, type: { - name: "Uuid" + name: "String" } - }, - resourceUrl: { - serializedName: "resourceUrl", - nullable: true, + } + } + } +}; + +export const TextNer: coreClient.CompositeMapper = { + serializedName: "TextNER", + type: { + name: "Composite", + className: "TextNer", + uberParent: "NlpVertical", + polymorphicDiscriminator: NlpVertical.type.polymorphicDiscriminator, + modelProperties: { + ...NlpVertical.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", + readOnly: true, type: { name: "String" } - }, - secrets: { - serializedName: "secrets", + } + } + } +}; + +export const LiteralJobInput: coreClient.CompositeMapper = { + serializedName: "literal", + type: { + name: "Composite", + className: "LiteralJobInput", + uberParent: "JobInput", + polymorphicDiscriminator: JobInput.type.polymorphicDiscriminator, + modelProperties: { + ...JobInput.type.modelProperties, + value: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "value", + required: true, type: { - name: "Composite", - className: "ServicePrincipalDatastoreSecrets" + name: "String" } - }, - tenantId: { - serializedName: "tenantId", + } + } + } +}; + +export const AutoNCrossValidations: coreClient.CompositeMapper = { + serializedName: "Auto", + type: { + name: "Composite", + className: "AutoNCrossValidations", + uberParent: "NCrossValidations", + polymorphicDiscriminator: NCrossValidations.type.polymorphicDiscriminator, + modelProperties: { + ...NCrossValidations.type.modelProperties + } + } +}; + +export const CustomNCrossValidations: coreClient.CompositeMapper = { + serializedName: "Custom", + type: { + name: "Composite", + className: "CustomNCrossValidations", + uberParent: "NCrossValidations", + polymorphicDiscriminator: NCrossValidations.type.polymorphicDiscriminator, + modelProperties: { + ...NCrossValidations.type.modelProperties, + value: { + serializedName: "value", required: true, type: { - name: "Uuid" + name: "Number" } } } } }; -export const AccountKeyDatastoreSecrets: coreClient.CompositeMapper = { - serializedName: "AccountKey", +export const AutoSeasonality: coreClient.CompositeMapper = { + serializedName: "Auto", type: { name: "Composite", - className: "AccountKeyDatastoreSecrets", - uberParent: "DatastoreSecrets", - polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + className: "AutoSeasonality", + uberParent: "Seasonality", + polymorphicDiscriminator: Seasonality.type.polymorphicDiscriminator, modelProperties: { - ...DatastoreSecrets.type.modelProperties, - key: { - serializedName: "key", - nullable: true, - type: { - name: "String" - } - } + ...Seasonality.type.modelProperties } } }; -export const CertificateDatastoreSecrets: coreClient.CompositeMapper = { - serializedName: "Certificate", +export const CustomSeasonality: coreClient.CompositeMapper = { + serializedName: "Custom", type: { name: "Composite", - className: "CertificateDatastoreSecrets", - uberParent: "DatastoreSecrets", - polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + className: "CustomSeasonality", + uberParent: "Seasonality", + polymorphicDiscriminator: Seasonality.type.polymorphicDiscriminator, modelProperties: { - ...DatastoreSecrets.type.modelProperties, - certificate: { - serializedName: "certificate", - nullable: true, + ...Seasonality.type.modelProperties, + value: { + serializedName: "value", + required: true, type: { - name: "String" + name: "Number" } } } } }; -export const SasDatastoreSecrets: coreClient.CompositeMapper = { - serializedName: "Sas", +export const AutoTargetLags: coreClient.CompositeMapper = { + serializedName: "Auto", type: { name: "Composite", - className: "SasDatastoreSecrets", - uberParent: "DatastoreSecrets", - polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + className: "AutoTargetLags", + uberParent: "TargetLags", + polymorphicDiscriminator: TargetLags.type.polymorphicDiscriminator, modelProperties: { - ...DatastoreSecrets.type.modelProperties, - sasToken: { - serializedName: "sasToken", - nullable: true, - type: { - name: "String" - } - } + ...TargetLags.type.modelProperties } } }; -export const ServicePrincipalDatastoreSecrets: coreClient.CompositeMapper = { - serializedName: "ServicePrincipal", +export const CustomTargetLags: coreClient.CompositeMapper = { + serializedName: "Custom", type: { name: "Composite", - className: "ServicePrincipalDatastoreSecrets", - uberParent: "DatastoreSecrets", - polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + className: "CustomTargetLags", + uberParent: "TargetLags", + polymorphicDiscriminator: TargetLags.type.polymorphicDiscriminator, modelProperties: { - ...DatastoreSecrets.type.modelProperties, - clientSecret: { - serializedName: "clientSecret", - nullable: true, + ...TargetLags.type.modelProperties, + values: { + serializedName: "values", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Number" + } + } } } } } }; -export const AmlToken: coreClient.CompositeMapper = { - serializedName: "AMLToken", +export const AutoTargetRollingWindowSize: coreClient.CompositeMapper = { + serializedName: "Auto", type: { name: "Composite", - className: "AmlToken", - uberParent: "IdentityConfiguration", + className: "AutoTargetRollingWindowSize", + uberParent: "TargetRollingWindowSize", polymorphicDiscriminator: - IdentityConfiguration.type.polymorphicDiscriminator, + TargetRollingWindowSize.type.polymorphicDiscriminator, modelProperties: { - ...IdentityConfiguration.type.modelProperties + ...TargetRollingWindowSize.type.modelProperties } } }; -export const ManagedIdentity: coreClient.CompositeMapper = { - serializedName: "Managed", +export const CustomTargetRollingWindowSize: coreClient.CompositeMapper = { + serializedName: "Custom", type: { name: "Composite", - className: "ManagedIdentity", - uberParent: "IdentityConfiguration", + className: "CustomTargetRollingWindowSize", + uberParent: "TargetRollingWindowSize", polymorphicDiscriminator: - IdentityConfiguration.type.polymorphicDiscriminator, + TargetRollingWindowSize.type.polymorphicDiscriminator, modelProperties: { - ...IdentityConfiguration.type.modelProperties, - clientId: { - serializedName: "clientId", + ...TargetRollingWindowSize.type.modelProperties, + value: { + serializedName: "value", + required: true, + type: { + name: "Number" + } + } + } + } +}; + +export const AzureBlobDatastore: coreClient.CompositeMapper = { + serializedName: "AzureBlob", + type: { + name: "Composite", + className: "AzureBlobDatastore", + uberParent: "AzureDatastore", + polymorphicDiscriminator: AzureDatastore.type.polymorphicDiscriminator, + modelProperties: { + ...AzureDatastore.type.modelProperties, + ...DatastoreProperties.type.modelProperties, + accountName: { + serializedName: "accountName", nullable: true, type: { - name: "Uuid" + name: "String" } }, - objectId: { - serializedName: "objectId", + containerName: { + serializedName: "containerName", nullable: true, type: { - name: "Uuid" + name: "String" } }, - resourceId: { - serializedName: "resourceId", + endpoint: { + serializedName: "endpoint", nullable: true, type: { name: "String" } + }, + protocol: { + serializedName: "protocol", + nullable: true, + type: { + name: "String" + } + }, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", + type: { + name: "String" + } } } } }; -export const UserIdentity: coreClient.CompositeMapper = { - serializedName: "UserIdentity", +export const AzureDataLakeGen1Datastore: coreClient.CompositeMapper = { + serializedName: "AzureDataLakeGen1", type: { name: "Composite", - className: "UserIdentity", - uberParent: "IdentityConfiguration", - polymorphicDiscriminator: - IdentityConfiguration.type.polymorphicDiscriminator, + className: "AzureDataLakeGen1Datastore", + uberParent: "AzureDatastore", + polymorphicDiscriminator: AzureDatastore.type.polymorphicDiscriminator, modelProperties: { - ...IdentityConfiguration.type.modelProperties + ...AzureDatastore.type.modelProperties, + ...DatastoreProperties.type.modelProperties, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", + type: { + name: "String" + } + }, + storeName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "storeName", + required: true, + type: { + name: "String" + } + } } } }; -export const DefaultScaleSettings: coreClient.CompositeMapper = { - serializedName: "Default", +export const AzureDataLakeGen2Datastore: coreClient.CompositeMapper = { + serializedName: "AzureDataLakeGen2", type: { name: "Composite", - className: "DefaultScaleSettings", - uberParent: "OnlineScaleSettings", - polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, + className: "AzureDataLakeGen2Datastore", + uberParent: "AzureDatastore", + polymorphicDiscriminator: AzureDatastore.type.polymorphicDiscriminator, modelProperties: { - ...OnlineScaleSettings.type.modelProperties + ...AzureDatastore.type.modelProperties, + ...DatastoreProperties.type.modelProperties, + accountName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "accountName", + required: true, + type: { + name: "String" + } + }, + endpoint: { + serializedName: "endpoint", + nullable: true, + type: { + name: "String" + } + }, + filesystem: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "filesystem", + required: true, + type: { + name: "String" + } + }, + protocol: { + serializedName: "protocol", + nullable: true, + type: { + name: "String" + } + }, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", + type: { + name: "String" + } + } } } }; -export const TargetUtilizationScaleSettings: coreClient.CompositeMapper = { - serializedName: "TargetUtilization", +export const AzureFileDatastore: coreClient.CompositeMapper = { + serializedName: "AzureFile", type: { name: "Composite", - className: "TargetUtilizationScaleSettings", - uberParent: "OnlineScaleSettings", - polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, + className: "AzureFileDatastore", + uberParent: "AzureDatastore", + polymorphicDiscriminator: AzureDatastore.type.polymorphicDiscriminator, modelProperties: { - ...OnlineScaleSettings.type.modelProperties, - maxInstances: { - defaultValue: 1, - serializedName: "maxInstances", + ...AzureDatastore.type.modelProperties, + ...DatastoreProperties.type.modelProperties, + accountName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "accountName", + required: true, type: { - name: "Number" + name: "String" } }, - minInstances: { - defaultValue: 1, - serializedName: "minInstances", + endpoint: { + serializedName: "endpoint", + nullable: true, + type: { + name: "String" + } + }, + fileShareName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "fileShareName", + required: true, + type: { + name: "String" + } + }, + protocol: { + serializedName: "protocol", + nullable: true, + type: { + name: "String" + } + }, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", + type: { + name: "String" + } + } + } + } +}; + +export const BanditPolicy: coreClient.CompositeMapper = { + serializedName: "Bandit", + type: { + name: "Composite", + className: "BanditPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: + EarlyTerminationPolicy.type.polymorphicDiscriminator, + modelProperties: { + ...EarlyTerminationPolicy.type.modelProperties, + slackAmount: { + defaultValue: 0, + serializedName: "slackAmount", type: { name: "Number" } }, - pollingInterval: { - defaultValue: "PT1S", - serializedName: "pollingInterval", - type: { - name: "TimeSpan" - } - }, - targetUtilizationPercentage: { - defaultValue: 70, - serializedName: "targetUtilizationPercentage", + slackFactor: { + defaultValue: 0, + serializedName: "slackFactor", type: { name: "Number" } @@ -7559,194 +10970,325 @@ export const TargetUtilizationScaleSettings: coreClient.CompositeMapper = { } }; -export const CustomModelJobInput: coreClient.CompositeMapper = { - serializedName: "custom_model", +export const MedianStoppingPolicy: coreClient.CompositeMapper = { + serializedName: "MedianStopping", type: { name: "Composite", - className: "CustomModelJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + className: "MedianStoppingPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: + EarlyTerminationPolicy.type.polymorphicDiscriminator, modelProperties: { - ...AssetJobInput.type.modelProperties, - ...JobInput.type.modelProperties + ...EarlyTerminationPolicy.type.modelProperties } } }; -export const MLFlowModelJobInput: coreClient.CompositeMapper = { - serializedName: "mlflow_model", +export const TruncationSelectionPolicy: coreClient.CompositeMapper = { + serializedName: "TruncationSelection", type: { name: "Composite", - className: "MLFlowModelJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + className: "TruncationSelectionPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: + EarlyTerminationPolicy.type.polymorphicDiscriminator, modelProperties: { - ...AssetJobInput.type.modelProperties, - ...JobInput.type.modelProperties + ...EarlyTerminationPolicy.type.modelProperties, + truncationPercentage: { + defaultValue: 0, + serializedName: "truncationPercentage", + type: { + name: "Number" + } + } } } }; -export const MLTableJobInput: coreClient.CompositeMapper = { - serializedName: "mltable", +export const BayesianSamplingAlgorithm: coreClient.CompositeMapper = { + serializedName: "Bayesian", type: { name: "Composite", - className: "MLTableJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + className: "BayesianSamplingAlgorithm", + uberParent: "SamplingAlgorithm", + polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, modelProperties: { - ...AssetJobInput.type.modelProperties, - ...JobInput.type.modelProperties + ...SamplingAlgorithm.type.modelProperties } } }; -export const TritonModelJobInput: coreClient.CompositeMapper = { - serializedName: "triton_model", +export const GridSamplingAlgorithm: coreClient.CompositeMapper = { + serializedName: "Grid", type: { name: "Composite", - className: "TritonModelJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + className: "GridSamplingAlgorithm", + uberParent: "SamplingAlgorithm", + polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, modelProperties: { - ...AssetJobInput.type.modelProperties, - ...JobInput.type.modelProperties + ...SamplingAlgorithm.type.modelProperties } } }; -export const UriFileJobInput: coreClient.CompositeMapper = { - serializedName: "uri_file", +export const RandomSamplingAlgorithm: coreClient.CompositeMapper = { + serializedName: "Random", type: { name: "Composite", - className: "UriFileJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + className: "RandomSamplingAlgorithm", + uberParent: "SamplingAlgorithm", + polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, modelProperties: { - ...AssetJobInput.type.modelProperties, - ...JobInput.type.modelProperties + ...SamplingAlgorithm.type.modelProperties, + rule: { + serializedName: "rule", + type: { + name: "String" + } + }, + seed: { + serializedName: "seed", + nullable: true, + type: { + name: "Number" + } + } } } }; -export const UriFolderJobInput: coreClient.CompositeMapper = { - serializedName: "uri_folder", +export const ClassificationTrainingSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UriFolderJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + className: "ClassificationTrainingSettings", modelProperties: { - ...AssetJobInput.type.modelProperties, - ...JobInput.type.modelProperties + ...TrainingSettings.type.modelProperties, + allowedTrainingAlgorithms: { + serializedName: "allowedTrainingAlgorithms", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + blockedTrainingAlgorithms: { + serializedName: "blockedTrainingAlgorithms", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } }; -export const CustomModelJobOutput: coreClient.CompositeMapper = { - serializedName: "custom_model", +export const ForecastingTrainingSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomModelJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "ForecastingTrainingSettings", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...TrainingSettings.type.modelProperties, + allowedTrainingAlgorithms: { + serializedName: "allowedTrainingAlgorithms", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + blockedTrainingAlgorithms: { + serializedName: "blockedTrainingAlgorithms", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } }; -export const MLFlowModelJobOutput: coreClient.CompositeMapper = { - serializedName: "mlflow_model", +export const RegressionTrainingSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MLFlowModelJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "RegressionTrainingSettings", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...TrainingSettings.type.modelProperties, + allowedTrainingAlgorithms: { + serializedName: "allowedTrainingAlgorithms", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + blockedTrainingAlgorithms: { + serializedName: "blockedTrainingAlgorithms", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } }; -export const MLTableJobOutput: coreClient.CompositeMapper = { - serializedName: "mltable", +export const TableVerticalFeaturizationSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MLTableJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "TableVerticalFeaturizationSettings", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...FeaturizationSettings.type.modelProperties, + blockedTransformers: { + serializedName: "blockedTransformers", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + columnNameAndTypes: { + serializedName: "columnNameAndTypes", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + enableDnnFeaturization: { + defaultValue: false, + serializedName: "enableDnnFeaturization", + type: { + name: "Boolean" + } + }, + mode: { + serializedName: "mode", + type: { + name: "String" + } + }, + transformerParams: { + serializedName: "transformerParams", + nullable: true, + type: { + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { + type: { name: "Composite", className: "ColumnTransformer" } + } + } + } + } + } } } }; -export const TritonModelJobOutput: coreClient.CompositeMapper = { - serializedName: "triton_model", +export const NlpVerticalFeaturizationSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TritonModelJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "NlpVerticalFeaturizationSettings", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...FeaturizationSettings.type.modelProperties } } }; -export const UriFileJobOutput: coreClient.CompositeMapper = { - serializedName: "uri_file", +export const Mpi: coreClient.CompositeMapper = { + serializedName: "Mpi", type: { name: "Composite", - className: "UriFileJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "Mpi", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: + DistributionConfiguration.type.polymorphicDiscriminator, modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...DistributionConfiguration.type.modelProperties, + processCountPerInstance: { + serializedName: "processCountPerInstance", + nullable: true, + type: { + name: "Number" + } + } } } }; -export const UriFolderJobOutput: coreClient.CompositeMapper = { - serializedName: "uri_folder", +export const PyTorch: coreClient.CompositeMapper = { + serializedName: "PyTorch", type: { name: "Composite", - className: "UriFolderJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "PyTorch", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: + DistributionConfiguration.type.polymorphicDiscriminator, modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...DistributionConfiguration.type.modelProperties, + processCountPerInstance: { + serializedName: "processCountPerInstance", + nullable: true, + type: { + name: "Number" + } + } } } }; -export const BanditPolicy: coreClient.CompositeMapper = { - serializedName: "Bandit", +export const TensorFlow: coreClient.CompositeMapper = { + serializedName: "TensorFlow", type: { name: "Composite", - className: "BanditPolicy", - uberParent: "EarlyTerminationPolicy", + className: "TensorFlow", + uberParent: "DistributionConfiguration", polymorphicDiscriminator: - EarlyTerminationPolicy.type.polymorphicDiscriminator, + DistributionConfiguration.type.polymorphicDiscriminator, modelProperties: { - ...EarlyTerminationPolicy.type.modelProperties, - slackAmount: { + ...DistributionConfiguration.type.modelProperties, + parameterServerCount: { defaultValue: 0, - serializedName: "slackAmount", + serializedName: "parameterServerCount", type: { name: "Number" } }, - slackFactor: { - defaultValue: 0, - serializedName: "slackFactor", + workerCount: { + serializedName: "workerCount", + nullable: true, type: { name: "Number" } @@ -7755,177 +11297,344 @@ export const BanditPolicy: coreClient.CompositeMapper = { } }; -export const MedianStoppingPolicy: coreClient.CompositeMapper = { - serializedName: "MedianStopping", +export const CommandJobLimits: coreClient.CompositeMapper = { + serializedName: "Command", type: { name: "Composite", - className: "MedianStoppingPolicy", - uberParent: "EarlyTerminationPolicy", - polymorphicDiscriminator: - EarlyTerminationPolicy.type.polymorphicDiscriminator, + className: "CommandJobLimits", + uberParent: "JobLimits", + polymorphicDiscriminator: JobLimits.type.polymorphicDiscriminator, modelProperties: { - ...EarlyTerminationPolicy.type.modelProperties + ...JobLimits.type.modelProperties } } }; -export const TruncationSelectionPolicy: coreClient.CompositeMapper = { - serializedName: "TruncationSelection", +export const SweepJobLimits: coreClient.CompositeMapper = { + serializedName: "Sweep", type: { name: "Composite", - className: "TruncationSelectionPolicy", - uberParent: "EarlyTerminationPolicy", - polymorphicDiscriminator: - EarlyTerminationPolicy.type.polymorphicDiscriminator, + className: "SweepJobLimits", + uberParent: "JobLimits", + polymorphicDiscriminator: JobLimits.type.polymorphicDiscriminator, modelProperties: { - ...EarlyTerminationPolicy.type.modelProperties, - truncationPercentage: { - defaultValue: 0, - serializedName: "truncationPercentage", + ...JobLimits.type.modelProperties, + maxConcurrentTrials: { + serializedName: "maxConcurrentTrials", + nullable: true, type: { name: "Number" } + }, + maxTotalTrials: { + serializedName: "maxTotalTrials", + nullable: true, + type: { + name: "Number" + } + }, + trialTimeout: { + serializedName: "trialTimeout", + nullable: true, + type: { + name: "TimeSpan" + } } } } }; -export const BayesianSamplingAlgorithm: coreClient.CompositeMapper = { - serializedName: "Bayesian", +export const ImageModelSettingsClassification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BayesianSamplingAlgorithm", - uberParent: "SamplingAlgorithm", - polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, + className: "ImageModelSettingsClassification", modelProperties: { - ...SamplingAlgorithm.type.modelProperties + ...ImageModelSettings.type.modelProperties, + trainingCropSize: { + serializedName: "trainingCropSize", + nullable: true, + type: { + name: "Number" + } + }, + validationCropSize: { + serializedName: "validationCropSize", + nullable: true, + type: { + name: "Number" + } + }, + validationResizeSize: { + serializedName: "validationResizeSize", + nullable: true, + type: { + name: "Number" + } + }, + weightedLoss: { + serializedName: "weightedLoss", + nullable: true, + type: { + name: "Number" + } + } } } }; -export const GridSamplingAlgorithm: coreClient.CompositeMapper = { - serializedName: "Grid", +export const ImageModelSettingsObjectDetection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GridSamplingAlgorithm", - uberParent: "SamplingAlgorithm", - polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, + className: "ImageModelSettingsObjectDetection", modelProperties: { - ...SamplingAlgorithm.type.modelProperties + ...ImageModelSettings.type.modelProperties, + boxDetectionsPerImage: { + serializedName: "boxDetectionsPerImage", + nullable: true, + type: { + name: "Number" + } + }, + boxScoreThreshold: { + serializedName: "boxScoreThreshold", + nullable: true, + type: { + name: "Number" + } + }, + imageSize: { + serializedName: "imageSize", + nullable: true, + type: { + name: "Number" + } + }, + maxSize: { + serializedName: "maxSize", + nullable: true, + type: { + name: "Number" + } + }, + minSize: { + serializedName: "minSize", + nullable: true, + type: { + name: "Number" + } + }, + modelSize: { + serializedName: "modelSize", + type: { + name: "String" + } + }, + multiScale: { + serializedName: "multiScale", + nullable: true, + type: { + name: "Boolean" + } + }, + nmsIouThreshold: { + serializedName: "nmsIouThreshold", + nullable: true, + type: { + name: "Number" + } + }, + tileGridSize: { + serializedName: "tileGridSize", + nullable: true, + type: { + name: "String" + } + }, + tileOverlapRatio: { + serializedName: "tileOverlapRatio", + nullable: true, + type: { + name: "Number" + } + }, + tilePredictionsNmsThreshold: { + serializedName: "tilePredictionsNmsThreshold", + nullable: true, + type: { + name: "Number" + } + }, + validationIouThreshold: { + serializedName: "validationIouThreshold", + nullable: true, + type: { + name: "Number" + } + }, + validationMetricType: { + serializedName: "validationMetricType", + type: { + name: "String" + } + } } } }; -export const RandomSamplingAlgorithm: coreClient.CompositeMapper = { - serializedName: "Random", +export const ImageModelDistributionSettingsClassification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RandomSamplingAlgorithm", - uberParent: "SamplingAlgorithm", - polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, + className: "ImageModelDistributionSettingsClassification", modelProperties: { - ...SamplingAlgorithm.type.modelProperties, - rule: { - serializedName: "rule", + ...ImageModelDistributionSettings.type.modelProperties, + trainingCropSize: { + serializedName: "trainingCropSize", + nullable: true, + type: { + name: "String" + } + }, + validationCropSize: { + serializedName: "validationCropSize", + nullable: true, + type: { + name: "String" + } + }, + validationResizeSize: { + serializedName: "validationResizeSize", + nullable: true, + type: { + name: "String" + } + }, + weightedLoss: { + serializedName: "weightedLoss", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const ImageModelDistributionSettingsObjectDetection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageModelDistributionSettingsObjectDetection", + modelProperties: { + ...ImageModelDistributionSettings.type.modelProperties, + boxDetectionsPerImage: { + serializedName: "boxDetectionsPerImage", + nullable: true, + type: { + name: "String" + } + }, + boxScoreThreshold: { + serializedName: "boxScoreThreshold", + nullable: true, + type: { + name: "String" + } + }, + imageSize: { + serializedName: "imageSize", + nullable: true, + type: { + name: "String" + } + }, + maxSize: { + serializedName: "maxSize", + nullable: true, + type: { + name: "String" + } + }, + minSize: { + serializedName: "minSize", + nullable: true, + type: { + name: "String" + } + }, + modelSize: { + serializedName: "modelSize", + nullable: true, + type: { + name: "String" + } + }, + multiScale: { + serializedName: "multiScale", + nullable: true, + type: { + name: "String" + } + }, + nmsIouThreshold: { + serializedName: "nmsIouThreshold", + nullable: true, type: { name: "String" } }, - seed: { - serializedName: "seed", + tileGridSize: { + serializedName: "tileGridSize", nullable: true, type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const Mpi: coreClient.CompositeMapper = { - serializedName: "Mpi", - type: { - name: "Composite", - className: "Mpi", - uberParent: "DistributionConfiguration", - polymorphicDiscriminator: - DistributionConfiguration.type.polymorphicDiscriminator, - modelProperties: { - ...DistributionConfiguration.type.modelProperties, - processCountPerInstance: { - serializedName: "processCountPerInstance", + }, + tileOverlapRatio: { + serializedName: "tileOverlapRatio", nullable: true, type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const PyTorch: coreClient.CompositeMapper = { - serializedName: "PyTorch", - type: { - name: "Composite", - className: "PyTorch", - uberParent: "DistributionConfiguration", - polymorphicDiscriminator: - DistributionConfiguration.type.polymorphicDiscriminator, - modelProperties: { - ...DistributionConfiguration.type.modelProperties, - processCountPerInstance: { - serializedName: "processCountPerInstance", + }, + tilePredictionsNmsThreshold: { + serializedName: "tilePredictionsNmsThreshold", nullable: true, type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const TensorFlow: coreClient.CompositeMapper = { - serializedName: "TensorFlow", - type: { - name: "Composite", - className: "TensorFlow", - uberParent: "DistributionConfiguration", - polymorphicDiscriminator: - DistributionConfiguration.type.polymorphicDiscriminator, - modelProperties: { - ...DistributionConfiguration.type.modelProperties, - parameterServerCount: { - defaultValue: 0, - serializedName: "parameterServerCount", + }, + validationIouThreshold: { + serializedName: "validationIouThreshold", + nullable: true, type: { - name: "Number" + name: "String" } }, - workerCount: { - serializedName: "workerCount", + validationMetricType: { + serializedName: "validationMetricType", nullable: true, type: { - name: "Number" + name: "String" } } } } }; -export const LiteralJobInput: coreClient.CompositeMapper = { - serializedName: "literal", +export const SparkJobPythonEntry: coreClient.CompositeMapper = { + serializedName: "SparkJobPythonEntry", type: { name: "Composite", - className: "LiteralJobInput", - uberParent: "JobInput", - polymorphicDiscriminator: JobInput.type.polymorphicDiscriminator, + className: "SparkJobPythonEntry", + uberParent: "SparkJobEntry", + polymorphicDiscriminator: SparkJobEntry.type.polymorphicDiscriminator, modelProperties: { - ...JobInput.type.modelProperties, - value: { + ...SparkJobEntry.type.modelProperties, + file: { constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 }, - serializedName: "value", + serializedName: "file", required: true, type: { name: "String" @@ -7935,47 +11644,24 @@ export const LiteralJobInput: coreClient.CompositeMapper = { } }; -export const CommandJobLimits: coreClient.CompositeMapper = { - serializedName: "Command", - type: { - name: "Composite", - className: "CommandJobLimits", - uberParent: "JobLimits", - polymorphicDiscriminator: JobLimits.type.polymorphicDiscriminator, - modelProperties: { - ...JobLimits.type.modelProperties - } - } -}; - -export const SweepJobLimits: coreClient.CompositeMapper = { - serializedName: "Sweep", +export const SparkJobScalaEntry: coreClient.CompositeMapper = { + serializedName: "SparkJobPythonEntry", type: { name: "Composite", - className: "SweepJobLimits", - uberParent: "JobLimits", - polymorphicDiscriminator: JobLimits.type.polymorphicDiscriminator, + className: "SparkJobScalaEntry", + uberParent: "SparkJobEntry", + polymorphicDiscriminator: SparkJobEntry.type.polymorphicDiscriminator, modelProperties: { - ...JobLimits.type.modelProperties, - maxConcurrentTrials: { - serializedName: "maxConcurrentTrials", - nullable: true, - type: { - name: "Number" - } - }, - maxTotalTrials: { - serializedName: "maxTotalTrials", - nullable: true, - type: { - name: "Number" - } - }, - trialTimeout: { - serializedName: "trialTimeout", - nullable: true, + ...SparkJobEntry.type.modelProperties, + className: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "className", + required: true, type: { - name: "TimeSpan" + name: "String" } } } @@ -8378,45 +12064,35 @@ export const ModelVersionProperties: coreClient.CompositeMapper = { } }; -export const AzureBlobDatastore: coreClient.CompositeMapper = { - serializedName: "AzureBlob", +export const HdfsDatastore: coreClient.CompositeMapper = { + serializedName: "Hdfs", type: { name: "Composite", - className: "AzureBlobDatastore", + className: "HdfsDatastore", uberParent: "ResourceBase", polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, modelProperties: { ...DatastoreProperties.type.modelProperties, - accountName: { - serializedName: "accountName", - nullable: true, - type: { - name: "String" - } - }, - containerName: { - serializedName: "containerName", + hdfsServerCertificate: { + serializedName: "hdfsServerCertificate", nullable: true, type: { name: "String" } }, - endpoint: { - serializedName: "endpoint", - nullable: true, + nameNodeAddress: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "nameNodeAddress", + required: true, type: { name: "String" } }, protocol: { + defaultValue: "http", serializedName: "protocol", - nullable: true, - type: { - name: "String" - } - }, - serviceDataAccessAuthIdentity: { - serializedName: "serviceDataAccessAuthIdentity", type: { name: "String" } @@ -8425,135 +12101,142 @@ export const AzureBlobDatastore: coreClient.CompositeMapper = { } }; -export const AzureDataLakeGen1Datastore: coreClient.CompositeMapper = { - serializedName: "AzureDataLakeGen1", +export const LabelingJobProperties: coreClient.CompositeMapper = { + serializedName: "Labeling", type: { name: "Composite", - className: "AzureDataLakeGen1Datastore", + className: "LabelingJobProperties", uberParent: "ResourceBase", polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, modelProperties: { - ...DatastoreProperties.type.modelProperties, - serviceDataAccessAuthIdentity: { - serializedName: "serviceDataAccessAuthIdentity", + ...JobBaseProperties.type.modelProperties, + createdDateTime: { + serializedName: "createdDateTime", + readOnly: true, + nullable: true, type: { - name: "String" + name: "DateTime" } }, - storeName: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "storeName", - required: true, + dataConfiguration: { + serializedName: "dataConfiguration", type: { - name: "String" + name: "Composite", + className: "LabelingDataConfiguration" } - } - } - } -}; - -export const AzureDataLakeGen2Datastore: coreClient.CompositeMapper = { - serializedName: "AzureDataLakeGen2", - type: { - name: "Composite", - className: "AzureDataLakeGen2Datastore", - uberParent: "ResourceBase", - polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, - modelProperties: { - ...DatastoreProperties.type.modelProperties, - accountName: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "accountName", - required: true, + }, + jobInstructions: { + serializedName: "jobInstructions", type: { - name: "String" + name: "Composite", + className: "LabelingJobInstructions" } }, - endpoint: { - serializedName: "endpoint", + labelCategories: { + serializedName: "labelCategories", nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "Composite", className: "LabelCategory" } } } }, - filesystem: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "filesystem", - required: true, + labelingJobMediaProperties: { + serializedName: "labelingJobMediaProperties", type: { - name: "String" + name: "Composite", + className: "LabelingJobMediaProperties" } }, - protocol: { - serializedName: "protocol", - nullable: true, + mlAssistConfiguration: { + serializedName: "mlAssistConfiguration", type: { - name: "String" + name: "Composite", + className: "MLAssistConfiguration" } }, - serviceDataAccessAuthIdentity: { - serializedName: "serviceDataAccessAuthIdentity", + progressMetrics: { + serializedName: "progressMetrics", + type: { + name: "Composite", + className: "ProgressMetrics" + } + }, + projectId: { + serializedName: "projectId", + readOnly: true, + type: { + name: "Uuid" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } + }, + statusMessages: { + serializedName: "statusMessages", + readOnly: true, + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StatusMessage" + } + } + } } } } }; -export const AzureFileDatastore: coreClient.CompositeMapper = { - serializedName: "AzureFile", +export const AutoMLJob: coreClient.CompositeMapper = { + serializedName: "AutoML", type: { name: "Composite", - className: "AzureFileDatastore", + className: "AutoMLJob", uberParent: "ResourceBase", polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, modelProperties: { - ...DatastoreProperties.type.modelProperties, - accountName: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "accountName", - required: true, + ...JobBaseProperties.type.modelProperties, + environmentId: { + serializedName: "environmentId", + nullable: true, type: { name: "String" } }, - endpoint: { - serializedName: "endpoint", + environmentVariables: { + serializedName: "environmentVariables", nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - fileShareName: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "fileShareName", - required: true, + outputs: { + serializedName: "outputs", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "Composite", className: "JobOutput" } } } }, - protocol: { - serializedName: "protocol", - nullable: true, + resources: { + serializedName: "resources", type: { - name: "String" + name: "Composite", + className: "JobResourceConfiguration" } }, - serviceDataAccessAuthIdentity: { - serializedName: "serviceDataAccessAuthIdentity", + taskDetails: { + serializedName: "taskDetails", type: { - name: "String" + name: "Composite", + className: "AutoMLVertical" } } } @@ -8648,7 +12331,7 @@ export const CommandJob: coreClient.CompositeMapper = { serializedName: "resources", type: { name: "Composite", - className: "ResourceConfiguration" + className: "JobResourceConfiguration" } } } @@ -8697,6 +12380,136 @@ export const PipelineJob: coreClient.CompositeMapper = { name: "Dictionary", value: { type: { name: "any" } } } + }, + sourceJobId: { + serializedName: "sourceJobId", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const SparkJob: coreClient.CompositeMapper = { + serializedName: "Spark", + type: { + name: "Composite", + className: "SparkJob", + uberParent: "ResourceBase", + polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, + modelProperties: { + ...JobBaseProperties.type.modelProperties, + archives: { + serializedName: "archives", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + args: { + serializedName: "args", + nullable: true, + type: { + name: "String" + } + }, + codeId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "codeId", + required: true, + type: { + name: "String" + } + }, + conf: { + serializedName: "conf", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + entry: { + serializedName: "entry", + type: { + name: "Composite", + className: "SparkJobEntry" + } + }, + environmentId: { + serializedName: "environmentId", + nullable: true, + type: { + name: "String" + } + }, + files: { + serializedName: "files", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + inputs: { + serializedName: "inputs", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobInput" } } + } + }, + jars: { + serializedName: "jars", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + outputs: { + serializedName: "outputs", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobOutput" } } + } + }, + pyFiles: { + serializedName: "pyFiles", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "SparkResourceConfiguration" + } } } } @@ -9108,6 +12921,77 @@ export const JobsCancelHeaders: coreClient.CompositeMapper = { } }; +export const LabelingJobsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + 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: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelingJobsExportLabelsHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const LabelingJobsResumeHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelingJobsResumeHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + export const OnlineEndpointsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", @@ -9299,6 +13183,58 @@ export const OnlineDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper } }; +export const SchedulesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SchedulesDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const SchedulesCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SchedulesCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + export let discriminators = { Compute: Compute, ComputeSecrets: ComputeSecrets, @@ -9307,13 +13243,25 @@ export let discriminators = { DatastoreCredentials: DatastoreCredentials, DatastoreSecrets: DatastoreSecrets, IdentityConfiguration: IdentityConfiguration, + LabelingJobMediaProperties: LabelingJobMediaProperties, + MLAssistConfiguration: MLAssistConfiguration, + ExportSummary: ExportSummary, OnlineScaleSettings: OnlineScaleSettings, + ScheduleActionBase: ScheduleActionBase, + TriggerBase: TriggerBase, + ForecastHorizon: ForecastHorizon, + JobOutput: JobOutput, + AutoMLVertical: AutoMLVertical, + JobInput: JobInput, + NCrossValidations: NCrossValidations, + Seasonality: Seasonality, + TargetLags: TargetLags, + TargetRollingWindowSize: TargetRollingWindowSize, EarlyTerminationPolicy: EarlyTerminationPolicy, SamplingAlgorithm: SamplingAlgorithm, DistributionConfiguration: DistributionConfiguration, - JobInput: JobInput, JobLimits: JobLimits, - JobOutput: JobOutput, + SparkJobEntry: SparkJobEntry, "Compute.AKS": Aks, "Compute.Kubernetes": Kubernetes, "Compute.AmlCompute": AmlCompute, @@ -9340,21 +13288,36 @@ export let discriminators = { "ResourceBase.JobBaseProperties": JobBaseProperties, "DatastoreCredentials.AccountKey": AccountKeyDatastoreCredentials, "DatastoreCredentials.Certificate": CertificateDatastoreCredentials, + "KerberosCredentials.KerberosKeytab": KerberosKeytabCredentials, + "KerberosCredentials.KerberosPassword": KerberosPasswordCredentials, "DatastoreCredentials.None": NoneDatastoreCredentials, "DatastoreCredentials.Sas": SasDatastoreCredentials, "DatastoreCredentials.ServicePrincipal": ServicePrincipalDatastoreCredentials, "DatastoreSecrets.AccountKey": AccountKeyDatastoreSecrets, "DatastoreSecrets.Certificate": CertificateDatastoreSecrets, + "DatastoreSecrets.KerberosKeytab": KerberosKeytabSecrets, + "DatastoreSecrets.KerberosPassword": KerberosPasswordSecrets, "DatastoreSecrets.Sas": SasDatastoreSecrets, "DatastoreSecrets.ServicePrincipal": ServicePrincipalDatastoreSecrets, "IdentityConfiguration.AMLToken": AmlToken, "IdentityConfiguration.Managed": ManagedIdentity, "IdentityConfiguration.UserIdentity": UserIdentity, + "LabelingJobMediaProperties.Image": LabelingJobImageProperties, + "LabelingJobMediaProperties.Text": LabelingJobTextProperties, + "MLAssistConfiguration.Disabled": MLAssistConfigurationDisabled, + "MLAssistConfiguration.Enabled": MLAssistConfigurationEnabled, + "ExportSummary.Coco": CocoExportSummary, + "ExportSummary.CSV": CsvExportSummary, + "ExportSummary.Dataset": DatasetExportSummary, "OnlineScaleSettings.Default": DefaultScaleSettings, "OnlineScaleSettings.TargetUtilization": TargetUtilizationScaleSettings, + "ScheduleActionBase.InvokeBatchEndpoint": EndpointScheduleAction, + "ScheduleActionBase.CreateJob": JobScheduleAction, + "TriggerBase.Cron": CronTrigger, + "TriggerBase.Recurrence": RecurrenceTrigger, + "AssetJobInput.mltable": MLTableJobInput, "AssetJobInput.custom_model": CustomModelJobInput, "AssetJobInput.mlflow_model": MLFlowModelJobInput, - "AssetJobInput.mltable": MLTableJobInput, "AssetJobInput.triton_model": TritonModelJobInput, "AssetJobInput.uri_file": UriFileJobInput, "AssetJobInput.uri_folder": UriFolderJobInput, @@ -9364,6 +13327,31 @@ export let discriminators = { "AssetJobOutput.triton_model": TritonModelJobOutput, "AssetJobOutput.uri_file": UriFileJobOutput, "AssetJobOutput.uri_folder": UriFolderJobOutput, + "ForecastHorizon.Auto": AutoForecastHorizon, + "ForecastHorizon.Custom": CustomForecastHorizon, + "TableVertical.Classification": Classification, + "TableVertical.Forecasting": Forecasting, + "AutoMLVertical.ImageClassification": ImageClassification, + "AutoMLVertical.ImageClassificationMultilabel": ImageClassificationMultilabel, + "AutoMLVertical.ImageInstanceSegmentation": ImageInstanceSegmentation, + "AutoMLVertical.ImageObjectDetection": ImageObjectDetection, + "TableVertical.Regression": Regression, + "NlpVertical.TextClassification": TextClassification, + "NlpVertical.TextClassificationMultilabel": TextClassificationMultilabel, + "NlpVertical.TextNER": TextNer, + "JobInput.literal": LiteralJobInput, + "NCrossValidations.Auto": AutoNCrossValidations, + "NCrossValidations.Custom": CustomNCrossValidations, + "Seasonality.Auto": AutoSeasonality, + "Seasonality.Custom": CustomSeasonality, + "TargetLags.Auto": AutoTargetLags, + "TargetLags.Custom": CustomTargetLags, + "TargetRollingWindowSize.Auto": AutoTargetRollingWindowSize, + "TargetRollingWindowSize.Custom": CustomTargetRollingWindowSize, + "AzureDatastore.AzureBlob": AzureBlobDatastore, + "AzureDatastore.AzureDataLakeGen1": AzureDataLakeGen1Datastore, + "AzureDatastore.AzureDataLakeGen2": AzureDataLakeGen2Datastore, + "AzureDatastore.AzureFile": AzureFileDatastore, "EarlyTerminationPolicy.Bandit": BanditPolicy, "EarlyTerminationPolicy.MedianStopping": MedianStoppingPolicy, "EarlyTerminationPolicy.TruncationSelection": TruncationSelectionPolicy, @@ -9373,18 +13361,18 @@ export let discriminators = { "DistributionConfiguration.Mpi": Mpi, "DistributionConfiguration.PyTorch": PyTorch, "DistributionConfiguration.TensorFlow": TensorFlow, - "JobInput.literal": LiteralJobInput, "JobLimits.Command": CommandJobLimits, "JobLimits.Sweep": SweepJobLimits, + "SparkJobEntry.SparkJobPythonEntry": SparkJobScalaEntry, "EndpointDeploymentPropertiesBase.Kubernetes": KubernetesOnlineDeployment, "EndpointDeploymentPropertiesBase.Managed": ManagedOnlineDeployment, "ResourceBase.DataVersionBaseProperties": DataVersionBaseProperties, - "ResourceBase.AzureBlob": AzureBlobDatastore, - "ResourceBase.AzureDataLakeGen1": AzureDataLakeGen1Datastore, - "ResourceBase.AzureDataLakeGen2": AzureDataLakeGen2Datastore, - "ResourceBase.AzureFile": AzureFileDatastore, + "ResourceBase.Hdfs": HdfsDatastore, + "ResourceBase.Labeling": LabelingJobProperties, + "ResourceBase.AutoML": AutoMLJob, "ResourceBase.Command": CommandJob, "ResourceBase.Pipeline": PipelineJob, + "ResourceBase.Spark": SparkJob, "ResourceBase.Sweep": SweepJob, "ResourceBase.mltable": MLTableData, "ResourceBase.uri_file": UriFileDataVersion, diff --git a/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts b/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts index 605504c965b2d..6be689a5089a1 100644 --- a/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts +++ b/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts @@ -18,6 +18,7 @@ import { QuotaUpdateParameters as QuotaUpdateParametersMapper, ComputeResource as ComputeResourceMapper, ClusterUpdateParameters as ClusterUpdateParametersMapper, + IdleShutdownSetting as IdleShutdownSettingMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, WorkspaceConnectionPropertiesV2BasicResource as WorkspaceConnectionPropertiesV2BasicResourceMapper, PartialMinimalTrackedResourceWithIdentity as PartialMinimalTrackedResourceWithIdentityMapper, @@ -34,13 +35,16 @@ import { EnvironmentContainer as EnvironmentContainerMapper, EnvironmentVersion as EnvironmentVersionMapper, JobBase as JobBaseMapper, + LabelingJob as LabelingJobMapper, + ExportSummary as ExportSummaryMapper, ModelContainer as ModelContainerMapper, ModelVersion as ModelVersionMapper, OnlineEndpoint as OnlineEndpointMapper, RegenerateEndpointKeysRequest as RegenerateEndpointKeysRequestMapper, PartialMinimalTrackedResourceWithSku as PartialMinimalTrackedResourceWithSkuMapper, OnlineDeployment as OnlineDeploymentMapper, - DeploymentLogsRequest as DeploymentLogsRequestMapper + DeploymentLogsRequest as DeploymentLogsRequestMapper, + Schedule as ScheduleMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -70,7 +74,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-05-01", + defaultValue: "2022-06-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -219,6 +223,28 @@ export const underlyingResourceAction: OperationQueryParameter = { } }; +export const customServices: OperationParameter = { + parameterPath: "customServices", + mapper: { + serializedName: "customServices", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CustomService" + } + } + } + } +}; + +export const parameters6: OperationParameter = { + parameterPath: "parameters", + mapper: IdleShutdownSettingMapper +}; + export const privateEndpointConnectionName: OperationURLParameter = { parameterPath: "privateEndpointConnectionName", mapper: { @@ -235,7 +261,7 @@ export const properties: OperationParameter = { mapper: PrivateEndpointConnectionMapper }; -export const parameters6: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", mapper: WorkspaceConnectionPropertiesV2BasicResourceMapper }; @@ -571,6 +597,26 @@ export const tag: OperationQueryParameter = { } }; +export const scheduled: OperationQueryParameter = { + parameterPath: ["options", "scheduled"], + mapper: { + serializedName: "scheduled", + type: { + name: "Boolean" + } + } +}; + +export const scheduleId: OperationQueryParameter = { + parameterPath: ["options", "scheduleId"], + mapper: { + serializedName: "scheduleId", + type: { + name: "String" + } + } +}; + export const id: OperationURLParameter = { parameterPath: "id", mapper: { @@ -601,7 +647,39 @@ export const id1: OperationURLParameter = { } }; +export const includeJobInstructions: OperationQueryParameter = { + parameterPath: ["options", "includeJobInstructions"], + mapper: { + defaultValue: false, + serializedName: "includeJobInstructions", + type: { + name: "Boolean" + } + } +}; + +export const includeLabelCategories: OperationQueryParameter = { + parameterPath: ["options", "includeLabelCategories"], + mapper: { + defaultValue: false, + serializedName: "includeLabelCategories", + type: { + name: "Boolean" + } + } +}; + export const body14: OperationParameter = { + parameterPath: "body", + mapper: LabelingJobMapper +}; + +export const body15: OperationParameter = { + parameterPath: "body", + mapper: ExportSummaryMapper +}; + +export const body16: OperationParameter = { parameterPath: "body", mapper: ModelContainerMapper }; @@ -666,7 +744,7 @@ export const feed: OperationQueryParameter = { } }; -export const body15: OperationParameter = { +export const body17: OperationParameter = { parameterPath: "body", mapper: ModelVersionMapper }; @@ -701,27 +779,32 @@ export const orderBy2: OperationQueryParameter = { } }; -export const body16: OperationParameter = { +export const body18: OperationParameter = { parameterPath: "body", mapper: OnlineEndpointMapper }; -export const body17: OperationParameter = { +export const body19: OperationParameter = { parameterPath: "body", mapper: RegenerateEndpointKeysRequestMapper }; -export const body18: OperationParameter = { +export const body20: OperationParameter = { parameterPath: "body", mapper: PartialMinimalTrackedResourceWithSkuMapper }; -export const body19: OperationParameter = { +export const body21: OperationParameter = { parameterPath: "body", mapper: OnlineDeploymentMapper }; -export const body20: OperationParameter = { +export const body22: OperationParameter = { parameterPath: "body", mapper: DeploymentLogsRequestMapper }; + +export const body23: OperationParameter = { + parameterPath: "body", + mapper: ScheduleMapper +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts b/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts index af2cfa7d6de53..02ffbe3dca35d 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts @@ -31,12 +31,16 @@ import { ComputeUpdateResponse, UnderlyingResourceAction, ComputeDeleteOptionalParams, + CustomService, + ComputeUpdateCustomServicesOptionalParams, ComputeListNodesResponse, ComputeListKeysOptionalParams, ComputeListKeysResponse, ComputeStartOptionalParams, ComputeStopOptionalParams, ComputeRestartOptionalParams, + IdleShutdownSetting, + ComputeUpdateIdleShutdownSettingOptionalParams, ComputeListNextResponse, ComputeListNodesNextResponse } from "../models"; @@ -527,6 +531,33 @@ export class ComputeOperationsImpl implements ComputeOperations { return poller.pollUntilDone(); } + /** + * Updates the custom services list. The list of custom services provided shall be overwritten + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param customServices New list of Custom Services. + * @param options The options parameters. + */ + updateCustomServices( + resourceGroupName: string, + workspaceName: string, + computeName: string, + customServices: CustomService[], + options?: ComputeUpdateCustomServicesOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + computeName, + customServices, + options + }, + updateCustomServicesOperationSpec + ); + } + /** * Get the details (e.g IP address, port etc) of all the compute nodes in the compute. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -826,6 +857,27 @@ export class ComputeOperationsImpl implements ComputeOperations { return poller.pollUntilDone(); } + /** + * Updates the idle shutdown setting of a compute instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param parameters The object for updating idle shutdown setting of specified ComputeInstance. + * @param options The options parameters. + */ + updateIdleShutdownSetting( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: IdleShutdownSetting, + options?: ComputeUpdateIdleShutdownSettingOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, computeName, parameters, options }, + updateIdleShutdownSettingOperationSpec + ); + } + /** * ListNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1006,6 +1058,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const updateCustomServicesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/customServices", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.customServices, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const listNodesOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listNodes", @@ -1124,6 +1199,29 @@ const restartOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const updateIdleShutdownSettingOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/updateIdleShutdownSetting", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters6, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/index.ts b/sdk/machinelearning/arm-machinelearning/src/operations/index.ts index c6300becb0a1e..8ea1d4b2e5798 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/index.ts @@ -27,8 +27,10 @@ export * from "./datastores"; export * from "./environmentContainers"; export * from "./environmentVersions"; export * from "./jobs"; +export * from "./labelingJobs"; export * from "./modelContainers"; export * from "./modelVersions"; export * from "./onlineEndpoints"; export * from "./onlineDeployments"; +export * from "./schedules"; export * from "./workspaceFeatures"; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/jobs.ts b/sdk/machinelearning/arm-machinelearning/src/operations/jobs.ts index 1eb80436b2f4e..ec0091ea18388 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/jobs.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/jobs.ts @@ -371,7 +371,9 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.skip, Parameters.listViewType, Parameters.jobType, - Parameters.tag + Parameters.tag, + Parameters.scheduled, + Parameters.scheduleId ], urlParameters: [ Parameters.$host, @@ -497,7 +499,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.skip, Parameters.listViewType, Parameters.jobType, - Parameters.tag + Parameters.tag, + Parameters.scheduled, + Parameters.scheduleId ], urlParameters: [ Parameters.$host, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/labelingJobs.ts b/sdk/machinelearning/arm-machinelearning/src/operations/labelingJobs.ts new file mode 100644 index 0000000000000..980e0b0168443 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/labelingJobs.ts @@ -0,0 +1,691 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { LabelingJobs } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + LabelingJob, + LabelingJobsListNextOptionalParams, + LabelingJobsListOptionalParams, + LabelingJobsListResponse, + LabelingJobsDeleteOptionalParams, + LabelingJobsGetOptionalParams, + LabelingJobsGetResponse, + LabelingJobsCreateOrUpdateOptionalParams, + LabelingJobsCreateOrUpdateResponse, + ExportSummaryUnion, + LabelingJobsExportLabelsOptionalParams, + LabelingJobsExportLabelsResponse, + LabelingJobsPauseOptionalParams, + LabelingJobsResumeOptionalParams, + LabelingJobsListNextResponse +} from "../models"; + +/// +/** Class containing LabelingJobs operations. */ +export class LabelingJobsImpl implements LabelingJobs { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class LabelingJobs class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * Lists labeling jobs in the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * Lists labeling jobs in the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete a labeling job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: LabelingJobsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, id, options }, + deleteOperationSpec + ); + } + + /** + * Gets a labeling job by name/id. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: LabelingJobsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, id, options }, + getOperationSpec + ); + } + + /** + * Creates or updates a labeling job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param body LabelingJob definition object. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + id: string, + body: LabelingJob, + options?: LabelingJobsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + LabelingJobsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, id, body, options }, + createOrUpdateOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates a labeling job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param body LabelingJob definition object. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + id: string, + body: LabelingJob, + options?: LabelingJobsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + id, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Export labels from a labeling job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param body The export summary. + * @param options The options parameters. + */ + async beginExportLabels( + resourceGroupName: string, + workspaceName: string, + id: string, + body: ExportSummaryUnion, + options?: LabelingJobsExportLabelsOptionalParams + ): Promise< + PollerLike< + PollOperationState, + LabelingJobsExportLabelsResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, id, body, options }, + exportLabelsOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Export labels from a labeling job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param body The export summary. + * @param options The options parameters. + */ + async beginExportLabelsAndWait( + resourceGroupName: string, + workspaceName: string, + id: string, + body: ExportSummaryUnion, + options?: LabelingJobsExportLabelsOptionalParams + ): Promise { + const poller = await this.beginExportLabels( + resourceGroupName, + workspaceName, + id, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Pause a labeling job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param options The options parameters. + */ + pause( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: LabelingJobsPauseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, id, options }, + pauseOperationSpec + ); + } + + /** + * Resume a labeling job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param options The options parameters. + */ + async beginResume( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: LabelingJobsResumeOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, id, options }, + resumeOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Resume a labeling job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param options The options parameters. + */ + async beginResumeAndWait( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: LabelingJobsResumeOptionalParams + ): Promise { + const poller = await this.beginResume( + resourceGroupName, + workspaceName, + id, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: LabelingJobsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LabelingJobResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.count], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LabelingJob + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.includeJobInstructions, + Parameters.includeLabelCategories + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.LabelingJob + }, + 201: { + bodyMapper: Mappers.LabelingJob + }, + 202: { + bodyMapper: Mappers.LabelingJob + }, + 204: { + bodyMapper: Mappers.LabelingJob + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body14, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const exportLabelsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/exportLabels", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ExportSummary + }, + 201: { + bodyMapper: Mappers.ExportSummary + }, + 202: { + bodyMapper: Mappers.ExportSummary + }, + 204: { + bodyMapper: Mappers.ExportSummary + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body15, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const pauseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/pause", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const resumeOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/resume", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LabelingJobResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.count], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/modelContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/modelContainers.ts index 46a0851221a68..eda605f5ec0b7 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/modelContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/modelContainers.ts @@ -282,7 +282,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body14, + requestBody: Parameters.body16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/modelVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/modelVersions.ts index 62d4861db82cd..d8653d43e3325 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/modelVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/modelVersions.ts @@ -323,7 +323,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body15, + requestBody: Parameters.body17, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/onlineDeployments.ts b/sdk/machinelearning/arm-machinelearning/src/operations/onlineDeployments.ts index 57bfa146189e7..6cc9106920b08 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/onlineDeployments.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/onlineDeployments.ts @@ -791,7 +791,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body18, + requestBody: Parameters.body20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -826,7 +826,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body19, + requestBody: Parameters.body21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -852,7 +852,7 @@ const getLogsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body20, + requestBody: Parameters.body22, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/onlineEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operations/onlineEndpoints.ts index 335ace8e202df..4bfc6e5a661a7 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/onlineEndpoints.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/onlineEndpoints.ts @@ -711,7 +711,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body16, + requestBody: Parameters.body18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -760,7 +760,7 @@ const regenerateKeysOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body17, + requestBody: Parameters.body19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/schedules.ts b/sdk/machinelearning/arm-machinelearning/src/operations/schedules.ts new file mode 100644 index 0000000000000..80c36801a790b --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/schedules.ts @@ -0,0 +1,468 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Schedules } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + Schedule, + SchedulesListNextOptionalParams, + SchedulesListOptionalParams, + SchedulesListResponse, + SchedulesDeleteOptionalParams, + SchedulesGetOptionalParams, + SchedulesGetResponse, + SchedulesCreateOrUpdateOptionalParams, + SchedulesCreateOrUpdateResponse, + SchedulesListNextResponse +} from "../models"; + +/// +/** Class containing Schedules operations. */ +export class SchedulesImpl implements Schedules { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class Schedules class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * List schedules in specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: SchedulesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: SchedulesListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: SchedulesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List schedules in specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: SchedulesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete schedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Schedule name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: SchedulesDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, name, options }, + deleteOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Delete schedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Schedule name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: SchedulesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + name, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get schedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Schedule name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: SchedulesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + getOperationSpec + ); + } + + /** + * Create or update schedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Schedule name. + * @param body Schedule definition. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: Schedule, + options?: SchedulesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + SchedulesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, name, body, options }, + createOrUpdateOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Create or update schedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Schedule name. + * @param body Schedule definition. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: Schedule, + options?: SchedulesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + name, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: SchedulesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/schedules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ScheduleResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/schedules/{name}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/schedules/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Schedule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/schedules/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.Schedule + }, + 201: { + bodyMapper: Mappers.Schedule + }, + 202: { + bodyMapper: Mappers.Schedule + }, + 204: { + bodyMapper: Mappers.Schedule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body23, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ScheduleResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts b/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts index 0c7762a8bcaf1..3f0bab324aa3b 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts @@ -202,7 +202,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts index 630c4eee8be14..6d4942774839f 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts @@ -22,11 +22,15 @@ import { ComputeUpdateResponse, UnderlyingResourceAction, ComputeDeleteOptionalParams, + CustomService, + ComputeUpdateCustomServicesOptionalParams, ComputeListKeysOptionalParams, ComputeListKeysResponse, ComputeStartOptionalParams, ComputeStopOptionalParams, - ComputeRestartOptionalParams + ComputeRestartOptionalParams, + IdleShutdownSetting, + ComputeUpdateIdleShutdownSettingOptionalParams } from "../models"; /// @@ -175,6 +179,21 @@ export interface ComputeOperations { underlyingResourceAction: UnderlyingResourceAction, options?: ComputeDeleteOptionalParams ): Promise; + /** + * Updates the custom services list. The list of custom services provided shall be overwritten + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param customServices New list of Custom Services. + * @param options The options parameters. + */ + updateCustomServices( + resourceGroupName: string, + workspaceName: string, + computeName: string, + customServices: CustomService[], + options?: ComputeUpdateCustomServicesOptionalParams + ): Promise; /** * Gets secrets related to Machine Learning compute (storage keys, service credentials, etc). * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -266,4 +285,19 @@ export interface ComputeOperations { computeName: string, options?: ComputeRestartOptionalParams ): Promise; + /** + * Updates the idle shutdown setting of a compute instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param parameters The object for updating idle shutdown setting of specified ComputeInstance. + * @param options The options parameters. + */ + updateIdleShutdownSetting( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: IdleShutdownSetting, + options?: ComputeUpdateIdleShutdownSettingOptionalParams + ): Promise; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts index c6300becb0a1e..8ea1d4b2e5798 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts @@ -27,8 +27,10 @@ export * from "./datastores"; export * from "./environmentContainers"; export * from "./environmentVersions"; export * from "./jobs"; +export * from "./labelingJobs"; export * from "./modelContainers"; export * from "./modelVersions"; export * from "./onlineEndpoints"; export * from "./onlineDeployments"; +export * from "./schedules"; export * from "./workspaceFeatures"; diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/labelingJobs.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/labelingJobs.ts new file mode 100644 index 0000000000000..9112412088192 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/labelingJobs.ts @@ -0,0 +1,175 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + LabelingJob, + LabelingJobsListOptionalParams, + LabelingJobsDeleteOptionalParams, + LabelingJobsGetOptionalParams, + LabelingJobsGetResponse, + LabelingJobsCreateOrUpdateOptionalParams, + LabelingJobsCreateOrUpdateResponse, + ExportSummaryUnion, + LabelingJobsExportLabelsOptionalParams, + LabelingJobsExportLabelsResponse, + LabelingJobsPauseOptionalParams, + LabelingJobsResumeOptionalParams +} from "../models"; + +/// +/** Interface representing a LabelingJobs. */ +export interface LabelingJobs { + /** + * Lists labeling jobs in the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete a labeling job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: LabelingJobsDeleteOptionalParams + ): Promise; + /** + * Gets a labeling job by name/id. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: LabelingJobsGetOptionalParams + ): Promise; + /** + * Creates or updates a labeling job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param body LabelingJob definition object. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + id: string, + body: LabelingJob, + options?: LabelingJobsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + LabelingJobsCreateOrUpdateResponse + > + >; + /** + * Creates or updates a labeling job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param body LabelingJob definition object. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + id: string, + body: LabelingJob, + options?: LabelingJobsCreateOrUpdateOptionalParams + ): Promise; + /** + * Export labels from a labeling job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param body The export summary. + * @param options The options parameters. + */ + beginExportLabels( + resourceGroupName: string, + workspaceName: string, + id: string, + body: ExportSummaryUnion, + options?: LabelingJobsExportLabelsOptionalParams + ): Promise< + PollerLike< + PollOperationState, + LabelingJobsExportLabelsResponse + > + >; + /** + * Export labels from a labeling job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param body The export summary. + * @param options The options parameters. + */ + beginExportLabelsAndWait( + resourceGroupName: string, + workspaceName: string, + id: string, + body: ExportSummaryUnion, + options?: LabelingJobsExportLabelsOptionalParams + ): Promise; + /** + * Pause a labeling job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param options The options parameters. + */ + pause( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: LabelingJobsPauseOptionalParams + ): Promise; + /** + * Resume a labeling job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param options The options parameters. + */ + beginResume( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: LabelingJobsResumeOptionalParams + ): Promise, void>>; + /** + * Resume a labeling job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param options The options parameters. + */ + beginResumeAndWait( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: LabelingJobsResumeOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/schedules.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/schedules.ts new file mode 100644 index 0000000000000..aaa2ce6be834d --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/schedules.ts @@ -0,0 +1,109 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + Schedule, + SchedulesListOptionalParams, + SchedulesDeleteOptionalParams, + SchedulesGetOptionalParams, + SchedulesGetResponse, + SchedulesCreateOrUpdateOptionalParams, + SchedulesCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a Schedules. */ +export interface Schedules { + /** + * List schedules in specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: SchedulesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete schedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Schedule name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: SchedulesDeleteOptionalParams + ): Promise, void>>; + /** + * Delete schedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Schedule name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: SchedulesDeleteOptionalParams + ): Promise; + /** + * Get schedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Schedule name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: SchedulesGetOptionalParams + ): Promise; + /** + * Create or update schedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Schedule name. + * @param body Schedule definition. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: Schedule, + options?: SchedulesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + SchedulesCreateOrUpdateResponse + > + >; + /** + * Create or update schedule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Schedule name. + * @param body Schedule definition. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: Schedule, + options?: SchedulesCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/tsconfig.json b/sdk/machinelearning/arm-machinelearning/tsconfig.json index c068b7a47837c..3e6ae96443f33 100644 --- a/sdk/machinelearning/arm-machinelearning/tsconfig.json +++ b/sdk/machinelearning/arm-machinelearning/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-machinelearning": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"