diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index eaac94f66b02..e6730f76d2df 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -4092,7 +4092,7 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.3.0-dev.20230825 + typescript: 5.3.0-dev.20230827 dev: false /ecdsa-sig-formatter/1.0.11: @@ -8661,8 +8661,8 @@ packages: hasBin: true dev: false - /typescript/5.3.0-dev.20230825: - resolution: {integrity: sha512-LbxxB17+nHqe7e6oA/240Ha1kOhtrgmLz98Dq3Nbm1sEdkqOnsv3j9XbI0tqd+RWtC/5pgnljHmZRHk/qUeKpQ==} + /typescript/5.3.0-dev.20230827: + resolution: {integrity: sha512-LXoK1ae7+xCSaRWV+/dKMoq6vasSldbtHxKLaPvcWGKv4yQbxxiA5gwz3PWtuaE5JbVk0NrZiWATIoRgr/Yufg==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -13353,7 +13353,7 @@ packages: dev: false file:projects/arm-machinelearning.tgz: - resolution: {integrity: sha512-Xx3JWFcuUoNn3AK9vUwtq92vfEdJPg3ABvtjFQFIwpoa+h/FRhb1EzSHMzFRBJkM0Ghj5kpusFbDXKuFeU3H3w==, tarball: file:projects/arm-machinelearning.tgz} + resolution: {integrity: sha512-jFzSExNSO6grUaxz+1B+9QkJH+aLwwcLdJpW8hG6d+j+sDfTb+wbA1hUztKSBHPS9WFzZDWnsi5SOabjOFr2mA==, tarball: file:projects/arm-machinelearning.tgz} name: '@rush-temp/arm-machinelearning' version: 0.0.0 dependencies: @@ -13367,7 +13367,8 @@ packages: '@types/node': 14.18.54 chai: 4.3.7 cross-env: 7.0.3 - mkdirp: 1.0.4 + dotenv: 16.3.1 + mkdirp: 2.1.6 mocha: 7.2.0 rimraf: 3.0.2 rollup: 2.79.1 diff --git a/sdk/machinelearning/arm-machinelearning/CHANGELOG.md b/sdk/machinelearning/arm-machinelearning/CHANGELOG.md index 1a059d33be9a..df2a3e389557 100644 --- a/sdk/machinelearning/arm-machinelearning/CHANGELOG.md +++ b/sdk/machinelearning/arm-machinelearning/CHANGELOG.md @@ -1,15 +1,972 @@ # Release History + +## 3.0.0-beta.1 (2023-08-28) + +**Features** -## 2.1.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation group Features + - Added operation group FeaturesetContainers + - Added operation group FeaturesetVersions + - Added operation group FeaturestoreEntityContainers + - Added operation group FeaturestoreEntityVersions + - Added operation group LabelingJobs + - Added operation group ManagedNetworkProvisions + - Added operation group ManagedNetworkSettingsRule + - Added operation group Registries + - Added operation group RegistryCodeContainers + - Added operation group RegistryCodeVersions + - Added operation group RegistryComponentContainers + - Added operation group RegistryComponentVersions + - Added operation group RegistryDataContainers + - Added operation group RegistryDataVersions + - Added operation group RegistryEnvironmentContainers + - Added operation group RegistryEnvironmentVersions + - Added operation group RegistryModelContainers + - Added operation group RegistryModelVersions + - Added operation group ServerlessEndpoints + - Added operation CodeVersions.createOrGetStartPendingUpload + - Added operation ComputeOperations.beginResize + - Added operation ComputeOperations.beginResizeAndWait + - Added operation ComputeOperations.getAllowedResizeSizes + - Added operation ComputeOperations.updateCustomServices + - Added operation ComputeOperations.updateIdleShutdownSetting + - Added operation Jobs.update + - Added operation ModelVersions.beginPackage + - Added operation ModelVersions.beginPackageAndWait + - Added operation WorkspaceConnections.listSecrets + - Added operation WorkspaceConnections.update + - Added Interface AccessKeyAuthTypeWorkspaceConnectionProperties + - Added Interface AcrDetails + - Added Interface AllFeatures + - Added Interface AllNodes + - Added Interface AmlTokenComputeIdentity + - Added Interface ApiKeyAuthWorkspaceConnectionProperties + - Added Interface ArmResourceId + - Added Interface AutoDeleteSetting + - Added Interface AutologgerSettings + - Added Interface AzMonMonitoringAlertNotificationSettings + - Added Interface AzureDatastore + - Added Interface AzureDevOpsWebhook + - Added Interface AzureMachineLearningServicesOptionalParams + - Added Interface AzureMLBatchInferencingServer + - Added Interface AzureMLOnlineInferencingServer + - Added Interface BaseEnvironmentId + - Added Interface BaseEnvironmentSource + - Added Interface BatchDeploymentConfiguration + - Added Interface BatchPipelineComponentDeploymentConfiguration + - Added Interface BindOptions + - Added Interface BlobReferenceForConsumptionDto + - Added Interface CategoricalDataDriftMetricThreshold + - Added Interface CategoricalDataQualityMetricThreshold + - Added Interface CategoricalPredictionDriftMetricThreshold + - Added Interface ClassificationModelPerformanceMetricThreshold + - Added Interface CocoExportSummary + - Added Interface CodeVersionsCreateOrGetStartPendingUploadOptionalParams + - Added Interface Collection + - Added Interface ComputeGetAllowedResizeSizesOptionalParams + - Added Interface ComputeInstanceAutologgerSettings + - Added Interface ComputeResizeHeaders + - Added Interface ComputeResizeOptionalParams + - Added Interface ComputeRuntimeDto + - Added Interface ComputeUpdateCustomServicesOptionalParams + - Added Interface ComputeUpdateIdleShutdownSettingOptionalParams + - Added Interface CreateMonitorAction + - Added Interface Cron + - Added Interface CsvExportSummary + - Added Interface CustomInferencingServer + - Added Interface CustomKeys + - Added Interface CustomKeysWorkspaceConnectionProperties + - Added Interface CustomMetricThreshold + - Added Interface CustomMonitoringSignal + - Added Interface CustomService + - Added Interface DatabaseSource + - Added Interface DataCollector + - Added Interface DataDriftMetricThresholdBase + - Added Interface DataDriftMonitoringSignal + - Added Interface DataImport + - Added Interface DataImportSource + - Added Interface DataQualityMetricThresholdBase + - Added Interface DataQualityMonitoringSignal + - Added Interface DatasetExportSummary + - Added Interface Docker + - Added Interface EmailMonitoringAlertNotificationSettings + - Added Interface EncryptionKeyVaultUpdateProperties + - Added Interface EncryptionUpdateProperties + - Added Interface Endpoint + - Added Interface EnvironmentVariable + - Added Interface ExportSummary + - Added Interface Feature + - Added Interface FeatureAttributionDriftMonitoringSignal + - Added Interface FeatureAttributionMetricThreshold + - Added Interface FeatureProperties + - Added Interface FeatureResourceArmPaginatedResult + - Added Interface FeaturesetContainer + - Added Interface FeaturesetContainerProperties + - Added Interface FeaturesetContainerResourceArmPaginatedResult + - Added Interface FeaturesetContainersCreateOrUpdateHeaders + - Added Interface FeaturesetContainersCreateOrUpdateOptionalParams + - Added Interface FeaturesetContainersDeleteHeaders + - Added Interface FeaturesetContainersDeleteOptionalParams + - Added Interface FeaturesetContainersGetEntityOptionalParams + - Added Interface FeaturesetContainersListNextOptionalParams + - Added Interface FeaturesetContainersListOptionalParams + - Added Interface FeaturesetSpecification + - Added Interface FeaturesetVersion + - Added Interface FeaturesetVersionBackfillRequest + - Added Interface FeaturesetVersionBackfillResponse + - Added Interface FeaturesetVersionProperties + - Added Interface FeaturesetVersionResourceArmPaginatedResult + - Added Interface FeaturesetVersionsBackfillHeaders + - Added Interface FeaturesetVersionsBackfillOptionalParams + - Added Interface FeaturesetVersionsCreateOrUpdateHeaders + - Added Interface FeaturesetVersionsCreateOrUpdateOptionalParams + - Added Interface FeaturesetVersionsDeleteHeaders + - Added Interface FeaturesetVersionsDeleteOptionalParams + - Added Interface FeaturesetVersionsGetOptionalParams + - Added Interface FeaturesetVersionsListNextOptionalParams + - Added Interface FeaturesetVersionsListOptionalParams + - Added Interface FeaturesGetOptionalParams + - Added Interface FeaturesListNextOptionalParams + - Added Interface FeaturesListOptionalParams + - Added Interface FeaturestoreEntityContainer + - Added Interface FeaturestoreEntityContainerProperties + - Added Interface FeaturestoreEntityContainerResourceArmPaginatedResult + - Added Interface FeaturestoreEntityContainersCreateOrUpdateHeaders + - Added Interface FeaturestoreEntityContainersCreateOrUpdateOptionalParams + - Added Interface FeaturestoreEntityContainersDeleteHeaders + - Added Interface FeaturestoreEntityContainersDeleteOptionalParams + - Added Interface FeaturestoreEntityContainersGetEntityOptionalParams + - Added Interface FeaturestoreEntityContainersListNextOptionalParams + - Added Interface FeaturestoreEntityContainersListOptionalParams + - Added Interface FeaturestoreEntityVersion + - Added Interface FeaturestoreEntityVersionProperties + - Added Interface FeaturestoreEntityVersionResourceArmPaginatedResult + - Added Interface FeaturestoreEntityVersionsCreateOrUpdateHeaders + - Added Interface FeaturestoreEntityVersionsCreateOrUpdateOptionalParams + - Added Interface FeaturestoreEntityVersionsDeleteHeaders + - Added Interface FeaturestoreEntityVersionsDeleteOptionalParams + - Added Interface FeaturestoreEntityVersionsGetOptionalParams + - Added Interface FeaturestoreEntityVersionsListNextOptionalParams + - Added Interface FeaturestoreEntityVersionsListOptionalParams + - Added Interface FeatureStoreSettings + - Added Interface FeatureSubset + - Added Interface FeatureWindow + - Added Interface FileSystemSource + - Added Interface FixedInputData + - Added Interface FqdnEndpointsPropertyBag + - Added Interface FqdnOutboundRule + - Added Interface GenerationSafetyQualityMetricThreshold + - Added Interface GenerationSafetyQualityMonitoringSignal + - Added Interface GenerationTokenStatisticsMetricThreshold + - Added Interface GenerationTokenStatisticsSignal + - Added Interface HdfsDatastore + - Added Interface IdleShutdownSetting + - Added Interface Image_2 + - Added Interface ImageMetadata + - Added Interface ImportDataAction + - Added Interface IndexColumn + - Added Interface InferencingServer + - Added Interface IntellectualProperty + - Added Interface JobsUpdateOptionalParams + - Added Interface KerberosCredentials + - Added Interface KerberosKeytabCredentials + - Added Interface KerberosKeytabSecrets + - Added Interface KerberosPasswordCredentials + - Added Interface KerberosPasswordSecrets + - Added Interface KeyVaultProperties + - 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 LakeHouseArtifact + - Added Interface ManagedComputeIdentity + - Added Interface ManagedNetworkProvisionOptions + - Added Interface ManagedNetworkProvisionsProvisionManagedNetworkHeaders + - Added Interface ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams + - Added Interface ManagedNetworkProvisionStatus + - Added Interface ManagedNetworkSettings + - Added Interface ManagedNetworkSettingsRuleCreateOrUpdateHeaders + - Added Interface ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams + - Added Interface ManagedNetworkSettingsRuleDeleteHeaders + - Added Interface ManagedNetworkSettingsRuleDeleteOptionalParams + - Added Interface ManagedNetworkSettingsRuleGetOptionalParams + - Added Interface ManagedNetworkSettingsRuleListNextOptionalParams + - Added Interface ManagedNetworkSettingsRuleListOptionalParams + - Added Interface MaterializationComputeResource + - Added Interface MaterializationSettings + - Added Interface MLAssistConfiguration + - Added Interface MLAssistConfigurationDisabled + - Added Interface MLAssistConfigurationEnabled + - Added Interface ModelConfiguration + - Added Interface ModelPackageInput + - Added Interface ModelPerformanceMetricThresholdBase + - Added Interface ModelPerformanceSignal + - Added Interface ModelProfile + - Added Interface ModelVersionsPackageHeaders + - Added Interface ModelVersionsPackageOptionalParams + - Added Interface MonitorComputeConfigurationBase + - Added Interface MonitorComputeIdentityBase + - Added Interface MonitorDefinition + - Added Interface MonitoringAlertNotificationSettingsBase + - Added Interface MonitoringDataSegment + - Added Interface MonitoringFeatureFilterBase + - Added Interface MonitoringInputDataBase + - Added Interface MonitoringSignalBase + - Added Interface MonitoringTarget + - Added Interface MonitoringThreshold + - Added Interface MonitoringWorkspaceConnection + - Added Interface MonitorServerlessSparkCompute + - Added Interface NlpFixedParameters + - Added Interface NlpParameterSubspace + - Added Interface NlpSweepSettings + - Added Interface Nodes + - Added Interface NotificationSetting + - Added Interface NumericalDataDriftMetricThreshold + - Added Interface NumericalDataQualityMetricThreshold + - Added Interface NumericalPredictionDriftMetricThreshold + - Added Interface OneLakeArtifact + - Added Interface OneLakeDatastore + - Added Interface OnlineInferenceConfiguration + - Added Interface OperationDisplay + - Added Interface OsPatchingStatus + - Added Interface OutboundRule + - Added Interface OutboundRuleBasicResource + - Added Interface OutboundRuleListResult + - Added Interface PackageInputPathBase + - Added Interface PackageInputPathId + - Added Interface PackageInputPathUrl + - Added Interface PackageInputPathVersion + - Added Interface PackageRequest + - Added Interface PackageResponse + - Added Interface PartialJobBase + - Added Interface PartialJobBasePartialResource + - Added Interface PartialMinimalTrackedResourceWithSkuAndIdentity + - Added Interface PartialNotificationSetting + - Added Interface PartialRegistryPartialTrackedResource + - Added Interface PendingUploadCredentialDto + - Added Interface PendingUploadRequestDto + - Added Interface PendingUploadResponseDto + - Added Interface PredictionDriftMetricThresholdBase + - Added Interface PredictionDriftMonitoringSignal + - Added Interface PrivateEndpointDestination + - Added Interface PrivateEndpointOutboundRule + - Added Interface PrivateEndpointResource + - Added Interface ProgressMetrics + - Added Interface QueueSettings + - Added Interface Ray + - Added Interface Recurrence + - Added Interface RegistriesCreateOrUpdateOptionalParams + - Added Interface RegistriesDeleteHeaders + - Added Interface RegistriesDeleteOptionalParams + - Added Interface RegistriesGetOptionalParams + - Added Interface RegistriesListBySubscriptionNextOptionalParams + - Added Interface RegistriesListBySubscriptionOptionalParams + - Added Interface RegistriesListNextOptionalParams + - Added Interface RegistriesListOptionalParams + - Added Interface RegistriesRemoveRegionsHeaders + - Added Interface RegistriesRemoveRegionsOptionalParams + - Added Interface RegistriesUpdateOptionalParams + - Added Interface Registry + - Added Interface RegistryCodeContainersCreateOrUpdateHeaders + - Added Interface RegistryCodeContainersCreateOrUpdateOptionalParams + - Added Interface RegistryCodeContainersDeleteHeaders + - Added Interface RegistryCodeContainersDeleteOptionalParams + - Added Interface RegistryCodeContainersGetOptionalParams + - Added Interface RegistryCodeContainersListNextOptionalParams + - Added Interface RegistryCodeContainersListOptionalParams + - Added Interface RegistryCodeVersionsCreateOrGetStartPendingUploadOptionalParams + - Added Interface RegistryCodeVersionsCreateOrUpdateHeaders + - Added Interface RegistryCodeVersionsCreateOrUpdateOptionalParams + - Added Interface RegistryCodeVersionsDeleteHeaders + - Added Interface RegistryCodeVersionsDeleteOptionalParams + - Added Interface RegistryCodeVersionsGetOptionalParams + - Added Interface RegistryCodeVersionsListNextOptionalParams + - Added Interface RegistryCodeVersionsListOptionalParams + - Added Interface RegistryComponentContainersCreateOrUpdateHeaders + - Added Interface RegistryComponentContainersCreateOrUpdateOptionalParams + - Added Interface RegistryComponentContainersDeleteHeaders + - Added Interface RegistryComponentContainersDeleteOptionalParams + - Added Interface RegistryComponentContainersGetOptionalParams + - Added Interface RegistryComponentContainersListNextOptionalParams + - Added Interface RegistryComponentContainersListOptionalParams + - Added Interface RegistryComponentVersionsCreateOrUpdateHeaders + - Added Interface RegistryComponentVersionsCreateOrUpdateOptionalParams + - Added Interface RegistryComponentVersionsDeleteHeaders + - Added Interface RegistryComponentVersionsDeleteOptionalParams + - Added Interface RegistryComponentVersionsGetOptionalParams + - Added Interface RegistryComponentVersionsListNextOptionalParams + - Added Interface RegistryComponentVersionsListOptionalParams + - Added Interface RegistryDataContainersCreateOrUpdateHeaders + - Added Interface RegistryDataContainersCreateOrUpdateOptionalParams + - Added Interface RegistryDataContainersDeleteHeaders + - Added Interface RegistryDataContainersDeleteOptionalParams + - Added Interface RegistryDataContainersGetOptionalParams + - Added Interface RegistryDataContainersListNextOptionalParams + - Added Interface RegistryDataContainersListOptionalParams + - Added Interface RegistryDataVersionsCreateOrGetStartPendingUploadOptionalParams + - Added Interface RegistryDataVersionsCreateOrUpdateHeaders + - Added Interface RegistryDataVersionsCreateOrUpdateOptionalParams + - Added Interface RegistryDataVersionsDeleteHeaders + - Added Interface RegistryDataVersionsDeleteOptionalParams + - Added Interface RegistryDataVersionsGetOptionalParams + - Added Interface RegistryDataVersionsListNextOptionalParams + - Added Interface RegistryDataVersionsListOptionalParams + - Added Interface RegistryEnvironmentContainersCreateOrUpdateHeaders + - Added Interface RegistryEnvironmentContainersCreateOrUpdateOptionalParams + - Added Interface RegistryEnvironmentContainersDeleteHeaders + - Added Interface RegistryEnvironmentContainersDeleteOptionalParams + - Added Interface RegistryEnvironmentContainersGetOptionalParams + - Added Interface RegistryEnvironmentContainersListNextOptionalParams + - Added Interface RegistryEnvironmentContainersListOptionalParams + - Added Interface RegistryEnvironmentVersionsCreateOrUpdateHeaders + - Added Interface RegistryEnvironmentVersionsCreateOrUpdateOptionalParams + - Added Interface RegistryEnvironmentVersionsDeleteHeaders + - Added Interface RegistryEnvironmentVersionsDeleteOptionalParams + - Added Interface RegistryEnvironmentVersionsGetOptionalParams + - Added Interface RegistryEnvironmentVersionsListNextOptionalParams + - Added Interface RegistryEnvironmentVersionsListOptionalParams + - Added Interface RegistryModelContainersCreateOrUpdateHeaders + - Added Interface RegistryModelContainersCreateOrUpdateOptionalParams + - Added Interface RegistryModelContainersDeleteHeaders + - Added Interface RegistryModelContainersDeleteOptionalParams + - Added Interface RegistryModelContainersGetOptionalParams + - Added Interface RegistryModelContainersListNextOptionalParams + - Added Interface RegistryModelContainersListOptionalParams + - Added Interface RegistryModelVersionsCreateOrGetStartPendingUploadOptionalParams + - Added Interface RegistryModelVersionsCreateOrUpdateHeaders + - Added Interface RegistryModelVersionsCreateOrUpdateOptionalParams + - Added Interface RegistryModelVersionsDeleteHeaders + - Added Interface RegistryModelVersionsDeleteOptionalParams + - Added Interface RegistryModelVersionsGetOptionalParams + - Added Interface RegistryModelVersionsListNextOptionalParams + - Added Interface RegistryModelVersionsListOptionalParams + - Added Interface RegistryModelVersionsPackageHeaders + - Added Interface RegistryModelVersionsPackageOptionalParams + - Added Interface RegistryPartialManagedServiceIdentity + - Added Interface RegistryPrivateEndpointConnection + - Added Interface RegistryPrivateLinkServiceConnectionState + - Added Interface RegistryRegionArmDetails + - Added Interface RegistryTrackedResourceArmPaginatedResult + - Added Interface RegressionModelPerformanceMetricThreshold + - Added Interface RequestLogging + - Added Interface ResizeSchema + - Added Interface SASCredentialDto + - Added Interface SecretConfiguration + - Added Interface ServerlessEndpoint + - Added Interface ServerlessEndpointProperties + - Added Interface ServerlessEndpointsCreateOrUpdateHeaders + - Added Interface ServerlessEndpointsCreateOrUpdateOptionalParams + - Added Interface ServerlessEndpointsDeleteHeaders + - Added Interface ServerlessEndpointsDeleteOptionalParams + - Added Interface ServerlessEndpointsGetOptionalParams + - Added Interface ServerlessEndpointsListKeysOptionalParams + - Added Interface ServerlessEndpointsListNextOptionalParams + - Added Interface ServerlessEndpointsListOptionalParams + - Added Interface ServerlessEndpointsRegenerateKeysHeaders + - Added Interface ServerlessEndpointsRegenerateKeysOptionalParams + - Added Interface ServerlessEndpointsUpdateHeaders + - Added Interface ServerlessEndpointsUpdateOptionalParams + - Added Interface ServerlessEndpointTrackedResourceArmPaginatedResult + - Added Interface ServicePrincipalAuthTypeWorkspaceConnectionProperties + - Added Interface ServiceTagDestination + - Added Interface ServiceTagOutboundRule + - Added Interface SparkJob + - Added Interface SparkJobEntry + - Added Interface SparkJobPythonEntry + - Added Interface SparkJobScalaEntry + - Added Interface SparkResourceConfiguration + - Added Interface StaticInputData + - Added Interface StatusMessage + - Added Interface StorageAccountDetails + - Added Interface SystemCreatedAcrAccount + - Added Interface SystemCreatedStorageAccount + - Added Interface TableFixedParameters + - Added Interface TableParameterSubspace + - Added Interface TableSweepSettings + - Added Interface TmpfsOptions + - Added Interface TopNFeaturesByAttribution + - Added Interface TrailingInputData + - Added Interface TritonInferencingServer + - Added Interface UserCreatedAcrAccount + - Added Interface UserCreatedStorageAccount + - Added Interface VolumeDefinition + - Added Interface VolumeOptions + - Added Interface Webhook + - Added Interface WorkspaceConnectionAccessKey + - Added Interface WorkspaceConnectionApiKey + - Added Interface WorkspaceConnectionServicePrincipal + - Added Interface WorkspaceConnectionsListSecretsOptionalParams + - Added Interface WorkspaceConnectionsUpdateOptionalParams + - Added Interface WorkspaceConnectionUpdateParameter + - Added Interface WorkspaceHubConfig + - Added Interface WorkspacePrivateEndpointResource + - Added Interface WorkspacesCreateOrUpdateHeaders + - Added Interface WorkspacesPrepareNotebookHeaders + - Added Interface WorkspacesResyncKeysHeaders + - Added Class AzureMachineLearningServices + - Added Type Alias AssetProvisioningState + - Added Type Alias AutoDeleteCondition + - Added Type Alias BaseEnvironmentSourceType + - Added Type Alias BaseEnvironmentSourceUnion + - Added Type Alias BatchDeploymentConfigurationType + - Added Type Alias BatchDeploymentConfigurationUnion + - Added Type Alias CategoricalDataDriftMetric + - Added Type Alias CategoricalDataQualityMetric + - Added Type Alias CategoricalPredictionDriftMetric + - Added Type Alias ClassificationModelPerformanceMetric + - Added Type Alias CodeVersionsCreateOrGetStartPendingUploadResponse + - Added Type Alias ComputeGetAllowedResizeSizesResponse + - Added Type Alias ComputeResizeResponse + - Added Type Alias DataAvailabilityStatus + - Added Type Alias DataCollectionMode + - Added Type Alias DataDriftMetricThresholdBaseUnion + - Added Type Alias DataImportSourceType + - Added Type Alias DataImportSourceUnion + - Added Type Alias DataQualityMetricThresholdBaseUnion + - Added Type Alias EmailNotificationEnableType + - Added Type Alias EndpointServiceConnectionStatus + - Added Type Alias EnvironmentVariableType + - Added Type Alias ExportFormatType + - Added Type Alias ExportSummaryUnion + - Added Type Alias FeatureAttributionMetric + - Added Type Alias FeatureDataType + - Added Type Alias FeaturesetContainersCreateOrUpdateResponse + - Added Type Alias FeaturesetContainersGetEntityResponse + - Added Type Alias FeaturesetContainersListNextResponse + - Added Type Alias FeaturesetContainersListResponse + - Added Type Alias FeaturesetVersionsBackfillResponse + - Added Type Alias FeaturesetVersionsCreateOrUpdateResponse + - Added Type Alias FeaturesetVersionsGetResponse + - Added Type Alias FeaturesetVersionsListNextResponse + - Added Type Alias FeaturesetVersionsListResponse + - Added Type Alias FeaturesGetResponse + - Added Type Alias FeaturesListNextResponse + - Added Type Alias FeaturesListResponse + - Added Type Alias FeaturestoreEntityContainersCreateOrUpdateResponse + - Added Type Alias FeaturestoreEntityContainersGetEntityResponse + - Added Type Alias FeaturestoreEntityContainersListNextResponse + - Added Type Alias FeaturestoreEntityContainersListResponse + - Added Type Alias FeaturestoreEntityVersionsCreateOrUpdateResponse + - Added Type Alias FeaturestoreEntityVersionsGetResponse + - Added Type Alias FeaturestoreEntityVersionsListNextResponse + - Added Type Alias FeaturestoreEntityVersionsListResponse + - Added Type Alias GenerationSafetyQualityMetric + - Added Type Alias GenerationTokenStatisticsMetric + - Added Type Alias ImageAnnotationType + - Added Type Alias ImageType + - Added Type Alias IncrementalDataRefresh + - Added Type Alias InferencingServerType + - Added Type Alias InferencingServerUnion + - Added Type Alias InputPathType + - Added Type Alias IsolationMode + - Added Type Alias JobProvisioningState + - Added Type Alias JobsUpdateResponse + - Added Type Alias JobTier + - 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 LabelingJobsPauseResponse + - Added Type Alias LabelingJobsResumeResponse + - Added Type Alias LogTrainingMetrics + - Added Type Alias LogValidationLoss + - Added Type Alias ManagedNetworkProvisionsProvisionManagedNetworkResponse + - Added Type Alias ManagedNetworkSettingsRuleCreateOrUpdateResponse + - Added Type Alias ManagedNetworkSettingsRuleGetResponse + - Added Type Alias ManagedNetworkSettingsRuleListNextResponse + - Added Type Alias ManagedNetworkSettingsRuleListResponse + - Added Type Alias ManagedNetworkStatus + - Added Type Alias MaterializationStoreType + - Added Type Alias MediaType + - Added Type Alias MLAssistConfigurationType + - Added Type Alias MLAssistConfigurationUnion + - Added Type Alias MlflowAutologger + - Added Type Alias MLFlowAutologgerState + - Added Type Alias ModelPerformanceMetricThresholdBaseUnion + - Added Type Alias ModelTaskType + - Added Type Alias ModelVersionsPackageResponse + - Added Type Alias MonitorComputeConfigurationBaseUnion + - Added Type Alias MonitorComputeIdentityBaseUnion + - Added Type Alias MonitorComputeIdentityType + - Added Type Alias MonitorComputeType + - Added Type Alias MonitoringAlertNotificationSettingsBaseUnion + - Added Type Alias MonitoringAlertNotificationType + - Added Type Alias MonitoringFeatureDataType + - Added Type Alias MonitoringFeatureFilterBaseUnion + - Added Type Alias MonitoringFeatureFilterType + - Added Type Alias MonitoringInputDataBaseUnion + - Added Type Alias MonitoringInputDataType + - Added Type Alias MonitoringModelType + - Added Type Alias MonitoringNotificationMode + - Added Type Alias MonitoringSignalBaseUnion + - Added Type Alias MonitoringSignalType + - Added Type Alias MultiSelect + - Added Type Alias NlpLearningRateScheduler + - Added Type Alias NodesUnion + - Added Type Alias NodesValueType + - Added Type Alias NumericalDataDriftMetric + - Added Type Alias NumericalDataQualityMetric + - Added Type Alias NumericalPredictionDriftMetric + - Added Type Alias OneLakeArtifactType + - Added Type Alias OneLakeArtifactUnion + - Added Type Alias OutboundRuleUnion + - Added Type Alias PackageBuildState + - Added Type Alias PackageInputDeliveryMode + - Added Type Alias PackageInputPathBaseUnion + - Added Type Alias PackageInputType + - Added Type Alias PatchStatus + - Added Type Alias PendingUploadCredentialDtoUnion + - Added Type Alias PendingUploadCredentialType + - Added Type Alias PendingUploadType + - Added Type Alias PredictionDriftMetricThresholdBaseUnion + - Added Type Alias ProtectionLevel + - Added Type Alias Protocol + - Added Type Alias RegistriesCreateOrUpdateResponse + - Added Type Alias RegistriesGetResponse + - Added Type Alias RegistriesListBySubscriptionNextResponse + - Added Type Alias RegistriesListBySubscriptionResponse + - Added Type Alias RegistriesListNextResponse + - Added Type Alias RegistriesListResponse + - Added Type Alias RegistriesRemoveRegionsResponse + - Added Type Alias RegistriesUpdateResponse + - Added Type Alias RegistryCodeContainersCreateOrUpdateResponse + - Added Type Alias RegistryCodeContainersGetResponse + - Added Type Alias RegistryCodeContainersListNextResponse + - Added Type Alias RegistryCodeContainersListResponse + - Added Type Alias RegistryCodeVersionsCreateOrGetStartPendingUploadResponse + - Added Type Alias RegistryCodeVersionsCreateOrUpdateResponse + - Added Type Alias RegistryCodeVersionsGetResponse + - Added Type Alias RegistryCodeVersionsListNextResponse + - Added Type Alias RegistryCodeVersionsListResponse + - Added Type Alias RegistryComponentContainersCreateOrUpdateResponse + - Added Type Alias RegistryComponentContainersGetResponse + - Added Type Alias RegistryComponentContainersListNextResponse + - Added Type Alias RegistryComponentContainersListResponse + - Added Type Alias RegistryComponentVersionsCreateOrUpdateResponse + - Added Type Alias RegistryComponentVersionsGetResponse + - Added Type Alias RegistryComponentVersionsListNextResponse + - Added Type Alias RegistryComponentVersionsListResponse + - Added Type Alias RegistryDataContainersCreateOrUpdateResponse + - Added Type Alias RegistryDataContainersGetResponse + - Added Type Alias RegistryDataContainersListNextResponse + - Added Type Alias RegistryDataContainersListResponse + - Added Type Alias RegistryDataVersionsCreateOrGetStartPendingUploadResponse + - Added Type Alias RegistryDataVersionsCreateOrUpdateResponse + - Added Type Alias RegistryDataVersionsGetResponse + - Added Type Alias RegistryDataVersionsListNextResponse + - Added Type Alias RegistryDataVersionsListResponse + - Added Type Alias RegistryEnvironmentContainersCreateOrUpdateResponse + - Added Type Alias RegistryEnvironmentContainersGetResponse + - Added Type Alias RegistryEnvironmentContainersListNextResponse + - Added Type Alias RegistryEnvironmentContainersListResponse + - Added Type Alias RegistryEnvironmentVersionsCreateOrUpdateResponse + - Added Type Alias RegistryEnvironmentVersionsGetResponse + - Added Type Alias RegistryEnvironmentVersionsListNextResponse + - Added Type Alias RegistryEnvironmentVersionsListResponse + - Added Type Alias RegistryModelContainersCreateOrUpdateResponse + - Added Type Alias RegistryModelContainersGetResponse + - Added Type Alias RegistryModelContainersListNextResponse + - Added Type Alias RegistryModelContainersListResponse + - Added Type Alias RegistryModelVersionsCreateOrGetStartPendingUploadResponse + - Added Type Alias RegistryModelVersionsCreateOrUpdateResponse + - Added Type Alias RegistryModelVersionsGetResponse + - Added Type Alias RegistryModelVersionsListNextResponse + - Added Type Alias RegistryModelVersionsListResponse + - Added Type Alias RegistryModelVersionsPackageResponse + - Added Type Alias RegressionModelPerformanceMetric + - Added Type Alias RollingRateType + - Added Type Alias RuleAction + - Added Type Alias RuleCategory + - Added Type Alias RuleStatus + - Added Type Alias RuleType + - Added Type Alias ServerlessEndpointsCreateOrUpdateResponse + - Added Type Alias ServerlessEndpointsGetResponse + - Added Type Alias ServerlessEndpointsListKeysResponse + - Added Type Alias ServerlessEndpointsListNextResponse + - Added Type Alias ServerlessEndpointsListResponse + - Added Type Alias ServerlessEndpointsRegenerateKeysResponse + - Added Type Alias ServerlessEndpointsUpdateResponse + - Added Type Alias SparkJobEntryType + - Added Type Alias SparkJobEntryUnion + - Added Type Alias StatusMessageLevel + - Added Type Alias TextAnnotationType + - Added Type Alias TrainingMode + - Added Type Alias VolumeDefinitionType + - Added Type Alias WebhookType + - Added Type Alias WebhookUnion + - Added Type Alias WorkspaceConnectionsListSecretsResponse + - Added Type Alias WorkspaceConnectionsUpdateResponse + - Interface AmlOperation has a new optional parameter origin + - Interface AssetBase has a new optional parameter autoDeleteSetting + - Interface AssetJobOutput has a new optional parameter assetName + - Interface AssetJobOutput has a new optional parameter assetVersion + - Interface AssetJobOutput has a new optional parameter autoDeleteSetting + - Interface AutoMLJob has a new optional parameter queueSettings + - Interface BatchDeploymentProperties has a new optional parameter deploymentConfiguration + - Interface CodeContainerProperties has a new optional parameter provisioningState + - Interface CodeVersionProperties has a new optional parameter provisioningState + - Interface CodeVersionsListOptionalParams has a new optional parameter hash + - Interface CodeVersionsListOptionalParams has a new optional parameter hashVersion + - Interface CommandJob has a new optional parameter autologgerSettings + - Interface CommandJob has a new optional parameter queueSettings + - Interface ComponentContainerProperties has a new optional parameter provisioningState + - Interface ComponentVersionProperties has a new optional parameter provisioningState + - Interface ComponentVersionProperties has a new optional parameter stage + - Interface ComponentVersionsListOptionalParams has a new optional parameter stage + - Interface ComputeInstanceProperties has a new optional parameter autologgerSettings + - Interface ComputeInstanceProperties has a new optional parameter customServices + - Interface ComputeInstanceProperties has a new optional parameter enableOSPatching + - Interface ComputeInstanceProperties has a new optional parameter idleTimeBeforeShutdown + - Interface ComputeInstanceProperties has a new optional parameter osImageMetadata + - Interface ComputeInstanceProperties has a new optional parameter releaseQuotaOnStop + - Interface DatastoreProperties has a new optional parameter intellectualProperty + - Interface DataVersionBaseProperties has a new optional parameter intellectualProperty + - Interface DataVersionBaseProperties has a new optional parameter stage + - Interface DataVersionsListOptionalParams has a new optional parameter stage + - Interface EncryptionProperty has a new optional parameter cosmosDbResourceId + - Interface EncryptionProperty has a new optional parameter searchAccountResourceId + - Interface EncryptionProperty has a new optional parameter storageAccountResourceId + - Interface EnvironmentContainerProperties has a new optional parameter provisioningState + - Interface EnvironmentVersionProperties has a new optional parameter intellectualProperty + - Interface EnvironmentVersionProperties has a new optional parameter provisioningState + - Interface EnvironmentVersionProperties has a new optional parameter stage + - Interface EnvironmentVersionsListOptionalParams has a new optional parameter stage + - Interface ForecastingSettings has a new optional parameter featuresUnknownAtForecastTime + - Interface FqdnEndpoints has a new optional parameter category + - Interface FqdnEndpoints has a new optional parameter endpoints + - Interface ImageModelSettingsObjectDetection has a new optional parameter logTrainingMetrics + - Interface ImageModelSettingsObjectDetection has a new optional parameter logValidationLoss + - Interface JobBaseProperties has a new optional parameter notificationSetting + - Interface JobBaseProperties has a new optional parameter secretsConfiguration + - Interface JobService has a new optional parameter nodes + - Interface JobsListOptionalParams has a new optional parameter assetName + - Interface JobsListOptionalParams has a new optional parameter scheduled + - Interface JobsListOptionalParams has a new optional parameter scheduleId + - Interface ListWorkspaceKeysResult has a new optional parameter userStorageArmId + - Interface ModelContainerProperties has a new optional parameter provisioningState + - Interface ModelVersionProperties has a new optional parameter intellectualProperty + - Interface ModelVersionProperties has a new optional parameter provisioningState + - Interface ModelVersionProperties has a new optional parameter stage + - Interface ModelVersionsListOptionalParams has a new optional parameter stage + - Interface NlpVertical has a new optional parameter fixedParameters + - Interface NlpVertical has a new optional parameter searchSpace + - Interface NlpVertical has a new optional parameter sweepSettings + - Interface NlpVerticalLimitSettings has a new optional parameter maxNodes + - Interface NlpVerticalLimitSettings has a new optional parameter trialTimeout + - Interface NotebookResourceInfo has a new optional parameter isPrivateLinkEnabled + - Interface OnlineDeploymentProperties has a new optional parameter dataCollector + - Interface OnlineEndpointProperties has a new optional parameter mirrorTraffic + - Interface RandomSamplingAlgorithm has a new optional parameter logbase + - Interface ResourceConfiguration has a new optional parameter locations + - Interface ResourceConfiguration has a new optional parameter maxInstanceCount + - Interface SweepJob has a new optional parameter queueSettings + - Interface SweepJob has a new optional parameter resources + - Interface TableVertical has a new optional parameter fixedParameters + - Interface TableVertical has a new optional parameter searchSpace + - Interface TableVertical has a new optional parameter sweepSettings + - Interface TableVerticalLimitSettings has a new optional parameter maxNodes + - Interface TableVerticalLimitSettings has a new optional parameter sweepConcurrentTrials + - Interface TableVerticalLimitSettings has a new optional parameter sweepTrials + - Interface TrainingSettings has a new optional parameter trainingMode + - Interface Workspace has a new optional parameter associatedWorkspaces + - Interface Workspace has a new optional parameter containerRegistries + - Interface Workspace has a new optional parameter enableDataIsolation + - Interface Workspace has a new optional parameter existingWorkspaces + - Interface Workspace has a new optional parameter featureStoreSettings + - Interface Workspace has a new optional parameter hubResourceId + - Interface Workspace has a new optional parameter keyVaults + - Interface Workspace has a new optional parameter kind + - Interface Workspace has a new optional parameter managedNetwork + - Interface Workspace has a new optional parameter softDeleteRetentionInDays + - Interface Workspace has a new optional parameter storageAccounts + - Interface Workspace has a new optional parameter systemDatastoresAuthMode + - Interface Workspace has a new optional parameter workspaceHubConfig + - Interface WorkspaceConnectionPropertiesV2 has a new optional parameter expiryTime + - Interface WorkspaceConnectionPropertiesV2 has a new optional parameter metadata + - Interface WorkspaceConnectionsCreateOptionalParams has a new optional parameter body + - Interface WorkspacesDeleteOptionalParams has a new optional parameter forceToPurge + - Interface WorkspacesDiagnoseOptionalParams has a new optional parameter body + - Interface WorkspacesListByResourceGroupOptionalParams has a new optional parameter kind + - Interface WorkspacesListBySubscriptionOptionalParams has a new optional parameter kind + - Interface WorkspaceUpdateParameters has a new optional parameter enableDataIsolation + - Interface WorkspaceUpdateParameters has a new optional parameter encryption + - Interface WorkspaceUpdateParameters has a new optional parameter featureStoreSettings + - Interface WorkspaceUpdateParameters has a new optional parameter managedNetwork + - Interface WorkspaceUpdateParameters has a new optional parameter softDeleteRetentionInDays + - Interface WorkspaceUpdateParameters has a new optional parameter v1LegacyMode + - Type of parameter referenceType of interface AssetReferenceBase is changed from "DataPath" | "Id" | "OutputPath" to "Id" | "DataPath" | "OutputPath" + - Type of parameter credentialsType of interface DatastoreCredentials is changed from "AccountKey" | "Certificate" | "None" | "Sas" | "ServicePrincipal" to "AccountKey" | "Certificate" | "KerberosKeytab" | "KerberosPassword" | "None" | "Sas" | "ServicePrincipal" + - Type of parameter secretsType of interface DatastoreSecrets is changed from "AccountKey" | "Certificate" | "Sas" | "ServicePrincipal" to "AccountKey" | "Certificate" | "KerberosKeytab" | "KerberosPassword" | "Sas" | "ServicePrincipal" + - Type of parameter distributionType of interface DistributionConfiguration is changed from "Mpi" | "PyTorch" | "TensorFlow" to "Mpi" | "PyTorch" | "Ray" | "TensorFlow" + - Type of parameter actionType of interface ScheduleActionBase is changed from "InvokeBatchEndpoint" | "CreateJob" to "CreateMonitor" | "InvokeBatchEndpoint" | "ImportData" | "CreateJob" + - Type of parameter authType of interface WorkspaceConnectionPropertiesV2 is changed from "PAT" | "SAS" | "UsernamePassword" | "None" | "ManagedIdentity" to "AccessKey" | "ApiKey" | "CustomKeys" | "ManagedIdentity" | "None" | "PAT" | "SAS" | "ServicePrincipal" | "UsernamePassword" + - Added Enum KnownAssetProvisioningState + - Added Enum KnownAutoDeleteCondition + - Added Enum KnownBaseEnvironmentSourceType + - Added Enum KnownBatchDeploymentConfigurationType + - Added Enum KnownCategoricalDataDriftMetric + - Added Enum KnownCategoricalDataQualityMetric + - Added Enum KnownCategoricalPredictionDriftMetric + - Added Enum KnownClassificationModelPerformanceMetric + - Added Enum KnownDataAvailabilityStatus + - Added Enum KnownDataCollectionMode + - Added Enum KnownDataImportSourceType + - Added Enum KnownEmailNotificationEnableType + - Added Enum KnownEndpointServiceConnectionStatus + - Added Enum KnownEnvironmentVariableType + - Added Enum KnownExportFormatType + - Added Enum KnownFeatureAttributionMetric + - Added Enum KnownFeatureDataType + - Added Enum KnownGenerationSafetyQualityMetric + - Added Enum KnownGenerationTokenStatisticsMetric + - Added Enum KnownImageAnnotationType + - Added Enum KnownImageType + - Added Enum KnownIncrementalDataRefresh + - Added Enum KnownInferencingServerType + - Added Enum KnownInputPathType + - Added Enum KnownIsolationMode + - Added Enum KnownJobProvisioningState + - Added Enum KnownJobTier + - Added Enum KnownLogTrainingMetrics + - Added Enum KnownLogValidationLoss + - Added Enum KnownManagedNetworkStatus + - Added Enum KnownMaterializationStoreType + - Added Enum KnownMediaType + - Added Enum KnownMLAssistConfigurationType + - Added Enum KnownMlflowAutologger + - Added Enum KnownMLFlowAutologgerState + - Added Enum KnownModelTaskType + - Added Enum KnownMonitorComputeIdentityType + - Added Enum KnownMonitorComputeType + - Added Enum KnownMonitoringAlertNotificationType + - Added Enum KnownMonitoringFeatureDataType + - Added Enum KnownMonitoringFeatureFilterType + - Added Enum KnownMonitoringInputDataType + - Added Enum KnownMonitoringModelType + - Added Enum KnownMonitoringNotificationMode + - Added Enum KnownMonitoringSignalType + - Added Enum KnownMultiSelect + - Added Enum KnownNlpLearningRateScheduler + - Added Enum KnownNodesValueType + - Added Enum KnownNumericalDataDriftMetric + - Added Enum KnownNumericalDataQualityMetric + - Added Enum KnownNumericalPredictionDriftMetric + - Added Enum KnownOneLakeArtifactType + - Added Enum KnownPackageBuildState + - Added Enum KnownPackageInputDeliveryMode + - Added Enum KnownPackageInputType + - Added Enum KnownPatchStatus + - Added Enum KnownPendingUploadCredentialType + - Added Enum KnownPendingUploadType + - Added Enum KnownProtectionLevel + - Added Enum KnownProtocol + - Added Enum KnownRegressionModelPerformanceMetric + - Added Enum KnownRollingRateType + - Added Enum KnownRuleAction + - Added Enum KnownRuleCategory + - Added Enum KnownRuleStatus + - Added Enum KnownRuleType + - Added Enum KnownSparkJobEntryType + - Added Enum KnownStatusMessageLevel + - Added Enum KnownTextAnnotationType + - Added Enum KnownTrainingMode + - Added Enum KnownVolumeDefinitionType + - Added Enum KnownWebhookType + - Enum KnownComputeInstanceState has a new value Resizing + - Enum KnownConnectionAuthType has a new value AccessKey + - Enum KnownConnectionAuthType has a new value ApiKey + - Enum KnownConnectionAuthType has a new value CustomKeys + - Enum KnownConnectionAuthType has a new value ServicePrincipal + - Enum KnownConnectionCategory has a new value AdlsGen2 + - Enum KnownConnectionCategory has a new value ApiKey + - Enum KnownConnectionCategory has a new value AzureMySqlDb + - Enum KnownConnectionCategory has a new value AzureOpenAI + - Enum KnownConnectionCategory has a new value AzurePostgresDb + - Enum KnownConnectionCategory has a new value AzureSqlDb + - Enum KnownConnectionCategory has a new value AzureSynapseAnalytics + - Enum KnownConnectionCategory has a new value CognitiveSearch + - Enum KnownConnectionCategory has a new value CognitiveService + - Enum KnownConnectionCategory has a new value CustomKeys + - Enum KnownConnectionCategory has a new value Redis + - Enum KnownConnectionCategory has a new value S3 + - Enum KnownConnectionCategory has a new value Snowflake + - Enum KnownContainerType has a new value ModelDataCollector + - Enum KnownCredentialsType has a new value KerberosKeytab + - Enum KnownCredentialsType has a new value KerberosPassword + - Enum KnownDatastoreType has a new value Hdfs + - Enum KnownDatastoreType has a new value OneLake + - Enum KnownDistributionType has a new value Ray + - Enum KnownJobStatus has a new value Scheduled + - Enum KnownJobType has a new value Labeling + - Enum KnownJobType has a new value Spark + - Enum KnownOperationName has a new value Resize + - Enum KnownOperationStatus has a new value ResizeFailed + - Enum KnownOutputDeliveryMode has a new value Direct + - Enum KnownScheduleActionType has a new value CreateMonitor + - Enum KnownScheduleActionType has a new value ImportData + - Enum KnownSecretsType has a new value KerberosKeytab + - Enum KnownSecretsType has a new value KerberosPassword -### Other Changes +**Breaking Changes** + - Operation WorkspaceConnections.create has a new signature + - Deleted Class AzureMachineLearningWorkspaces + - Interface BatchDeploymentsListNextOptionalParams no longer has parameter orderBy + - Interface BatchDeploymentsListNextOptionalParams no longer has parameter skip + - Interface BatchDeploymentsListNextOptionalParams no longer has parameter top + - Interface BatchEndpointsListNextOptionalParams no longer has parameter count + - Interface BatchEndpointsListNextOptionalParams no longer has parameter skip + - Interface CodeContainersListNextOptionalParams no longer has parameter skip + - Interface CodeVersionsListNextOptionalParams no longer has parameter orderBy + - Interface CodeVersionsListNextOptionalParams no longer has parameter skip + - Interface CodeVersionsListNextOptionalParams no longer has parameter top + - Interface ComponentContainersListNextOptionalParams no longer has parameter listViewType + - Interface ComponentContainersListNextOptionalParams no longer has parameter skip + - Interface ComponentVersionsListNextOptionalParams no longer has parameter listViewType + - Interface ComponentVersionsListNextOptionalParams no longer has parameter orderBy + - Interface ComponentVersionsListNextOptionalParams no longer has parameter skip + - Interface ComponentVersionsListNextOptionalParams no longer has parameter top + - Interface ComputeListNextOptionalParams no longer has parameter skip + - Interface DataContainersListNextOptionalParams no longer has parameter listViewType + - Interface DataContainersListNextOptionalParams no longer has parameter skip + - Interface DatastoresListNextOptionalParams no longer has parameter count + - Interface DatastoresListNextOptionalParams no longer has parameter isDefault + - Interface DatastoresListNextOptionalParams no longer has parameter names + - Interface DatastoresListNextOptionalParams no longer has parameter orderBy + - Interface DatastoresListNextOptionalParams no longer has parameter orderByAsc + - Interface DatastoresListNextOptionalParams no longer has parameter searchText + - Interface DatastoresListNextOptionalParams no longer has parameter skip + - Interface DataVersionsListNextOptionalParams no longer has parameter listViewType + - Interface DataVersionsListNextOptionalParams no longer has parameter orderBy + - Interface DataVersionsListNextOptionalParams no longer has parameter skip + - Interface DataVersionsListNextOptionalParams no longer has parameter tags + - Interface DataVersionsListNextOptionalParams no longer has parameter top + - Interface EnvironmentContainersListNextOptionalParams no longer has parameter listViewType + - Interface EnvironmentContainersListNextOptionalParams no longer has parameter skip + - Interface EnvironmentVersionsListNextOptionalParams no longer has parameter listViewType + - Interface EnvironmentVersionsListNextOptionalParams no longer has parameter orderBy + - Interface EnvironmentVersionsListNextOptionalParams no longer has parameter skip + - Interface EnvironmentVersionsListNextOptionalParams no longer has parameter top + - Interface FqdnEndpoints no longer has parameter properties + - Interface JobsListNextOptionalParams no longer has parameter jobType + - Interface JobsListNextOptionalParams no longer has parameter listViewType + - Interface JobsListNextOptionalParams no longer has parameter skip + - Interface JobsListNextOptionalParams no longer has parameter tag + - Interface ListWorkspaceKeysResult no longer has parameter userStorageResourceId + - Interface ModelContainersListNextOptionalParams no longer has parameter count + - Interface ModelContainersListNextOptionalParams no longer has parameter listViewType + - Interface ModelContainersListNextOptionalParams no longer has parameter skip + - Interface ModelVersionsListNextOptionalParams no longer has parameter description + - Interface ModelVersionsListNextOptionalParams no longer has parameter feed + - Interface ModelVersionsListNextOptionalParams no longer has parameter listViewType + - Interface ModelVersionsListNextOptionalParams no longer has parameter offset + - Interface ModelVersionsListNextOptionalParams no longer has parameter orderBy + - Interface ModelVersionsListNextOptionalParams no longer has parameter properties + - Interface ModelVersionsListNextOptionalParams no longer has parameter skip + - Interface ModelVersionsListNextOptionalParams no longer has parameter tags + - Interface ModelVersionsListNextOptionalParams no longer has parameter top + - Interface ModelVersionsListNextOptionalParams no longer has parameter version + - Interface OnlineDeploymentsListNextOptionalParams no longer has parameter orderBy + - Interface OnlineDeploymentsListNextOptionalParams no longer has parameter skip + - Interface OnlineDeploymentsListNextOptionalParams no longer has parameter top + - Interface OnlineDeploymentsListSkusNextOptionalParams no longer has parameter count + - Interface OnlineDeploymentsListSkusNextOptionalParams no longer has parameter skip + - Interface OnlineEndpointsListNextOptionalParams no longer has parameter computeType + - Interface OnlineEndpointsListNextOptionalParams no longer has parameter count + - Interface OnlineEndpointsListNextOptionalParams no longer has parameter name + - Interface OnlineEndpointsListNextOptionalParams no longer has parameter orderBy + - Interface OnlineEndpointsListNextOptionalParams no longer has parameter properties + - Interface OnlineEndpointsListNextOptionalParams no longer has parameter skip + - Interface OnlineEndpointsListNextOptionalParams no longer has parameter tags + - Interface PrivateEndpoint no longer has parameter subnetArmId + - Interface SchedulesListNextOptionalParams no longer has parameter listViewType + - Interface SchedulesListNextOptionalParams no longer has parameter skip + - Interface WorkspaceConnectionPropertiesV2 no longer has parameter value + - Interface WorkspaceConnectionPropertiesV2 no longer has parameter valueFormat + - Interface WorkspaceConnectionsListNextOptionalParams no longer has parameter category + - Interface WorkspaceConnectionsListNextOptionalParams no longer has parameter target + - Interface WorkspacesDiagnoseOptionalParams no longer has parameter parameters + - Interface WorkspacesListByResourceGroupNextOptionalParams no longer has parameter skip + - Interface WorkspacesListBySubscriptionNextOptionalParams no longer has parameter skip + - Type of parameter display of interface AmlOperation is changed from AmlOperationDisplay to OperationDisplay + - Type of parameter cron of interface ComputeStartStopSchedule is changed from CronTrigger to Cron + - Type of parameter recurrence of interface ComputeStartStopSchedule is changed from RecurrenceTrigger to Recurrence + - Type of parameter applicationInsights of interface DiagnoseRequestProperties is changed from { + [propertyName: string]: Record; + } to { + [propertyName: string]: any; + } + - Type of parameter containerRegistry of interface DiagnoseRequestProperties is changed from { + [propertyName: string]: Record; + } to { + [propertyName: string]: any; + } + - Type of parameter dnsResolution of interface DiagnoseRequestProperties is changed from { + [propertyName: string]: Record; + } to { + [propertyName: string]: any; + } + - Type of parameter keyVault of interface DiagnoseRequestProperties is changed from { + [propertyName: string]: Record; + } to { + [propertyName: string]: any; + } + - Type of parameter nsg of interface DiagnoseRequestProperties is changed from { + [propertyName: string]: Record; + } to { + [propertyName: string]: any; + } + - Type of parameter others of interface DiagnoseRequestProperties is changed from { + [propertyName: string]: Record; + } to { + [propertyName: string]: any; + } + - Type of parameter resourceLock of interface DiagnoseRequestProperties is changed from { + [propertyName: string]: Record; + } to { + [propertyName: string]: any; + } + - Type of parameter storageAccount of interface DiagnoseRequestProperties is changed from { + [propertyName: string]: Record; + } to { + [propertyName: string]: any; + } + - Type of parameter udr of interface DiagnoseRequestProperties is changed from { + [propertyName: string]: Record; + } to { + [propertyName: string]: any; + } + - Type of parameter keyVaultProperties of interface EncryptionProperty is changed from EncryptionKeyVaultProperties to KeyVaultProperties + - Type of parameter value of interface ExternalFqdnResponse is changed from FqdnEndpoints[] to FqdnEndpointsPropertyBag[] + - Type of parameter privateEndpoint of interface PrivateEndpointConnection is changed from PrivateEndpoint to WorkspacePrivateEndpointResource + - Type of parameter status of interface PrivateLinkServiceConnectionState is changed from PrivateEndpointServiceConnectionStatus to EndpointServiceConnectionStatus + - Type of parameter status of interface SharedPrivateLinkResource is changed from PrivateEndpointServiceConnectionStatus to EndpointServiceConnectionStatus + - Type of parameter publicNetworkAccess of interface Workspace is changed from PublicNetworkAccess to PublicNetworkAccessType + - Type of parameter publicNetworkAccess of interface WorkspaceUpdateParameters is changed from PublicNetworkAccess to PublicNetworkAccessType + - Removed Enum KnownPrivateEndpointServiceConnectionStatus + - Removed Enum KnownPublicNetworkAccess + - Removed Enum KnownValueFormat + + ## 2.1.1 (2022-11-28) **Features** diff --git a/sdk/machinelearning/arm-machinelearning/LICENSE b/sdk/machinelearning/arm-machinelearning/LICENSE index 5d1d36e0af80..3a1d9b6f24f7 100644 --- a/sdk/machinelearning/arm-machinelearning/LICENSE +++ b/sdk/machinelearning/arm-machinelearning/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 Microsoft +Copyright (c) 2023 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/machinelearning/arm-machinelearning/README.md b/sdk/machinelearning/arm-machinelearning/README.md index c7c7e6faee9e..43953a6ab3e8 100644 --- a/sdk/machinelearning/arm-machinelearning/README.md +++ b/sdk/machinelearning/arm-machinelearning/README.md @@ -1,12 +1,12 @@ -# AzureMachineLearningWorkspaces client library for JavaScript +# Azure Machine Learning client library for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureMachineLearningWorkspaces client. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Machine Learning client. These APIs allow end users to operate on Azure Machine Learning Workspace resources. [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 @@ -24,16 +24,16 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP ### Install the `@azure/arm-machinelearning` package -Install the AzureMachineLearningWorkspaces client library for JavaScript with `npm`: +Install the Azure Machine Learning client library for JavaScript with `npm`: ```bash npm install @azure/arm-machinelearning ``` -### Create and authenticate a `AzureMachineLearningWorkspaces` +### Create and authenticate a `AzureMachineLearningServices` -To create a client object to access the AzureMachineLearningWorkspaces API, you will need the `endpoint` of your AzureMachineLearningWorkspaces resource and a `credential`. The AzureMachineLearningWorkspaces client can use Azure Active Directory credentials to authenticate. -You can find the endpoint for your AzureMachineLearningWorkspaces resource in the [Azure Portal][azure_portal]. +To create a client object to access the Azure Machine Learning API, you will need the `endpoint` of your Azure Machine Learning resource and a `credential`. The Azure Machine Learning client can use Azure Active Directory credentials to authenticate. +You can find the endpoint for your Azure Machine Learning resource in the [Azure Portal][azure_portal]. You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token). @@ -43,25 +43,25 @@ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below npm install @azure/identity ``` -You will also need to **register a new AAD application and grant access to AzureMachineLearningWorkspaces** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). +You will also need to **register a new AAD application and grant access to Azure Machine Learning** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). ```javascript -const { AzureMachineLearningWorkspaces } = require("@azure/arm-machinelearning"); +const { AzureMachineLearningServices } = require("@azure/arm-machinelearning"); const { DefaultAzureCredential } = require("@azure/identity"); // For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details. const subscriptionId = "00000000-0000-0000-0000-000000000000"; -const client = new AzureMachineLearningWorkspaces(new DefaultAzureCredential(), subscriptionId); +const client = new AzureMachineLearningServices(new DefaultAzureCredential(), subscriptionId); // For client-side applications running in the browser, use this code instead: // const credential = new InteractiveBrowserCredential({ // tenantId: "", // clientId: "" // }); -// const client = new AzureMachineLearningWorkspaces(credential, subscriptionId); +// const client = new AzureMachineLearningServices(credential, subscriptionId); ``` @@ -70,9 +70,9 @@ To use this client library in the browser, first you need to use a bundler. For ## Key concepts -### AzureMachineLearningWorkspaces +### AzureMachineLearningServices -`AzureMachineLearningWorkspaces` is the primary interface for developers using the AzureMachineLearningWorkspaces client library. Explore the methods on this client object to understand the different features of the AzureMachineLearningWorkspaces service that you can access. +`AzureMachineLearningServices` is the primary interface for developers using the Azure Machine Learning client library. Explore the methods on this client object to understand the different features of the Azure Machine Learning service that you can access. ## Troubleshooting diff --git a/sdk/machinelearning/arm-machinelearning/_meta.json b/sdk/machinelearning/arm-machinelearning/_meta.json index ed615b9d846a..9926d9bea365 100644 --- a/sdk/machinelearning/arm-machinelearning/_meta.json +++ b/sdk/machinelearning/arm-machinelearning/_meta.json @@ -1,8 +1,8 @@ { - "commit": "1fefe3f5cee88319b17c08a2dbf95e1e983a9f8c", + "commit": "99bc123686e525e15beea6e6a28b1586960b6180", "readme": "specification/machinelearningservices/resource-manager/readme.md", - "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\machinelearningservices\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md --use=@autorest/typescript@^6.0.4", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", - "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", + "use": "@autorest/typescript@^6.0.4" } \ No newline at end of file diff --git a/sdk/machinelearning/arm-machinelearning/package.json b/sdk/machinelearning/arm-machinelearning/package.json index 6b5e704d6f45..95b4df2d739f 100644 --- a/sdk/machinelearning/arm-machinelearning/package.json +++ b/sdk/machinelearning/arm-machinelearning/package.json @@ -2,18 +2,18 @@ "name": "@azure/arm-machinelearning", "sdk-type": "mgmt", "author": "Microsoft Corporation", - "description": "A generated SDK for AzureMachineLearningWorkspaces.", - "version": "2.1.2", + "description": "A generated SDK for AzureMachineLearningServices.", + "version": "3.0.0-beta.1", "engines": { "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.2.0", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", + "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-rest-pipeline": "^1.12.0", "tslib": "^2.2.0" }, "keywords": [ @@ -33,12 +33,13 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-multi-entry": "^6.0.0", "@rollup/plugin-node-resolve": "^13.1.3", - "mkdirp": "^1.0.4", + "mkdirp": "^2.1.2", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", "typescript": "~5.0.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", + "dotenv": "^16.0.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", @@ -47,10 +48,9 @@ "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^14.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0" + "ts-node": "^10.0.0", + "@azure/dev-tool": "^1.0.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-machinelearning", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" @@ -106,18 +106,11 @@ "//metadata": { "constantPaths": [ { - "path": "src/azureMachineLearningWorkspaces.ts", + "path": "src/azureMachineLearningServices.ts", "prefix": "packageDetails" } ] }, "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-machinelearning?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-machinelearning" +} \ No newline at end of file diff --git a/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md b/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md index 550802b181a7..1b3d01071e24 100644 --- a/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md +++ b/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md @@ -6,9 +6,16 @@ import * as coreAuth from '@azure/core-auth'; import * as coreClient from '@azure/core-client'; +import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; -import { PollerLike } from '@azure/core-lro'; -import { PollOperationState } from '@azure/core-lro'; +import { SimplePollerLike } from '@azure/core-lro'; + +// @public (undocumented) +export interface AccessKeyAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { + authType: "AccessKey"; + // (undocumented) + credentials?: WorkspaceConnectionAccessKey; +} // @public export interface AccountKeyDatastoreCredentials extends DatastoreCredentials { @@ -22,6 +29,12 @@ export interface AccountKeyDatastoreSecrets extends DatastoreSecrets { secretsType: "AccountKey"; } +// @public +export interface AcrDetails { + systemCreatedAcrAccount?: SystemCreatedAcrAccount; + userCreatedAcrAccount?: UserCreatedAcrAccount; +} + // @public export interface Aks extends Compute, AKSSchema { computeType: "AKS"; @@ -65,6 +78,16 @@ export interface AKSSchemaProperties { readonly systemServices?: SystemService[]; } +// @public (undocumented) +export interface AllFeatures extends MonitoringFeatureFilterBase { + filterType: "AllFeatures"; +} + +// @public +export interface AllNodes extends Nodes { + nodesValueType: "All"; +} + // @public export type AllocationState = string; @@ -117,17 +140,10 @@ export interface AmlComputeSchema { // @public export interface AmlOperation { - display?: AmlOperationDisplay; + display?: OperationDisplay; isDataAction?: boolean; name?: string; -} - -// @public -export interface AmlOperationDisplay { - description?: string; - operation?: string; - provider?: string; - resource?: string; + origin?: string; } // @public @@ -140,6 +156,11 @@ export interface AmlToken extends IdentityConfiguration { identityType: "AMLToken"; } +// @public +export interface AmlTokenComputeIdentity extends MonitorComputeIdentityBase { + computeIdentityType: "AmlToken"; +} + // @public export interface AmlUserFeature { description?: string; @@ -147,11 +168,23 @@ export interface AmlUserFeature { id?: string; } +// @public +export interface ApiKeyAuthWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { + authType: "ApiKey"; + credentials?: WorkspaceConnectionApiKey; +} + // @public export type ApplicationSharingPolicy = string; +// @public +export interface ArmResourceId { + resourceId?: string; +} + // @public (undocumented) export interface AssetBase extends ResourceBase { + autoDeleteSetting?: AutoDeleteSetting; isAnonymous?: boolean; isArchived?: boolean; } @@ -171,17 +204,23 @@ export interface AssetJobInput { // @public export interface AssetJobOutput { + assetName?: string; + assetVersion?: string; + autoDeleteSetting?: AutoDeleteSetting; mode?: OutputDeliveryMode; uri?: string; } +// @public +export type AssetProvisioningState = string; + // @public export interface AssetReferenceBase { - referenceType: "DataPath" | "Id" | "OutputPath"; + referenceType: "Id" | "DataPath" | "OutputPath"; } // @public (undocumented) -export type AssetReferenceBaseUnion = AssetReferenceBase | DataPathAssetReference | IdAssetReference | OutputPathAssetReference; +export type AssetReferenceBaseUnion = AssetReferenceBase | IdAssetReference | DataPathAssetReference | OutputPathAssetReference; // @public export interface AssignedUser { @@ -189,11 +228,25 @@ export interface AssignedUser { tenantId: string; } +// @public +export type AutoDeleteCondition = string; + +// @public (undocumented) +export interface AutoDeleteSetting { + condition?: AutoDeleteCondition; + value?: string; +} + // @public export interface AutoForecastHorizon extends ForecastHorizon { mode: "Auto"; } +// @public +export interface AutologgerSettings { + mlflowAutologger: MLFlowAutologgerState; +} + // @public export interface AutoMLJob extends JobBaseProperties { environmentId?: string; @@ -204,6 +257,7 @@ export interface AutoMLJob extends JobBaseProperties { outputs?: { [propertyName: string]: JobOutputUnion | null; }; + queueSettings?: QueueSettings; resources?: JobResourceConfiguration; taskDetails: AutoMLVerticalUnion; } @@ -263,27 +317,29 @@ export interface AutoTargetRollingWindowSize extends TargetRollingWindowSize { mode: "Auto"; } +// @public (undocumented) +export interface AzMonMonitoringAlertNotificationSettings extends MonitoringAlertNotificationSettingsBase { + alertNotificationType: "AzureMonitor"; +} + // @public -export interface AzureBlobDatastore extends DatastoreProperties { +export interface AzureBlobDatastore extends AzureDatastore, DatastoreProperties { accountName?: string; containerName?: string; - datastoreType: "AzureBlob"; endpoint?: string; protocol?: string; serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; } // @public -export interface AzureDataLakeGen1Datastore extends DatastoreProperties { - datastoreType: "AzureDataLakeGen1"; +export interface AzureDataLakeGen1Datastore extends AzureDatastore, DatastoreProperties { serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; storeName: string; } // @public -export interface AzureDataLakeGen2Datastore extends DatastoreProperties { +export interface AzureDataLakeGen2Datastore extends AzureDatastore, DatastoreProperties { accountName: string; - datastoreType: "AzureDataLakeGen2"; endpoint?: string; filesystem: string; protocol?: string; @@ -291,9 +347,19 @@ export interface AzureDataLakeGen2Datastore extends DatastoreProperties { } // @public -export interface AzureFileDatastore extends DatastoreProperties { +export interface AzureDatastore { + resourceGroup?: string; + subscriptionId?: string; +} + +// @public +export interface AzureDevOpsWebhook extends Webhook { + webhookType: "AzureDevOps"; +} + +// @public +export interface AzureFileDatastore extends AzureDatastore, DatastoreProperties { accountName: string; - datastoreType: "AzureFile"; endpoint?: string; fileShareName: string; protocol?: string; @@ -301,10 +367,10 @@ export interface AzureFileDatastore extends DatastoreProperties { } // @public (undocumented) -export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { +export class AzureMachineLearningServices extends coreClient.ServiceClient { // (undocumented) $host: string; - constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureMachineLearningWorkspacesOptionalParams); + constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureMachineLearningServicesOptionalParams); // (undocumented) apiVersion: string; // (undocumented) @@ -332,8 +398,24 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { // (undocumented) environmentVersions: EnvironmentVersions; // (undocumented) + features: Features; + // (undocumented) + featuresetContainers: FeaturesetContainers; + // (undocumented) + featuresetVersions: FeaturesetVersions; + // (undocumented) + featurestoreEntityContainers: FeaturestoreEntityContainers; + // (undocumented) + featurestoreEntityVersions: FeaturestoreEntityVersions; + // (undocumented) jobs: Jobs; // (undocumented) + labelingJobs: LabelingJobs; + // (undocumented) + managedNetworkProvisions: ManagedNetworkProvisions; + // (undocumented) + managedNetworkSettingsRule: ManagedNetworkSettingsRule; + // (undocumented) modelContainers: ModelContainers; // (undocumented) modelVersions: ModelVersions; @@ -350,8 +432,32 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { // (undocumented) quotas: Quotas; // (undocumented) + registries: Registries; + // (undocumented) + registryCodeContainers: RegistryCodeContainers; + // (undocumented) + registryCodeVersions: RegistryCodeVersions; + // (undocumented) + registryComponentContainers: RegistryComponentContainers; + // (undocumented) + registryComponentVersions: RegistryComponentVersions; + // (undocumented) + registryDataContainers: RegistryDataContainers; + // (undocumented) + registryDataVersions: RegistryDataVersions; + // (undocumented) + registryEnvironmentContainers: RegistryEnvironmentContainers; + // (undocumented) + registryEnvironmentVersions: RegistryEnvironmentVersions; + // (undocumented) + registryModelContainers: RegistryModelContainers; + // (undocumented) + registryModelVersions: RegistryModelVersions; + // (undocumented) schedules: Schedules; // (undocumented) + serverlessEndpoints: ServerlessEndpoints; + // (undocumented) subscriptionId: string; // (undocumented) usages: Usages; @@ -366,12 +472,24 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { } // @public -export interface AzureMachineLearningWorkspacesOptionalParams extends coreClient.ServiceClientOptions { +export interface AzureMachineLearningServicesOptionalParams extends coreClient.ServiceClientOptions { $host?: string; apiVersion?: string; endpoint?: string; } +// @public +export interface AzureMLBatchInferencingServer extends InferencingServer { + codeConfiguration?: CodeConfiguration; + serverType: "AzureMLBatch"; +} + +// @public +export interface AzureMLOnlineInferencingServer extends InferencingServer { + codeConfiguration?: CodeConfiguration; + serverType: "AzureMLOnline"; +} + // @public export interface BanditPolicy extends EarlyTerminationPolicy { policyType: "Bandit"; @@ -379,6 +497,23 @@ export interface BanditPolicy extends EarlyTerminationPolicy { slackFactor?: number; } +// @public +export interface BaseEnvironmentId extends BaseEnvironmentSource { + baseEnvironmentSourceType: "EnvironmentAsset"; + resourceId: string; +} + +// @public (undocumented) +export interface BaseEnvironmentSource { + baseEnvironmentSourceType: "EnvironmentAsset"; +} + +// @public +export type BaseEnvironmentSourceType = string; + +// @public (undocumented) +export type BaseEnvironmentSourceUnion = BaseEnvironmentSource | BaseEnvironmentId; + // @public (undocumented) export interface BatchDeployment extends TrackedResource { identity?: ManagedServiceIdentity; @@ -387,9 +522,21 @@ export interface BatchDeployment extends TrackedResource { sku?: Sku; } +// @public +export interface BatchDeploymentConfiguration { + deploymentConfigurationType: "PipelineComponent"; +} + +// @public +export type BatchDeploymentConfigurationType = string; + +// @public (undocumented) +export type BatchDeploymentConfigurationUnion = BatchDeploymentConfiguration | BatchPipelineComponentDeploymentConfiguration; + // @public export interface BatchDeploymentProperties extends EndpointDeploymentPropertiesBase { compute?: string; + deploymentConfiguration?: BatchDeploymentConfigurationUnion; errorThreshold?: number; loggingLevel?: BatchLoggingLevel; maxConcurrencyPerInstance?: number; @@ -404,11 +551,11 @@ export interface BatchDeploymentProperties extends EndpointDeploymentPropertiesB // @public export interface BatchDeployments { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: BatchDeployment, options?: BatchDeploymentsCreateOrUpdateOptionalParams): Promise, BatchDeploymentsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: BatchDeployment, options?: BatchDeploymentsCreateOrUpdateOptionalParams): Promise, BatchDeploymentsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: BatchDeployment, options?: BatchDeploymentsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: BatchDeploymentsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: BatchDeploymentsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: BatchDeploymentsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties, options?: BatchDeploymentsUpdateOptionalParams): Promise, BatchDeploymentsUpdateResponse>>; + beginUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties, options?: BatchDeploymentsUpdateOptionalParams): Promise, BatchDeploymentsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties, options?: BatchDeploymentsUpdateOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: BatchDeploymentsGetOptionalParams): Promise; list(resourceGroupName: string, workspaceName: string, endpointName: string, options?: BatchDeploymentsListOptionalParams): PagedAsyncIterableIterator; @@ -451,9 +598,6 @@ export type BatchDeploymentsGetResponse = BatchDeployment; // @public export interface BatchDeploymentsListNextOptionalParams extends coreClient.OperationOptions { - orderBy?: string; - skip?: string; - top?: number; } // @public @@ -512,11 +656,11 @@ export interface BatchEndpointProperties extends EndpointPropertiesBase { // @public export interface BatchEndpoints { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, body: BatchEndpoint, options?: BatchEndpointsCreateOrUpdateOptionalParams): Promise, BatchEndpointsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, body: BatchEndpoint, options?: BatchEndpointsCreateOrUpdateOptionalParams): Promise, BatchEndpointsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, body: BatchEndpoint, options?: BatchEndpointsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, endpointName: string, options?: BatchEndpointsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, workspaceName: string, endpointName: string, options?: BatchEndpointsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, options?: BatchEndpointsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, body: PartialMinimalTrackedResourceWithIdentity, options?: BatchEndpointsUpdateOptionalParams): Promise, BatchEndpointsUpdateResponse>>; + beginUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, body: PartialMinimalTrackedResourceWithIdentity, options?: BatchEndpointsUpdateOptionalParams): Promise, BatchEndpointsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, body: PartialMinimalTrackedResourceWithIdentity, options?: BatchEndpointsUpdateOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, endpointName: string, options?: BatchEndpointsGetOptionalParams): Promise; list(resourceGroupName: string, workspaceName: string, options?: BatchEndpointsListOptionalParams): PagedAsyncIterableIterator; @@ -567,8 +711,6 @@ export type BatchEndpointsListKeysResponse = EndpointAuthKeys; // @public export interface BatchEndpointsListNextOptionalParams extends coreClient.OperationOptions { - count?: number; - skip?: string; } // @public @@ -611,6 +753,19 @@ export type BatchLoggingLevel = string; // @public export type BatchOutputAction = string; +// @public +export interface BatchPipelineComponentDeploymentConfiguration extends BatchDeploymentConfiguration { + componentId?: IdAssetReference; + deploymentConfigurationType: "PipelineComponent"; + description?: string; + settings?: { + [propertyName: string]: string | null; + }; + tags?: { + [propertyName: string]: string | null; + }; +} + // @public export interface BatchRetrySettings { maxRetries?: number; @@ -625,6 +780,20 @@ export interface BayesianSamplingAlgorithm extends SamplingAlgorithm { // @public export type BillingCurrency = string; +// @public (undocumented) +export interface BindOptions { + createHostPath?: boolean; + propagation?: string; + selinux?: string; +} + +// @public (undocumented) +export interface BlobReferenceForConsumptionDto { + blobUri?: string; + credential?: PendingUploadCredentialDtoUnion; + storageAccountArmId?: string; +} + // @public export type BlockedTransformers = string; @@ -637,6 +806,33 @@ export interface BuildContext { // @public export type Caching = string; +// @public +export type CategoricalDataDriftMetric = string; + +// @public (undocumented) +export interface CategoricalDataDriftMetricThreshold extends DataDriftMetricThresholdBase { + dataType: "Categorical"; + metric: CategoricalDataDriftMetric; +} + +// @public +export type CategoricalDataQualityMetric = string; + +// @public (undocumented) +export interface CategoricalDataQualityMetricThreshold extends DataQualityMetricThresholdBase { + dataType: "Categorical"; + metric: CategoricalDataQualityMetric; +} + +// @public +export type CategoricalPredictionDriftMetric = string; + +// @public (undocumented) +export interface CategoricalPredictionDriftMetricThreshold extends PredictionDriftMetricThresholdBase { + dataType: "Categorical"; + metric: CategoricalPredictionDriftMetric; +} + // @public export interface CertificateDatastoreCredentials extends DatastoreCredentials { authorityUrl?: string; @@ -661,6 +857,15 @@ export interface Classification extends TableVertical, AutoMLVertical { trainingSettings?: ClassificationTrainingSettings; } +// @public +export type ClassificationModelPerformanceMetric = string; + +// @public (undocumented) +export interface ClassificationModelPerformanceMetricThreshold extends ModelPerformanceMetricThresholdBase { + metric: ClassificationModelPerformanceMetric; + modelType: "Classification"; +} + // @public export type ClassificationModels = string; @@ -684,6 +889,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; @@ -697,6 +909,7 @@ export interface CodeContainer extends Resource { // @public export interface CodeContainerProperties extends AssetContainer { + readonly provisioningState?: AssetProvisioningState; } // @public @@ -733,7 +946,6 @@ export type CodeContainersGetResponse = CodeContainer; // @public export interface CodeContainersListNextOptionalParams extends coreClient.OperationOptions { - skip?: string; } // @public @@ -755,6 +967,7 @@ export interface CodeVersion extends Resource { // @public export interface CodeVersionProperties extends AssetBase { codeUri?: string; + readonly provisioningState?: AssetProvisioningState; } // @public @@ -765,12 +978,20 @@ export interface CodeVersionResourceArmPaginatedResult { // @public export interface CodeVersions { + createOrGetStartPendingUpload(resourceGroupName: string, workspaceName: string, name: string, version: string, body: PendingUploadRequestDto, options?: CodeVersionsCreateOrGetStartPendingUploadOptionalParams): Promise; createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, version: string, body: CodeVersion, options?: CodeVersionsCreateOrUpdateOptionalParams): Promise; delete(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: CodeVersionsDeleteOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: CodeVersionsGetOptionalParams): Promise; list(resourceGroupName: string, workspaceName: string, name: string, options?: CodeVersionsListOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface CodeVersionsCreateOrGetStartPendingUploadOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CodeVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; + // @public export interface CodeVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } @@ -791,9 +1012,6 @@ export type CodeVersionsGetResponse = CodeVersion; // @public export interface CodeVersionsListNextOptionalParams extends coreClient.OperationOptions { - orderBy?: string; - skip?: string; - top?: number; } // @public @@ -801,6 +1019,8 @@ export type CodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult // @public export interface CodeVersionsListOptionalParams extends coreClient.OperationOptions { + hash?: string; + hashVersion?: string; orderBy?: string; skip?: string; top?: number; @@ -809,6 +1029,14 @@ export interface CodeVersionsListOptionalParams extends coreClient.OperationOpti // @public export type CodeVersionsListResponse = CodeVersionResourceArmPaginatedResult; +// @public (undocumented) +export interface Collection { + clientId?: string; + dataCollectionMode?: DataCollectionMode; + dataId?: string; + samplingRate?: number; +} + // @public export interface ColumnTransformer { fields?: string[]; @@ -817,6 +1045,7 @@ export interface ColumnTransformer { // @public export interface CommandJob extends JobBaseProperties { + autologgerSettings?: AutologgerSettings; codeId?: string; command: string; distribution?: DistributionConfigurationUnion; @@ -833,6 +1062,7 @@ export interface CommandJob extends JobBaseProperties { [propertyName: string]: JobOutputUnion | null; }; readonly parameters?: Record; + queueSettings?: QueueSettings; resources?: JobResourceConfiguration; } @@ -848,6 +1078,7 @@ export interface ComponentContainer extends Resource { // @public export interface ComponentContainerProperties extends AssetContainer { + readonly provisioningState?: AssetProvisioningState; } // @public @@ -884,8 +1115,6 @@ export type ComponentContainersGetResponse = ComponentContainer; // @public export interface ComponentContainersListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - skip?: string; } // @public @@ -908,6 +1137,8 @@ export interface ComponentVersion extends Resource { // @public export interface ComponentVersionProperties extends AssetBase { componentSpec?: Record; + readonly provisioningState?: AssetProvisioningState; + stage?: string; } // @public @@ -944,10 +1175,6 @@ export type ComponentVersionsGetResponse = ComponentVersion; // @public export interface ComponentVersionsListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - orderBy?: string; - skip?: string; - top?: number; } // @public @@ -958,6 +1185,7 @@ export interface ComponentVersionsListOptionalParams extends coreClient.Operatio listViewType?: ListViewType; orderBy?: string; skip?: string; + stage?: string; top?: number; } @@ -1004,6 +1232,13 @@ export interface ComputeDeleteOptionalParams extends coreClient.OperationOptions updateIntervalInMs?: number; } +// @public +export interface ComputeGetAllowedResizeSizesOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ComputeGetAllowedResizeSizesResponse = VirtualMachineSizeListResult; + // @public export interface ComputeGetOptionalParams extends coreClient.OperationOptions { } @@ -1025,6 +1260,11 @@ export interface ComputeInstanceApplication { // @public export type ComputeInstanceAuthorizationType = string; +// @public +export interface ComputeInstanceAutologgerSettings { + mlflowAutologger?: MlflowAutologger; +} + // @public export interface ComputeInstanceConnectivityEndpoints { readonly privateIpAddress?: string; @@ -1087,17 +1327,23 @@ export interface ComputeInstanceLastOperation { export interface ComputeInstanceProperties { readonly applications?: ComputeInstanceApplication[]; applicationSharingPolicy?: ApplicationSharingPolicy; + autologgerSettings?: ComputeInstanceAutologgerSettings; computeInstanceAuthorizationType?: ComputeInstanceAuthorizationType; readonly connectivityEndpoints?: ComputeInstanceConnectivityEndpoints; readonly containers?: ComputeInstanceContainer[]; readonly createdBy?: ComputeInstanceCreatedBy; + customServices?: CustomService[]; readonly dataDisks?: ComputeInstanceDataDisk[]; readonly dataMounts?: ComputeInstanceDataMount[]; enableNodePublicIp?: boolean; + enableOSPatching?: boolean; readonly errors?: ErrorResponse[]; + idleTimeBeforeShutdown?: string; readonly lastOperation?: ComputeInstanceLastOperation; + readonly osImageMetadata?: ImageMetadata; personalComputeInstanceSettings?: PersonalComputeInstanceSettings; - readonly schedules?: ComputeSchedules; + releaseQuotaOnStop?: boolean; + schedules?: ComputeSchedules; setupScripts?: SetupScripts; sshSettings?: ComputeInstanceSshSettings; readonly state?: ComputeInstanceState; @@ -1136,7 +1382,6 @@ export type ComputeListKeysResponse = ComputeSecretsUnion; // @public export interface ComputeListNextOptionalParams extends coreClient.OperationOptions { - skip?: string; } // @public @@ -1166,27 +1411,47 @@ export type ComputeListResponse = PaginatedComputeResourcesList; // @public export interface ComputeOperations { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ComputeResource, options?: ComputeCreateOrUpdateOptionalParams): Promise, ComputeCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ComputeResource, options?: ComputeCreateOrUpdateOptionalParams): Promise, ComputeCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ComputeResource, options?: ComputeCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, computeName: string, underlyingResourceAction: UnderlyingResourceAction, options?: ComputeDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, workspaceName: string, computeName: string, underlyingResourceAction: UnderlyingResourceAction, options?: ComputeDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, workspaceName: string, computeName: string, underlyingResourceAction: UnderlyingResourceAction, options?: ComputeDeleteOptionalParams): Promise; - beginRestart(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeRestartOptionalParams): Promise, void>>; + beginResize(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ResizeSchema, options?: ComputeResizeOptionalParams): Promise, ComputeResizeResponse>>; + beginResizeAndWait(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ResizeSchema, options?: ComputeResizeOptionalParams): Promise; + beginRestart(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeRestartOptionalParams): Promise, void>>; beginRestartAndWait(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeRestartOptionalParams): Promise; - beginStart(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeStartOptionalParams): Promise, void>>; + beginStart(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeStartOptionalParams): Promise, void>>; beginStartAndWait(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeStartOptionalParams): Promise; - beginStop(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeStopOptionalParams): Promise, void>>; + beginStop(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeStopOptionalParams): Promise, void>>; beginStopAndWait(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeStopOptionalParams): Promise; - beginUpdate(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ClusterUpdateParameters, options?: ComputeUpdateOptionalParams): Promise, ComputeUpdateResponse>>; + beginUpdate(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ClusterUpdateParameters, options?: ComputeUpdateOptionalParams): Promise, ComputeUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ClusterUpdateParameters, options?: ComputeUpdateOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeGetOptionalParams): Promise; + getAllowedResizeSizes(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeGetAllowedResizeSizesOptionalParams): Promise; 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 interface ComputeResizeHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ComputeResizeOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ComputeResizeResponse = ComputeResizeHeaders; + // @public export interface ComputeResource extends Resource, ComputeResourceSchema { identity?: ManagedServiceIdentity; @@ -1208,6 +1473,12 @@ export interface ComputeRestartOptionalParams extends coreClient.OperationOption updateIntervalInMs?: number; } +// @public (undocumented) +export interface ComputeRuntimeDto { + // (undocumented) + sparkRuntimeVersion?: string; +} + // @public export interface ComputeSchedules { computeStartStop?: ComputeStartStopSchedule[]; @@ -1230,10 +1501,10 @@ export interface ComputeStartOptionalParams extends coreClient.OperationOptions // @public export interface ComputeStartStopSchedule { action?: ComputePowerAction; - cron?: CronTrigger; + cron?: Cron; readonly id?: string; readonly provisioningStatus?: ProvisioningStatus; - recurrence?: RecurrenceTrigger; + recurrence?: Recurrence; schedule?: ScheduleBase; status?: ScheduleStatus; triggerType?: TriggerType; @@ -1251,6 +1522,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; @@ -1284,27 +1563,73 @@ export type ContainerType = string; // @public (undocumented) export interface CosmosDbSettings { + // (undocumented) collectionsThroughput?: number; } // @public export type CreatedByType = string; +// @public (undocumented) +export interface CreateMonitorAction extends ScheduleActionBase { + actionType: "CreateMonitor"; + monitorDefinition: MonitorDefinition; +} + // @public export type CredentialsType = string; +// @public +export interface Cron { + expression?: string; + startTime?: string; + timeZone?: string; +} + // @public (undocumented) export interface CronTrigger extends TriggerBase { expression: string; 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 +export interface CustomInferencingServer extends InferencingServer { + inferenceConfiguration?: OnlineInferenceConfiguration; + serverType: "Custom"; +} + +// @public +export interface CustomKeys { + keys?: { + [propertyName: string]: string; + }; +} + +// @public +export interface CustomKeysWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { + authType: "CustomKeys"; + credentials?: CustomKeys; +} + +// @public (undocumented) +export interface CustomMetricThreshold { + metric: string; + threshold?: MonitoringThreshold; +} + // @public (undocumented) export interface CustomModelJobInput extends AssetJobInput, JobInput { } @@ -1313,6 +1638,20 @@ export interface CustomModelJobInput extends AssetJobInput, JobInput { export interface CustomModelJobOutput extends AssetJobOutput, JobOutput { } +// @public (undocumented) +export interface CustomMonitoringSignal extends MonitoringSignalBase { + componentId: string; + inputAssets?: { + [propertyName: string]: MonitoringInputDataBaseUnion | null; + }; + inputs?: { + [propertyName: string]: JobInputUnion | null; + }; + metricThresholds: CustomMetricThreshold[]; + signalType: "Custom"; + workspaceConnection: MonitoringWorkspaceConnection; +} + // @public export interface CustomNCrossValidations extends NCrossValidations { mode: "Custom"; @@ -1325,6 +1664,19 @@ export interface CustomSeasonality extends Seasonality { value: number; } +// @public +export interface CustomService { + [property: string]: any; + docker?: Docker; + endpoints?: Endpoint[]; + environmentVariables?: { + [propertyName: string]: EnvironmentVariable; + }; + image?: Image_2; + name?: string; + volumes?: VolumeDefinition[]; +} + // @public (undocumented) export interface CustomTargetLags extends TargetLags { mode: "Custom"; @@ -1337,6 +1689,20 @@ export interface CustomTargetRollingWindowSize extends TargetRollingWindowSize { value: number; } +// @public +export type DataAvailabilityStatus = string; + +// @public (undocumented) +export interface DatabaseSource extends DataImportSource { + query?: string; + sourceType: "database"; + storedProcedure?: string; + storedProcedureParams?: { + [propertyName: string]: string; + }[]; + tableName?: string; +} + // @public export interface Databricks extends Compute, DatabricksSchema { computeType: "Databricks"; @@ -1363,6 +1729,18 @@ export interface DatabricksSchema { properties?: DatabricksProperties; } +// @public +export type DataCollectionMode = string; + +// @public (undocumented) +export interface DataCollector { + collections: { + [propertyName: string]: Collection | null; + }; + requestLogging?: RequestLogging; + rollingRate?: RollingRateType; +} + // @public export interface DataContainer extends Resource { properties: DataContainerProperties; @@ -1407,8 +1785,6 @@ export type DataContainersGetResponse = DataContainer; // @public export interface DataContainersListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - skip?: string; } // @public @@ -1423,20 +1799,61 @@ export interface DataContainersListOptionalParams extends coreClient.OperationOp // @public export type DataContainersListResponse = DataContainerResourceArmPaginatedResult; -// @public -export interface DataFactory extends Compute { - computeType: "DataFactory"; +// @public (undocumented) +export interface DataDriftMetricThresholdBase { + dataType: "Categorical" | "Numerical"; + threshold?: MonitoringThreshold; } -// @public -export interface DataLakeAnalytics extends Compute, DataLakeAnalyticsSchema { - computeType: "DataLakeAnalytics"; -} +// @public (undocumented) +export type DataDriftMetricThresholdBaseUnion = DataDriftMetricThresholdBase | CategoricalDataDriftMetricThreshold | NumericalDataDriftMetricThreshold; // @public (undocumented) -export interface DataLakeAnalyticsSchema { - // (undocumented) - properties?: DataLakeAnalyticsSchemaProperties; +export interface DataDriftMonitoringSignal extends MonitoringSignalBase { + dataSegment?: MonitoringDataSegment; + featureDataTypeOverride?: { + [propertyName: string]: MonitoringFeatureDataType; + }; + features?: MonitoringFeatureFilterBaseUnion; + metricThresholds: DataDriftMetricThresholdBaseUnion[]; + productionData: MonitoringInputDataBaseUnion; + referenceData: MonitoringInputDataBaseUnion; + signalType: "DataDrift"; +} + +// @public +export interface DataFactory extends Compute { + computeType: "DataFactory"; +} + +// @public (undocumented) +export interface DataImport extends DataVersionBaseProperties { + assetName?: string; + dataType: "uri_folder"; + source?: DataImportSourceUnion; +} + +// @public (undocumented) +export interface DataImportSource { + connection?: string; + sourceType: "database" | "file_system"; +} + +// @public +export type DataImportSourceType = string; + +// @public (undocumented) +export type DataImportSourceUnion = DataImportSource | DatabaseSource | FileSystemSource; + +// @public +export interface DataLakeAnalytics extends Compute, DataLakeAnalyticsSchema { + computeType: "DataLakeAnalytics"; +} + +// @public (undocumented) +export interface DataLakeAnalyticsSchema { + // (undocumented) + properties?: DataLakeAnalyticsSchemaProperties; } // @public (undocumented) @@ -1451,6 +1868,33 @@ export interface DataPathAssetReference extends AssetReferenceBase { referenceType: "DataPath"; } +// @public (undocumented) +export interface DataQualityMetricThresholdBase { + dataType: "Categorical" | "Numerical"; + threshold?: MonitoringThreshold; +} + +// @public (undocumented) +export type DataQualityMetricThresholdBaseUnion = DataQualityMetricThresholdBase | CategoricalDataQualityMetricThreshold | NumericalDataQualityMetricThreshold; + +// @public (undocumented) +export interface DataQualityMonitoringSignal extends MonitoringSignalBase { + featureDataTypeOverride?: { + [propertyName: string]: MonitoringFeatureDataType; + }; + features?: MonitoringFeatureFilterBaseUnion; + metricThresholds: DataQualityMetricThresholdBaseUnion[]; + productionData: MonitoringInputDataBaseUnion; + referenceData: MonitoringInputDataBaseUnion; + signalType: "DataQuality"; +} + +// @public (undocumented) +export interface DatasetExportSummary extends ExportSummary { + format: "Dataset"; + readonly labeledAssetName?: string; +} + // @public export interface Datastore extends Resource { properties: DatastorePropertiesUnion; @@ -1458,21 +1902,22 @@ 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 { credentials: DatastoreCredentialsUnion; datastoreType: DatastoreType; + intellectualProperty?: IntellectualProperty; readonly isDefault?: boolean; } // @public (undocumented) -export type DatastorePropertiesUnion = DatastoreProperties | AzureBlobDatastore | AzureDataLakeGen1Datastore | AzureDataLakeGen2Datastore | AzureFileDatastore; +export type DatastorePropertiesUnion = DatastoreProperties | AzureBlobDatastore | AzureDataLakeGen1Datastore | AzureDataLakeGen2Datastore | AzureFileDatastore | HdfsDatastore | OneLakeDatastore; // @public export interface DatastoreResourceArmPaginatedResult { @@ -1503,11 +1948,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 { @@ -1518,13 +1963,6 @@ export type DatastoresGetResponse = Datastore; // @public export interface DatastoresListNextOptionalParams extends coreClient.OperationOptions { - count?: number; - isDefault?: boolean; - names?: string[]; - orderBy?: string; - orderByAsc?: boolean; - searchText?: string; - skip?: string; } // @public @@ -1566,10 +2004,12 @@ export interface DataVersionBase extends Resource { export interface DataVersionBaseProperties extends AssetBase { dataType: DataType; dataUri: string; + intellectualProperty?: IntellectualProperty; + stage?: string; } // @public (undocumented) -export type DataVersionBasePropertiesUnion = DataVersionBaseProperties | MLTableData | UriFileDataVersion | UriFolderDataVersion; +export type DataVersionBasePropertiesUnion = DataVersionBaseProperties | DataImport | MLTableData | UriFileDataVersion | UriFolderDataVersion; // @public export interface DataVersionBaseResourceArmPaginatedResult { @@ -1605,11 +2045,6 @@ export type DataVersionsGetResponse = DataVersionBase; // @public export interface DataVersionsListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - orderBy?: string; - skip?: string; - tags?: string; - top?: number; } // @public @@ -1620,6 +2055,7 @@ export interface DataVersionsListOptionalParams extends coreClient.OperationOpti listViewType?: ListViewType; orderBy?: string; skip?: string; + stage?: string; tags?: string; top?: number; } @@ -1653,31 +2089,31 @@ export interface DeploymentResourceConfiguration extends ResourceConfiguration { // @public (undocumented) export interface DiagnoseRequestProperties { applicationInsights?: { - [propertyName: string]: Record; + [propertyName: string]: any; }; containerRegistry?: { - [propertyName: string]: Record; + [propertyName: string]: any; }; dnsResolution?: { - [propertyName: string]: Record; + [propertyName: string]: any; }; keyVault?: { - [propertyName: string]: Record; + [propertyName: string]: any; }; nsg?: { - [propertyName: string]: Record; + [propertyName: string]: any; }; others?: { - [propertyName: string]: Record; + [propertyName: string]: any; }; resourceLock?: { - [propertyName: string]: Record; + [propertyName: string]: any; }; storageAccount?: { - [propertyName: string]: Record; + [propertyName: string]: any; }; udr?: { - [propertyName: string]: Record; + [propertyName: string]: any; }; } @@ -1721,20 +2157,27 @@ export type DiagnoseResultLevel = string; // @public export interface DiagnoseWorkspaceParameters { + // (undocumented) value?: DiagnoseRequestProperties; } // @public export interface DistributionConfiguration { - distributionType: "Mpi" | "PyTorch" | "TensorFlow"; + distributionType: "Mpi" | "PyTorch" | "Ray" | "TensorFlow"; } // @public (undocumented) -export type DistributionConfigurationUnion = DistributionConfiguration | Mpi | PyTorch | TensorFlow; +export type DistributionConfigurationUnion = DistributionConfiguration | Mpi | PyTorch | Ray | TensorFlow; // @public export type DistributionType = string; +// @public (undocumented) +export interface Docker { + [property: string]: any; + privileged?: boolean; +} + // @public export interface EarlyTerminationPolicy { delayEvaluation?: number; @@ -1752,22 +2195,48 @@ export type EarlyTerminationPolicyUnion = EarlyTerminationPolicy | BanditPolicy export type EgressPublicNetworkAccessType = string; // @public (undocumented) -export interface EncryptionKeyVaultProperties { - identityClientId?: string; +export interface EmailMonitoringAlertNotificationSettings extends MonitoringAlertNotificationSettingsBase { + alertNotificationType: "Email"; + emailNotificationSetting?: NotificationSetting; +} + +// @public +export type EmailNotificationEnableType = string; + +// @public (undocumented) +export interface EncryptionKeyVaultUpdateProperties { + // (undocumented) keyIdentifier: string; - keyVaultArmId: string; } // @public (undocumented) export interface EncryptionProperty { + cosmosDbResourceId?: string; identity?: IdentityForCmk; - keyVaultProperties: EncryptionKeyVaultProperties; + keyVaultProperties: KeyVaultProperties; + searchAccountResourceId?: string; status: EncryptionStatus; + storageAccountResourceId?: string; } // @public export type EncryptionStatus = string; +// @public (undocumented) +export interface EncryptionUpdateProperties { + // (undocumented) + keyVaultProperties: EncryptionKeyVaultUpdateProperties; +} + +// @public (undocumented) +export interface Endpoint { + hostIp?: string; + name?: string; + protocol?: Protocol; + published?: number; + target?: number; +} + // @public export interface EndpointAuthKeys { primaryKey?: string; @@ -1822,6 +2291,9 @@ export interface EndpointScheduleAction extends ScheduleActionBase { endpointInvocationDefinition: Record; } +// @public +export type EndpointServiceConnectionStatus = string; + // @public export interface EnvironmentContainer extends Resource { properties: EnvironmentContainerProperties; @@ -1829,6 +2301,7 @@ export interface EnvironmentContainer extends Resource { // @public export interface EnvironmentContainerProperties extends AssetContainer { + readonly provisioningState?: AssetProvisioningState; } // @public @@ -1865,8 +2338,6 @@ export type EnvironmentContainersGetResponse = EnvironmentContainer; // @public export interface EnvironmentContainersListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - skip?: string; } // @public @@ -1884,6 +2355,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; @@ -1897,7 +2378,10 @@ export interface EnvironmentVersionProperties extends AssetBase { readonly environmentType?: EnvironmentType; image?: string; inferenceConfig?: InferenceContainerProperties; + intellectualProperty?: IntellectualProperty; osType?: OperatingSystemType; + readonly provisioningState?: AssetProvisioningState; + stage?: string; } // @public @@ -1934,10 +2418,6 @@ export type EnvironmentVersionsGetResponse = EnvironmentVersion; // @public export interface EnvironmentVersionsListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - orderBy?: string; - skip?: string; - top?: number; } // @public @@ -1948,6 +2428,7 @@ export interface EnvironmentVersionsListOptionalParams extends coreClient.Operat listViewType?: ListViewType; orderBy?: string; skip?: string; + stage?: string; top?: number; } @@ -1988,2481 +2469,5365 @@ 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[]; + value?: FqdnEndpointsPropertyBag[]; } // @public -export type FeatureLags = string; - -// @public -export type FeaturizationMode = string; - -// @public -export interface FeaturizationSettings { - datasetLanguage?: string; +export interface Feature extends Resource { + properties: FeatureProperties; } // @public (undocumented) -export interface FlavorData { - data?: { - [propertyName: string]: string | null; - }; +export interface FeatureAttributionDriftMonitoringSignal extends MonitoringSignalBase { + metricThreshold: FeatureAttributionMetricThreshold; + productionData: MonitoringInputDataBaseUnion[]; + referenceData: MonitoringInputDataBaseUnion; + signalType: "FeatureAttributionDrift"; } // @public -export interface ForecastHorizon { - mode: "Auto" | "Custom"; +export type FeatureAttributionMetric = string; + +// @public (undocumented) +export interface FeatureAttributionMetricThreshold { + metric: FeatureAttributionMetric; + threshold?: MonitoringThreshold; } // @public -export type ForecastHorizonMode = string; +export type FeatureDataType = string; -// @public (undocumented) -export type ForecastHorizonUnion = ForecastHorizon | AutoForecastHorizon | CustomForecastHorizon; +// @public +export type FeatureLags = string; // @public -export interface Forecasting extends TableVertical, AutoMLVertical { - forecastingSettings?: ForecastingSettings; - primaryMetric?: ForecastingPrimaryMetrics; - trainingSettings?: ForecastingTrainingSettings; +export interface FeatureProperties extends ResourceBase { + dataType?: FeatureDataType; + featureName?: string; } // @public -export type ForecastingModels = string; +export interface FeatureResourceArmPaginatedResult { + nextLink?: string; + value?: Feature[]; +} // @public -export type ForecastingPrimaryMetrics = string; +export interface Features { + get(resourceGroupName: string, workspaceName: string, featuresetName: string, featuresetVersion: string, featureName: string, options?: FeaturesGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, featuresetName: string, featuresetVersion: string, options?: FeaturesListOptionalParams): PagedAsyncIterableIterator; +} // @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; +export interface FeaturesetContainer extends Resource { + properties: FeaturesetContainerProperties; } // @public -export interface ForecastingTrainingSettings extends TrainingSettings { - allowedTrainingAlgorithms?: ForecastingModels[]; - blockedTrainingAlgorithms?: ForecastingModels[]; +export interface FeaturesetContainerProperties extends AssetContainer { + readonly provisioningState?: AssetProvisioningState; } -// @public (undocumented) -export interface FqdnEndpoint { - // (undocumented) - domainName?: string; - // (undocumented) - endpointDetails?: FqdnEndpointDetail[]; +// @public +export interface FeaturesetContainerResourceArmPaginatedResult { + nextLink?: string; + value?: FeaturesetContainer[]; } -// @public (undocumented) -export interface FqdnEndpointDetail { - // (undocumented) - port?: number; +// @public +export interface FeaturesetContainers { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: FeaturesetContainer, options?: FeaturesetContainersCreateOrUpdateOptionalParams): Promise, FeaturesetContainersCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, name: string, body: FeaturesetContainer, options?: FeaturesetContainersCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, name: string, options?: FeaturesetContainersDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, name: string, options?: FeaturesetContainersDeleteOptionalParams): Promise; + getEntity(resourceGroupName: string, workspaceName: string, name: string, options?: FeaturesetContainersGetEntityOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: FeaturesetContainersListOptionalParams): PagedAsyncIterableIterator; } -// @public (undocumented) -export interface FqdnEndpoints { - // (undocumented) - properties?: FqdnEndpointsProperties; +// @public +export interface FeaturesetContainersCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } -// @public (undocumented) -export interface FqdnEndpointsProperties { - // (undocumented) - category?: string; - // (undocumented) - endpoints?: FqdnEndpoint[]; +// @public +export interface FeaturesetContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export function getContinuationToken(page: unknown): string | undefined; +export type FeaturesetContainersCreateOrUpdateResponse = FeaturesetContainer; // @public -export type Goal = string; +export interface FeaturesetContainersDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} // @public -export interface GridSamplingAlgorithm extends SamplingAlgorithm { - samplingAlgorithmType: "Grid"; +export interface FeaturesetContainersDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface HDInsight extends Compute, HDInsightSchema { - computeType: "HDInsight"; +export interface FeaturesetContainersGetEntityOptionalParams extends coreClient.OperationOptions { } // @public -export interface HDInsightProperties { - address?: string; - administratorAccount?: VirtualMachineSshCredentials; - sshPort?: number; +export type FeaturesetContainersGetEntityResponse = FeaturesetContainer; + +// @public +export interface FeaturesetContainersListNextOptionalParams extends coreClient.OperationOptions { } -// @public (undocumented) -export interface HDInsightSchema { - properties?: HDInsightProperties; +// @public +export type FeaturesetContainersListNextResponse = FeaturesetContainerResourceArmPaginatedResult; + +// @public +export interface FeaturesetContainersListOptionalParams extends coreClient.OperationOptions { + createdBy?: string; + description?: string; + listViewType?: ListViewType; + name?: string; + pageSize?: number; + skip?: string; + tags?: string; } // @public -export interface IdAssetReference extends AssetReferenceBase { - assetId: string; - referenceType: "Id"; +export type FeaturesetContainersListResponse = FeaturesetContainerResourceArmPaginatedResult; + +// @public +export interface FeaturesetSpecification { + path?: string; } // @public -export interface IdentityConfiguration { - identityType: "AMLToken" | "Managed" | "UserIdentity"; +export interface FeaturesetVersion extends Resource { + properties: FeaturesetVersionProperties; } // @public -export type IdentityConfigurationType = string; +export interface FeaturesetVersionBackfillRequest { + dataAvailabilityStatus?: DataAvailabilityStatus[]; + description?: string; + displayName?: string; + featureWindow?: FeatureWindow; + jobId?: string; + properties?: { + [propertyName: string]: string | null; + }; + resource?: MaterializationComputeResource; + sparkConfiguration?: { + [propertyName: string]: string | null; + }; + tags?: { + [propertyName: string]: string | null; + }; +} -// @public (undocumented) -export type IdentityConfigurationUnion = IdentityConfiguration | AmlToken | ManagedIdentity | UserIdentity; +// @public +export interface FeaturesetVersionBackfillResponse { + jobIds?: string[]; +} // @public -export interface IdentityForCmk { - userAssignedIdentity?: string; +export interface FeaturesetVersionProperties extends AssetBase { + entities?: string[]; + materializationSettings?: MaterializationSettings; + readonly provisioningState?: AssetProvisioningState; + specification?: FeaturesetSpecification; + stage?: string; } // @public -export interface ImageClassification extends ImageClassificationBase, AutoMLVertical { - primaryMetric?: ClassificationPrimaryMetrics; +export interface FeaturesetVersionResourceArmPaginatedResult { + nextLink?: string; + value?: FeaturesetVersion[]; } -// @public (undocumented) -export interface ImageClassificationBase extends ImageVertical { - modelSettings?: ImageModelSettingsClassification; - searchSpace?: ImageModelDistributionSettingsClassification[]; +// @public +export interface FeaturesetVersions { + beginBackfill(resourceGroupName: string, workspaceName: string, name: string, version: string, body: FeaturesetVersionBackfillRequest, options?: FeaturesetVersionsBackfillOptionalParams): Promise, FeaturesetVersionsBackfillResponse>>; + beginBackfillAndWait(resourceGroupName: string, workspaceName: string, name: string, version: string, body: FeaturesetVersionBackfillRequest, options?: FeaturesetVersionsBackfillOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, name: string, version: string, body: FeaturesetVersion, options?: FeaturesetVersionsCreateOrUpdateOptionalParams): Promise, FeaturesetVersionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, name: string, version: string, body: FeaturesetVersion, options?: FeaturesetVersionsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: FeaturesetVersionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: FeaturesetVersionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: FeaturesetVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, name: string, options?: FeaturesetVersionsListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface ImageClassificationMultilabel extends ImageClassificationBase, AutoMLVertical { - primaryMetric?: ClassificationMultilabelPrimaryMetrics; +export interface FeaturesetVersionsBackfillHeaders { + location?: string; + retryAfter?: number; } // @public -export interface ImageInstanceSegmentation extends ImageObjectDetectionBase, AutoMLVertical { - primaryMetric?: InstanceSegmentationPrimaryMetrics; +export interface FeaturesetVersionsBackfillOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface ImageLimitSettings { - maxConcurrentTrials?: number; - maxTrials?: number; - timeout?: string; +export type FeaturesetVersionsBackfillResponse = FeaturesetVersionBackfillResponse; + +// @public +export interface FeaturesetVersionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: 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; +export interface FeaturesetVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface ImageModelDistributionSettingsClassification extends ImageModelDistributionSettings { - trainingCropSize?: string; - validationCropSize?: string; - validationResizeSize?: string; - weightedLoss?: string; -} +export type FeaturesetVersionsCreateOrUpdateResponse = FeaturesetVersion; // @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; +export interface FeaturesetVersionsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: 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; +export interface FeaturesetVersionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface ImageModelSettingsClassification extends ImageModelSettings { - trainingCropSize?: number; - validationCropSize?: number; - validationResizeSize?: number; - weightedLoss?: number; +export interface FeaturesetVersionsGetOptionalParams extends coreClient.OperationOptions { } // @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; -} +export type FeaturesetVersionsGetResponse = FeaturesetVersion; // @public -export interface ImageObjectDetection extends ImageObjectDetectionBase, AutoMLVertical { - primaryMetric?: ObjectDetectionPrimaryMetrics; +export interface FeaturesetVersionsListNextOptionalParams extends coreClient.OperationOptions { } -// @public (undocumented) -export interface ImageObjectDetectionBase extends ImageVertical { - modelSettings?: ImageModelSettingsObjectDetection; - searchSpace?: ImageModelDistributionSettingsObjectDetection[]; +// @public +export type FeaturesetVersionsListNextResponse = FeaturesetVersionResourceArmPaginatedResult; + +// @public +export interface FeaturesetVersionsListOptionalParams extends coreClient.OperationOptions { + createdBy?: string; + description?: string; + listViewType?: ListViewType; + pageSize?: number; + skip?: string; + stage?: string; + tags?: string; + version?: string; + versionName?: string; } // @public -export interface ImageSweepSettings { - earlyTermination?: EarlyTerminationPolicyUnion; - samplingAlgorithm: SamplingAlgorithmType; +export type FeaturesetVersionsListResponse = FeaturesetVersionResourceArmPaginatedResult; + +// @public +export interface FeaturesGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface ImageVertical { - limitSettings: ImageLimitSettings; - sweepSettings?: ImageSweepSettings; - validationData?: MLTableJobInput; - validationDataSize?: number; +export type FeaturesGetResponse = Feature; + +// @public +export interface FeaturesListNextOptionalParams extends coreClient.OperationOptions { } -// @public (undocumented) -export interface InferenceContainerProperties { - livenessRoute?: Route; - readinessRoute?: Route; - scoringRoute?: Route; +// @public +export type FeaturesListNextResponse = FeatureResourceArmPaginatedResult; + +// @public +export interface FeaturesListOptionalParams extends coreClient.OperationOptions { + description?: string; + featureName?: string; + listViewType?: ListViewType; + pageSize?: number; + skip?: string; + tags?: string; } // @public -export type InputDeliveryMode = string; +export type FeaturesListResponse = FeatureResourceArmPaginatedResult; // @public -export type InstanceSegmentationPrimaryMetrics = string; +export interface FeaturestoreEntityContainer extends Resource { + properties: FeaturestoreEntityContainerProperties; +} // @public -export interface InstanceTypeSchema { - nodeSelector?: { - [propertyName: string]: string | null; - }; - resources?: InstanceTypeSchemaResources; +export interface FeaturestoreEntityContainerProperties extends AssetContainer { + readonly provisioningState?: AssetProvisioningState; } // @public -export interface InstanceTypeSchemaResources { - limits?: { - [propertyName: string]: string; - }; - requests?: { - [propertyName: string]: string; - }; +export interface FeaturestoreEntityContainerResourceArmPaginatedResult { + nextLink?: string; + value?: FeaturestoreEntityContainer[]; } // @public -export interface JobBase extends Resource { - properties: JobBasePropertiesUnion; +export interface FeaturestoreEntityContainers { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: FeaturestoreEntityContainer, options?: FeaturestoreEntityContainersCreateOrUpdateOptionalParams): Promise, FeaturestoreEntityContainersCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, name: string, body: FeaturestoreEntityContainer, options?: FeaturestoreEntityContainersCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, name: string, options?: FeaturestoreEntityContainersDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, name: string, options?: FeaturestoreEntityContainersDeleteOptionalParams): Promise; + getEntity(resourceGroupName: string, workspaceName: string, name: string, options?: FeaturestoreEntityContainersGetEntityOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: FeaturestoreEntityContainersListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface JobBaseProperties extends ResourceBase { - componentId?: string; - computeId?: string; - displayName?: string; - experimentName?: string; - identity?: IdentityConfigurationUnion; - isArchived?: boolean; - jobType: JobType; - services?: { - [propertyName: string]: JobService | null; - }; - readonly status?: JobStatus; +export interface FeaturestoreEntityContainersCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } -// @public (undocumented) -export type JobBasePropertiesUnion = JobBaseProperties | AutoMLJob | CommandJob | PipelineJob | SweepJob; +// @public +export interface FeaturestoreEntityContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public -export interface JobBaseResourceArmPaginatedResult { - nextLink?: string; - value?: JobBase[]; +export type FeaturestoreEntityContainersCreateOrUpdateResponse = FeaturestoreEntityContainer; + +// @public +export interface FeaturestoreEntityContainersDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export interface JobInput { - description?: string; - jobInputType: "mltable" | "custom_model" | "mlflow_model" | "literal" | "triton_model" | "uri_file" | "uri_folder"; +export interface FeaturestoreEntityContainersDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type JobInputType = string; +export interface FeaturestoreEntityContainersGetEntityOptionalParams extends coreClient.OperationOptions { +} -// @public (undocumented) -export type JobInputUnion = JobInput | MLTableJobInput | CustomModelJobInput | MLFlowModelJobInput | LiteralJobInput | TritonModelJobInput | UriFileJobInput | UriFolderJobInput; +// @public +export type FeaturestoreEntityContainersGetEntityResponse = FeaturestoreEntityContainer; -// @public (undocumented) -export interface JobLimits { - jobLimitsType: "Command" | "Sweep"; - timeout?: string; +// @public +export interface FeaturestoreEntityContainersListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type JobLimitsType = string; - -// @public (undocumented) -export type JobLimitsUnion = JobLimits | CommandJobLimits | SweepJobLimits; +export type FeaturestoreEntityContainersListNextResponse = FeaturestoreEntityContainerResourceArmPaginatedResult; // @public -export interface JobOutput { +export interface FeaturestoreEntityContainersListOptionalParams extends coreClient.OperationOptions { + createdBy?: string; description?: string; - jobOutputType: "custom_model" | "mlflow_model" | "mltable" | "triton_model" | "uri_file" | "uri_folder"; + listViewType?: ListViewType; + name?: string; + pageSize?: number; + skip?: string; + tags?: string; } // @public -export type JobOutputType = string; +export type FeaturestoreEntityContainersListResponse = FeaturestoreEntityContainerResourceArmPaginatedResult; -// @public (undocumented) -export type JobOutputUnion = JobOutput | CustomModelJobOutput | MLFlowModelJobOutput | MLTableJobOutput | TritonModelJobOutput | UriFileJobOutput | UriFolderJobOutput; - -// @public (undocumented) -export interface JobResourceConfiguration extends ResourceConfiguration { - dockerArgs?: string; - shmSize?: string; +// @public +export interface FeaturestoreEntityVersion extends Resource { + properties: FeaturestoreEntityVersionProperties; } // @public -export interface Jobs { - beginCancel(resourceGroupName: string, workspaceName: string, id: string, options?: JobsCancelOptionalParams): Promise, void>>; - beginCancelAndWait(resourceGroupName: string, workspaceName: string, id: string, options?: JobsCancelOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, id: string, options?: JobsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, workspaceName: string, id: string, options?: JobsDeleteOptionalParams): Promise; - createOrUpdate(resourceGroupName: string, workspaceName: string, id: string, body: JobBase, options?: JobsCreateOrUpdateOptionalParams): Promise; - get(resourceGroupName: string, workspaceName: string, id: string, options?: JobsGetOptionalParams): Promise; - list(resourceGroupName: string, workspaceName: string, options?: JobsListOptionalParams): PagedAsyncIterableIterator; +export interface FeaturestoreEntityVersionProperties extends AssetBase { + indexColumns?: IndexColumn[]; + readonly provisioningState?: AssetProvisioningState; + stage?: string; } // @public -export interface JobsCancelHeaders { - location?: string; - retryAfter?: number; +export interface FeaturestoreEntityVersionResourceArmPaginatedResult { + nextLink?: string; + value?: FeaturestoreEntityVersion[]; } // @public -export interface JobsCancelOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; +export interface FeaturestoreEntityVersions { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, name: string, version: string, body: FeaturestoreEntityVersion, options?: FeaturestoreEntityVersionsCreateOrUpdateOptionalParams): Promise, FeaturestoreEntityVersionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, name: string, version: string, body: FeaturestoreEntityVersion, options?: FeaturestoreEntityVersionsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: FeaturestoreEntityVersionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: FeaturestoreEntityVersionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: FeaturestoreEntityVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, name: string, options?: FeaturestoreEntityVersionsListOptionalParams): PagedAsyncIterableIterator; } -// @public (undocumented) -export interface JobScheduleAction extends ScheduleActionBase { - actionType: "CreateJob"; - jobDefinition: JobBasePropertiesUnion; +// @public +export interface FeaturestoreEntityVersionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } // @public -export interface JobsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface FeaturestoreEntityVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type JobsCreateOrUpdateResponse = JobBase; +export type FeaturestoreEntityVersionsCreateOrUpdateResponse = FeaturestoreEntityVersion; // @public -export interface JobsDeleteHeaders { +export interface FeaturestoreEntityVersionsDeleteHeaders { location?: string; retryAfter?: number; xMsAsyncOperationTimeout?: string; } // @public -export interface JobsDeleteOptionalParams extends coreClient.OperationOptions { +export interface FeaturestoreEntityVersionsDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export interface JobService { - endpoint?: string; - readonly errorMessage?: string; - jobServiceType?: string; - port?: number; - properties?: { - [propertyName: string]: string | null; - }; - readonly status?: string; +export interface FeaturestoreEntityVersionsGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface JobsGetOptionalParams extends coreClient.OperationOptions { +export type FeaturestoreEntityVersionsGetResponse = FeaturestoreEntityVersion; + +// @public +export interface FeaturestoreEntityVersionsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type JobsGetResponse = JobBase; +export type FeaturestoreEntityVersionsListNextResponse = FeaturestoreEntityVersionResourceArmPaginatedResult; // @public -export interface JobsListNextOptionalParams extends coreClient.OperationOptions { - jobType?: string; +export interface FeaturestoreEntityVersionsListOptionalParams extends coreClient.OperationOptions { + createdBy?: string; + description?: string; listViewType?: ListViewType; + pageSize?: number; skip?: string; - tag?: string; + stage?: string; + tags?: string; + version?: string; + versionName?: string; } // @public -export type JobsListNextResponse = JobBaseResourceArmPaginatedResult; +export type FeaturestoreEntityVersionsListResponse = FeaturestoreEntityVersionResourceArmPaginatedResult; -// @public -export interface JobsListOptionalParams extends coreClient.OperationOptions { - jobType?: string; - listViewType?: ListViewType; - skip?: string; - tag?: string; +// @public (undocumented) +export interface FeatureStoreSettings { + // (undocumented) + computeRuntime?: ComputeRuntimeDto; + // (undocumented) + offlineStoreConnectionName?: string; + // (undocumented) + onlineStoreConnectionName?: string; } -// @public -export type JobsListResponse = JobBaseResourceArmPaginatedResult; +// @public (undocumented) +export interface FeatureSubset extends MonitoringFeatureFilterBase { + features: string[]; + filterType: "FeatureSubset"; +} // @public -export type JobStatus = string; +export interface FeatureWindow { + featureWindowEnd?: Date; + featureWindowStart?: Date; +} // @public -export type JobType = string; +export type FeaturizationMode = string; // @public -type KeyType_2 = string; -export { KeyType_2 as KeyType } +export interface FeaturizationSettings { + datasetLanguage?: string; +} -// @public -export enum KnownAllocationState { - Resizing = "Resizing", - Steady = "Steady" +// @public (undocumented) +export interface FileSystemSource extends DataImportSource { + path?: string; + sourceType: "file_system"; } // @public -export enum KnownApplicationSharingPolicy { - Personal = "Personal", - Shared = "Shared" +export interface FixedInputData extends MonitoringInputDataBase { + inputDataType: "Fixed"; } -// @public -export enum KnownAutoRebuildSetting { - Disabled = "Disabled", - OnBaseImageUpdate = "OnBaseImageUpdate" +// @public (undocumented) +export interface FlavorData { + data?: { + [propertyName: string]: string | null; + }; } // @public -export enum KnownAutosave { - Local = "Local", - None = "None", - Remote = "Remote" +export interface ForecastHorizon { + mode: "Auto" | "Custom"; } // @public -export enum KnownBatchLoggingLevel { - Debug = "Debug", - Info = "Info", - Warning = "Warning" -} +export type ForecastHorizonMode = string; + +// @public (undocumented) +export type ForecastHorizonUnion = ForecastHorizon | AutoForecastHorizon | CustomForecastHorizon; // @public -export enum KnownBatchOutputAction { - AppendRow = "AppendRow", - SummaryOnly = "SummaryOnly" +export interface Forecasting extends TableVertical, AutoMLVertical { + forecastingSettings?: ForecastingSettings; + primaryMetric?: ForecastingPrimaryMetrics; + trainingSettings?: ForecastingTrainingSettings; } // @public -export enum KnownBillingCurrency { - USD = "USD" -} +export type ForecastingModels = string; // @public -export enum KnownBlockedTransformers { - CatTargetEncoder = "CatTargetEncoder", - CountVectorizer = "CountVectorizer", - HashOneHotEncoder = "HashOneHotEncoder", - LabelEncoder = "LabelEncoder", - NaiveBayes = "NaiveBayes", - OneHotEncoder = "OneHotEncoder", - TextTargetEncoder = "TextTargetEncoder", - TfIdf = "TfIdf", - WoETargetEncoder = "WoETargetEncoder", - WordEmbedding = "WordEmbedding" -} +export type ForecastingPrimaryMetrics = string; // @public -export enum KnownCaching { - None = "None", - ReadOnly = "ReadOnly", - ReadWrite = "ReadWrite" +export interface ForecastingSettings { + countryOrRegionForHolidays?: string; + cvStepSize?: number; + featureLags?: FeatureLags; + featuresUnknownAtForecastTime?: string[]; + forecastHorizon?: ForecastHorizonUnion; + frequency?: string; + seasonality?: SeasonalityUnion; + shortSeriesHandlingConfig?: ShortSeriesHandlingConfiguration; + targetAggregateFunction?: TargetAggregationFunction; + targetLags?: TargetLagsUnion; + targetRollingWindowSize?: TargetRollingWindowSizeUnion; + timeColumnName?: string; + timeSeriesIdColumnNames?: string[]; + useStl?: UseStl; } // @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" +export interface ForecastingTrainingSettings extends TrainingSettings { + allowedTrainingAlgorithms?: ForecastingModels[]; + blockedTrainingAlgorithms?: ForecastingModels[]; } -// @public -export enum KnownClassificationMultilabelPrimaryMetrics { - Accuracy = "Accuracy", - AUCWeighted = "AUCWeighted", - AveragePrecisionScoreWeighted = "AveragePrecisionScoreWeighted", - IOU = "IOU", - NormMacroRecall = "NormMacroRecall", - PrecisionScoreWeighted = "PrecisionScoreWeighted" +// @public (undocumented) +export interface FqdnEndpoint { + // (undocumented) + domainName?: string; + // (undocumented) + endpointDetails?: FqdnEndpointDetail[]; } -// @public -export enum KnownClassificationPrimaryMetrics { - Accuracy = "Accuracy", - AUCWeighted = "AUCWeighted", - AveragePrecisionScoreWeighted = "AveragePrecisionScoreWeighted", - NormMacroRecall = "NormMacroRecall", - PrecisionScoreWeighted = "PrecisionScoreWeighted" +// @public (undocumented) +export interface FqdnEndpointDetail { + // (undocumented) + port?: number; } -// @public -export enum KnownClusterPurpose { - DenseProd = "DenseProd", - DevTest = "DevTest", - FastProd = "FastProd" +// @public (undocumented) +export interface FqdnEndpoints { + // (undocumented) + category?: string; + // (undocumented) + endpoints?: FqdnEndpoint[]; } // @public -export enum KnownComputeInstanceAuthorizationType { - Personal = "personal" +export interface FqdnEndpointsPropertyBag { + // (undocumented) + properties?: FqdnEndpoints; } // @public -export enum KnownComputeInstanceState { - CreateFailed = "CreateFailed", - Creating = "Creating", - Deleting = "Deleting", - JobRunning = "JobRunning", - Restarting = "Restarting", - Running = "Running", - SettingUp = "SettingUp", - SetupFailed = "SetupFailed", - Starting = "Starting", - Stopped = "Stopped", - Stopping = "Stopping", - Unknown = "Unknown", - Unusable = "Unusable", - UserSettingUp = "UserSettingUp", - UserSetupFailed = "UserSetupFailed" +export interface FqdnOutboundRule extends OutboundRule { + // (undocumented) + destination?: string; + type: "FQDN"; } // @public -export enum KnownComputePowerAction { - Start = "Start", - Stop = "Stop" -} +export type GenerationSafetyQualityMetric = string; // @public -export enum KnownComputeType { - AKS = "AKS", - AmlCompute = "AmlCompute", - ComputeInstance = "ComputeInstance", - Databricks = "Databricks", - DataFactory = "DataFactory", - DataLakeAnalytics = "DataLakeAnalytics", - HDInsight = "HDInsight", - Kubernetes = "Kubernetes", - SynapseSpark = "SynapseSpark", - VirtualMachine = "VirtualMachine" +export interface GenerationSafetyQualityMetricThreshold { + metric: GenerationSafetyQualityMetric; + threshold?: MonitoringThreshold; } // @public -export enum KnownConnectionAuthType { - ManagedIdentity = "ManagedIdentity", - None = "None", - PAT = "PAT", - SAS = "SAS", - UsernamePassword = "UsernamePassword" +export interface GenerationSafetyQualityMonitoringSignal extends MonitoringSignalBase { + metricThresholds: GenerationSafetyQualityMetricThreshold[]; + productionData?: MonitoringInputDataBaseUnion[]; + samplingRate: number; + signalType: "GenerationSafetyQuality"; + workspaceConnectionId?: string; } // @public -export enum KnownConnectionCategory { - ContainerRegistry = "ContainerRegistry", - Git = "Git", - PythonFeed = "PythonFeed" -} +export type GenerationTokenStatisticsMetric = string; // @public -export enum KnownContainerType { - InferenceServer = "InferenceServer", - StorageInitializer = "StorageInitializer" +export interface GenerationTokenStatisticsMetricThreshold { + metric: GenerationTokenStatisticsMetric; + threshold?: MonitoringThreshold; } // @public -export enum KnownCreatedByType { - Application = "Application", - Key = "Key", - ManagedIdentity = "ManagedIdentity", - User = "User" +export interface GenerationTokenStatisticsSignal extends MonitoringSignalBase { + metricThresholds: GenerationTokenStatisticsMetricThreshold[]; + productionData?: MonitoringInputDataBaseUnion; + samplingRate: number; + signalType: "GenerationTokenStatistics"; } // @public -export enum KnownCredentialsType { - AccountKey = "AccountKey", - Certificate = "Certificate", - None = "None", - Sas = "Sas", - ServicePrincipal = "ServicePrincipal" -} +export function getContinuationToken(page: unknown): string | undefined; // @public -export enum KnownDatastoreType { - AzureBlob = "AzureBlob", - AzureDataLakeGen1 = "AzureDataLakeGen1", - AzureDataLakeGen2 = "AzureDataLakeGen2", - AzureFile = "AzureFile" -} +export type Goal = string; // @public -export enum KnownDataType { - Mltable = "mltable", - UriFile = "uri_file", - UriFolder = "uri_folder" +export interface GridSamplingAlgorithm extends SamplingAlgorithm { + samplingAlgorithmType: "Grid"; } -// @public -export enum KnownDeploymentProvisioningState { - Canceled = "Canceled", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Scaling = "Scaling", - Succeeded = "Succeeded", - Updating = "Updating" +// @public (undocumented) +export interface HdfsDatastore extends DatastoreProperties { + datastoreType: "Hdfs"; + hdfsServerCertificate?: string; + nameNodeAddress: string; + protocol?: string; } // @public -export enum KnownDiagnoseResultLevel { - Error = "Error", +export interface HDInsight extends Compute, HDInsightSchema { + computeType: "HDInsight"; +} + +// @public +export interface HDInsightProperties { + address?: string; + administratorAccount?: VirtualMachineSshCredentials; + sshPort?: number; +} + +// @public (undocumented) +export interface HDInsightSchema { + properties?: HDInsightProperties; +} + +// @public +export interface IdAssetReference extends AssetReferenceBase { + assetId: string; + referenceType: "Id"; +} + +// @public +export interface IdentityConfiguration { + identityType: "AMLToken" | "Managed" | "UserIdentity"; +} + +// @public +export type IdentityConfigurationType = string; + +// @public (undocumented) +export type IdentityConfigurationUnion = IdentityConfiguration | AmlToken | ManagedIdentity | UserIdentity; + +// @public +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; +} + +// @public (undocumented) +export interface ImageClassificationBase extends ImageVertical { + modelSettings?: ImageModelSettingsClassification; + searchSpace?: ImageModelDistributionSettingsClassification[]; +} + +// @public +export interface ImageClassificationMultilabel extends ImageClassificationBase, AutoMLVertical { + primaryMetric?: ClassificationMultilabelPrimaryMetrics; +} + +// @public +export interface ImageInstanceSegmentation extends ImageObjectDetectionBase, AutoMLVertical { + primaryMetric?: InstanceSegmentationPrimaryMetrics; +} + +// @public +export interface ImageLimitSettings { + maxConcurrentTrials?: number; + maxTrials?: number; + timeout?: string; +} + +// @public +export interface ImageMetadata { + currentImageVersion?: string; + isLatestOsImageVersion?: boolean; + latestImageVersion?: string; + readonly osPatchingStatus?: OsPatchingStatus; +} + +// @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; + logTrainingMetrics?: LogTrainingMetrics; + logValidationLoss?: LogValidationLoss; + 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; +} + +// @public (undocumented) +export interface ImageObjectDetectionBase extends ImageVertical { + modelSettings?: ImageModelSettingsObjectDetection; + searchSpace?: ImageModelDistributionSettingsObjectDetection[]; +} + +// @public +export interface ImageSweepSettings { + earlyTermination?: EarlyTerminationPolicyUnion; + samplingAlgorithm: SamplingAlgorithmType; +} + +// @public +export type ImageType = string; + +// @public +export interface ImageVertical { + limitSettings: ImageLimitSettings; + sweepSettings?: ImageSweepSettings; + validationData?: MLTableJobInput; + validationDataSize?: number; +} + +// @public (undocumented) +export interface ImportDataAction extends ScheduleActionBase { + actionType: "ImportData"; + dataImportDefinition: DataImport; +} + +// @public +export type IncrementalDataRefresh = string; + +// @public +export interface IndexColumn { + columnName?: string; + dataType?: FeatureDataType; +} + +// @public (undocumented) +export interface InferenceContainerProperties { + livenessRoute?: Route; + readinessRoute?: Route; + scoringRoute?: Route; +} + +// @public (undocumented) +export interface InferencingServer { + serverType: "AzureMLBatch" | "AzureMLOnline" | "Custom" | "Triton"; +} + +// @public +export type InferencingServerType = string; + +// @public (undocumented) +export type InferencingServerUnion = InferencingServer | AzureMLBatchInferencingServer | AzureMLOnlineInferencingServer | CustomInferencingServer | TritonInferencingServer; + +// @public +export type InputDeliveryMode = string; + +// @public +export type InputPathType = string; + +// @public +export type InstanceSegmentationPrimaryMetrics = string; + +// @public +export interface InstanceTypeSchema { + nodeSelector?: { + [propertyName: string]: string | null; + }; + resources?: InstanceTypeSchemaResources; +} + +// @public +export interface InstanceTypeSchemaResources { + limits?: { + [propertyName: string]: string; + }; + requests?: { + [propertyName: string]: string; + }; +} + +// @public +export interface IntellectualProperty { + protectionLevel?: ProtectionLevel; + publisher: string; +} + +// @public +export type IsolationMode = string; + +// @public +export interface JobBase extends Resource { + properties: JobBasePropertiesUnion; +} + +// @public +export interface JobBaseProperties extends ResourceBase { + componentId?: string; + computeId?: string; + displayName?: string; + experimentName?: string; + identity?: IdentityConfigurationUnion; + isArchived?: boolean; + jobType: JobType; + notificationSetting?: NotificationSetting; + secretsConfiguration?: { + [propertyName: string]: SecretConfiguration | null; + }; + services?: { + [propertyName: string]: JobService | null; + }; + readonly status?: JobStatus; +} + +// @public (undocumented) +export type JobBasePropertiesUnion = JobBaseProperties | LabelingJobProperties | AutoMLJob | CommandJob | PipelineJob | SparkJob | SweepJob; + +// @public +export interface JobBaseResourceArmPaginatedResult { + nextLink?: string; + value?: JobBase[]; +} + +// @public +export interface JobInput { + description?: string; + jobInputType: "mltable" | "custom_model" | "mlflow_model" | "literal" | "triton_model" | "uri_file" | "uri_folder"; +} + +// @public +export type JobInputType = string; + +// @public (undocumented) +export type JobInputUnion = JobInput | MLTableJobInput | CustomModelJobInput | MLFlowModelJobInput | LiteralJobInput | TritonModelJobInput | UriFileJobInput | UriFolderJobInput; + +// @public (undocumented) +export interface JobLimits { + jobLimitsType: "Command" | "Sweep"; + timeout?: string; +} + +// @public +export type JobLimitsType = string; + +// @public (undocumented) +export type JobLimitsUnion = JobLimits | CommandJobLimits | SweepJobLimits; + +// @public +export interface JobOutput { + description?: string; + jobOutputType: "custom_model" | "mlflow_model" | "mltable" | "triton_model" | "uri_file" | "uri_folder"; +} + +// @public +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>>; + beginCancelAndWait(resourceGroupName: string, workspaceName: string, id: string, options?: JobsCancelOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, id: string, options?: JobsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, id: string, options?: JobsDeleteOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, workspaceName: string, id: string, body: JobBase, options?: JobsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, id: string, options?: JobsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: JobsListOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, workspaceName: string, id: string, body: PartialJobBasePartialResource, options?: JobsUpdateOptionalParams): Promise; +} + +// @public +export interface JobsCancelHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface JobsCancelOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public (undocumented) +export interface JobScheduleAction extends ScheduleActionBase { + actionType: "CreateJob"; + jobDefinition: JobBasePropertiesUnion; +} + +// @public +export interface JobsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type JobsCreateOrUpdateResponse = JobBase; + +// @public +export interface JobsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface JobsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface JobService { + endpoint?: string; + readonly errorMessage?: string; + jobServiceType?: string; + nodes?: NodesUnion; + port?: number; + properties?: { + [propertyName: string]: string | null; + }; + readonly status?: string; +} + +// @public +export interface JobsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type JobsGetResponse = JobBase; + +// @public +export interface JobsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type JobsListNextResponse = JobBaseResourceArmPaginatedResult; + +// @public +export interface JobsListOptionalParams extends coreClient.OperationOptions { + assetName?: string; + jobType?: string; + listViewType?: ListViewType; + scheduled?: boolean; + scheduleId?: string; + skip?: string; + tag?: string; +} + +// @public +export type JobsListResponse = JobBaseResourceArmPaginatedResult; + +// @public +export type JobStatus = string; + +// @public +export interface JobsUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type JobsUpdateResponse = JobBase; + +// @public +export type JobTier = 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 } + +// @public +export interface KeyVaultProperties { + identityClientId?: string; + keyIdentifier: string; + keyVaultArmId: string; +} + +// @public +export enum KnownAllocationState { + Resizing = "Resizing", + Steady = "Steady" +} + +// @public +export enum KnownApplicationSharingPolicy { + Personal = "Personal", + Shared = "Shared" +} + +// @public +export enum KnownAssetProvisioningState { + Canceled = "Canceled", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed", + Succeeded = "Succeeded", + Updating = "Updating" +} + +// @public +export enum KnownAutoDeleteCondition { + CreatedGreaterThan = "CreatedGreaterThan", + LastAccessedGreaterThan = "LastAccessedGreaterThan" +} + +// @public +export enum KnownAutoRebuildSetting { + Disabled = "Disabled", + OnBaseImageUpdate = "OnBaseImageUpdate" +} + +// @public +export enum KnownAutosave { + Local = "Local", + None = "None", + Remote = "Remote" +} + +// @public +export enum KnownBaseEnvironmentSourceType { + EnvironmentAsset = "EnvironmentAsset" +} + +// @public +export enum KnownBatchDeploymentConfigurationType { + Model = "Model", + PipelineComponent = "PipelineComponent" +} + +// @public +export enum KnownBatchLoggingLevel { + Debug = "Debug", + Info = "Info", + Warning = "Warning" +} + +// @public +export enum KnownBatchOutputAction { + AppendRow = "AppendRow", + SummaryOnly = "SummaryOnly" +} + +// @public +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", + ReadOnly = "ReadOnly", + ReadWrite = "ReadWrite" +} + +// @public +export enum KnownCategoricalDataDriftMetric { + JensenShannonDistance = "JensenShannonDistance", + PearsonsChiSquaredTest = "PearsonsChiSquaredTest", + PopulationStabilityIndex = "PopulationStabilityIndex" +} + +// @public +export enum KnownCategoricalDataQualityMetric { + DataTypeErrorRate = "DataTypeErrorRate", + NullValueRate = "NullValueRate", + OutOfBoundsRate = "OutOfBoundsRate" +} + +// @public +export enum KnownCategoricalPredictionDriftMetric { + JensenShannonDistance = "JensenShannonDistance", + PearsonsChiSquaredTest = "PearsonsChiSquaredTest", + PopulationStabilityIndex = "PopulationStabilityIndex" +} + +// @public +export enum KnownClassificationModelPerformanceMetric { + Accuracy = "Accuracy", + Precision = "Precision", + Recall = "Recall" +} + +// @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", + DevTest = "DevTest", + FastProd = "FastProd" +} + +// @public +export enum KnownComputeInstanceAuthorizationType { + Personal = "personal" +} + +// @public +export enum KnownComputeInstanceState { + CreateFailed = "CreateFailed", + Creating = "Creating", + Deleting = "Deleting", + JobRunning = "JobRunning", + Resizing = "Resizing", + Restarting = "Restarting", + Running = "Running", + SettingUp = "SettingUp", + SetupFailed = "SetupFailed", + Starting = "Starting", + Stopped = "Stopped", + Stopping = "Stopping", + Unknown = "Unknown", + Unusable = "Unusable", + UserSettingUp = "UserSettingUp", + UserSetupFailed = "UserSetupFailed" +} + +// @public +export enum KnownComputePowerAction { + Start = "Start", + Stop = "Stop" +} + +// @public +export enum KnownComputeType { + AKS = "AKS", + AmlCompute = "AmlCompute", + ComputeInstance = "ComputeInstance", + Databricks = "Databricks", + DataFactory = "DataFactory", + DataLakeAnalytics = "DataLakeAnalytics", + HDInsight = "HDInsight", + Kubernetes = "Kubernetes", + SynapseSpark = "SynapseSpark", + VirtualMachine = "VirtualMachine" +} + +// @public +export enum KnownConnectionAuthType { + AccessKey = "AccessKey", + ApiKey = "ApiKey", + CustomKeys = "CustomKeys", + ManagedIdentity = "ManagedIdentity", + None = "None", + PAT = "PAT", + SAS = "SAS", + ServicePrincipal = "ServicePrincipal", + UsernamePassword = "UsernamePassword" +} + +// @public +export enum KnownConnectionCategory { + AdlsGen2 = "ADLSGen2", + ApiKey = "ApiKey", + AzureMySqlDb = "AzureMySqlDb", + AzureOpenAI = "AzureOpenAI", + AzurePostgresDb = "AzurePostgresDb", + AzureSqlDb = "AzureSqlDb", + AzureSynapseAnalytics = "AzureSynapseAnalytics", + CognitiveSearch = "CognitiveSearch", + CognitiveService = "CognitiveService", + ContainerRegistry = "ContainerRegistry", + CustomKeys = "CustomKeys", + Git = "Git", + PythonFeed = "PythonFeed", + Redis = "Redis", + S3 = "S3", + Snowflake = "Snowflake" +} + +// @public +export enum KnownContainerType { + InferenceServer = "InferenceServer", + ModelDataCollector = "ModelDataCollector", + StorageInitializer = "StorageInitializer" +} + +// @public +export enum KnownCreatedByType { + Application = "Application", + Key = "Key", + ManagedIdentity = "ManagedIdentity", + User = "User" +} + +// @public +export enum KnownCredentialsType { + AccountKey = "AccountKey", + Certificate = "Certificate", + KerberosKeytab = "KerberosKeytab", + KerberosPassword = "KerberosPassword", + None = "None", + Sas = "Sas", + ServicePrincipal = "ServicePrincipal" +} + +// @public +export enum KnownDataAvailabilityStatus { + Complete = "Complete", + Incomplete = "Incomplete", + None = "None", + Pending = "Pending" +} + +// @public +export enum KnownDataCollectionMode { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownDataImportSourceType { + Database = "database", + FileSystem = "file_system" +} + +// @public +export enum KnownDatastoreType { + AzureBlob = "AzureBlob", + AzureDataLakeGen1 = "AzureDataLakeGen1", + AzureDataLakeGen2 = "AzureDataLakeGen2", + AzureFile = "AzureFile", + Hdfs = "Hdfs", + OneLake = "OneLake" +} + +// @public +export enum KnownDataType { + Mltable = "mltable", + UriFile = "uri_file", + UriFolder = "uri_folder" +} + +// @public +export enum KnownDeploymentProvisioningState { + Canceled = "Canceled", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed", + Scaling = "Scaling", + Succeeded = "Succeeded", + Updating = "Updating" +} + +// @public +export enum KnownDiagnoseResultLevel { + Error = "Error", + Information = "Information", + Warning = "Warning" +} + +// @public +export enum KnownDistributionType { + Mpi = "Mpi", + PyTorch = "PyTorch", + Ray = "Ray", + TensorFlow = "TensorFlow" +} + +// @public +export enum KnownEarlyTerminationPolicyType { + Bandit = "Bandit", + MedianStopping = "MedianStopping", + TruncationSelection = "TruncationSelection" +} + +// @public +export enum KnownEgressPublicNetworkAccessType { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownEmailNotificationEnableType { + JobCancelled = "JobCancelled", + JobCompleted = "JobCompleted", + JobFailed = "JobFailed" +} + +// @public +export enum KnownEncryptionStatus { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownEndpointAuthMode { + AADToken = "AADToken", + AMLToken = "AMLToken", + Key = "Key" +} + +// @public +export enum KnownEndpointComputeType { + AzureMLCompute = "AzureMLCompute", + Kubernetes = "Kubernetes", + Managed = "Managed" +} + +// @public +export enum KnownEndpointProvisioningState { + Canceled = "Canceled", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed", + Succeeded = "Succeeded", + Updating = "Updating" +} + +// @public +export enum KnownEndpointServiceConnectionStatus { + Approved = "Approved", + Disconnected = "Disconnected", + Pending = "Pending", + Rejected = "Rejected", + Timeout = "Timeout" +} + +// @public +export enum KnownEnvironmentType { + Curated = "Curated", + UserCreated = "UserCreated" +} + +// @public +export enum KnownEnvironmentVariableType { + Local = "local" +} + +// @public +export enum KnownExportFormatType { + Coco = "Coco", + CSV = "CSV", + Dataset = "Dataset" +} + +// @public +export enum KnownFeatureAttributionMetric { + NormalizedDiscountedCumulativeGain = "NormalizedDiscountedCumulativeGain" +} + +// @public +export enum KnownFeatureDataType { + Binary = "Binary", + Boolean = "Boolean", + Datetime = "Datetime", + Double = "Double", + Float = "Float", + Integer = "Integer", + Long = "Long", + String = "String" +} + +// @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 KnownGenerationSafetyQualityMetric { + AcceptableCoherenceScorePerInstance = "AcceptableCoherenceScorePerInstance", + AcceptableFluencyScorePerInstance = "AcceptableFluencyScorePerInstance", + AcceptableGroundednessScorePerInstance = "AcceptableGroundednessScorePerInstance", + AcceptableRelevanceScorePerInstance = "AcceptableRelevanceScorePerInstance", + AcceptableSimilarityScorePerInstance = "AcceptableSimilarityScorePerInstance", + AggregatedCoherencePassRate = "AggregatedCoherencePassRate", + AggregatedFluencyPassRate = "AggregatedFluencyPassRate", + AggregatedGroundednessPassRate = "AggregatedGroundednessPassRate", + AggregatedRelevancePassRate = "AggregatedRelevancePassRate", + AggregatedSimilarityPassRate = "AggregatedSimilarityPassRate" +} + +// @public +export enum KnownGenerationTokenStatisticsMetric { + TotalTokenCount = "TotalTokenCount", + TotalTokenCountPerGroup = "TotalTokenCountPerGroup" +} + +// @public +export enum KnownGoal { + Maximize = "Maximize", + Minimize = "Minimize" +} + +// @public +export enum KnownIdentityConfigurationType { + AMLToken = "AMLToken", + Managed = "Managed", + UserIdentity = "UserIdentity" +} + +// @public +export enum KnownImageAnnotationType { + BoundingBox = "BoundingBox", + Classification = "Classification", + InstanceSegmentation = "InstanceSegmentation" +} + +// @public +export enum KnownImageType { + Azureml = "azureml", + Docker = "docker" +} + +// @public +export enum KnownIncrementalDataRefresh { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownInferencingServerType { + AzureMLBatch = "AzureMLBatch", + AzureMLOnline = "AzureMLOnline", + Custom = "Custom", + Triton = "Triton" +} + +// @public +export enum KnownInputDeliveryMode { + Direct = "Direct", + Download = "Download", + EvalDownload = "EvalDownload", + EvalMount = "EvalMount", + ReadOnlyMount = "ReadOnlyMount", + ReadWriteMount = "ReadWriteMount" +} + +// @public +export enum KnownInputPathType { + PathId = "PathId", + PathVersion = "PathVersion", + Url = "Url" +} + +// @public +export enum KnownInstanceSegmentationPrimaryMetrics { + MeanAveragePrecision = "MeanAveragePrecision" +} + +// @public +export enum KnownIsolationMode { + AllowInternetOutbound = "AllowInternetOutbound", + AllowOnlyApprovedOutbound = "AllowOnlyApprovedOutbound", + Disabled = "Disabled" +} + +// @public +export enum KnownJobInputType { + CustomModel = "custom_model", + Literal = "literal", + MlflowModel = "mlflow_model", + Mltable = "mltable", + TritonModel = "triton_model", + UriFile = "uri_file", + UriFolder = "uri_folder" +} + +// @public +export enum KnownJobLimitsType { + Command = "Command", + Sweep = "Sweep" +} + +// @public +export enum KnownJobOutputType { + CustomModel = "custom_model", + MlflowModel = "mlflow_model", + Mltable = "mltable", + TritonModel = "triton_model", + UriFile = "uri_file", + UriFolder = "uri_folder" +} + +// @public +export enum KnownJobProvisioningState { + Canceled = "Canceled", + Failed = "Failed", + InProgress = "InProgress", + Succeeded = "Succeeded" +} + +// @public +export enum KnownJobStatus { + Canceled = "Canceled", + CancelRequested = "CancelRequested", + Completed = "Completed", + Failed = "Failed", + Finalizing = "Finalizing", + NotResponding = "NotResponding", + NotStarted = "NotStarted", + Paused = "Paused", + Preparing = "Preparing", + Provisioning = "Provisioning", + Queued = "Queued", + Running = "Running", + Scheduled = "Scheduled", + Starting = "Starting", + Unknown = "Unknown" +} + +// @public +export enum KnownJobTier { + Basic = "Basic", + Null = "Null", + Premium = "Premium", + Spot = "Spot", + Standard = "Standard" +} + +// @public +export enum KnownJobType { + AutoML = "AutoML", + Command = "Command", + Labeling = "Labeling", + Pipeline = "Pipeline", + Spark = "Spark", + Sweep = "Sweep" +} + +// @public +export enum KnownKeyType { + Primary = "Primary", + Secondary = "Secondary" +} + +// @public +export enum KnownLearningRateScheduler { + None = "None", + Step = "Step", + WarmupCosine = "WarmupCosine" +} + +// @public +export enum KnownListViewType { + ActiveOnly = "ActiveOnly", + All = "All", + ArchivedOnly = "ArchivedOnly" +} + +// @public +export enum KnownLoadBalancerType { + InternalLoadBalancer = "InternalLoadBalancer", + PublicIp = "PublicIp" +} + +// @public +export enum KnownLogTrainingMetrics { + Disable = "Disable", + Enable = "Enable" +} + +// @public +export enum KnownLogValidationLoss { + Disable = "Disable", + Enable = "Enable" +} + +// @public +export enum KnownLogVerbosity { + Critical = "Critical", + Debug = "Debug", + Error = "Error", + Info = "Info", + NotSet = "NotSet", + Warning = "Warning" +} + +// @public +export enum KnownManagedNetworkStatus { + Active = "Active", + Inactive = "Inactive" +} + +// @public +export enum KnownManagedServiceIdentityType { + None = "None", + SystemAssigned = "SystemAssigned", + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", + UserAssigned = "UserAssigned" +} + +// @public +export enum KnownMaterializationStoreType { + None = "None", + Offline = "Offline", + Online = "Online", + OnlineAndOffline = "OnlineAndOffline" +} + +// @public +export enum KnownMediaType { + Image = "Image", + Text = "Text" +} + +// @public +export enum KnownMLAssistConfigurationType { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownMlflowAutologger { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownMLFlowAutologgerState { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownModelSize { + ExtraLarge = "ExtraLarge", + Large = "Large", + Medium = "Medium", + None = "None", + Small = "Small" +} + +// @public +export enum KnownModelTaskType { + Classification = "Classification", + QuestionAnswering = "QuestionAnswering", + Regression = "Regression" +} + +// @public +export enum KnownMonitorComputeIdentityType { + AmlToken = "AmlToken", + ManagedIdentity = "ManagedIdentity" +} + +// @public +export enum KnownMonitorComputeType { + ServerlessSpark = "ServerlessSpark" +} + +// @public +export enum KnownMonitoringAlertNotificationType { + AzureMonitor = "AzureMonitor", + Email = "Email" +} + +// @public +export enum KnownMonitoringFeatureDataType { + Categorical = "Categorical", + Numerical = "Numerical" +} + +// @public +export enum KnownMonitoringFeatureFilterType { + AllFeatures = "AllFeatures", + FeatureSubset = "FeatureSubset", + TopNByAttribution = "TopNByAttribution" +} + +// @public +export enum KnownMonitoringInputDataType { + Fixed = "Fixed", + Static = "Static", + Trailing = "Trailing" +} + +// @public +export enum KnownMonitoringModelType { + Classification = "Classification", + Regression = "Regression" +} + +// @public +export enum KnownMonitoringNotificationMode { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownMonitoringSignalType { + Custom = "Custom", + DataDrift = "DataDrift", + DataQuality = "DataQuality", + FeatureAttributionDrift = "FeatureAttributionDrift", + GenerationSafetyQuality = "GenerationSafetyQuality", + GenerationTokenStatistics = "GenerationTokenStatistics", + ModelPerformance = "ModelPerformance", + PredictionDrift = "PredictionDrift" +} + +// @public +export enum KnownMountAction { + Mount = "Mount", + Unmount = "Unmount" +} + +// @public +export enum KnownMountState { + Mounted = "Mounted", + MountFailed = "MountFailed", + MountRequested = "MountRequested", + Unmounted = "Unmounted", + UnmountFailed = "UnmountFailed", + UnmountRequested = "UnmountRequested" +} + +// @public +export enum KnownMultiSelect { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownNCrossValidationsMode { + Auto = "Auto", + Custom = "Custom" +} + +// @public +export enum KnownNetwork { + Bridge = "Bridge", + Host = "Host" +} + +// @public +export enum KnownNlpLearningRateScheduler { + Constant = "Constant", + ConstantWithWarmup = "ConstantWithWarmup", + Cosine = "Cosine", + CosineWithRestarts = "CosineWithRestarts", + Linear = "Linear", + None = "None", + Polynomial = "Polynomial" +} + +// @public +export enum KnownNodeState { + Idle = "idle", + Leaving = "leaving", + Preempted = "preempted", + Preparing = "preparing", + Running = "running", + Unusable = "unusable" +} + +// @public +export enum KnownNodesValueType { + All = "All", + Custom = "Custom" +} + +// @public +export enum KnownNumericalDataDriftMetric { + JensenShannonDistance = "JensenShannonDistance", + NormalizedWassersteinDistance = "NormalizedWassersteinDistance", + PopulationStabilityIndex = "PopulationStabilityIndex", + TwoSampleKolmogorovSmirnovTest = "TwoSampleKolmogorovSmirnovTest" +} + +// @public +export enum KnownNumericalDataQualityMetric { + DataTypeErrorRate = "DataTypeErrorRate", + NullValueRate = "NullValueRate", + OutOfBoundsRate = "OutOfBoundsRate" +} + +// @public +export enum KnownNumericalPredictionDriftMetric { + JensenShannonDistance = "JensenShannonDistance", + NormalizedWassersteinDistance = "NormalizedWassersteinDistance", + PopulationStabilityIndex = "PopulationStabilityIndex", + TwoSampleKolmogorovSmirnovTest = "TwoSampleKolmogorovSmirnovTest" +} + +// @public +export enum KnownObjectDetectionPrimaryMetrics { + MeanAveragePrecision = "MeanAveragePrecision" +} + +// @public +export enum KnownOneLakeArtifactType { + LakeHouse = "LakeHouse" +} + +// @public +export enum KnownOperatingSystemType { + Linux = "Linux", + Windows = "Windows" +} + +// @public +export enum KnownOperationName { + Create = "Create", + Delete = "Delete", + Reimage = "Reimage", + Resize = "Resize", + Restart = "Restart", + Start = "Start", + Stop = "Stop" +} + +// @public +export enum KnownOperationStatus { + CreateFailed = "CreateFailed", + DeleteFailed = "DeleteFailed", + InProgress = "InProgress", + ReimageFailed = "ReimageFailed", + ResizeFailed = "ResizeFailed", + RestartFailed = "RestartFailed", + StartFailed = "StartFailed", + StopFailed = "StopFailed", + Succeeded = "Succeeded" +} + +// @public +export enum KnownOperationTrigger { + IdleShutdown = "IdleShutdown", + Schedule = "Schedule", + User = "User" +} + +// @public +export enum KnownOrderString { + CreatedAtAsc = "CreatedAtAsc", + CreatedAtDesc = "CreatedAtDesc", + UpdatedAtAsc = "UpdatedAtAsc", + UpdatedAtDesc = "UpdatedAtDesc" +} + +// @public +export enum KnownOsType { + Linux = "Linux", + Windows = "Windows" +} + +// @public +export enum KnownOutputDeliveryMode { + Direct = "Direct", + ReadWriteMount = "ReadWriteMount", + Upload = "Upload" +} + +// @public +export enum KnownPackageBuildState { + Failed = "Failed", + NotStarted = "NotStarted", + Running = "Running", + Succeeded = "Succeeded" +} + +// @public +export enum KnownPackageInputDeliveryMode { + Copy = "Copy", + Download = "Download" +} + +// @public +export enum KnownPackageInputType { + UriFile = "UriFile", + UriFolder = "UriFolder" +} + +// @public +export enum KnownPatchStatus { + CompletedWithWarnings = "CompletedWithWarnings", + Failed = "Failed", + InProgress = "InProgress", + Succeeded = "Succeeded", + Unknown = "Unknown" +} + +// @public +export enum KnownPendingUploadCredentialType { + SAS = "SAS" +} + +// @public +export enum KnownPendingUploadType { + None = "None", + TemporaryBlobReference = "TemporaryBlobReference" +} + +// @public +export enum KnownPrivateEndpointConnectionProvisioningState { + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed", + Succeeded = "Succeeded" +} + +// @public +export enum KnownProtectionLevel { + All = "All", + None = "None" +} + +// @public +export enum KnownProtocol { + Http = "http", + Tcp = "tcp", + Udp = "udp" +} + +// @public +export enum KnownProvisioningState { + Canceled = "Canceled", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed", + Succeeded = "Succeeded", + Unknown = "Unknown", + Updating = "Updating" +} + +// @public +export enum KnownProvisioningStatus { + Completed = "Completed", + Failed = "Failed", + Provisioning = "Provisioning" +} + +// @public +export enum KnownPublicNetworkAccessType { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownQuotaUnit { + Count = "Count" +} + +// @public +export enum KnownRandomSamplingAlgorithmRule { + Random = "Random", + Sobol = "Sobol" +} + +// @public +export enum KnownRecurrenceFrequency { + Day = "Day", + Hour = "Hour", + Minute = "Minute", + Month = "Month", + Week = "Week" +} + +// @public +export enum KnownReferenceType { + DataPath = "DataPath", + Id = "Id", + OutputPath = "OutputPath" +} + +// @public +export enum KnownRegressionModelPerformanceMetric { + MeanAbsoluteError = "MeanAbsoluteError", + MeanSquaredError = "MeanSquaredError", + RootMeanSquaredError = "RootMeanSquaredError" +} + +// @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", + Enabled = "Enabled", + NotSpecified = "NotSpecified" +} + +// @public +export enum KnownRollingRateType { + Day = "Day", + Hour = "Hour", + Minute = "Minute", + Month = "Month", + Year = "Year" +} + +// @public +export enum KnownRuleAction { + Allow = "Allow", + Deny = "Deny" +} + +// @public +export enum KnownRuleCategory { + Recommended = "Recommended", + Required = "Required", + UserDefined = "UserDefined" +} + +// @public +export enum KnownRuleStatus { + Active = "Active", + Inactive = "Inactive" +} + +// @public +export enum KnownRuleType { + Fqdn = "FQDN", + PrivateEndpoint = "PrivateEndpoint", + ServiceTag = "ServiceTag" +} + +// @public +export enum KnownSamplingAlgorithmType { + Bayesian = "Bayesian", + Grid = "Grid", + Random = "Random" +} + +// @public +export enum KnownScaleType { + Default = "Default", + TargetUtilization = "TargetUtilization" +} + +// @public +export enum KnownScheduleActionType { + CreateJob = "CreateJob", + CreateMonitor = "CreateMonitor", + ImportData = "ImportData", + InvokeBatchEndpoint = "InvokeBatchEndpoint" +} + +// @public +export enum KnownScheduleListViewType { + All = "All", + DisabledOnly = "DisabledOnly", + EnabledOnly = "EnabledOnly" +} + +// @public +export enum KnownScheduleProvisioningState { + Completed = "Completed", + Failed = "Failed", + 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" +} + +// @public +export enum KnownServiceDataAccessAuthIdentity { + None = "None", + WorkspaceSystemAssignedIdentity = "WorkspaceSystemAssignedIdentity", + WorkspaceUserAssignedIdentity = "WorkspaceUserAssignedIdentity" +} + +// @public +export enum KnownShortSeriesHandlingConfiguration { + Auto = "Auto", + Drop = "Drop", + None = "None", + Pad = "Pad" +} + +// @public +export enum KnownSkuScaleType { + Automatic = "Automatic", + Manual = "Manual", + None = "None" +} + +// @public +export enum KnownSourceType { + Dataset = "Dataset", + Datastore = "Datastore", + URI = "URI" +} + +// @public +export enum KnownSparkJobEntryType { + SparkJobPythonEntry = "SparkJobPythonEntry", + SparkJobScalaEntry = "SparkJobScalaEntry" +} + +// @public +export enum KnownSshPublicAccess { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownSslConfigStatus { + Auto = "Auto", + Disabled = "Disabled", + 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", + InvalidQuotaBelowClusterMinimum = "InvalidQuotaBelowClusterMinimum", + InvalidQuotaExceedsSubscriptionLimit = "InvalidQuotaExceedsSubscriptionLimit", + InvalidVMFamilyName = "InvalidVMFamilyName", + OperationNotEnabledForRegion = "OperationNotEnabledForRegion", + OperationNotSupportedForSku = "OperationNotSupportedForSku", + Success = "Success", + Undefined = "Undefined" +} + +// @public +export enum KnownStatusMessageLevel { + Error = "Error", Information = "Information", Warning = "Warning" } // @public -export enum KnownDistributionType { - Mpi = "Mpi", - PyTorch = "PyTorch", - TensorFlow = "TensorFlow" +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 KnownTrainingMode { + Auto = "Auto", + Distributed = "Distributed", + NonDistributed = "NonDistributed" +} + +// @public +export enum KnownTriggerType { + Cron = "Cron", + Recurrence = "Recurrence" +} + +// @public +export enum KnownUnderlyingResourceAction { + Delete = "Delete", + Detach = "Detach" +} + +// @public +export enum KnownUnitOfMeasure { + OneHour = "OneHour" +} + +// @public +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 KnownVMPriceOSType { + Linux = "Linux", + Windows = "Windows" +} + +// @public +export enum KnownVmPriority { + Dedicated = "Dedicated", + LowPriority = "LowPriority" +} + +// @public +export enum KnownVMTier { + LowPriority = "LowPriority", + Spot = "Spot", + Standard = "Standard" +} + +// @public +export enum KnownVolumeDefinitionType { + Bind = "bind", + Npipe = "npipe", + Tmpfs = "tmpfs", + Volume = "volume" +} + +// @public +export enum KnownWebhookType { + AzureDevOps = "AzureDevOps" +} + +// @public +export enum KnownWeekDay { + Friday = "Friday", + Monday = "Monday", + Saturday = "Saturday", + Sunday = "Sunday", + Thursday = "Thursday", + Tuesday = "Tuesday", + Wednesday = "Wednesday" +} + +// @public +export interface Kubernetes extends Compute, KubernetesSchema { + computeType: "Kubernetes"; +} + +// @public +export interface KubernetesOnlineDeployment extends OnlineDeploymentProperties { + containerResourceRequirements?: ContainerResourceRequirements; + endpointComputeType: "Kubernetes"; +} + +// @public +export interface KubernetesProperties { + defaultInstanceType?: string; + extensionInstanceReleaseTrain?: string; + extensionPrincipalId?: string; + instanceTypes?: { + [propertyName: string]: InstanceTypeSchema; + }; + namespace?: string; + relayConnectionString?: string; + serviceBusConnectionString?: string; + vcName?: string; +} + +// @public +export interface KubernetesSchema { + properties?: KubernetesProperties; +} + +// @public +export interface LabelCategory { + classes?: { + [propertyName: string]: LabelClass | null; + }; + displayName?: string; + multiSelect?: MultiSelect; +} + +// @public +export interface LabelClass { + displayName?: string; + subclasses?: { + [propertyName: string]: LabelClass | null; + }; +} + +// @public +export interface LabelingDataConfiguration { + dataId?: string; + incrementalDataRefresh?: IncrementalDataRefresh; +} + +// @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; + jobType: "Labeling"; + 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, LabelingJobsResumeResponse>>; + 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 { +} + +// @public +export type LabelingJobsGetResponse = LabelingJob; + +// @public +export interface LabelingJobsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type LabelingJobsListNextResponse = LabelingJobResourceArmPaginatedResult; + +// @public +export interface LabelingJobsListOptionalParams extends coreClient.OperationOptions { + skip?: string; + top?: number; +} + +// @public +export type LabelingJobsListResponse = LabelingJobResourceArmPaginatedResult; + +// @public +export interface LabelingJobsPauseOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type LabelingJobsPauseResponse = LabelingJobProperties; + +// @public +export interface LabelingJobsResumeHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface LabelingJobsResumeOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type LabelingJobsResumeResponse = LabelingJobProperties; + +// @public +export interface LabelingJobTextProperties extends LabelingJobMediaProperties { + annotationType?: TextAnnotationType; + mediaType: "Text"; +} + +// @public (undocumented) +export interface LakeHouseArtifact extends OneLakeArtifact { + artifactType: "LakeHouse"; +} + +// @public +export type LearningRateScheduler = string; + +// @public +export interface ListAmlUserFeatureResult { + readonly nextLink?: string; + readonly value?: AmlUserFeature[]; +} + +// @public (undocumented) +export interface ListNotebookKeysResult { + readonly primaryAccessKey?: string; + readonly secondaryAccessKey?: string; +} + +// @public (undocumented) +export interface ListStorageAccountKeysResult { + readonly userStorageKey?: string; +} + +// @public +export interface ListUsagesResult { + readonly nextLink?: string; + readonly value?: Usage[]; +} + +// @public +export type ListViewType = string; + +// @public (undocumented) +export interface ListWorkspaceKeysResult { + readonly appInsightsInstrumentationKey?: string; + // (undocumented) + containerRegistryCredentials?: RegistryListCredentialsResult; + // (undocumented) + notebookAccessKeys?: ListNotebookKeysResult; + readonly userStorageArmId?: string; + readonly userStorageKey?: string; +} + +// @public +export interface ListWorkspaceQuotas { + readonly nextLink?: string; + readonly value?: ResourceQuota[]; +} + +// @public +export interface LiteralJobInput extends JobInput { + jobInputType: "literal"; + value: string; +} + +// @public +export type LoadBalancerType = string; + +// @public +export type LogTrainingMetrics = string; + +// @public +export type LogValidationLoss = string; + +// @public +export type LogVerbosity = string; + +// @public +export interface ManagedComputeIdentity extends MonitorComputeIdentityBase { + computeIdentityType: "ManagedIdentity"; + identity?: ManagedServiceIdentity; +} + +// @public +export interface ManagedIdentity extends IdentityConfiguration { + clientId?: string; + identityType: "Managed"; + objectId?: string; + resourceId?: string; +} + +// @public (undocumented) +export interface ManagedIdentityAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { + authType: "ManagedIdentity"; + // (undocumented) + credentials?: WorkspaceConnectionManagedIdentity; +} + +// @public +export interface ManagedNetworkProvisionOptions { + // (undocumented) + includeSpark?: boolean; +} + +// @public +export interface ManagedNetworkProvisions { + beginProvisionManagedNetwork(resourceGroupName: string, workspaceName: string, options?: ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams): Promise, ManagedNetworkProvisionsProvisionManagedNetworkResponse>>; + beginProvisionManagedNetworkAndWait(resourceGroupName: string, workspaceName: string, options?: ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams): Promise; +} + +// @public +export interface ManagedNetworkProvisionsProvisionManagedNetworkHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams extends coreClient.OperationOptions { + body?: ManagedNetworkProvisionOptions; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedNetworkProvisionsProvisionManagedNetworkResponse = ManagedNetworkProvisionStatus; + +// @public +export interface ManagedNetworkProvisionStatus { + // (undocumented) + sparkReady?: boolean; + status?: ManagedNetworkStatus; +} + +// @public +export interface ManagedNetworkSettings { + isolationMode?: IsolationMode; + readonly networkId?: string; + outboundRules?: { + [propertyName: string]: OutboundRuleUnion; + }; + status?: ManagedNetworkProvisionStatus; +} + +// @public +export interface ManagedNetworkSettingsRule { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, ruleName: string, body: OutboundRuleBasicResource, options?: ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams): Promise, ManagedNetworkSettingsRuleCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, ruleName: string, body: OutboundRuleBasicResource, options?: ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, ruleName: string, options?: ManagedNetworkSettingsRuleDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, ruleName: string, options?: ManagedNetworkSettingsRuleDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, ruleName: string, options?: ManagedNetworkSettingsRuleGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: ManagedNetworkSettingsRuleListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ManagedNetworkSettingsRuleCreateOrUpdateHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedNetworkSettingsRuleCreateOrUpdateResponse = OutboundRuleBasicResource; + +// @public +export interface ManagedNetworkSettingsRuleDeleteHeaders { + location?: string; +} + +// @public +export interface ManagedNetworkSettingsRuleDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ManagedNetworkSettingsRuleGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedNetworkSettingsRuleGetResponse = OutboundRuleBasicResource; + +// @public +export interface ManagedNetworkSettingsRuleListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedNetworkSettingsRuleListNextResponse = OutboundRuleListResult; + +// @public +export interface ManagedNetworkSettingsRuleListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedNetworkSettingsRuleListResponse = OutboundRuleListResult; + +// @public +export type ManagedNetworkStatus = string; + +// @public +export interface ManagedOnlineDeployment extends OnlineDeploymentProperties { + endpointComputeType: "Managed"; +} + +// @public +export interface ManagedServiceIdentity { + readonly principalId?: string; + readonly tenantId?: string; + type: ManagedServiceIdentityType; + userAssignedIdentities?: { + [propertyName: string]: UserAssignedIdentity; + }; +} + +// @public +export type ManagedServiceIdentityType = string; + +// @public +export interface MaterializationComputeResource { + instanceType?: string; +} + +// @public (undocumented) +export interface MaterializationSettings { + notification?: NotificationSetting; + resource?: MaterializationComputeResource; + schedule?: RecurrenceTrigger; + sparkConfiguration?: { + [propertyName: string]: string | null; + }; + storeType?: MaterializationStoreType; +} + +// @public +export type MaterializationStoreType = string; + +// @public +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 +export type MlflowAutologger = string; + +// @public +export type MLFlowAutologgerState = string; + +// @public (undocumented) +export interface MLFlowModelJobInput extends AssetJobInput, JobInput { +} + +// @public (undocumented) +export interface MLFlowModelJobOutput extends AssetJobOutput, JobOutput { +} + +// @public +export interface MLTableData extends DataVersionBaseProperties { + dataType: "mltable"; + referencedUris?: string[]; +} + +// @public (undocumented) +export interface MLTableJobInput extends AssetJobInput, JobInput { +} + +// @public (undocumented) +export interface MLTableJobOutput extends AssetJobOutput, JobOutput { +} + +// @public +export interface ModelConfiguration { + mode?: PackageInputDeliveryMode; + mountPath?: string; +} + +// @public +export interface ModelContainer extends Resource { + properties: ModelContainerProperties; +} + +// @public (undocumented) +export interface ModelContainerProperties extends AssetContainer { + readonly provisioningState?: AssetProvisioningState; +} + +// @public +export interface ModelContainerResourceArmPaginatedResult { + nextLink?: string; + value?: ModelContainer[]; +} + +// @public +export interface ModelContainers { + createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: ModelContainer, options?: ModelContainersCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, name: string, options?: ModelContainersDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, options?: ModelContainersGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: ModelContainersListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ModelContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ModelContainersCreateOrUpdateResponse = ModelContainer; + +// @public +export interface ModelContainersDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ModelContainersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ModelContainersGetResponse = ModelContainer; + +// @public +export interface ModelContainersListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult; + +// @public +export interface ModelContainersListOptionalParams extends coreClient.OperationOptions { + count?: number; + listViewType?: ListViewType; + skip?: string; +} + +// @public +export type ModelContainersListResponse = ModelContainerResourceArmPaginatedResult; + +// @public +export interface ModelPackageInput { + inputType: PackageInputType; + mode?: PackageInputDeliveryMode; + mountPath?: string; + path: PackageInputPathBaseUnion; +} + +// @public (undocumented) +export interface ModelPerformanceMetricThresholdBase { + modelType: "Classification" | "Regression"; + threshold?: MonitoringThreshold; +} + +// @public (undocumented) +export type ModelPerformanceMetricThresholdBaseUnion = ModelPerformanceMetricThresholdBase | ClassificationModelPerformanceMetricThreshold | RegressionModelPerformanceMetricThreshold; + +// @public +export interface ModelPerformanceSignal extends MonitoringSignalBase { + dataSegment?: MonitoringDataSegment; + metricThreshold: ModelPerformanceMetricThresholdBaseUnion; + productionData: MonitoringInputDataBaseUnion[]; + referenceData: MonitoringInputDataBaseUnion; + signalType: "ModelPerformance"; +} + +// @public (undocumented) +export interface ModelProfile { + modelUri: string; +} + +// @public +export type ModelSize = string; + +// @public +export type ModelTaskType = string; + +// @public +export interface ModelVersion extends Resource { + properties: ModelVersionProperties; +} + +// @public +export interface ModelVersionProperties extends AssetBase { + flavors?: { + [propertyName: string]: FlavorData | null; + }; + intellectualProperty?: IntellectualProperty; + jobName?: string; + modelType?: string; + modelUri?: string; + readonly provisioningState?: AssetProvisioningState; + stage?: string; +} + +// @public +export interface ModelVersionResourceArmPaginatedResult { + nextLink?: string; + value?: ModelVersion[]; +} + +// @public +export interface ModelVersions { + beginPackage(resourceGroupName: string, workspaceName: string, name: string, version: string, body: PackageRequest, options?: ModelVersionsPackageOptionalParams): Promise, ModelVersionsPackageResponse>>; + beginPackageAndWait(resourceGroupName: string, workspaceName: string, name: string, version: string, body: PackageRequest, options?: ModelVersionsPackageOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, version: string, body: ModelVersion, options?: ModelVersionsCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: ModelVersionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: ModelVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, name: string, options?: ModelVersionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ModelVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ModelVersionsCreateOrUpdateResponse = ModelVersion; + +// @public +export interface ModelVersionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ModelVersionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ModelVersionsGetResponse = ModelVersion; + +// @public +export interface ModelVersionsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult; + +// @public +export interface ModelVersionsListOptionalParams extends coreClient.OperationOptions { + description?: string; + feed?: string; + listViewType?: ListViewType; + offset?: number; + orderBy?: string; + properties?: string; + skip?: string; + stage?: string; + tags?: string; + top?: number; + version?: string; +} + +// @public +export type ModelVersionsListResponse = ModelVersionResourceArmPaginatedResult; + +// @public +export interface ModelVersionsPackageHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface ModelVersionsPackageOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ModelVersionsPackageResponse = PackageResponse; + +// @public +export interface MonitorComputeConfigurationBase { + computeType: "ServerlessSpark"; +} + +// @public (undocumented) +export type MonitorComputeConfigurationBaseUnion = MonitorComputeConfigurationBase | MonitorServerlessSparkCompute; + +// @public +export interface MonitorComputeIdentityBase { + computeIdentityType: "AmlToken" | "ManagedIdentity"; +} + +// @public (undocumented) +export type MonitorComputeIdentityBaseUnion = MonitorComputeIdentityBase | AmlTokenComputeIdentity | ManagedComputeIdentity; + +// @public +export type MonitorComputeIdentityType = string; + +// @public +export type MonitorComputeType = string; + +// @public (undocumented) +export interface MonitorDefinition { + alertNotificationSetting?: MonitoringAlertNotificationSettingsBaseUnion; + computeConfiguration: MonitorComputeConfigurationBaseUnion; + monitoringTarget?: MonitoringTarget; + signals: { + [propertyName: string]: MonitoringSignalBaseUnion | null; + }; +} + +// @public (undocumented) +export interface MonitoringAlertNotificationSettingsBase { + alertNotificationType: "AzureMonitor" | "Email"; +} + +// @public (undocumented) +export type MonitoringAlertNotificationSettingsBaseUnion = MonitoringAlertNotificationSettingsBase | AzMonMonitoringAlertNotificationSettings | EmailMonitoringAlertNotificationSettings; + +// @public +export type MonitoringAlertNotificationType = string; + +// @public (undocumented) +export interface MonitoringDataSegment { + feature?: string; + values?: string[]; +} + +// @public +export type MonitoringFeatureDataType = string; + +// @public (undocumented) +export interface MonitoringFeatureFilterBase { + filterType: "AllFeatures" | "FeatureSubset" | "TopNByAttribution"; +} + +// @public (undocumented) +export type MonitoringFeatureFilterBaseUnion = MonitoringFeatureFilterBase | AllFeatures | FeatureSubset | TopNFeaturesByAttribution; + +// @public +export type MonitoringFeatureFilterType = string; + +// @public +export interface MonitoringInputDataBase { + columns?: { + [propertyName: string]: string | null; + }; + dataContext?: string; + inputDataType: "Fixed" | "Static" | "Trailing"; + jobInputType: JobInputType; + uri: string; +} + +// @public (undocumented) +export type MonitoringInputDataBaseUnion = MonitoringInputDataBase | FixedInputData | StaticInputData | TrailingInputData; + +// @public +export type MonitoringInputDataType = string; + +// @public +export type MonitoringModelType = string; + +// @public +export type MonitoringNotificationMode = string; + +// @public (undocumented) +export interface MonitoringSignalBase { + mode?: MonitoringNotificationMode; + properties?: { + [propertyName: string]: string | null; + }; + signalType: "Custom" | "DataDrift" | "DataQuality" | "FeatureAttributionDrift" | "GenerationSafetyQuality" | "GenerationTokenStatistics" | "ModelPerformance" | "PredictionDrift"; +} + +// @public (undocumented) +export type MonitoringSignalBaseUnion = MonitoringSignalBase | CustomMonitoringSignal | DataDriftMonitoringSignal | DataQualityMonitoringSignal | FeatureAttributionDriftMonitoringSignal | GenerationSafetyQualityMonitoringSignal | GenerationTokenStatisticsSignal | ModelPerformanceSignal | PredictionDriftMonitoringSignal; + +// @public +export type MonitoringSignalType = string; + +// @public +export interface MonitoringTarget { + deploymentId?: string; + modelId?: string; + taskType: ModelTaskType; +} + +// @public (undocumented) +export interface MonitoringThreshold { + value?: number; +} + +// @public +export interface MonitoringWorkspaceConnection { + environmentVariables?: { + [propertyName: string]: string | null; + }; + secrets?: { + [propertyName: string]: string | null; + }; +} + +// @public +export interface MonitorServerlessSparkCompute extends MonitorComputeConfigurationBase { + computeIdentity: MonitorComputeIdentityBaseUnion; + computeType: "ServerlessSpark"; + instanceType: string; + runtimeVersion: string; +} + +// @public +export type MountAction = string; + +// @public +export type MountState = string; + +// @public +export interface Mpi extends DistributionConfiguration { + distributionType: "Mpi"; + processCountPerInstance?: number; +} + +// @public +export type MultiSelect = string; + +// @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 NlpFixedParameters { + gradientAccumulationSteps?: number; + learningRate?: number; + learningRateScheduler?: NlpLearningRateScheduler; + modelName?: string; + numberOfEpochs?: number; + trainingBatchSize?: number; + validationBatchSize?: number; + warmupRatio?: number; + weightDecay?: number; +} + +// @public +export type NlpLearningRateScheduler = string; + +// @public +export interface NlpParameterSubspace { + gradientAccumulationSteps?: string; + learningRate?: string; + learningRateScheduler?: string; + modelName?: string; + numberOfEpochs?: string; + trainingBatchSize?: string; + validationBatchSize?: string; + warmupRatio?: string; + weightDecay?: string; +} + +// @public +export interface NlpSweepSettings { + earlyTermination?: EarlyTerminationPolicyUnion; + samplingAlgorithm: SamplingAlgorithmType; +} + +// @public +export interface NlpVertical { + featurizationSettings?: NlpVerticalFeaturizationSettings; + fixedParameters?: NlpFixedParameters; + limitSettings?: NlpVerticalLimitSettings; + searchSpace?: NlpParameterSubspace[]; + sweepSettings?: NlpSweepSettings; + validationData?: MLTableJobInput; +} + +// @public (undocumented) +export interface NlpVerticalFeaturizationSettings extends FeaturizationSettings { +} + +// @public +export interface NlpVerticalLimitSettings { + maxConcurrentTrials?: number; + maxNodes?: number; + maxTrials?: number; + timeout?: string; + trialTimeout?: string; +} + +// @public +export interface Nodes { + nodesValueType: "All"; +} + +// @public +export type NodeState = string; + +// @public +export interface NodeStateCounts { + readonly idleNodeCount?: number; + readonly leavingNodeCount?: number; + readonly preemptedNodeCount?: number; + readonly preparingNodeCount?: number; + readonly runningNodeCount?: number; + readonly unusableNodeCount?: number; +} + +// @public (undocumented) +export type NodesUnion = Nodes | AllNodes; + +// @public +export type NodesValueType = string; + +// @public (undocumented) +export interface NoneAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { + authType: "None"; +} + +// @public +export interface NoneDatastoreCredentials extends DatastoreCredentials { + credentialsType: "None"; +} + +// @public (undocumented) +export interface NotebookAccessTokenResult { + readonly accessToken?: string; + readonly expiresIn?: number; + readonly hostName?: string; + readonly notebookResourceId?: string; + readonly publicDns?: string; + readonly refreshToken?: string; + readonly scope?: string; + readonly tokenType?: string; +} + +// @public (undocumented) +export interface NotebookPreparationError { + // (undocumented) + errorMessage?: string; + // (undocumented) + statusCode?: number; +} + +// @public (undocumented) +export interface NotebookResourceInfo { + // (undocumented) + fqdn?: string; + // (undocumented) + isPrivateLinkEnabled?: boolean; + notebookPreparationError?: NotebookPreparationError; + resourceId?: string; +} + +// @public +export interface NotificationSetting { + emailOn?: EmailNotificationEnableType[]; + emails?: string[]; + webhooks?: { + [propertyName: string]: WebhookUnion | null; + }; } // @public -export enum KnownEarlyTerminationPolicyType { - Bandit = "Bandit", - MedianStopping = "MedianStopping", - TruncationSelection = "TruncationSelection" +export type NumericalDataDriftMetric = string; + +// @public (undocumented) +export interface NumericalDataDriftMetricThreshold extends DataDriftMetricThresholdBase { + dataType: "Numerical"; + metric: NumericalDataDriftMetric; } // @public -export enum KnownEgressPublicNetworkAccessType { - Disabled = "Disabled", - Enabled = "Enabled" +export type NumericalDataQualityMetric = string; + +// @public (undocumented) +export interface NumericalDataQualityMetricThreshold extends DataQualityMetricThresholdBase { + dataType: "Numerical"; + metric: NumericalDataQualityMetric; } // @public -export enum KnownEncryptionStatus { - Disabled = "Disabled", - Enabled = "Enabled" +export type NumericalPredictionDriftMetric = string; + +// @public (undocumented) +export interface NumericalPredictionDriftMetricThreshold extends PredictionDriftMetricThresholdBase { + dataType: "Numerical"; + metric: NumericalPredictionDriftMetric; } // @public -export enum KnownEndpointAuthMode { - AADToken = "AADToken", - AMLToken = "AMLToken", - Key = "Key" +export type ObjectDetectionPrimaryMetrics = string; + +// @public +export interface Objective { + goal: Goal; + primaryMetric: string; } // @public -export enum KnownEndpointComputeType { - AzureMLCompute = "AzureMLCompute", - Kubernetes = "Kubernetes", - Managed = "Managed" +export interface OneLakeArtifact { + artifactName: string; + artifactType: "LakeHouse"; } // @public -export enum KnownEndpointProvisioningState { - Canceled = "Canceled", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Succeeded = "Succeeded", - Updating = "Updating" +export type OneLakeArtifactType = string; + +// @public (undocumented) +export type OneLakeArtifactUnion = OneLakeArtifact | LakeHouseArtifact; + +// @public +export interface OneLakeDatastore extends DatastoreProperties { + artifact: OneLakeArtifactUnion; + datastoreType: "OneLake"; + endpoint?: string; + oneLakeWorkspaceName: string; + serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; +} + +// @public (undocumented) +export interface OnlineDeployment extends TrackedResource { + identity?: ManagedServiceIdentity; + kind?: string; + properties: OnlineDeploymentPropertiesUnion; + sku?: Sku; +} + +// @public (undocumented) +export interface OnlineDeploymentProperties extends EndpointDeploymentPropertiesBase { + appInsightsEnabled?: boolean; + dataCollector?: DataCollector; + egressPublicNetworkAccess?: EgressPublicNetworkAccessType; + endpointComputeType: EndpointComputeType; + instanceType?: string; + livenessProbe?: ProbeSettings; + model?: string; + modelMountPath?: string; + readonly provisioningState?: DeploymentProvisioningState; + readinessProbe?: ProbeSettings; + requestSettings?: OnlineRequestSettings; + scaleSettings?: OnlineScaleSettingsUnion; +} + +// @public (undocumented) +export type OnlineDeploymentPropertiesUnion = OnlineDeploymentProperties | KubernetesOnlineDeployment | ManagedOnlineDeployment; + +// @public +export interface OnlineDeployments { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: OnlineDeployment, options?: OnlineDeploymentsCreateOrUpdateOptionalParams): Promise, OnlineDeploymentsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: OnlineDeployment, options?: OnlineDeploymentsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: OnlineDeploymentsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: OnlineDeploymentsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: PartialMinimalTrackedResourceWithSku, options?: OnlineDeploymentsUpdateOptionalParams): Promise, OnlineDeploymentsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: PartialMinimalTrackedResourceWithSku, options?: OnlineDeploymentsUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: OnlineDeploymentsGetOptionalParams): Promise; + getLogs(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: DeploymentLogsRequest, options?: OnlineDeploymentsGetLogsOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineDeploymentsListOptionalParams): PagedAsyncIterableIterator; + listSkus(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: OnlineDeploymentsListSkusOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface OnlineDeploymentsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface OnlineDeploymentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type OnlineDeploymentsCreateOrUpdateResponse = OnlineDeployment; + +// @public +export interface OnlineDeploymentsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface OnlineDeploymentsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface OnlineDeploymentsGetLogsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OnlineDeploymentsGetLogsResponse = DeploymentLogs; + +// @public +export interface OnlineDeploymentsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OnlineDeploymentsGetResponse = OnlineDeployment; + +// @public +export interface OnlineDeploymentsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OnlineDeploymentsListNextResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; + +// @public +export interface OnlineDeploymentsListOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type OnlineDeploymentsListResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; + +// @public +export interface OnlineDeploymentsListSkusNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OnlineDeploymentsListSkusNextResponse = SkuResourceArmPaginatedResult; + +// @public +export interface OnlineDeploymentsListSkusOptionalParams extends coreClient.OperationOptions { + count?: number; + skip?: string; +} + +// @public +export type OnlineDeploymentsListSkusResponse = SkuResourceArmPaginatedResult; + +// @public +export interface OnlineDeploymentsUpdateHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface OnlineDeploymentsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type OnlineDeploymentsUpdateResponse = OnlineDeployment; + +// @public +export interface OnlineDeploymentTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: OnlineDeployment[]; +} + +// @public (undocumented) +export interface OnlineEndpoint extends TrackedResource { + identity?: ManagedServiceIdentity; + kind?: string; + properties: OnlineEndpointProperties; + sku?: Sku; +} + +// @public +export interface OnlineEndpointProperties extends EndpointPropertiesBase { + compute?: string; + mirrorTraffic?: { + [propertyName: string]: number; + }; + readonly provisioningState?: EndpointProvisioningState; + publicNetworkAccess?: PublicNetworkAccessType; + traffic?: { + [propertyName: string]: number; + }; +} + +// @public +export interface OnlineEndpoints { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, body: OnlineEndpoint, options?: OnlineEndpointsCreateOrUpdateOptionalParams): Promise, OnlineEndpointsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, body: OnlineEndpoint, options?: OnlineEndpointsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsDeleteOptionalParams): Promise; + beginRegenerateKeys(resourceGroupName: string, workspaceName: string, endpointName: string, body: RegenerateEndpointKeysRequest, options?: OnlineEndpointsRegenerateKeysOptionalParams): Promise, void>>; + beginRegenerateKeysAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, body: RegenerateEndpointKeysRequest, options?: OnlineEndpointsRegenerateKeysOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, body: PartialMinimalTrackedResourceWithIdentity, options?: OnlineEndpointsUpdateOptionalParams): Promise, OnlineEndpointsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, body: PartialMinimalTrackedResourceWithIdentity, options?: OnlineEndpointsUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsGetOptionalParams): Promise; + getToken(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsGetTokenOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: OnlineEndpointsListOptionalParams): PagedAsyncIterableIterator; + listKeys(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsListKeysOptionalParams): Promise; +} + +// @public +export interface OnlineEndpointsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface OnlineEndpointsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type OnlineEndpointsCreateOrUpdateResponse = OnlineEndpoint; + +// @public +export interface OnlineEndpointsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface OnlineEndpointsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface OnlineEndpointsGetOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownEnvironmentType { - Curated = "Curated", - UserCreated = "UserCreated" -} +export type OnlineEndpointsGetResponse = OnlineEndpoint; // @public -export enum KnownFeatureLags { - Auto = "Auto", - None = "None" +export interface OnlineEndpointsGetTokenOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownFeaturizationMode { - Auto = "Auto", - Custom = "Custom", - Off = "Off" -} +export type OnlineEndpointsGetTokenResponse = EndpointAuthToken; // @public -export enum KnownForecastHorizonMode { - Auto = "Auto", - Custom = "Custom" +export interface OnlineEndpointsListKeysOptionalParams extends coreClient.OperationOptions { } // @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" -} +export type OnlineEndpointsListKeysResponse = EndpointAuthKeys; // @public -export enum KnownForecastingPrimaryMetrics { - NormalizedMeanAbsoluteError = "NormalizedMeanAbsoluteError", - NormalizedRootMeanSquaredError = "NormalizedRootMeanSquaredError", - R2Score = "R2Score", - SpearmanCorrelation = "SpearmanCorrelation" +export interface OnlineEndpointsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownGoal { - Maximize = "Maximize", - Minimize = "Minimize" -} +export type OnlineEndpointsListNextResponse = OnlineEndpointTrackedResourceArmPaginatedResult; // @public -export enum KnownIdentityConfigurationType { - AMLToken = "AMLToken", - Managed = "Managed", - UserIdentity = "UserIdentity" +export interface OnlineEndpointsListOptionalParams extends coreClient.OperationOptions { + computeType?: EndpointComputeType; + count?: number; + name?: string; + orderBy?: OrderString; + properties?: string; + skip?: string; + tags?: string; } // @public -export enum KnownInputDeliveryMode { - Direct = "Direct", - Download = "Download", - EvalDownload = "EvalDownload", - EvalMount = "EvalMount", - ReadOnlyMount = "ReadOnlyMount", - ReadWriteMount = "ReadWriteMount" -} +export type OnlineEndpointsListResponse = OnlineEndpointTrackedResourceArmPaginatedResult; // @public -export enum KnownInstanceSegmentationPrimaryMetrics { - MeanAveragePrecision = "MeanAveragePrecision" +export interface OnlineEndpointsRegenerateKeysHeaders { + location?: string; + retryAfter?: number; } // @public -export enum KnownJobInputType { - CustomModel = "custom_model", - Literal = "literal", - MlflowModel = "mlflow_model", - Mltable = "mltable", - TritonModel = "triton_model", - UriFile = "uri_file", - UriFolder = "uri_folder" +export interface OnlineEndpointsRegenerateKeysOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export enum KnownJobLimitsType { - Command = "Command", - Sweep = "Sweep" +export interface OnlineEndpointsUpdateHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export enum KnownJobOutputType { - CustomModel = "custom_model", - MlflowModel = "mlflow_model", - Mltable = "mltable", - TritonModel = "triton_model", - UriFile = "uri_file", - UriFolder = "uri_folder" +export interface OnlineEndpointsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export enum KnownJobStatus { - Canceled = "Canceled", - CancelRequested = "CancelRequested", - Completed = "Completed", - Failed = "Failed", - Finalizing = "Finalizing", - NotResponding = "NotResponding", - NotStarted = "NotStarted", - Paused = "Paused", - Preparing = "Preparing", - Provisioning = "Provisioning", - Queued = "Queued", - Running = "Running", - Starting = "Starting", - Unknown = "Unknown" -} +export type OnlineEndpointsUpdateResponse = OnlineEndpoint; // @public -export enum KnownJobType { - AutoML = "AutoML", - Command = "Command", - Pipeline = "Pipeline", - Sweep = "Sweep" +export interface OnlineEndpointTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: OnlineEndpoint[]; } // @public -export enum KnownKeyType { - Primary = "Primary", - Secondary = "Secondary" +export interface OnlineInferenceConfiguration { + configurations?: { + [propertyName: string]: string | null; + }; + entryScript?: string; + livenessRoute?: Route; + readinessRoute?: Route; + scoringRoute?: Route; } // @public -export enum KnownLearningRateScheduler { - None = "None", - Step = "Step", - WarmupCosine = "WarmupCosine" +export interface OnlineRequestSettings { + maxConcurrentRequestsPerInstance?: number; + maxQueueWait?: string; + requestTimeout?: string; } // @public -export enum KnownListViewType { - ActiveOnly = "ActiveOnly", - All = "All", - ArchivedOnly = "ArchivedOnly" +export interface OnlineScaleSettings { + scaleType: "Default" | "TargetUtilization"; } +// @public (undocumented) +export type OnlineScaleSettingsUnion = OnlineScaleSettings | DefaultScaleSettings | TargetUtilizationScaleSettings; + // @public -export enum KnownLoadBalancerType { - InternalLoadBalancer = "InternalLoadBalancer", - PublicIp = "PublicIp" -} +export type OperatingSystemType = string; // @public -export enum KnownLogVerbosity { - Critical = "Critical", - Debug = "Debug", - Error = "Error", - Info = "Info", - NotSet = "NotSet", - Warning = "Warning" +export interface OperationDisplay { + description?: string; + operation?: string; + provider?: string; + resource?: string; } // @public -export enum KnownManagedServiceIdentityType { - None = "None", - SystemAssigned = "SystemAssigned", - SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", - UserAssigned = "UserAssigned" -} +export type OperationName = string; // @public -export enum KnownModelSize { - ExtraLarge = "ExtraLarge", - Large = "Large", - Medium = "Medium", - None = "None", - Small = "Small" +export interface Operations { + list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; } // @public -export enum KnownMountAction { - Mount = "Mount", - Unmount = "Unmount" +export interface OperationsListOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownMountState { - Mounted = "Mounted", - MountFailed = "MountFailed", - MountRequested = "MountRequested", - Unmounted = "Unmounted", - UnmountFailed = "UnmountFailed", - UnmountRequested = "UnmountRequested" -} +export type OperationsListResponse = AmlOperationListResult; // @public -export enum KnownNCrossValidationsMode { - Auto = "Auto", - Custom = "Custom" -} +export type OperationStatus = string; // @public -export enum KnownNetwork { - Bridge = "Bridge", - Host = "Host" -} +export type OperationTrigger = string; // @public -export enum KnownNodeState { - Idle = "idle", - Leaving = "leaving", - Preempted = "preempted", - Preparing = "preparing", - Running = "running", - Unusable = "unusable" +export type OrderString = string; + +// @public +export interface OsPatchingStatus { + latestPatchTime?: string; + patchStatus?: PatchStatus; + rebootPending?: boolean; + scheduledRebootTime?: string; } // @public -export enum KnownObjectDetectionPrimaryMetrics { - MeanAveragePrecision = "MeanAveragePrecision" +export type OsType = string; + +// @public +export interface OutboundRule { + category?: RuleCategory; + status?: RuleStatus; + type: "FQDN" | "PrivateEndpoint" | "ServiceTag"; } // @public -export enum KnownOperatingSystemType { - Linux = "Linux", - Windows = "Windows" +export interface OutboundRuleBasicResource extends Resource { + properties: OutboundRuleUnion; } // @public -export enum KnownOperationName { - Create = "Create", - Delete = "Delete", - Reimage = "Reimage", - Restart = "Restart", - Start = "Start", - Stop = "Stop" +export interface OutboundRuleListResult { + nextLink?: string; + value?: OutboundRuleBasicResource[]; } +// @public (undocumented) +export type OutboundRuleUnion = OutboundRule | FqdnOutboundRule | PrivateEndpointOutboundRule | ServiceTagOutboundRule; + // @public -export enum KnownOperationStatus { - CreateFailed = "CreateFailed", - DeleteFailed = "DeleteFailed", - InProgress = "InProgress", - ReimageFailed = "ReimageFailed", - RestartFailed = "RestartFailed", - StartFailed = "StartFailed", - StopFailed = "StopFailed", - Succeeded = "Succeeded" +export type OutputDeliveryMode = string; + +// @public +export interface OutputPathAssetReference extends AssetReferenceBase { + jobId?: string; + path?: string; + referenceType: "OutputPath"; } // @public -export enum KnownOperationTrigger { - IdleShutdown = "IdleShutdown", - Schedule = "Schedule", - User = "User" +export type PackageBuildState = string; + +// @public +export type PackageInputDeliveryMode = string; + +// @public (undocumented) +export interface PackageInputPathBase { + inputPathType: "PathId" | "Url" | "PathVersion"; } +// @public (undocumented) +export type PackageInputPathBaseUnion = PackageInputPathBase | PackageInputPathId | PackageInputPathUrl | PackageInputPathVersion; + // @public -export enum KnownOrderString { - CreatedAtAsc = "CreatedAtAsc", - CreatedAtDesc = "CreatedAtDesc", - UpdatedAtAsc = "UpdatedAtAsc", - UpdatedAtDesc = "UpdatedAtDesc" +export interface PackageInputPathId extends PackageInputPathBase { + inputPathType: "PathId"; + resourceId?: string; } // @public -export enum KnownOsType { - Linux = "Linux", - Windows = "Windows" +export interface PackageInputPathUrl extends PackageInputPathBase { + inputPathType: "Url"; + url?: string; } // @public -export enum KnownOutputDeliveryMode { - ReadWriteMount = "ReadWriteMount", - Upload = "Upload" +export interface PackageInputPathVersion extends PackageInputPathBase { + inputPathType: "PathVersion"; + resourceName?: string; + resourceVersion?: string; } // @public -export enum KnownPrivateEndpointConnectionProvisioningState { - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Succeeded = "Succeeded" -} +export type PackageInputType = string; // @public -export enum KnownPrivateEndpointServiceConnectionStatus { - Approved = "Approved", - Disconnected = "Disconnected", - Pending = "Pending", - Rejected = "Rejected", - Timeout = "Timeout" +export interface PackageRequest { + baseEnvironmentSource?: BaseEnvironmentSourceUnion; + environmentVariables?: { + [propertyName: string]: string | null; + }; + inferencingServer: InferencingServerUnion; + inputs?: ModelPackageInput[]; + modelConfiguration?: ModelConfiguration; + properties?: { + [propertyName: string]: string | null; + }; + tags?: { + [propertyName: string]: string | null; + }; + targetEnvironmentId: string; } // @public -export enum KnownProvisioningState { - Canceled = "Canceled", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Succeeded = "Succeeded", - Unknown = "Unknown", - Updating = "Updating" +export interface PackageResponse { + readonly baseEnvironmentSource?: BaseEnvironmentSourceUnion; + readonly buildId?: string; + readonly buildState?: PackageBuildState; + readonly environmentVariables?: { + [propertyName: string]: string | null; + }; + readonly inferencingServer?: InferencingServerUnion; + readonly inputs?: ModelPackageInput[]; + readonly logUrl?: string; + readonly modelConfiguration?: ModelConfiguration; + readonly properties?: { + [propertyName: string]: string | null; + }; + readonly tags?: { + [propertyName: string]: string | null; + }; + readonly targetEnvironmentId?: string; } // @public -export enum KnownProvisioningStatus { - Completed = "Completed", - Failed = "Failed", - Provisioning = "Provisioning" +export interface PaginatedComputeResourcesList { + nextLink?: string; + value?: ComputeResource[]; } // @public -export enum KnownPublicNetworkAccess { - Disabled = "Disabled", - Enabled = "Enabled" +export interface PartialBatchDeployment { + description?: string; } // @public -export enum KnownPublicNetworkAccessType { - Disabled = "Disabled", - Enabled = "Enabled" +export interface PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties { + properties?: PartialBatchDeployment; + tags?: { + [propertyName: string]: string | null; + }; } // @public -export enum KnownQuotaUnit { - Count = "Count" +export interface PartialJobBase { + notificationSetting?: PartialNotificationSetting; } // @public -export enum KnownRandomSamplingAlgorithmRule { - Random = "Random", - Sobol = "Sobol" +export interface PartialJobBasePartialResource { + properties?: PartialJobBase; } // @public -export enum KnownRecurrenceFrequency { - Day = "Day", - Hour = "Hour", - Minute = "Minute", - Month = "Month", - Week = "Week" +export interface PartialManagedServiceIdentity { + type?: ManagedServiceIdentityType; + userAssignedIdentities?: { + [propertyName: string]: Record; + }; } // @public -export enum KnownReferenceType { - DataPath = "DataPath", - Id = "Id", - OutputPath = "OutputPath" +export interface PartialMinimalTrackedResource { + tags?: { + [propertyName: string]: string | null; + }; } // @public -export enum KnownRegressionModels { - DecisionTree = "DecisionTree", - ElasticNet = "ElasticNet", - ExtremeRandomTrees = "ExtremeRandomTrees", - GradientBoosting = "GradientBoosting", - KNN = "KNN", - LassoLars = "LassoLars", - LightGBM = "LightGBM", - RandomForest = "RandomForest", - SGD = "SGD", - XGBoostRegressor = "XGBoostRegressor" +export interface PartialMinimalTrackedResourceWithIdentity extends PartialMinimalTrackedResource { + identity?: PartialManagedServiceIdentity; } // @public -export enum KnownRegressionPrimaryMetrics { - NormalizedMeanAbsoluteError = "NormalizedMeanAbsoluteError", - NormalizedRootMeanSquaredError = "NormalizedRootMeanSquaredError", - R2Score = "R2Score", - SpearmanCorrelation = "SpearmanCorrelation" +export interface PartialMinimalTrackedResourceWithSku extends PartialMinimalTrackedResource { + sku?: PartialSku; } // @public -export enum KnownRemoteLoginPortPublicAccess { - Disabled = "Disabled", - Enabled = "Enabled", - NotSpecified = "NotSpecified" +export interface PartialMinimalTrackedResourceWithSkuAndIdentity extends PartialMinimalTrackedResource { + identity?: PartialManagedServiceIdentity; + sku?: PartialSku; } // @public -export enum KnownSamplingAlgorithmType { - Bayesian = "Bayesian", - Grid = "Grid", - Random = "Random" +export interface PartialNotificationSetting { + webhooks?: { + [propertyName: string]: WebhookUnion | null; + }; } // @public -export enum KnownScaleType { - Default = "Default", - TargetUtilization = "TargetUtilization" +export interface PartialRegistryPartialTrackedResource { + identity?: RegistryPartialManagedServiceIdentity; + sku?: PartialSku; + tags?: { + [propertyName: string]: string | null; + }; } // @public -export enum KnownScheduleActionType { - CreateJob = "CreateJob", - InvokeBatchEndpoint = "InvokeBatchEndpoint" +export interface PartialSku { + capacity?: number; + family?: string; + name?: string; + size?: string; + tier?: SkuTier; } -// @public -export enum KnownScheduleListViewType { - All = "All", - DisabledOnly = "DisabledOnly", - EnabledOnly = "EnabledOnly" +// @public (undocumented) +export interface Password { + readonly name?: string; + readonly value?: string; } -// @public -export enum KnownScheduleProvisioningState { - Completed = "Completed", - Failed = "Failed", - Provisioning = "Provisioning" +// @public (undocumented) +export interface PATAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { + authType: "PAT"; + // (undocumented) + credentials?: WorkspaceConnectionPersonalAccessToken; } // @public -export enum KnownScheduleProvisioningStatus { - Canceled = "Canceled", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Succeeded = "Succeeded", - Updating = "Updating" +export type PatchStatus = string; + +// @public (undocumented) +export interface PendingUploadCredentialDto { + credentialType: "SAS"; } +// @public (undocumented) +export type PendingUploadCredentialDtoUnion = PendingUploadCredentialDto | SASCredentialDto; + // @public -export enum KnownScheduleStatus { - Disabled = "Disabled", - Enabled = "Enabled" +export type PendingUploadCredentialType = string; + +// @public (undocumented) +export interface PendingUploadRequestDto { + pendingUploadId?: string; + pendingUploadType?: PendingUploadType; } -// @public -export enum KnownSeasonalityMode { - Auto = "Auto", - Custom = "Custom" +// @public (undocumented) +export interface PendingUploadResponseDto { + blobReferenceForConsumption?: BlobReferenceForConsumptionDto; + pendingUploadId?: string; + pendingUploadType?: PendingUploadType; } // @public -export enum KnownSecretsType { - AccountKey = "AccountKey", - Certificate = "Certificate", - Sas = "Sas", - ServicePrincipal = "ServicePrincipal" -} +export type PendingUploadType = string; // @public -export enum KnownServiceDataAccessAuthIdentity { - None = "None", - WorkspaceSystemAssignedIdentity = "WorkspaceSystemAssignedIdentity", - WorkspaceUserAssignedIdentity = "WorkspaceUserAssignedIdentity" +export interface PersonalComputeInstanceSettings { + assignedUser?: AssignedUser; } // @public -export enum KnownShortSeriesHandlingConfiguration { - Auto = "Auto", - Drop = "Drop", - None = "None", - Pad = "Pad" +export interface PipelineJob extends JobBaseProperties { + inputs?: { + [propertyName: string]: JobInputUnion | null; + }; + jobs?: { + [propertyName: string]: Record; + }; + jobType: "Pipeline"; + outputs?: { + [propertyName: string]: JobOutputUnion | null; + }; + settings?: Record; + sourceJobId?: string; } -// @public -export enum KnownSkuScaleType { - Automatic = "Automatic", - Manual = "Manual", - None = "None" +// @public (undocumented) +export interface PredictionDriftMetricThresholdBase { + dataType: "Categorical" | "Numerical"; + threshold?: MonitoringThreshold; } -// @public -export enum KnownSourceType { - Dataset = "Dataset", - Datastore = "Datastore", - URI = "URI" +// @public (undocumented) +export type PredictionDriftMetricThresholdBaseUnion = PredictionDriftMetricThresholdBase | CategoricalPredictionDriftMetricThreshold | NumericalPredictionDriftMetricThreshold; + +// @public (undocumented) +export interface PredictionDriftMonitoringSignal extends MonitoringSignalBase { + metricThresholds: PredictionDriftMetricThresholdBaseUnion[]; + modelType: MonitoringModelType; + productionData: MonitoringInputDataBaseUnion; + referenceData: MonitoringInputDataBaseUnion; + signalType: "PredictionDrift"; } // @public -export enum KnownSshPublicAccess { - Disabled = "Disabled", - Enabled = "Enabled" +export interface PrivateEndpoint { + readonly id?: string; } // @public -export enum KnownSslConfigStatus { - Auto = "Auto", - Disabled = "Disabled", - Enabled = "Enabled" +export interface PrivateEndpointConnection extends Resource { + identity?: ManagedServiceIdentity; + location?: string; + privateEndpoint?: WorkspacePrivateEndpointResource; + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + readonly provisioningState?: PrivateEndpointConnectionProvisioningState; + sku?: Sku; + tags?: { + [propertyName: string]: string; + }; } // @public -export enum KnownStackMetaLearnerType { - ElasticNet = "ElasticNet", - ElasticNetCV = "ElasticNetCV", - LightGBMClassifier = "LightGBMClassifier", - LightGBMRegressor = "LightGBMRegressor", - LinearRegression = "LinearRegression", - LogisticRegression = "LogisticRegression", - LogisticRegressionCV = "LogisticRegressionCV", - None = "None" +export interface PrivateEndpointConnectionListResult { + value?: PrivateEndpointConnection[]; } // @public -export enum KnownStatus { - Failure = "Failure", - InvalidQuotaBelowClusterMinimum = "InvalidQuotaBelowClusterMinimum", - InvalidQuotaExceedsSubscriptionLimit = "InvalidQuotaExceedsSubscriptionLimit", - InvalidVMFamilyName = "InvalidVMFamilyName", - OperationNotEnabledForRegion = "OperationNotEnabledForRegion", - OperationNotSupportedForSku = "OperationNotSupportedForSku", - Success = "Success", - Undefined = "Undefined" -} +export type PrivateEndpointConnectionProvisioningState = string; // @public -export enum KnownStochasticOptimizer { - Adam = "Adam", - Adamw = "Adamw", - None = "None", - Sgd = "Sgd" +export interface PrivateEndpointConnections { + createOrUpdate(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, body: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: PrivateEndpointConnectionsListOptionalParams): PagedAsyncIterableIterator; } // @public -export enum KnownStorageAccountType { - PremiumLRS = "Premium_LRS", - StandardLRS = "Standard_LRS" +export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownTargetAggregationFunction { - Max = "Max", - Mean = "Mean", - Min = "Min", - None = "None", - Sum = "Sum" -} +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; // @public -export enum KnownTargetLagsMode { - Auto = "Auto", - Custom = "Custom" +export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownTargetRollingWindowSizeMode { - Auto = "Auto", - Custom = "Custom" +export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownTaskType { - Classification = "Classification", - Forecasting = "Forecasting", - ImageClassification = "ImageClassification", - ImageClassificationMultilabel = "ImageClassificationMultilabel", - ImageInstanceSegmentation = "ImageInstanceSegmentation", - ImageObjectDetection = "ImageObjectDetection", - Regression = "Regression", - TextClassification = "TextClassification", - TextClassificationMultilabel = "TextClassificationMultilabel", - TextNER = "TextNER" -} +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; // @public -export enum KnownTriggerType { - Cron = "Cron", - Recurrence = "Recurrence" +export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownUnderlyingResourceAction { - Delete = "Delete", - Detach = "Detach" -} +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; // @public -export enum KnownUnitOfMeasure { - OneHour = "OneHour" +export interface PrivateEndpointDestination { + // (undocumented) + serviceResourceId?: string; + // (undocumented) + sparkEnabled?: boolean; + sparkStatus?: RuleStatus; + // (undocumented) + subresourceTarget?: string; } // @public -export enum KnownUsageUnit { - Count = "Count" +export interface PrivateEndpointOutboundRule extends OutboundRule { + destination?: PrivateEndpointDestination; + type: "PrivateEndpoint"; } // @public -export enum KnownUseStl { - None = "None", - Season = "Season", - SeasonTrend = "SeasonTrend" +export interface PrivateEndpointResource extends PrivateEndpoint { + subnetArmId?: string; } // @public -export enum KnownValidationMetricType { - Coco = "Coco", - CocoVoc = "CocoVoc", - None = "None", - Voc = "Voc" +export interface PrivateLinkResource extends Resource { + groupId?: string; + identity?: ManagedServiceIdentity; + location?: string; + requiredMembers?: string[]; + requiredZoneNames?: string[]; + sku?: Sku; + tags?: { + [propertyName: string]: string; + }; } // @public -export enum KnownValueFormat { - Json = "JSON" +export interface PrivateLinkResourceListResult { + // (undocumented) + value?: PrivateLinkResource[]; } // @public -export enum KnownVMPriceOSType { - Linux = "Linux", - Windows = "Windows" +export interface PrivateLinkResources { + list(resourceGroupName: string, workspaceName: string, options?: PrivateLinkResourcesListOptionalParams): PagedAsyncIterableIterator; } // @public -export enum KnownVmPriority { - Dedicated = "Dedicated", - LowPriority = "LowPriority" +export interface PrivateLinkResourcesListOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownVMTier { - LowPriority = "LowPriority", - Spot = "Spot", - Standard = "Standard" -} +export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; // @public -export enum KnownWeekDay { - Friday = "Friday", - Monday = "Monday", - Saturday = "Saturday", - Sunday = "Sunday", - Thursday = "Thursday", - Tuesday = "Tuesday", - Wednesday = "Wednesday" +export interface PrivateLinkServiceConnectionState { + actionsRequired?: string; + description?: string; + status?: EndpointServiceConnectionStatus; } // @public -export interface Kubernetes extends Compute, KubernetesSchema { - computeType: "Kubernetes"; +export interface ProbeSettings { + failureThreshold?: number; + initialDelay?: string; + period?: string; + successThreshold?: number; + timeout?: string; } // @public -export interface KubernetesOnlineDeployment extends OnlineDeploymentProperties { - containerResourceRequirements?: ContainerResourceRequirements; - endpointComputeType: "Kubernetes"; +export interface ProgressMetrics { + readonly completedDatapointCount?: number; + readonly incrementalDataLastRefreshDateTime?: Date; + readonly skippedDatapointCount?: number; + readonly totalDatapointCount?: number; } // @public -export interface KubernetesProperties { - defaultInstanceType?: string; - extensionInstanceReleaseTrain?: string; - extensionPrincipalId?: string; - instanceTypes?: { - [propertyName: string]: InstanceTypeSchema; - }; - namespace?: string; - relayConnectionString?: string; - serviceBusConnectionString?: string; - vcName?: string; -} +export type ProtectionLevel = string; // @public -export interface KubernetesSchema { - properties?: KubernetesProperties; -} +export type Protocol = string; // @public -export type LearningRateScheduler = string; +export type ProvisioningState = string; // @public -export interface ListAmlUserFeatureResult { - readonly nextLink?: string; - readonly value?: AmlUserFeature[]; -} +export type ProvisioningStatus = string; -// @public (undocumented) -export interface ListNotebookKeysResult { - readonly primaryAccessKey?: string; - readonly secondaryAccessKey?: string; +// @public +export type PublicNetworkAccessType = string; + +// @public +export interface PyTorch extends DistributionConfiguration { + distributionType: "PyTorch"; + processCountPerInstance?: number; } // @public (undocumented) -export interface ListStorageAccountKeysResult { - readonly userStorageKey?: string; +export interface QueueSettings { + jobTier?: JobTier; + priority?: number; } // @public -export interface ListUsagesResult { - readonly nextLink?: string; - readonly value?: Usage[]; +export interface QuotaBaseProperties { + id?: string; + limit?: number; + type?: string; + unit?: QuotaUnit; } // @public -export type ListViewType = string; - -// @public (undocumented) -export interface ListWorkspaceKeysResult { - readonly appInsightsInstrumentationKey?: string; - readonly containerRegistryCredentials?: RegistryListCredentialsResult; - readonly notebookAccessKeys?: ListNotebookKeysResult; - readonly userStorageKey?: string; - readonly userStorageResourceId?: string; +export interface Quotas { + list(location: string, options?: QuotasListOptionalParams): PagedAsyncIterableIterator; + update(location: string, parameters: QuotaUpdateParameters, options?: QuotasUpdateOptionalParams): Promise; } // @public -export interface ListWorkspaceQuotas { - readonly nextLink?: string; - readonly value?: ResourceQuota[]; +export interface QuotasListNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface LiteralJobInput extends JobInput { - jobInputType: "literal"; - value: string; -} +export type QuotasListNextResponse = ListWorkspaceQuotas; // @public -export type LoadBalancerType = string; +export interface QuotasListOptionalParams extends coreClient.OperationOptions { +} // @public -export type LogVerbosity = string; +export type QuotasListResponse = ListWorkspaceQuotas; // @public -export interface ManagedIdentity extends IdentityConfiguration { - clientId?: string; - identityType: "Managed"; - objectId?: string; - resourceId?: string; +export interface QuotasUpdateOptionalParams extends coreClient.OperationOptions { } -// @public (undocumented) -export interface ManagedIdentityAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { - authType: "ManagedIdentity"; - // (undocumented) - credentials?: WorkspaceConnectionManagedIdentity; -} +// @public +export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult; // @public -export interface ManagedOnlineDeployment extends OnlineDeploymentProperties { - endpointComputeType: "Managed"; +export type QuotaUnit = string; + +// @public +export interface QuotaUpdateParameters { + location?: string; + value?: QuotaBaseProperties[]; } // @public -export interface ManagedServiceIdentity { - readonly principalId?: string; - readonly tenantId?: string; - type: ManagedServiceIdentityType; - userAssignedIdentities?: { - [propertyName: string]: UserAssignedIdentity; - }; +export interface RandomSamplingAlgorithm extends SamplingAlgorithm { + logbase?: string; + rule?: RandomSamplingAlgorithmRule; + samplingAlgorithmType: "Random"; + seed?: number; } // @public -export type ManagedServiceIdentityType = string; +export type RandomSamplingAlgorithmRule = string; // @public -export interface MedianStoppingPolicy extends EarlyTerminationPolicy { - policyType: "MedianStopping"; +export interface Ray extends DistributionConfiguration { + address?: string; + dashboardPort?: number; + distributionType: "Ray"; + headNodeAdditionalArgs?: string; + includeDashboard?: boolean; + port?: number; + workerNodeAdditionalArgs?: string; } -// @public (undocumented) -export interface MLFlowModelJobInput extends AssetJobInput, JobInput { +// @public +export interface Recurrence { + frequency?: RecurrenceFrequency; + interval?: number; + schedule?: RecurrenceSchedule; + startTime?: string; + timeZone?: string; } +// @public +export type RecurrenceFrequency = string; + // @public (undocumented) -export interface MLFlowModelJobOutput extends AssetJobOutput, JobOutput { +export interface RecurrenceSchedule { + hours: number[]; + minutes: number[]; + monthDays?: number[]; + weekDays?: WeekDay[]; } -// @public -export interface MLTableData extends DataVersionBaseProperties { - dataType: "mltable"; - referencedUris?: string[]; +// @public (undocumented) +export interface RecurrenceTrigger extends TriggerBase { + frequency: RecurrenceFrequency; + interval: number; + schedule?: RecurrenceSchedule; + triggerType: "Recurrence"; } -// @public (undocumented) -export interface MLTableJobInput extends AssetJobInput, JobInput { -} +// @public +export type ReferenceType = string; // @public (undocumented) -export interface MLTableJobOutput extends AssetJobOutput, JobOutput { +export interface RegenerateEndpointKeysRequest { + keyType: KeyType_2; + keyValue?: string; } // @public -export interface ModelContainer extends Resource { - properties: ModelContainerProperties; +export interface Registries { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, body: Registry, options?: RegistriesCreateOrUpdateOptionalParams): Promise, RegistriesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, body: Registry, options?: RegistriesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, options?: RegistriesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, options?: RegistriesDeleteOptionalParams): Promise; + beginRemoveRegions(resourceGroupName: string, registryName: string, body: Registry, options?: RegistriesRemoveRegionsOptionalParams): Promise, RegistriesRemoveRegionsResponse>>; + beginRemoveRegionsAndWait(resourceGroupName: string, registryName: string, body: Registry, options?: RegistriesRemoveRegionsOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, options?: RegistriesGetOptionalParams): Promise; + list(resourceGroupName: string, options?: RegistriesListOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: RegistriesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, registryName: string, body: PartialRegistryPartialTrackedResource, options?: RegistriesUpdateOptionalParams): Promise; } -// @public (undocumented) -export interface ModelContainerProperties extends AssetContainer { +// @public +export interface RegistriesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface ModelContainerResourceArmPaginatedResult { - nextLink?: string; - value?: ModelContainer[]; -} +export type RegistriesCreateOrUpdateResponse = Registry; // @public -export interface ModelContainers { - createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: ModelContainer, options?: ModelContainersCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, workspaceName: string, name: string, options?: ModelContainersDeleteOptionalParams): Promise; - get(resourceGroupName: string, workspaceName: string, name: string, options?: ModelContainersGetOptionalParams): Promise; - list(resourceGroupName: string, workspaceName: string, options?: ModelContainersListOptionalParams): PagedAsyncIterableIterator; +export interface RegistriesDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export interface ModelContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface RegistriesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type ModelContainersCreateOrUpdateResponse = ModelContainer; +export interface RegistriesGetOptionalParams extends coreClient.OperationOptions { +} // @public -export interface ModelContainersDeleteOptionalParams extends coreClient.OperationOptions { -} +export type RegistriesGetResponse = Registry; // @public -export interface ModelContainersGetOptionalParams extends coreClient.OperationOptions { +export interface RegistriesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ModelContainersGetResponse = ModelContainer; +export type RegistriesListBySubscriptionNextResponse = RegistryTrackedResourceArmPaginatedResult; // @public -export interface ModelContainersListNextOptionalParams extends coreClient.OperationOptions { - count?: number; - listViewType?: ListViewType; - skip?: string; +export interface RegistriesListBySubscriptionOptionalParams extends coreClient.OperationOptions { } // @public -export type ModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult; +export type RegistriesListBySubscriptionResponse = RegistryTrackedResourceArmPaginatedResult; // @public -export interface ModelContainersListOptionalParams extends coreClient.OperationOptions { - count?: number; - listViewType?: ListViewType; - skip?: string; +export interface RegistriesListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ModelContainersListResponse = ModelContainerResourceArmPaginatedResult; +export type RegistriesListNextResponse = RegistryTrackedResourceArmPaginatedResult; // @public -export type ModelSize = string; +export interface RegistriesListOptionalParams extends coreClient.OperationOptions { +} // @public -export interface ModelVersion extends Resource { - properties: ModelVersionProperties; -} +export type RegistriesListResponse = RegistryTrackedResourceArmPaginatedResult; // @public -export interface ModelVersionProperties extends AssetBase { - flavors?: { - [propertyName: string]: FlavorData | null; - }; - jobName?: string; - modelType?: string; - modelUri?: string; +export interface RegistriesRemoveRegionsHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export interface ModelVersionResourceArmPaginatedResult { - nextLink?: string; - value?: ModelVersion[]; +export interface RegistriesRemoveRegionsOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface ModelVersions { - createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, version: string, body: ModelVersion, options?: ModelVersionsCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: ModelVersionsDeleteOptionalParams): Promise; - get(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: ModelVersionsGetOptionalParams): Promise; - list(resourceGroupName: string, workspaceName: string, name: string, options?: ModelVersionsListOptionalParams): PagedAsyncIterableIterator; -} +export type RegistriesRemoveRegionsResponse = Registry; // @public -export interface ModelVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface RegistriesUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type ModelVersionsCreateOrUpdateResponse = ModelVersion; +export type RegistriesUpdateResponse = Registry; -// @public -export interface ModelVersionsDeleteOptionalParams extends coreClient.OperationOptions { +// @public (undocumented) +export interface Registry extends TrackedResource { + discoveryUrl?: string; + identity?: ManagedServiceIdentity; + intellectualPropertyPublisher?: string; + kind?: string; + managedResourceGroup?: ArmResourceId; + mlFlowRegistryUri?: string; + publicNetworkAccess?: string; + regionDetails?: RegistryRegionArmDetails[]; + registryPrivateEndpointConnections?: RegistryPrivateEndpointConnection[]; + sku?: Sku; } // @public -export interface ModelVersionsGetOptionalParams extends coreClient.OperationOptions { +export interface RegistryCodeContainers { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, codeName: string, body: CodeContainer, options?: RegistryCodeContainersCreateOrUpdateOptionalParams): Promise, RegistryCodeContainersCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, codeName: string, body: CodeContainer, options?: RegistryCodeContainersCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, codeName: string, options?: RegistryCodeContainersDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, codeName: string, options?: RegistryCodeContainersDeleteOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, codeName: string, options?: RegistryCodeContainersGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, options?: RegistryCodeContainersListOptionalParams): PagedAsyncIterableIterator; } // @public -export type ModelVersionsGetResponse = ModelVersion; +export interface RegistryCodeContainersCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} // @public -export interface ModelVersionsListNextOptionalParams extends coreClient.OperationOptions { - description?: string; - feed?: string; - listViewType?: ListViewType; - offset?: number; - orderBy?: string; - properties?: string; - skip?: string; - tags?: string; - top?: number; - version?: string; +export interface RegistryCodeContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type ModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult; +export type RegistryCodeContainersCreateOrUpdateResponse = CodeContainer; // @public -export interface ModelVersionsListOptionalParams extends coreClient.OperationOptions { - description?: string; - feed?: string; - listViewType?: ListViewType; - offset?: number; - orderBy?: string; - properties?: string; - skip?: string; - tags?: string; - top?: number; - version?: string; +export interface RegistryCodeContainersDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export type ModelVersionsListResponse = ModelVersionResourceArmPaginatedResult; +export interface RegistryCodeContainersDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public -export type MountAction = string; +export interface RegistryCodeContainersGetOptionalParams extends coreClient.OperationOptions { +} // @public -export type MountState = string; +export type RegistryCodeContainersGetResponse = CodeContainer; // @public -export interface Mpi extends DistributionConfiguration { - distributionType: "Mpi"; - processCountPerInstance?: number; +export interface RegistryCodeContainersListNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface NCrossValidations { - mode: "Auto" | "Custom"; -} +export type RegistryCodeContainersListNextResponse = CodeContainerResourceArmPaginatedResult; // @public -export type NCrossValidationsMode = string; - -// @public (undocumented) -export type NCrossValidationsUnion = NCrossValidations | AutoNCrossValidations | CustomNCrossValidations; +export interface RegistryCodeContainersListOptionalParams extends coreClient.OperationOptions { + skip?: string; +} // @public -export type Network = string; +export type RegistryCodeContainersListResponse = CodeContainerResourceArmPaginatedResult; // @public -export interface NlpVertical { - featurizationSettings?: NlpVerticalFeaturizationSettings; - limitSettings?: NlpVerticalLimitSettings; - validationData?: MLTableJobInput; -} - -// @public (undocumented) -export interface NlpVerticalFeaturizationSettings extends FeaturizationSettings { +export interface RegistryCodeVersions { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, codeName: string, version: string, body: CodeVersion, options?: RegistryCodeVersionsCreateOrUpdateOptionalParams): Promise, RegistryCodeVersionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, codeName: string, version: string, body: CodeVersion, options?: RegistryCodeVersionsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, codeName: string, version: string, options?: RegistryCodeVersionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, codeName: string, version: string, options?: RegistryCodeVersionsDeleteOptionalParams): Promise; + createOrGetStartPendingUpload(resourceGroupName: string, registryName: string, codeName: string, version: string, body: PendingUploadRequestDto, options?: RegistryCodeVersionsCreateOrGetStartPendingUploadOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, codeName: string, version: string, options?: RegistryCodeVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, codeName: string, options?: RegistryCodeVersionsListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface NlpVerticalLimitSettings { - maxConcurrentTrials?: number; - maxTrials?: number; - timeout?: string; +export interface RegistryCodeVersionsCreateOrGetStartPendingUploadOptionalParams extends coreClient.OperationOptions { } // @public -export type NodeState = string; +export type RegistryCodeVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; // @public -export interface NodeStateCounts { - readonly idleNodeCount?: number; - readonly leavingNodeCount?: number; - readonly preemptedNodeCount?: number; - readonly preparingNodeCount?: number; - readonly runningNodeCount?: number; - readonly unusableNodeCount?: number; +export interface RegistryCodeVersionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } -// @public (undocumented) -export interface NoneAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { - authType: "None"; +// @public +export interface RegistryCodeVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface NoneDatastoreCredentials extends DatastoreCredentials { - credentialsType: "None"; -} +export type RegistryCodeVersionsCreateOrUpdateResponse = CodeVersion; -// @public (undocumented) -export interface NotebookAccessTokenResult { - readonly accessToken?: string; - readonly expiresIn?: number; - readonly hostName?: string; - readonly notebookResourceId?: string; - readonly publicDns?: string; - readonly refreshToken?: string; - readonly scope?: string; - readonly tokenType?: string; +// @public +export interface RegistryCodeVersionsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } -// @public (undocumented) -export interface NotebookPreparationError { - // (undocumented) - errorMessage?: string; - // (undocumented) - statusCode?: number; +// @public +export interface RegistryCodeVersionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } -// @public (undocumented) -export interface NotebookResourceInfo { - // (undocumented) - fqdn?: string; - notebookPreparationError?: NotebookPreparationError; - resourceId?: string; +// @public +export interface RegistryCodeVersionsGetOptionalParams extends coreClient.OperationOptions { } // @public -export type ObjectDetectionPrimaryMetrics = string; +export type RegistryCodeVersionsGetResponse = CodeVersion; // @public -export interface Objective { - goal: Goal; - primaryMetric: string; +export interface RegistryCodeVersionsListNextOptionalParams extends coreClient.OperationOptions { } -// @public (undocumented) -export interface OnlineDeployment extends TrackedResource { - identity?: ManagedServiceIdentity; - kind?: string; - properties: OnlineDeploymentPropertiesUnion; - sku?: Sku; -} +// @public +export type RegistryCodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult; -// @public (undocumented) -export interface OnlineDeploymentProperties extends EndpointDeploymentPropertiesBase { - appInsightsEnabled?: boolean; - egressPublicNetworkAccess?: EgressPublicNetworkAccessType; - endpointComputeType: EndpointComputeType; - instanceType?: string; - livenessProbe?: ProbeSettings; - model?: string; - modelMountPath?: string; - readonly provisioningState?: DeploymentProvisioningState; - readinessProbe?: ProbeSettings; - requestSettings?: OnlineRequestSettings; - scaleSettings?: OnlineScaleSettingsUnion; +// @public +export interface RegistryCodeVersionsListOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + top?: number; } -// @public (undocumented) -export type OnlineDeploymentPropertiesUnion = OnlineDeploymentProperties | KubernetesOnlineDeployment | ManagedOnlineDeployment; +// @public +export type RegistryCodeVersionsListResponse = CodeVersionResourceArmPaginatedResult; // @public -export interface OnlineDeployments { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: OnlineDeployment, options?: OnlineDeploymentsCreateOrUpdateOptionalParams): Promise, OnlineDeploymentsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: OnlineDeployment, options?: OnlineDeploymentsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: OnlineDeploymentsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: OnlineDeploymentsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: PartialMinimalTrackedResourceWithSku, options?: OnlineDeploymentsUpdateOptionalParams): Promise, OnlineDeploymentsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: PartialMinimalTrackedResourceWithSku, options?: OnlineDeploymentsUpdateOptionalParams): Promise; - get(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: OnlineDeploymentsGetOptionalParams): Promise; - getLogs(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: DeploymentLogsRequest, options?: OnlineDeploymentsGetLogsOptionalParams): Promise; - list(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineDeploymentsListOptionalParams): PagedAsyncIterableIterator; - listSkus(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: OnlineDeploymentsListSkusOptionalParams): PagedAsyncIterableIterator; +export interface RegistryComponentContainers { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, componentName: string, body: ComponentContainer, options?: RegistryComponentContainersCreateOrUpdateOptionalParams): Promise, RegistryComponentContainersCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, componentName: string, body: ComponentContainer, options?: RegistryComponentContainersCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, componentName: string, options?: RegistryComponentContainersDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, componentName: string, options?: RegistryComponentContainersDeleteOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, componentName: string, options?: RegistryComponentContainersGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, options?: RegistryComponentContainersListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface OnlineDeploymentsCreateOrUpdateHeaders { +export interface RegistryComponentContainersCreateOrUpdateHeaders { azureAsyncOperation?: string; xMsAsyncOperationTimeout?: string; } // @public -export interface OnlineDeploymentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface RegistryComponentContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type OnlineDeploymentsCreateOrUpdateResponse = OnlineDeployment; +export type RegistryComponentContainersCreateOrUpdateResponse = ComponentContainer; // @public -export interface OnlineDeploymentsDeleteHeaders { +export interface RegistryComponentContainersDeleteHeaders { location?: string; retryAfter?: number; xMsAsyncOperationTimeout?: string; } // @public -export interface OnlineDeploymentsDeleteOptionalParams extends coreClient.OperationOptions { +export interface RegistryComponentContainersDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export interface OnlineDeploymentsGetLogsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OnlineDeploymentsGetLogsResponse = DeploymentLogs; - -// @public -export interface OnlineDeploymentsGetOptionalParams extends coreClient.OperationOptions { +export interface RegistryComponentContainersGetOptionalParams extends coreClient.OperationOptions { } // @public -export type OnlineDeploymentsGetResponse = OnlineDeployment; +export type RegistryComponentContainersGetResponse = ComponentContainer; -// @public -export interface OnlineDeploymentsListNextOptionalParams extends coreClient.OperationOptions { - orderBy?: string; - skip?: string; - top?: number; +// @public +export interface RegistryComponentContainersListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type OnlineDeploymentsListNextResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; +export type RegistryComponentContainersListNextResponse = ComponentContainerResourceArmPaginatedResult; // @public -export interface OnlineDeploymentsListOptionalParams extends coreClient.OperationOptions { - orderBy?: string; +export interface RegistryComponentContainersListOptionalParams extends coreClient.OperationOptions { skip?: string; - top?: number; } // @public -export type OnlineDeploymentsListResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; +export type RegistryComponentContainersListResponse = ComponentContainerResourceArmPaginatedResult; // @public -export interface OnlineDeploymentsListSkusNextOptionalParams extends coreClient.OperationOptions { - count?: number; - skip?: string; +export interface RegistryComponentVersions { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, componentName: string, version: string, body: ComponentVersion, options?: RegistryComponentVersionsCreateOrUpdateOptionalParams): Promise, RegistryComponentVersionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, componentName: string, version: string, body: ComponentVersion, options?: RegistryComponentVersionsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, componentName: string, version: string, options?: RegistryComponentVersionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, componentName: string, version: string, options?: RegistryComponentVersionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, componentName: string, version: string, options?: RegistryComponentVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, componentName: string, options?: RegistryComponentVersionsListOptionalParams): PagedAsyncIterableIterator; } // @public -export type OnlineDeploymentsListSkusNextResponse = SkuResourceArmPaginatedResult; +export interface RegistryComponentVersionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} // @public -export interface OnlineDeploymentsListSkusOptionalParams extends coreClient.OperationOptions { - count?: number; - skip?: string; +export interface RegistryComponentVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type OnlineDeploymentsListSkusResponse = SkuResourceArmPaginatedResult; +export type RegistryComponentVersionsCreateOrUpdateResponse = ComponentVersion; // @public -export interface OnlineDeploymentsUpdateHeaders { +export interface RegistryComponentVersionsDeleteHeaders { location?: string; retryAfter?: number; xMsAsyncOperationTimeout?: string; } // @public -export interface OnlineDeploymentsUpdateOptionalParams extends coreClient.OperationOptions { +export interface RegistryComponentVersionsDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type OnlineDeploymentsUpdateResponse = OnlineDeployment; +export interface RegistryComponentVersionsGetOptionalParams extends coreClient.OperationOptions { +} // @public -export interface OnlineDeploymentTrackedResourceArmPaginatedResult { - nextLink?: string; - value?: OnlineDeployment[]; -} +export type RegistryComponentVersionsGetResponse = ComponentVersion; -// @public (undocumented) -export interface OnlineEndpoint extends TrackedResource { - identity?: ManagedServiceIdentity; - kind?: string; - properties: OnlineEndpointProperties; - sku?: Sku; +// @public +export interface RegistryComponentVersionsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface OnlineEndpointProperties extends EndpointPropertiesBase { - compute?: string; - readonly provisioningState?: EndpointProvisioningState; - publicNetworkAccess?: PublicNetworkAccessType; - traffic?: { - [propertyName: string]: number; - }; +export type RegistryComponentVersionsListNextResponse = ComponentVersionResourceArmPaginatedResult; + +// @public +export interface RegistryComponentVersionsListOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + stage?: string; + top?: number; } // @public -export interface OnlineEndpoints { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, body: OnlineEndpoint, options?: OnlineEndpointsCreateOrUpdateOptionalParams): Promise, OnlineEndpointsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, body: OnlineEndpoint, options?: OnlineEndpointsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsDeleteOptionalParams): Promise; - beginRegenerateKeys(resourceGroupName: string, workspaceName: string, endpointName: string, body: RegenerateEndpointKeysRequest, options?: OnlineEndpointsRegenerateKeysOptionalParams): Promise, void>>; - beginRegenerateKeysAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, body: RegenerateEndpointKeysRequest, options?: OnlineEndpointsRegenerateKeysOptionalParams): Promise; - beginUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, body: PartialMinimalTrackedResourceWithIdentity, options?: OnlineEndpointsUpdateOptionalParams): Promise, OnlineEndpointsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, body: PartialMinimalTrackedResourceWithIdentity, options?: OnlineEndpointsUpdateOptionalParams): Promise; - get(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsGetOptionalParams): Promise; - getToken(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsGetTokenOptionalParams): Promise; - list(resourceGroupName: string, workspaceName: string, options?: OnlineEndpointsListOptionalParams): PagedAsyncIterableIterator; - listKeys(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsListKeysOptionalParams): Promise; +export type RegistryComponentVersionsListResponse = ComponentVersionResourceArmPaginatedResult; + +// @public +export interface RegistryDataContainers { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, name: string, body: DataContainer, options?: RegistryDataContainersCreateOrUpdateOptionalParams): Promise, RegistryDataContainersCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, name: string, body: DataContainer, options?: RegistryDataContainersCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, name: string, options?: RegistryDataContainersDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, name: string, options?: RegistryDataContainersDeleteOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, name: string, options?: RegistryDataContainersGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, options?: RegistryDataContainersListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface OnlineEndpointsCreateOrUpdateHeaders { +export interface RegistryDataContainersCreateOrUpdateHeaders { azureAsyncOperation?: string; xMsAsyncOperationTimeout?: string; } // @public -export interface OnlineEndpointsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface RegistryDataContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type OnlineEndpointsCreateOrUpdateResponse = OnlineEndpoint; +export type RegistryDataContainersCreateOrUpdateResponse = DataContainer; // @public -export interface OnlineEndpointsDeleteHeaders { +export interface RegistryDataContainersDeleteHeaders { location?: string; retryAfter?: number; xMsAsyncOperationTimeout?: string; } // @public -export interface OnlineEndpointsDeleteOptionalParams extends coreClient.OperationOptions { +export interface RegistryDataContainersDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export interface OnlineEndpointsGetOptionalParams extends coreClient.OperationOptions { +export interface RegistryDataContainersGetOptionalParams extends coreClient.OperationOptions { } // @public -export type OnlineEndpointsGetResponse = OnlineEndpoint; +export type RegistryDataContainersGetResponse = DataContainer; // @public -export interface OnlineEndpointsGetTokenOptionalParams extends coreClient.OperationOptions { +export interface RegistryDataContainersListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type OnlineEndpointsGetTokenResponse = EndpointAuthToken; +export type RegistryDataContainersListNextResponse = DataContainerResourceArmPaginatedResult; // @public -export interface OnlineEndpointsListKeysOptionalParams extends coreClient.OperationOptions { +export interface RegistryDataContainersListOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + skip?: string; } // @public -export type OnlineEndpointsListKeysResponse = EndpointAuthKeys; +export type RegistryDataContainersListResponse = DataContainerResourceArmPaginatedResult; // @public -export interface OnlineEndpointsListNextOptionalParams extends coreClient.OperationOptions { - computeType?: EndpointComputeType; - count?: number; - name?: string; - orderBy?: OrderString; - properties?: string; - skip?: string; - tags?: string; +export interface RegistryDataVersions { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, name: string, version: string, body: DataVersionBase, options?: RegistryDataVersionsCreateOrUpdateOptionalParams): Promise, RegistryDataVersionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, name: string, version: string, body: DataVersionBase, options?: RegistryDataVersionsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, name: string, version: string, options?: RegistryDataVersionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, name: string, version: string, options?: RegistryDataVersionsDeleteOptionalParams): Promise; + createOrGetStartPendingUpload(resourceGroupName: string, registryName: string, name: string, version: string, body: PendingUploadRequestDto, options?: RegistryDataVersionsCreateOrGetStartPendingUploadOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, name: string, version: string, options?: RegistryDataVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, name: string, options?: RegistryDataVersionsListOptionalParams): PagedAsyncIterableIterator; } // @public -export type OnlineEndpointsListNextResponse = OnlineEndpointTrackedResourceArmPaginatedResult; - -// @public -export interface OnlineEndpointsListOptionalParams extends coreClient.OperationOptions { - computeType?: EndpointComputeType; - count?: number; - name?: string; - orderBy?: OrderString; - properties?: string; - skip?: string; - tags?: string; +export interface RegistryDataVersionsCreateOrGetStartPendingUploadOptionalParams extends coreClient.OperationOptions { } // @public -export type OnlineEndpointsListResponse = OnlineEndpointTrackedResourceArmPaginatedResult; +export type RegistryDataVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; // @public -export interface OnlineEndpointsRegenerateKeysHeaders { - location?: string; - retryAfter?: number; +export interface RegistryDataVersionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } // @public -export interface OnlineEndpointsRegenerateKeysOptionalParams extends coreClient.OperationOptions { +export interface RegistryDataVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export interface OnlineEndpointsUpdateHeaders { +export type RegistryDataVersionsCreateOrUpdateResponse = DataVersionBase; + +// @public +export interface RegistryDataVersionsDeleteHeaders { location?: string; retryAfter?: number; xMsAsyncOperationTimeout?: string; } // @public -export interface OnlineEndpointsUpdateOptionalParams extends coreClient.OperationOptions { +export interface RegistryDataVersionsDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type OnlineEndpointsUpdateResponse = OnlineEndpoint; - -// @public -export interface OnlineEndpointTrackedResourceArmPaginatedResult { - nextLink?: string; - value?: OnlineEndpoint[]; +export interface RegistryDataVersionsGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface OnlineRequestSettings { - maxConcurrentRequestsPerInstance?: number; - maxQueueWait?: string; - requestTimeout?: string; -} +export type RegistryDataVersionsGetResponse = DataVersionBase; // @public -export interface OnlineScaleSettings { - scaleType: "Default" | "TargetUtilization"; +export interface RegistryDataVersionsListNextOptionalParams extends coreClient.OperationOptions { } -// @public (undocumented) -export type OnlineScaleSettingsUnion = OnlineScaleSettings | DefaultScaleSettings | TargetUtilizationScaleSettings; - -// @public -export type OperatingSystemType = string; - -// @public -export type OperationName = string; - // @public -export interface Operations { - list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; -} +export type RegistryDataVersionsListNextResponse = DataVersionBaseResourceArmPaginatedResult; // @public -export interface OperationsListOptionalParams extends coreClient.OperationOptions { +export interface RegistryDataVersionsListOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + orderBy?: string; + skip?: string; + tags?: string; + top?: number; } // @public -export type OperationsListResponse = AmlOperationListResult; +export type RegistryDataVersionsListResponse = DataVersionBaseResourceArmPaginatedResult; // @public -export type OperationStatus = string; +export interface RegistryEnvironmentContainers { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, environmentName: string, body: EnvironmentContainer, options?: RegistryEnvironmentContainersCreateOrUpdateOptionalParams): Promise, RegistryEnvironmentContainersCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, environmentName: string, body: EnvironmentContainer, options?: RegistryEnvironmentContainersCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, environmentName: string, options?: RegistryEnvironmentContainersDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, environmentName: string, options?: RegistryEnvironmentContainersDeleteOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, environmentName: string, options?: RegistryEnvironmentContainersGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, options?: RegistryEnvironmentContainersListOptionalParams): PagedAsyncIterableIterator; +} // @public -export type OperationTrigger = string; +export interface RegistryEnvironmentContainersCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} // @public -export type OrderString = string; +export interface RegistryEnvironmentContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public -export type OsType = string; +export type RegistryEnvironmentContainersCreateOrUpdateResponse = EnvironmentContainer; // @public -export type OutputDeliveryMode = string; +export interface RegistryEnvironmentContainersDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} // @public -export interface OutputPathAssetReference extends AssetReferenceBase { - jobId?: string; - path?: string; - referenceType: "OutputPath"; +export interface RegistryEnvironmentContainersDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface PaginatedComputeResourcesList { - nextLink?: string; - value?: ComputeResource[]; +export interface RegistryEnvironmentContainersGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface PartialBatchDeployment { - description?: string; -} +export type RegistryEnvironmentContainersGetResponse = EnvironmentContainer; // @public -export interface PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties { - properties?: PartialBatchDeployment; - tags?: { - [propertyName: string]: string | null; - }; +export interface RegistryEnvironmentContainersListNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface PartialManagedServiceIdentity { - type?: ManagedServiceIdentityType; - userAssignedIdentities?: { - [propertyName: string]: Record; - }; -} +export type RegistryEnvironmentContainersListNextResponse = EnvironmentContainerResourceArmPaginatedResult; // @public -export interface PartialMinimalTrackedResource { - tags?: { - [propertyName: string]: string | null; - }; +export interface RegistryEnvironmentContainersListOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + skip?: string; } // @public -export interface PartialMinimalTrackedResourceWithIdentity extends PartialMinimalTrackedResource { - identity?: PartialManagedServiceIdentity; -} +export type RegistryEnvironmentContainersListResponse = EnvironmentContainerResourceArmPaginatedResult; // @public -export interface PartialMinimalTrackedResourceWithSku extends PartialMinimalTrackedResource { - sku?: PartialSku; +export interface RegistryEnvironmentVersions { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, environmentName: string, version: string, body: EnvironmentVersion, options?: RegistryEnvironmentVersionsCreateOrUpdateOptionalParams): Promise, RegistryEnvironmentVersionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, environmentName: string, version: string, body: EnvironmentVersion, options?: RegistryEnvironmentVersionsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, environmentName: string, version: string, options?: RegistryEnvironmentVersionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, environmentName: string, version: string, options?: RegistryEnvironmentVersionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, environmentName: string, version: string, options?: RegistryEnvironmentVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, environmentName: string, options?: RegistryEnvironmentVersionsListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface PartialSku { - capacity?: number; - family?: string; - name?: string; - size?: string; - tier?: SkuTier; +export interface RegistryEnvironmentVersionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } -// @public (undocumented) -export interface Password { - readonly name?: string; - readonly value?: string; +// @public +export interface RegistryEnvironmentVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } -// @public (undocumented) -export interface PATAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { - authType: "PAT"; - // (undocumented) - credentials?: WorkspaceConnectionPersonalAccessToken; -} +// @public +export type RegistryEnvironmentVersionsCreateOrUpdateResponse = EnvironmentVersion; // @public -export interface PersonalComputeInstanceSettings { - assignedUser?: AssignedUser; +export interface RegistryEnvironmentVersionsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export interface PipelineJob extends JobBaseProperties { - inputs?: { - [propertyName: string]: JobInputUnion | null; - }; - jobs?: { - [propertyName: string]: Record; - }; - jobType: "Pipeline"; - outputs?: { - [propertyName: string]: JobOutputUnion | null; - }; - settings?: Record; - sourceJobId?: string; +export interface RegistryEnvironmentVersionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface PrivateEndpoint { - readonly id?: string; - readonly subnetArmId?: string; +export interface RegistryEnvironmentVersionsGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface PrivateEndpointConnection extends Resource { - identity?: ManagedServiceIdentity; - location?: string; - privateEndpoint?: PrivateEndpoint; - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; - readonly provisioningState?: PrivateEndpointConnectionProvisioningState; - sku?: Sku; - tags?: { - [propertyName: string]: string; - }; -} +export type RegistryEnvironmentVersionsGetResponse = EnvironmentVersion; // @public -export interface PrivateEndpointConnectionListResult { - value?: PrivateEndpointConnection[]; +export interface RegistryEnvironmentVersionsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type PrivateEndpointConnectionProvisioningState = string; +export type RegistryEnvironmentVersionsListNextResponse = EnvironmentVersionResourceArmPaginatedResult; // @public -export interface PrivateEndpointConnections { - createOrUpdate(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise; - get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise; - list(resourceGroupName: string, workspaceName: string, options?: PrivateEndpointConnectionsListOptionalParams): PagedAsyncIterableIterator; +export interface RegistryEnvironmentVersionsListOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + orderBy?: string; + skip?: string; + stage?: string; + top?: number; } // @public -export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export type RegistryEnvironmentVersionsListResponse = EnvironmentVersionResourceArmPaginatedResult; + +// @public (undocumented) +export interface RegistryListCredentialsResult { + readonly location?: string; + // (undocumented) + passwords?: Password[]; + readonly username?: string; } // @public -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; +export interface RegistryModelContainers { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, modelName: string, body: ModelContainer, options?: RegistryModelContainersCreateOrUpdateOptionalParams): Promise, RegistryModelContainersCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, modelName: string, body: ModelContainer, options?: RegistryModelContainersCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, modelName: string, options?: RegistryModelContainersDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, modelName: string, options?: RegistryModelContainersDeleteOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, modelName: string, options?: RegistryModelContainersGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, options?: RegistryModelContainersListOptionalParams): PagedAsyncIterableIterator; +} // @public -export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { +export interface RegistryModelContainersCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } // @public -export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions { +export interface RegistryModelContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; +export type RegistryModelContainersCreateOrUpdateResponse = ModelContainer; // @public -export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions { +export interface RegistryModelContainersDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; +export interface RegistryModelContainersDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public -export type PrivateEndpointServiceConnectionStatus = string; +export interface RegistryModelContainersGetOptionalParams extends coreClient.OperationOptions { +} // @public -export interface PrivateLinkResource extends Resource { - readonly groupId?: string; - identity?: ManagedServiceIdentity; - location?: string; - readonly requiredMembers?: string[]; - requiredZoneNames?: string[]; - sku?: Sku; - tags?: { - [propertyName: string]: string; - }; -} +export type RegistryModelContainersGetResponse = ModelContainer; // @public -export interface PrivateLinkResourceListResult { - value?: PrivateLinkResource[]; +export interface RegistryModelContainersListNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface PrivateLinkResources { - list(resourceGroupName: string, workspaceName: string, options?: PrivateLinkResourcesListOptionalParams): Promise; -} +export type RegistryModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult; // @public -export interface PrivateLinkResourcesListOptionalParams extends coreClient.OperationOptions { +export interface RegistryModelContainersListOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + skip?: string; } // @public -export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; +export type RegistryModelContainersListResponse = ModelContainerResourceArmPaginatedResult; // @public -export interface PrivateLinkServiceConnectionState { - actionsRequired?: string; - description?: string; - status?: PrivateEndpointServiceConnectionStatus; +export interface RegistryModelVersions { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, modelName: string, version: string, body: ModelVersion, options?: RegistryModelVersionsCreateOrUpdateOptionalParams): Promise, RegistryModelVersionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, modelName: string, version: string, body: ModelVersion, options?: RegistryModelVersionsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, modelName: string, version: string, options?: RegistryModelVersionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, modelName: string, version: string, options?: RegistryModelVersionsDeleteOptionalParams): Promise; + beginPackage(resourceGroupName: string, registryName: string, modelName: string, version: string, body: PackageRequest, options?: RegistryModelVersionsPackageOptionalParams): Promise, RegistryModelVersionsPackageResponse>>; + beginPackageAndWait(resourceGroupName: string, registryName: string, modelName: string, version: string, body: PackageRequest, options?: RegistryModelVersionsPackageOptionalParams): Promise; + createOrGetStartPendingUpload(resourceGroupName: string, registryName: string, modelName: string, version: string, body: PendingUploadRequestDto, options?: RegistryModelVersionsCreateOrGetStartPendingUploadOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, modelName: string, version: string, options?: RegistryModelVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, modelName: string, options?: RegistryModelVersionsListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface ProbeSettings { - failureThreshold?: number; - initialDelay?: string; - period?: string; - successThreshold?: number; - timeout?: string; +export interface RegistryModelVersionsCreateOrGetStartPendingUploadOptionalParams extends coreClient.OperationOptions { } // @public -export type ProvisioningState = string; - -// @public -export type ProvisioningStatus = string; +export type RegistryModelVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; // @public -export type PublicNetworkAccess = string; +export interface RegistryModelVersionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} // @public -export type PublicNetworkAccessType = string; +export interface RegistryModelVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public -export interface PyTorch extends DistributionConfiguration { - distributionType: "PyTorch"; - processCountPerInstance?: number; -} +export type RegistryModelVersionsCreateOrUpdateResponse = ModelVersion; // @public -export interface QuotaBaseProperties { - id?: string; - limit?: number; - type?: string; - unit?: QuotaUnit; +export interface RegistryModelVersionsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export interface Quotas { - list(location: string, options?: QuotasListOptionalParams): PagedAsyncIterableIterator; - update(location: string, parameters: QuotaUpdateParameters, options?: QuotasUpdateOptionalParams): Promise; +export interface RegistryModelVersionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface QuotasListNextOptionalParams extends coreClient.OperationOptions { +export interface RegistryModelVersionsGetOptionalParams extends coreClient.OperationOptions { } // @public -export type QuotasListNextResponse = ListWorkspaceQuotas; +export type RegistryModelVersionsGetResponse = ModelVersion; // @public -export interface QuotasListOptionalParams extends coreClient.OperationOptions { +export interface RegistryModelVersionsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type QuotasListResponse = ListWorkspaceQuotas; +export type RegistryModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult; // @public -export interface QuotasUpdateOptionalParams extends coreClient.OperationOptions { +export interface RegistryModelVersionsListOptionalParams extends coreClient.OperationOptions { + description?: string; + listViewType?: ListViewType; + orderBy?: string; + properties?: string; + skip?: string; + tags?: string; + top?: number; + version?: string; } // @public -export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult; - -// @public -export type QuotaUnit = string; +export type RegistryModelVersionsListResponse = ModelVersionResourceArmPaginatedResult; // @public -export interface QuotaUpdateParameters { +export interface RegistryModelVersionsPackageHeaders { location?: string; - value?: QuotaBaseProperties[]; + retryAfter?: number; } // @public -export interface RandomSamplingAlgorithm extends SamplingAlgorithm { - rule?: RandomSamplingAlgorithmRule; - samplingAlgorithmType: "Random"; - seed?: number; +export interface RegistryModelVersionsPackageOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type RandomSamplingAlgorithmRule = string; +export type RegistryModelVersionsPackageResponse = PackageResponse; // @public -export type RecurrenceFrequency = string; - -// @public (undocumented) -export interface RecurrenceSchedule { - hours: number[]; - minutes: number[]; - monthDays?: number[]; - weekDays?: WeekDay[]; +export interface RegistryPartialManagedServiceIdentity extends ManagedServiceIdentity { } -// @public (undocumented) -export interface RecurrenceTrigger extends TriggerBase { - frequency: RecurrenceFrequency; - interval: number; - schedule?: RecurrenceSchedule; - triggerType: "Recurrence"; +// @public +export interface RegistryPrivateEndpointConnection { + groupIds?: string[]; + id?: string; + location?: string; + privateEndpoint?: PrivateEndpointResource; + provisioningState?: string; + registryPrivateLinkServiceConnectionState?: RegistryPrivateLinkServiceConnectionState; } // @public -export type ReferenceType = string; +export interface RegistryPrivateLinkServiceConnectionState { + actionsRequired?: string; + description?: string; + status?: EndpointServiceConnectionStatus; +} -// @public (undocumented) -export interface RegenerateEndpointKeysRequest { - keyType: KeyType_2; - keyValue?: string; +// @public +export interface RegistryRegionArmDetails { + acrDetails?: AcrDetails[]; + location?: string; + storageAccountDetails?: StorageAccountDetails[]; } -// @public (undocumented) -export interface RegistryListCredentialsResult { - readonly location?: string; - // (undocumented) - passwords?: Password[]; - readonly username?: string; +// @public +export interface RegistryTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: Registry[]; } // @public @@ -4471,6 +7836,15 @@ export interface Regression extends TableVertical, AutoMLVertical { trainingSettings?: RegressionTrainingSettings; } +// @public +export type RegressionModelPerformanceMetric = string; + +// @public (undocumented) +export interface RegressionModelPerformanceMetricThreshold extends ModelPerformanceMetricThresholdBase { + metric: RegressionModelPerformanceMetric; + modelType: "Regression"; +} + // @public export type RegressionModels = string; @@ -4486,6 +7860,16 @@ export interface RegressionTrainingSettings extends TrainingSettings { // @public export type RemoteLoginPortPublicAccess = string; +// @public (undocumented) +export interface RequestLogging { + captureHeaders?: string[]; +} + +// @public +export interface ResizeSchema { + targetVMSize?: string; +} + // @public export interface Resource { readonly id?: string; @@ -4509,6 +7893,8 @@ export interface ResourceBase { export interface ResourceConfiguration { instanceCount?: number; instanceType?: string; + locations?: string[]; + maxInstanceCount?: number; properties?: { [propertyName: string]: Record; }; @@ -4535,12 +7921,27 @@ export interface ResourceQuota { readonly unit?: QuotaUnit; } +// @public +export type RollingRateType = string; + // @public (undocumented) export interface Route { path: string; port: number; } +// @public +export type RuleAction = string; + +// @public +export type RuleCategory = string; + +// @public +export type RuleStatus = string; + +// @public +export type RuleType = string; + // @public export interface SamplingAlgorithm { samplingAlgorithmType: "Bayesian" | "Grid" | "Random"; @@ -4559,6 +7960,12 @@ export interface SASAuthTypeWorkspaceConnectionProperties extends WorkspaceConne credentials?: WorkspaceConnectionSharedAccessSignature; } +// @public (undocumented) +export interface SASCredentialDto extends PendingUploadCredentialDto { + credentialType: "SAS"; + sasUri?: string; +} + // @public export interface SasDatastoreCredentials extends DatastoreCredentials { credentialsType: "Sas"; @@ -4593,11 +8000,11 @@ export interface Schedule extends Resource { // @public (undocumented) export interface ScheduleActionBase { - actionType: "InvokeBatchEndpoint" | "CreateJob"; + actionType: "CreateMonitor" | "InvokeBatchEndpoint" | "ImportData" | "CreateJob"; } // @public (undocumented) -export type ScheduleActionBaseUnion = ScheduleActionBase | EndpointScheduleAction | JobScheduleAction; +export type ScheduleActionBaseUnion = ScheduleActionBase | CreateMonitorAction | EndpointScheduleAction | ImportDataAction | JobScheduleAction; // @public export type ScheduleActionType = string; @@ -4635,9 +8042,9 @@ export interface ScheduleResourceArmPaginatedResult { // @public export interface Schedules { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: Schedule, options?: SchedulesCreateOrUpdateOptionalParams): Promise, SchedulesCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: Schedule, options?: SchedulesCreateOrUpdateOptionalParams): Promise, SchedulesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, name: string, body: Schedule, options?: SchedulesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, name: string, options?: SchedulesDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, workspaceName: string, name: string, options?: SchedulesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, workspaceName: string, name: string, options?: SchedulesDeleteOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, name: string, options?: SchedulesGetOptionalParams): Promise; list(resourceGroupName: string, workspaceName: string, options?: SchedulesListOptionalParams): PagedAsyncIterableIterator; @@ -4650,91 +8057,227 @@ export interface SchedulesCreateOrUpdateHeaders { } // @public -export interface SchedulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +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 { +} + +// @public +export type SchedulesListNextResponse = ScheduleResourceArmPaginatedResult; + +// @public +export interface SchedulesListOptionalParams extends coreClient.OperationOptions { + listViewType?: ScheduleListViewType; + skip?: string; +} + +// @public +export type SchedulesListResponse = ScheduleResourceArmPaginatedResult; + +// @public +export type ScheduleStatus = string; + +// @public +export interface ScriptReference { + scriptArguments?: string; + scriptData?: string; + scriptSource?: string; + timeout?: string; +} + +// @public +export interface ScriptsToExecute { + creationScript?: ScriptReference; + startupScript?: ScriptReference; +} + +// @public +export interface Seasonality { + mode: "Auto" | "Custom"; +} + +// @public +export type SeasonalityMode = string; + +// @public (undocumented) +export type SeasonalityUnion = Seasonality | AutoSeasonality | CustomSeasonality; + +// @public +export interface SecretConfiguration { + uri?: string; + workspaceSecretName?: string; +} + +// @public +export type SecretsType = string; + +// @public (undocumented) +export interface ServerlessEndpoint extends TrackedResource { + identity?: ManagedServiceIdentity; + kind?: string; + properties: ServerlessEndpointProperties; + sku?: Sku; +} + +// @public (undocumented) +export interface ServerlessEndpointProperties { + readonly inferenceUri?: string; + modelProfile: ModelProfile; + readonly provisioningState?: EndpointProvisioningState; +} + +// @public +export interface ServerlessEndpoints { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: ServerlessEndpoint, options?: ServerlessEndpointsCreateOrUpdateOptionalParams): Promise, ServerlessEndpointsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, name: string, body: ServerlessEndpoint, options?: ServerlessEndpointsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, name: string, options?: ServerlessEndpointsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, name: string, options?: ServerlessEndpointsDeleteOptionalParams): Promise; + beginRegenerateKeys(resourceGroupName: string, workspaceName: string, name: string, body: RegenerateEndpointKeysRequest, options?: ServerlessEndpointsRegenerateKeysOptionalParams): Promise, ServerlessEndpointsRegenerateKeysResponse>>; + beginRegenerateKeysAndWait(resourceGroupName: string, workspaceName: string, name: string, body: RegenerateEndpointKeysRequest, options?: ServerlessEndpointsRegenerateKeysOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, name: string, body: PartialMinimalTrackedResourceWithSkuAndIdentity, options?: ServerlessEndpointsUpdateOptionalParams): Promise, ServerlessEndpointsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, name: string, body: PartialMinimalTrackedResourceWithSkuAndIdentity, options?: ServerlessEndpointsUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, options?: ServerlessEndpointsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: ServerlessEndpointsListOptionalParams): PagedAsyncIterableIterator; + listKeys(resourceGroupName: string, workspaceName: string, name: string, options?: ServerlessEndpointsListKeysOptionalParams): Promise; +} + +// @public +export interface ServerlessEndpointsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface ServerlessEndpointsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type SchedulesCreateOrUpdateResponse = Schedule; +export type ServerlessEndpointsCreateOrUpdateResponse = ServerlessEndpoint; // @public -export interface SchedulesDeleteHeaders { +export interface ServerlessEndpointsDeleteHeaders { location?: string; retryAfter?: number; xMsAsyncOperationTimeout?: string; } // @public -export interface SchedulesDeleteOptionalParams extends coreClient.OperationOptions { +export interface ServerlessEndpointsDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export interface SchedulesGetOptionalParams extends coreClient.OperationOptions { +export interface ServerlessEndpointsGetOptionalParams extends coreClient.OperationOptions { } // @public -export type SchedulesGetResponse = Schedule; +export type ServerlessEndpointsGetResponse = ServerlessEndpoint; // @public -export interface SchedulesListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ScheduleListViewType; - skip?: string; +export interface ServerlessEndpointsListKeysOptionalParams extends coreClient.OperationOptions { } // @public -export type SchedulesListNextResponse = ScheduleResourceArmPaginatedResult; +export type ServerlessEndpointsListKeysResponse = EndpointAuthKeys; // @public -export interface SchedulesListOptionalParams extends coreClient.OperationOptions { - listViewType?: ScheduleListViewType; - skip?: string; +export interface ServerlessEndpointsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type SchedulesListResponse = ScheduleResourceArmPaginatedResult; +export type ServerlessEndpointsListNextResponse = ServerlessEndpointTrackedResourceArmPaginatedResult; // @public -export type ScheduleStatus = string; +export interface ServerlessEndpointsListOptionalParams extends coreClient.OperationOptions { + skip?: string; +} // @public -export interface ScriptReference { - scriptArguments?: string; - scriptData?: string; - scriptSource?: string; - timeout?: string; +export type ServerlessEndpointsListResponse = ServerlessEndpointTrackedResourceArmPaginatedResult; + +// @public +export interface ServerlessEndpointsRegenerateKeysHeaders { + location?: string; + retryAfter?: number; } // @public -export interface ScriptsToExecute { - creationScript?: ScriptReference; - startupScript?: ScriptReference; +export interface ServerlessEndpointsRegenerateKeysOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface Seasonality { - mode: "Auto" | "Custom"; +export type ServerlessEndpointsRegenerateKeysResponse = EndpointAuthKeys; + +// @public +export interface ServerlessEndpointsUpdateHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export type SeasonalityMode = string; +export interface ServerlessEndpointsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} -// @public (undocumented) -export type SeasonalityUnion = Seasonality | AutoSeasonality | CustomSeasonality; +// @public +export type ServerlessEndpointsUpdateResponse = ServerlessEndpoint; // @public -export type SecretsType = string; +export interface ServerlessEndpointTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: ServerlessEndpoint[]; +} // @public export type ServiceDataAccessAuthIdentity = string; // @public (undocumented) export interface ServiceManagedResourcesSettings { + // (undocumented) cosmosDb?: CosmosDbSettings; } +// @public (undocumented) +export interface ServicePrincipalAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { + authType: "ServicePrincipal"; + // (undocumented) + credentials?: WorkspaceConnectionServicePrincipal; +} + // @public export interface ServicePrincipalDatastoreCredentials extends DatastoreCredentials { authorityUrl?: string; @@ -4751,6 +8294,24 @@ export interface ServicePrincipalDatastoreSecrets extends DatastoreSecrets { secretsType: "ServicePrincipal"; } +// @public +export interface ServiceTagDestination { + action?: RuleAction; + readonly addressPrefixes?: string[]; + // (undocumented) + portRanges?: string; + // (undocumented) + protocol?: string; + // (undocumented) + serviceTag?: string; +} + +// @public +export interface ServiceTagOutboundRule extends OutboundRule { + destination?: ServiceTagDestination; + type: "ServiceTag"; +} + // @public export interface SetupScripts { scripts?: ScriptsToExecute; @@ -4762,7 +8323,7 @@ export interface SharedPrivateLinkResource { name?: string; privateLinkResourceId?: string; requestMessage?: string; - status?: PrivateEndpointServiceConnectionStatus; + status?: EndpointServiceConnectionStatus; } // @public @@ -4813,6 +8374,59 @@ 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[]; + jobType: "Spark"; + outputs?: { + [propertyName: string]: JobOutputUnion | null; + }; + pyFiles?: string[]; + queueSettings?: QueueSettings; + resources?: SparkResourceConfiguration; +} + +// @public +export interface SparkJobEntry { + sparkJobEntryType: "SparkJobPythonEntry" | "SparkJobScalaEntry"; +} + +// @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: "SparkJobScalaEntry"; +} + +// @public (undocumented) +export interface SparkResourceConfiguration { + instanceType?: string; + runtimeVersion?: string; +} + // @public export type SshPublicAccess = string; @@ -4839,12 +8453,37 @@ export interface StackEnsembleSettings { // @public export type StackMetaLearnerType = string; +// @public +export interface StaticInputData extends MonitoringInputDataBase { + inputDataType: "Static"; + preprocessingComponentId?: string; + windowEnd: Date; + windowStart: Date; +} + // @public export type Status = string; +// @public +export 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 interface StorageAccountDetails { + systemCreatedStorageAccount?: SystemCreatedStorageAccount; + userCreatedStorageAccount?: UserCreatedStorageAccount; +} + // @public export type StorageAccountType = string; @@ -4860,6 +8499,8 @@ export interface SweepJob extends JobBaseProperties { outputs?: { [propertyName: string]: JobOutputUnion | null; }; + queueSettings?: QueueSettings; + resources?: JobResourceConfiguration; samplingAlgorithm: SamplingAlgorithmUnion; searchSpace: Record; trial: TrialComponent; @@ -4894,6 +8535,22 @@ export interface SynapseSparkProperties { workspaceName?: string; } +// @public (undocumented) +export interface SystemCreatedAcrAccount { + acrAccountName?: string; + acrAccountSku?: string; + armResourceId?: ArmResourceId; +} + +// @public (undocumented) +export interface SystemCreatedStorageAccount { + allowBlobPublicAccess?: boolean; + armResourceId?: ArmResourceId; + storageAccountHnsEnabled?: boolean; + storageAccountName?: string; + storageAccountType?: string; +} + // @public export interface SystemData { createdAt?: Date; @@ -4911,12 +8568,69 @@ export interface SystemService { readonly version?: string; } +// @public +export interface TableFixedParameters { + booster?: string; + boostingType?: string; + growPolicy?: string; + learningRate?: number; + maxBin?: number; + maxDepth?: number; + maxLeaves?: number; + minDataInLeaf?: number; + minSplitGain?: number; + modelName?: string; + nEstimators?: number; + numLeaves?: number; + preprocessorName?: string; + regAlpha?: number; + regLambda?: number; + subsample?: number; + subsampleFreq?: number; + treeMethod?: string; + withMean?: boolean; + withStd?: boolean; +} + +// @public (undocumented) +export interface TableParameterSubspace { + booster?: string; + boostingType?: string; + growPolicy?: string; + learningRate?: string; + maxBin?: string; + maxDepth?: string; + maxLeaves?: string; + minDataInLeaf?: string; + minSplitGain?: string; + modelName?: string; + nEstimators?: string; + numLeaves?: string; + preprocessorName?: string; + regAlpha?: string; + regLambda?: string; + subsample?: string; + subsampleFreq?: string; + treeMethod?: string; + withMean?: string; + withStd?: string; +} + +// @public (undocumented) +export interface TableSweepSettings { + earlyTermination?: EarlyTerminationPolicyUnion; + samplingAlgorithm: SamplingAlgorithmType; +} + // @public export interface TableVertical { cvSplitColumnNames?: string[]; featurizationSettings?: TableVerticalFeaturizationSettings; + fixedParameters?: TableFixedParameters; limitSettings?: TableVerticalLimitSettings; nCrossValidations?: NCrossValidationsUnion; + searchSpace?: TableParameterSubspace[]; + sweepSettings?: TableSweepSettings; testData?: MLTableJobInput; testDataSize?: number; validationData?: MLTableJobInput; @@ -4943,7 +8657,10 @@ export interface TableVerticalLimitSettings { exitScore?: number; maxConcurrentTrials?: number; maxCoresPerTrial?: number; + maxNodes?: number; maxTrials?: number; + sweepConcurrentTrials?: number; + sweepTrials?: number; timeout?: string; trialTimeout?: string; } @@ -4992,6 +8709,9 @@ export interface TensorFlow extends DistributionConfiguration { workerCount?: number; } +// @public +export type TextAnnotationType = string; + // @public export interface TextClassification extends NlpVertical, AutoMLVertical { primaryMetric?: ClassificationPrimaryMetrics; @@ -5007,6 +8727,17 @@ export interface TextNer extends NlpVertical, AutoMLVertical { readonly primaryMetric?: ClassificationPrimaryMetrics; } +// @public (undocumented) +export interface TmpfsOptions { + size?: number; +} + +// @public (undocumented) +export interface TopNFeaturesByAttribution extends MonitoringFeatureFilterBase { + filterType: "TopNByAttribution"; + top?: number; +} + // @public export interface TrackedResource extends Resource { location: string; @@ -5015,6 +8746,17 @@ export interface TrackedResource extends Resource { }; } +// @public +export interface TrailingInputData extends MonitoringInputDataBase { + inputDataType: "Trailing"; + preprocessingComponentId?: string; + windowOffset: string; + windowSize: string; +} + +// @public +export type TrainingMode = string; + // @public export interface TrainingSettings { enableDnnTraining?: boolean; @@ -5024,6 +8766,7 @@ export interface TrainingSettings { enableVoteEnsemble?: boolean; ensembleModelDownloadTimeout?: string; stackEnsembleSettings?: StackEnsembleSettings; + trainingMode?: TrainingMode; } // @public @@ -5052,6 +8795,12 @@ export type TriggerBaseUnion = TriggerBase | RecurrenceTrigger | CronTrigger; // @public export type TriggerType = string; +// @public +export interface TritonInferencingServer extends InferencingServer { + inferenceConfiguration?: OnlineInferenceConfiguration; + serverType: "Triton"; +} + // @public (undocumented) export interface TritonModelJobInput extends AssetJobInput, JobInput { } @@ -5165,6 +8914,16 @@ export interface UserAssignedIdentity { readonly principalId?: string; } +// @public (undocumented) +export interface UserCreatedAcrAccount { + armResourceId?: ArmResourceId; +} + +// @public (undocumented) +export interface UserCreatedStorageAccount { + armResourceId?: ArmResourceId; +} + // @public export interface UserIdentity extends IdentityConfiguration { identityType: "UserIdentity"; @@ -5183,9 +8942,6 @@ export type UseStl = string; // @public export type ValidationMetricType = string; -// @public -export type ValueFormat = string; - // @public export interface VirtualMachine extends Compute, VirtualMachineSchema { computeType: "VirtualMachine"; @@ -5271,6 +9027,38 @@ 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 interface Webhook { + eventType?: string; + webhookType: "AzureDevOps"; +} + +// @public +export type WebhookType = string; + +// @public (undocumented) +export type WebhookUnion = Webhook | AzureDevOpsWebhook; + // @public export type WeekDay = string; @@ -5278,37 +9066,74 @@ export type WeekDay = string; export interface Workspace extends Resource { allowPublicAccessWhenBehindVnet?: boolean; applicationInsights?: string; + // (undocumented) + associatedWorkspaces?: string[]; + // (undocumented) + containerRegistries?: string[]; containerRegistry?: string; description?: string; discoveryUrl?: string; + // (undocumented) + enableDataIsolation?: boolean; + // (undocumented) encryption?: EncryptionProperty; + // (undocumented) + existingWorkspaces?: string[]; + featureStoreSettings?: FeatureStoreSettings; friendlyName?: string; hbiWorkspace?: boolean; + // (undocumented) + hubResourceId?: string; identity?: ManagedServiceIdentity; imageBuildCompute?: string; keyVault?: string; + // (undocumented) + keyVaults?: string[]; + // (undocumented) + kind?: string; + // (undocumented) location?: string; + managedNetwork?: ManagedNetworkSettings; readonly mlFlowTrackingUri?: string; readonly notebookInfo?: NotebookResourceInfo; primaryUserAssignedIdentity?: string; readonly privateEndpointConnections?: PrivateEndpointConnection[]; readonly privateLinkCount?: number; readonly provisioningState?: ProvisioningState; - publicNetworkAccess?: PublicNetworkAccess; + publicNetworkAccess?: PublicNetworkAccessType; serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; readonly serviceProvisionedResourceGroup?: string; sharedPrivateLinkResources?: SharedPrivateLinkResource[]; sku?: Sku; + softDeleteRetentionInDays?: number; storageAccount?: string; + // (undocumented) + storageAccounts?: string[]; readonly storageHnsEnabled?: boolean; + systemDatastoresAuthMode?: string; tags?: { [propertyName: string]: string; }; readonly tenantId?: string; v1LegacyMode?: boolean; + workspaceHubConfig?: WorkspaceHubConfig; readonly workspaceId?: string; } +// @public (undocumented) +export interface WorkspaceConnectionAccessKey { + // (undocumented) + accessKeyId?: string; + // (undocumented) + secretAccessKey?: string; +} + +// @public +export interface WorkspaceConnectionApiKey { + // (undocumented) + key?: string; +} + // @public (undocumented) export interface WorkspaceConnectionManagedIdentity { // (undocumented) @@ -5325,12 +9150,13 @@ export interface WorkspaceConnectionPersonalAccessToken { // @public (undocumented) export interface WorkspaceConnectionPropertiesV2 { - authType: "PAT" | "SAS" | "UsernamePassword" | "None" | "ManagedIdentity"; + authType: "AccessKey" | "ApiKey" | "CustomKeys" | "ManagedIdentity" | "None" | "PAT" | "SAS" | "ServicePrincipal" | "UsernamePassword"; category?: ConnectionCategory; // (undocumented) + expiryTime?: Date; + metadata?: Record; + // (undocumented) target?: string; - value?: string; - valueFormat?: ValueFormat; } // @public (undocumented) @@ -5341,28 +9167,28 @@ export interface WorkspaceConnectionPropertiesV2BasicResource extends Resource { // @public (undocumented) export interface WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult { - readonly nextLink?: string; + // (undocumented) + nextLink?: string; // (undocumented) value?: WorkspaceConnectionPropertiesV2BasicResource[]; } // @public (undocumented) -export type WorkspaceConnectionPropertiesV2Union = WorkspaceConnectionPropertiesV2 | PATAuthTypeWorkspaceConnectionProperties | SASAuthTypeWorkspaceConnectionProperties | UsernamePasswordAuthTypeWorkspaceConnectionProperties | NoneAuthTypeWorkspaceConnectionProperties | ManagedIdentityAuthTypeWorkspaceConnectionProperties; +export type WorkspaceConnectionPropertiesV2Union = WorkspaceConnectionPropertiesV2 | AccessKeyAuthTypeWorkspaceConnectionProperties | ApiKeyAuthWorkspaceConnectionProperties | CustomKeysWorkspaceConnectionProperties | ManagedIdentityAuthTypeWorkspaceConnectionProperties | NoneAuthTypeWorkspaceConnectionProperties | PATAuthTypeWorkspaceConnectionProperties | SASAuthTypeWorkspaceConnectionProperties | ServicePrincipalAuthTypeWorkspaceConnectionProperties | UsernamePasswordAuthTypeWorkspaceConnectionProperties; // @public export interface WorkspaceConnections { - // (undocumented) - create(resourceGroupName: string, workspaceName: string, connectionName: string, parameters: WorkspaceConnectionPropertiesV2BasicResource, options?: WorkspaceConnectionsCreateOptionalParams): Promise; - // (undocumented) + create(resourceGroupName: string, workspaceName: string, connectionName: string, options?: WorkspaceConnectionsCreateOptionalParams): Promise; delete(resourceGroupName: string, workspaceName: string, connectionName: string, options?: WorkspaceConnectionsDeleteOptionalParams): Promise; - // (undocumented) get(resourceGroupName: string, workspaceName: string, connectionName: string, options?: WorkspaceConnectionsGetOptionalParams): Promise; - // (undocumented) list(resourceGroupName: string, workspaceName: string, options?: WorkspaceConnectionsListOptionalParams): PagedAsyncIterableIterator; + listSecrets(resourceGroupName: string, workspaceName: string, connectionName: string, options?: WorkspaceConnectionsListSecretsOptionalParams): Promise; + update(resourceGroupName: string, workspaceName: string, connectionName: string, options?: WorkspaceConnectionsUpdateOptionalParams): Promise; } // @public export interface WorkspaceConnectionsCreateOptionalParams extends coreClient.OperationOptions { + body?: WorkspaceConnectionPropertiesV2BasicResource; } // @public @@ -5372,6 +9198,16 @@ export type WorkspaceConnectionsCreateResponse = WorkspaceConnectionPropertiesV2 export interface WorkspaceConnectionsDeleteOptionalParams extends coreClient.OperationOptions { } +// @public (undocumented) +export interface WorkspaceConnectionServicePrincipal { + // (undocumented) + clientId?: string; + // (undocumented) + clientSecret?: string; + // (undocumented) + tenantId?: string; +} + // @public export interface WorkspaceConnectionsGetOptionalParams extends coreClient.OperationOptions { } @@ -5387,8 +9223,6 @@ export interface WorkspaceConnectionSharedAccessSignature { // @public export interface WorkspaceConnectionsListNextOptionalParams extends coreClient.OperationOptions { - category?: string; - target?: string; } // @public @@ -5403,6 +9237,26 @@ export interface WorkspaceConnectionsListOptionalParams extends coreClient.Opera // @public export type WorkspaceConnectionsListResponse = WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult; +// @public +export interface WorkspaceConnectionsListSecretsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceConnectionsListSecretsResponse = WorkspaceConnectionPropertiesV2BasicResource; + +// @public +export interface WorkspaceConnectionsUpdateOptionalParams extends coreClient.OperationOptions { + body?: WorkspaceConnectionUpdateParameter; +} + +// @public +export type WorkspaceConnectionsUpdateResponse = WorkspaceConnectionPropertiesV2BasicResource; + +// @public +export interface WorkspaceConnectionUpdateParameter { + properties?: WorkspaceConnectionPropertiesV2Union; +} + // @public (undocumented) export interface WorkspaceConnectionUsernamePassword { // (undocumented) @@ -5430,26 +9284,40 @@ export interface WorkspaceFeaturesListOptionalParams extends coreClient.Operatio // @public export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult; +// @public +export interface WorkspaceHubConfig { + // (undocumented) + additionalWorkspaceStorageAccounts?: string[]; + // (undocumented) + defaultWorkspaceResourceGroup?: string; +} + // @public export interface WorkspaceListResult { nextLink?: string; value?: Workspace[]; } +// @public +export interface WorkspacePrivateEndpointResource { + readonly id?: string; + readonly subnetArmId?: string; +} + // @public export interface Workspaces { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise, WorkspacesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, parameters: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise, void>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, body: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise, WorkspacesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, body: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise; - beginDiagnose(resourceGroupName: string, workspaceName: string, options?: WorkspacesDiagnoseOptionalParams): Promise, WorkspacesDiagnoseResponse>>; + beginDiagnose(resourceGroupName: string, workspaceName: string, options?: WorkspacesDiagnoseOptionalParams): Promise, WorkspacesDiagnoseResponse>>; beginDiagnoseAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspacesDiagnoseOptionalParams): Promise; - beginPrepareNotebook(resourceGroupName: string, workspaceName: string, options?: WorkspacesPrepareNotebookOptionalParams): Promise, WorkspacesPrepareNotebookResponse>>; + beginPrepareNotebook(resourceGroupName: string, workspaceName: string, options?: WorkspacesPrepareNotebookOptionalParams): Promise, WorkspacesPrepareNotebookResponse>>; beginPrepareNotebookAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspacesPrepareNotebookOptionalParams): Promise; - beginResyncKeys(resourceGroupName: string, workspaceName: string, options?: WorkspacesResyncKeysOptionalParams): Promise, void>>; + beginResyncKeys(resourceGroupName: string, workspaceName: string, options?: WorkspacesResyncKeysOptionalParams): Promise, void>>; beginResyncKeysAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspacesResyncKeysOptionalParams): Promise; - beginUpdate(resourceGroupName: string, workspaceName: string, parameters: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams): Promise, WorkspacesUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, workspaceName: string, parameters: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, body: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams): Promise, WorkspacesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, body: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, options?: WorkspacesGetOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: WorkspacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: WorkspacesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; @@ -5460,6 +9328,12 @@ export interface Workspaces { listStorageAccountKeys(resourceGroupName: string, workspaceName: string, options?: WorkspacesListStorageAccountKeysOptionalParams): Promise; } +// @public +export interface WorkspacesCreateOrUpdateHeaders { + location?: string; + retryAfter?: number; +} + // @public export interface WorkspacesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -5471,6 +9345,7 @@ export type WorkspacesCreateOrUpdateResponse = Workspace; // @public export interface WorkspacesDeleteOptionalParams extends coreClient.OperationOptions { + forceToPurge?: boolean; resumeFrom?: string; updateIntervalInMs?: number; } @@ -5483,7 +9358,7 @@ export interface WorkspacesDiagnoseHeaders { // @public export interface WorkspacesDiagnoseOptionalParams extends coreClient.OperationOptions { - parameters?: DiagnoseWorkspaceParameters; + body?: DiagnoseWorkspaceParameters; resumeFrom?: string; updateIntervalInMs?: number; } @@ -5500,7 +9375,6 @@ export type WorkspacesGetResponse = Workspace; // @public export interface WorkspacesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { - skip?: string; } // @public @@ -5508,6 +9382,7 @@ export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult; // @public export interface WorkspacesListByResourceGroupOptionalParams extends coreClient.OperationOptions { + kind?: string; skip?: string; } @@ -5516,7 +9391,6 @@ export type WorkspacesListByResourceGroupResponse = WorkspaceListResult; // @public export interface WorkspacesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { - skip?: string; } // @public @@ -5524,6 +9398,7 @@ export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult; // @public export interface WorkspacesListBySubscriptionOptionalParams extends coreClient.OperationOptions { + kind?: string; skip?: string; } @@ -5565,6 +9440,12 @@ export interface WorkspacesListStorageAccountKeysOptionalParams extends coreClie // @public export type WorkspacesListStorageAccountKeysResponse = ListStorageAccountKeysResult; +// @public +export interface WorkspacesPrepareNotebookHeaders { + location?: string; + retryAfter?: number; +} + // @public export interface WorkspacesPrepareNotebookOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -5574,6 +9455,12 @@ export interface WorkspacesPrepareNotebookOptionalParams extends coreClient.Oper // @public export type WorkspacesPrepareNotebookResponse = NotebookResourceInfo; +// @public +export interface WorkspacesResyncKeysHeaders { + location?: string; + retryAfter?: number; +} + // @public export interface WorkspacesResyncKeysOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -5594,16 +9481,24 @@ export interface WorkspaceUpdateParameters { applicationInsights?: string; containerRegistry?: string; description?: string; + // (undocumented) + enableDataIsolation?: boolean; + // (undocumented) + encryption?: EncryptionUpdateProperties; + featureStoreSettings?: FeatureStoreSettings; friendlyName?: string; identity?: ManagedServiceIdentity; imageBuildCompute?: string; + managedNetwork?: ManagedNetworkSettings; primaryUserAssignedIdentity?: string; - publicNetworkAccess?: PublicNetworkAccess; + publicNetworkAccess?: PublicNetworkAccessType; serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; sku?: Sku; + softDeleteRetentionInDays?: number; tags?: { [propertyName: string]: string; }; + v1LegacyMode?: boolean; } // (No @packageDocumentation comment for this package) diff --git a/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts b/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningServices.ts similarity index 65% rename from sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts rename to sdk/machinelearning/arm-machinelearning/src/azureMachineLearningServices.ts index 141a281ef475..b11464e36096 100644 --- a/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts +++ b/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningServices.ts @@ -15,15 +15,20 @@ import { } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { - OperationsImpl, - WorkspacesImpl, UsagesImpl, VirtualMachineSizesImpl, QuotasImpl, ComputeOperationsImpl, - PrivateEndpointConnectionsImpl, - PrivateLinkResourcesImpl, - WorkspaceConnectionsImpl, + RegistryCodeContainersImpl, + RegistryCodeVersionsImpl, + RegistryComponentContainersImpl, + RegistryComponentVersionsImpl, + RegistryDataContainersImpl, + RegistryDataVersionsImpl, + RegistryEnvironmentContainersImpl, + RegistryEnvironmentVersionsImpl, + RegistryModelContainersImpl, + RegistryModelVersionsImpl, BatchEndpointsImpl, BatchDeploymentsImpl, CodeContainersImpl, @@ -35,24 +40,44 @@ import { DatastoresImpl, EnvironmentContainersImpl, EnvironmentVersionsImpl, + FeaturesetContainersImpl, + FeaturesImpl, + FeaturesetVersionsImpl, + FeaturestoreEntityContainersImpl, + FeaturestoreEntityVersionsImpl, JobsImpl, + LabelingJobsImpl, ModelContainersImpl, ModelVersionsImpl, OnlineEndpointsImpl, OnlineDeploymentsImpl, SchedulesImpl, - WorkspaceFeaturesImpl + ServerlessEndpointsImpl, + RegistriesImpl, + WorkspaceFeaturesImpl, + OperationsImpl, + WorkspacesImpl, + WorkspaceConnectionsImpl, + ManagedNetworkSettingsRuleImpl, + PrivateEndpointConnectionsImpl, + PrivateLinkResourcesImpl, + ManagedNetworkProvisionsImpl } from "./operations"; import { - Operations, - Workspaces, Usages, VirtualMachineSizes, Quotas, ComputeOperations, - PrivateEndpointConnections, - PrivateLinkResources, - WorkspaceConnections, + RegistryCodeContainers, + RegistryCodeVersions, + RegistryComponentContainers, + RegistryComponentVersions, + RegistryDataContainers, + RegistryDataVersions, + RegistryEnvironmentContainers, + RegistryEnvironmentVersions, + RegistryModelContainers, + RegistryModelVersions, BatchEndpoints, BatchDeployments, CodeContainers, @@ -64,23 +89,38 @@ import { Datastores, EnvironmentContainers, EnvironmentVersions, + FeaturesetContainers, + Features, + FeaturesetVersions, + FeaturestoreEntityContainers, + FeaturestoreEntityVersions, Jobs, + LabelingJobs, ModelContainers, ModelVersions, OnlineEndpoints, OnlineDeployments, Schedules, - WorkspaceFeatures + ServerlessEndpoints, + Registries, + WorkspaceFeatures, + Operations, + Workspaces, + WorkspaceConnections, + ManagedNetworkSettingsRule, + PrivateEndpointConnections, + PrivateLinkResources, + ManagedNetworkProvisions } from "./operationsInterfaces"; -import { AzureMachineLearningWorkspacesOptionalParams } from "./models"; +import { AzureMachineLearningServicesOptionalParams } from "./models"; -export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { +export class AzureMachineLearningServices extends coreClient.ServiceClient { $host: string; apiVersion: string; subscriptionId: string; /** - * Initializes a new instance of the AzureMachineLearningWorkspaces class. + * Initializes a new instance of the AzureMachineLearningServices class. * @param credentials Subscription credentials which uniquely identify client subscription. * @param subscriptionId The ID of the target subscription. * @param options The parameter options @@ -88,7 +128,7 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: AzureMachineLearningWorkspacesOptionalParams + options?: AzureMachineLearningServicesOptionalParams ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -101,12 +141,12 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { if (!options) { options = {}; } - const defaults: AzureMachineLearningWorkspacesOptionalParams = { + const defaults: AzureMachineLearningServicesOptionalParams = { requestContentType: "application/json; charset=utf-8", credential: credentials }; - const packageDetails = `azsdk-js-arm-machinelearning/2.1.2`; + const packageDetails = `azsdk-js-arm-machinelearning/3.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -159,16 +199,27 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-10-01"; - this.operations = new OperationsImpl(this); - this.workspaces = new WorkspacesImpl(this); + this.apiVersion = options.apiVersion || "2023-08-01-preview"; this.usages = new UsagesImpl(this); this.virtualMachineSizes = new VirtualMachineSizesImpl(this); this.quotas = new QuotasImpl(this); this.computeOperations = new ComputeOperationsImpl(this); - this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); - this.privateLinkResources = new PrivateLinkResourcesImpl(this); - this.workspaceConnections = new WorkspaceConnectionsImpl(this); + this.registryCodeContainers = new RegistryCodeContainersImpl(this); + this.registryCodeVersions = new RegistryCodeVersionsImpl(this); + this.registryComponentContainers = new RegistryComponentContainersImpl( + this + ); + this.registryComponentVersions = new RegistryComponentVersionsImpl(this); + this.registryDataContainers = new RegistryDataContainersImpl(this); + this.registryDataVersions = new RegistryDataVersionsImpl(this); + this.registryEnvironmentContainers = new RegistryEnvironmentContainersImpl( + this + ); + this.registryEnvironmentVersions = new RegistryEnvironmentVersionsImpl( + this + ); + this.registryModelContainers = new RegistryModelContainersImpl(this); + this.registryModelVersions = new RegistryModelVersionsImpl(this); this.batchEndpoints = new BatchEndpointsImpl(this); this.batchDeployments = new BatchDeploymentsImpl(this); this.codeContainers = new CodeContainersImpl(this); @@ -180,13 +231,30 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { this.datastores = new DatastoresImpl(this); this.environmentContainers = new EnvironmentContainersImpl(this); this.environmentVersions = new EnvironmentVersionsImpl(this); + this.featuresetContainers = new FeaturesetContainersImpl(this); + this.features = new FeaturesImpl(this); + this.featuresetVersions = new FeaturesetVersionsImpl(this); + this.featurestoreEntityContainers = new FeaturestoreEntityContainersImpl( + this + ); + this.featurestoreEntityVersions = new FeaturestoreEntityVersionsImpl(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.serverlessEndpoints = new ServerlessEndpointsImpl(this); + this.registries = new RegistriesImpl(this); this.workspaceFeatures = new WorkspaceFeaturesImpl(this); + this.operations = new OperationsImpl(this); + this.workspaces = new WorkspacesImpl(this); + this.workspaceConnections = new WorkspaceConnectionsImpl(this); + this.managedNetworkSettingsRule = new ManagedNetworkSettingsRuleImpl(this); + this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); + this.privateLinkResources = new PrivateLinkResourcesImpl(this); + this.managedNetworkProvisions = new ManagedNetworkProvisionsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -218,15 +286,20 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { this.pipeline.addPolicy(apiVersionPolicy); } - operations: Operations; - workspaces: Workspaces; usages: Usages; virtualMachineSizes: VirtualMachineSizes; quotas: Quotas; computeOperations: ComputeOperations; - privateEndpointConnections: PrivateEndpointConnections; - privateLinkResources: PrivateLinkResources; - workspaceConnections: WorkspaceConnections; + registryCodeContainers: RegistryCodeContainers; + registryCodeVersions: RegistryCodeVersions; + registryComponentContainers: RegistryComponentContainers; + registryComponentVersions: RegistryComponentVersions; + registryDataContainers: RegistryDataContainers; + registryDataVersions: RegistryDataVersions; + registryEnvironmentContainers: RegistryEnvironmentContainers; + registryEnvironmentVersions: RegistryEnvironmentVersions; + registryModelContainers: RegistryModelContainers; + registryModelVersions: RegistryModelVersions; batchEndpoints: BatchEndpoints; batchDeployments: BatchDeployments; codeContainers: CodeContainers; @@ -238,11 +311,26 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { datastores: Datastores; environmentContainers: EnvironmentContainers; environmentVersions: EnvironmentVersions; + featuresetContainers: FeaturesetContainers; + features: Features; + featuresetVersions: FeaturesetVersions; + featurestoreEntityContainers: FeaturestoreEntityContainers; + featurestoreEntityVersions: FeaturestoreEntityVersions; jobs: Jobs; + labelingJobs: LabelingJobs; modelContainers: ModelContainers; modelVersions: ModelVersions; onlineEndpoints: OnlineEndpoints; onlineDeployments: OnlineDeployments; schedules: Schedules; + serverlessEndpoints: ServerlessEndpoints; + registries: Registries; workspaceFeatures: WorkspaceFeatures; + operations: Operations; + workspaces: Workspaces; + workspaceConnections: WorkspaceConnections; + managedNetworkSettingsRule: ManagedNetworkSettingsRule; + privateEndpointConnections: PrivateEndpointConnections; + privateLinkResources: PrivateLinkResources; + managedNetworkProvisions: ManagedNetworkProvisions; } diff --git a/sdk/machinelearning/arm-machinelearning/src/index.ts b/sdk/machinelearning/arm-machinelearning/src/index.ts index fa7dd652dbe3..e034d9465142 100644 --- a/sdk/machinelearning/arm-machinelearning/src/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/index.ts @@ -9,5 +9,5 @@ /// export { getContinuationToken } from "./pagingHelper"; export * from "./models"; -export { AzureMachineLearningWorkspaces } from "./azureMachineLearningWorkspaces"; +export { AzureMachineLearningServices } from "./azureMachineLearningServices"; export * from "./operationsInterfaces"; diff --git a/sdk/machinelearning/arm-machinelearning/src/lroImpl.ts b/sdk/machinelearning/arm-machinelearning/src/lroImpl.ts index 518d5f053b4e..dd803cd5e28c 100644 --- a/sdk/machinelearning/arm-machinelearning/src/lroImpl.ts +++ b/sdk/machinelearning/arm-machinelearning/src/lroImpl.ts @@ -6,29 +6,37 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; -export class LroImpl implements LongRunningOperation { - constructor( - private sendOperationFn: (args: any, spec: any) => Promise>, - private args: Record, - private spec: { - readonly requestBody?: unknown; - readonly path?: string; - readonly httpMethod: string; - } & Record, - public requestPath: string = spec.path!, - public requestMethod: string = spec.httpMethod - ) {} - public async sendInitialRequest(): Promise> { - return this.sendOperationFn(this.args, this.spec); - } - public async sendPollRequest(path: string): Promise> { - const { requestBody, ...restSpec } = this.spec; - return this.sendOperationFn(this.args, { - ...restSpec, - path, - httpMethod: "GET" - }); - } +export function createLroSpec(inputs: { + sendOperationFn: (args: any, spec: any) => Promise>; + args: Record; + spec: { + readonly requestBody?: unknown; + readonly path?: string; + readonly httpMethod: string; + } & Record; +}): LongRunningOperation { + const { args, spec, sendOperationFn } = inputs; + return { + requestMethod: spec.httpMethod, + requestPath: spec.path!, + sendInitialRequest: () => sendOperationFn(args, spec), + sendPollRequest: ( + path: string, + options?: { abortSignal?: AbortSignalLike } + ) => { + const { requestBody, ...restSpec } = spec; + return sendOperationFn(args, { + ...restSpec, + httpMethod: "GET", + path, + abortSignal: options?.abortSignal + }); + } + }; } diff --git a/sdk/machinelearning/arm-machinelearning/src/models/index.ts b/sdk/machinelearning/arm-machinelearning/src/models/index.ts index bb0f66101d3d..4247db801688 100644 --- a/sdk/machinelearning/arm-machinelearning/src/models/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/models/index.ts @@ -25,22 +25,37 @@ export type ComputeSecretsUnion = | AksComputeSecrets | VirtualMachineSecrets | DatabricksComputeSecrets; -export type WorkspaceConnectionPropertiesV2Union = - | WorkspaceConnectionPropertiesV2 - | PATAuthTypeWorkspaceConnectionProperties - | SASAuthTypeWorkspaceConnectionProperties - | UsernamePasswordAuthTypeWorkspaceConnectionProperties - | NoneAuthTypeWorkspaceConnectionProperties - | ManagedIdentityAuthTypeWorkspaceConnectionProperties; +export type PendingUploadCredentialDtoUnion = + | PendingUploadCredentialDto + | SASCredentialDto; +export type BaseEnvironmentSourceUnion = + | BaseEnvironmentSource + | BaseEnvironmentId; +export type InferencingServerUnion = + | InferencingServer + | AzureMLBatchInferencingServer + | AzureMLOnlineInferencingServer + | CustomInferencingServer + | TritonInferencingServer; +export type PackageInputPathBaseUnion = + | PackageInputPathBase + | PackageInputPathId + | PackageInputPathUrl + | PackageInputPathVersion; +export type BatchDeploymentConfigurationUnion = + | BatchDeploymentConfiguration + | BatchPipelineComponentDeploymentConfiguration; export type AssetReferenceBaseUnion = | AssetReferenceBase - | DataPathAssetReference | IdAssetReference + | DataPathAssetReference | OutputPathAssetReference; export type DatastoreCredentialsUnion = | DatastoreCredentials | AccountKeyDatastoreCredentials | CertificateDatastoreCredentials + | KerberosKeytabCredentials + | KerberosPasswordCredentials | NoneDatastoreCredentials | SasDatastoreCredentials | ServicePrincipalDatastoreCredentials; @@ -48,22 +63,66 @@ export type DatastoreSecretsUnion = | DatastoreSecrets | AccountKeyDatastoreSecrets | CertificateDatastoreSecrets + | KerberosKeytabSecrets + | KerberosPasswordSecrets | SasDatastoreSecrets | ServicePrincipalDatastoreSecrets; +export type WebhookUnion = Webhook | AzureDevOpsWebhook; +export type TriggerBaseUnion = TriggerBase | RecurrenceTrigger | CronTrigger; export type IdentityConfigurationUnion = | IdentityConfiguration | AmlToken | ManagedIdentity | UserIdentity; +export type NodesUnion = Nodes | AllNodes; +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 + | CreateMonitorAction | EndpointScheduleAction + | ImportDataAction | JobScheduleAction; -export type TriggerBaseUnion = TriggerBase | RecurrenceTrigger | CronTrigger; +export type OutboundRuleUnion = + | OutboundRule + | FqdnOutboundRule + | PrivateEndpointOutboundRule + | ServiceTagOutboundRule; +export type WorkspaceConnectionPropertiesV2Union = + | WorkspaceConnectionPropertiesV2 + | AccessKeyAuthTypeWorkspaceConnectionProperties + | ApiKeyAuthWorkspaceConnectionProperties + | CustomKeysWorkspaceConnectionProperties + | ManagedIdentityAuthTypeWorkspaceConnectionProperties + | NoneAuthTypeWorkspaceConnectionProperties + | PATAuthTypeWorkspaceConnectionProperties + | SASAuthTypeWorkspaceConnectionProperties + | ServicePrincipalAuthTypeWorkspaceConnectionProperties + | UsernamePasswordAuthTypeWorkspaceConnectionProperties; +export type MonitoringFeatureFilterBaseUnion = + | MonitoringFeatureFilterBase + | AllFeatures + | FeatureSubset + | TopNFeaturesByAttribution; +export type MonitorComputeIdentityBaseUnion = + | MonitorComputeIdentityBase + | AmlTokenComputeIdentity + | ManagedComputeIdentity; export type ForecastHorizonUnion = | ForecastHorizon | AutoForecastHorizon @@ -110,6 +169,10 @@ export type TargetRollingWindowSizeUnion = | TargetRollingWindowSize | AutoTargetRollingWindowSize | CustomTargetRollingWindowSize; +export type MonitoringAlertNotificationSettingsBaseUnion = + | MonitoringAlertNotificationSettingsBase + | AzMonMonitoringAlertNotificationSettings + | EmailMonitoringAlertNotificationSettings; export type EarlyTerminationPolicyUnion = | EarlyTerminationPolicy | BanditPolicy @@ -120,60 +183,148 @@ export type SamplingAlgorithmUnion = | BayesianSamplingAlgorithm | GridSamplingAlgorithm | RandomSamplingAlgorithm; +export type DataDriftMetricThresholdBaseUnion = + | DataDriftMetricThresholdBase + | CategoricalDataDriftMetricThreshold + | NumericalDataDriftMetricThreshold; +export type DataQualityMetricThresholdBaseUnion = + | DataQualityMetricThresholdBase + | CategoricalDataQualityMetricThreshold + | NumericalDataQualityMetricThreshold; +export type PredictionDriftMetricThresholdBaseUnion = + | PredictionDriftMetricThresholdBase + | CategoricalPredictionDriftMetricThreshold + | NumericalPredictionDriftMetricThreshold; +export type ModelPerformanceMetricThresholdBaseUnion = + | ModelPerformanceMetricThresholdBase + | ClassificationModelPerformanceMetricThreshold + | RegressionModelPerformanceMetricThreshold; export type DistributionConfigurationUnion = | DistributionConfiguration | Mpi | PyTorch + | Ray | TensorFlow; export type JobLimitsUnion = JobLimits | CommandJobLimits | SweepJobLimits; -export type OnlineDeploymentPropertiesUnion = - | OnlineDeploymentProperties - | KubernetesOnlineDeployment - | ManagedOnlineDeployment; +export type MonitorComputeConfigurationBaseUnion = + | MonitorComputeConfigurationBase + | MonitorServerlessSparkCompute; +export type MonitoringSignalBaseUnion = + | MonitoringSignalBase + | CustomMonitoringSignal + | DataDriftMonitoringSignal + | DataQualityMonitoringSignal + | FeatureAttributionDriftMonitoringSignal + | GenerationSafetyQualityMonitoringSignal + | GenerationTokenStatisticsSignal + | ModelPerformanceSignal + | PredictionDriftMonitoringSignal; +export type MonitoringInputDataBaseUnion = + | MonitoringInputDataBase + | FixedInputData + | StaticInputData + | TrailingInputData; +export type DataImportSourceUnion = + | DataImportSource + | DatabaseSource + | FileSystemSource; +export type OneLakeArtifactUnion = OneLakeArtifact | LakeHouseArtifact; +export type SparkJobEntryUnion = + | SparkJobEntry + | SparkJobPythonEntry + | SparkJobScalaEntry; export type DatastorePropertiesUnion = | DatastoreProperties | AzureBlobDatastore | AzureDataLakeGen1Datastore | AzureDataLakeGen2Datastore - | AzureFileDatastore; + | AzureFileDatastore + | HdfsDatastore + | OneLakeDatastore; export type JobBasePropertiesUnion = | JobBaseProperties + | LabelingJobProperties | AutoMLJob | CommandJob | PipelineJob + | SparkJob | SweepJob; +export type OnlineDeploymentPropertiesUnion = + | OnlineDeploymentProperties + | KubernetesOnlineDeployment + | ManagedOnlineDeployment; export type DataVersionBasePropertiesUnion = | DataVersionBaseProperties + | DataImport | MLTableData | UriFileDataVersion | UriFolderDataVersion; -/** An array of operations supported by the resource provider. */ -export interface AmlOperationListResult { - /** List of AML workspace operations supported by the AML workspace resource provider. */ - value?: AmlOperation[]; +/** The List Usages operation response. */ +export interface ListUsagesResult { + /** + * The list of AML resource usages. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: Usage[]; + /** + * The URI to fetch the next page of AML resource usage information. Call ListNext() with this to fetch the next page of AML resource usage information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } -/** Azure Machine Learning workspace REST API operation */ -export interface AmlOperation { - /** Operation name: {provider}/{resource}/{operation} */ - name?: string; - /** Display name of operation */ - display?: AmlOperationDisplay; - /** Indicates whether the operation applies to data-plane */ - isDataAction?: boolean; +/** Describes AML Resource Usage. */ +export interface Usage { + /** + * Specifies the resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Region of the AML workspace in the id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly amlWorkspaceLocation?: string; + /** + * Specifies the resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * An enum describing the unit of usage measurement. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly unit?: UsageUnit; + /** + * The current usage of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentValue?: number; + /** + * The maximum permitted usage of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly limit?: number; + /** + * The name of the type of usage. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: UsageName; } -/** Display name of operation */ -export interface AmlOperationDisplay { - /** The resource provider name: Microsoft.MachineLearningExperimentation */ - provider?: string; - /** The resource on which the operation is performed. */ - resource?: string; - /** The operation that users can perform. */ - operation?: string; - /** The description for the operation. */ - description?: string; +/** The Usage Names. */ +export interface UsageName { + /** + * The name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: string; + /** + * The localized name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly localizedValue?: string; } /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ @@ -225,323 +376,158 @@ export interface ErrorAdditionalInfo { readonly info?: Record; } -export interface EncryptionProperty { - /** Indicates whether or not the encryption is enabled for the workspace. */ - status: EncryptionStatus; - /** The identity that will be used to access the key vault for encryption at rest. */ - identity?: IdentityForCmk; - /** Customer Key vault properties. */ - keyVaultProperties: EncryptionKeyVaultProperties; -} - -/** Identity that will be used to access key vault for encryption at rest */ -export interface IdentityForCmk { - /** The ArmId of the user assigned identity that will be used to access the customer managed key vault */ - userAssignedIdentity?: string; -} - -export interface EncryptionKeyVaultProperties { - /** The ArmId of the keyVault where the customer owned encryption key is present. */ - keyVaultArmId: string; - /** Key vault uri to access the encryption key. */ - keyIdentifier: string; - /** For future use - The client id of the identity which will be used to access key vault. */ - identityClientId?: string; +/** The List Virtual Machine size operation response. */ +export interface VirtualMachineSizeListResult { + /** The list of virtual machine sizes supported by AmlCompute. */ + value?: VirtualMachineSize[]; } -/** The Private Endpoint resource. */ -export interface PrivateEndpoint { - /** - * The ARM identifier for Private Endpoint - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; +/** Describes the properties of a VM size. */ +export interface VirtualMachineSize { /** - * The ARM identifier for Subnet resource that private endpoint links to + * The name of the virtual machine size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subnetArmId?: string; -} - -/** A collection of information about the state of the connection between service consumer and provider. */ -export interface PrivateLinkServiceConnectionState { - /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ - status?: PrivateEndpointServiceConnectionStatus; - /** The reason for approval/rejection of the connection. */ - description?: string; - /** A message indicating if changes on the service provider require any updates on the consumer. */ - actionsRequired?: string; -} - -/** Managed service identity (system assigned and/or user assigned identities) */ -export interface ManagedServiceIdentity { + readonly name?: string; /** - * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + * The family name of the virtual machine size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; + readonly family?: string; /** - * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + * The number of vCPUs supported by the virtual machine size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tenantId?: string; - /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */ - type: ManagedServiceIdentityType; - /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */ - userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity }; -} - -/** User assigned identity properties */ -export interface UserAssignedIdentity { + readonly vCPUs?: number; /** - * The principal ID of the assigned identity. + * The number of gPUs supported by the virtual machine size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; + readonly gpus?: number; /** - * The client ID of the assigned identity. + * The OS VHD disk size, in MB, allowed by the virtual machine size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly clientId?: string; -} - -/** The resource model definition representing SKU */ -export interface Sku { - /** The name of the SKU. Ex - P3. It is typically a letter+number code */ - name: string; - /** This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. */ - tier?: SkuTier; - /** The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. */ - size?: string; - /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ - family?: string; - /** If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. */ - capacity?: number; -} - -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { + readonly osVhdSizeMB?: number; /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * The resource volume size, in MB, allowed by the virtual machine size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly maxResourceVolumeMB?: number; /** - * The name of the resource + * The amount of memory, in GB, supported by the virtual machine size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly memoryGB?: number; /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * Specifies if the virtual machine size supports low priority VMs. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly lowPriorityCapable?: boolean; /** - * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Specifies if the virtual machine size supports premium IO. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; -} - -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; -} - -export interface SharedPrivateLinkResource { - /** Unique name of the private link. */ - name?: string; - /** The resource id that private link links to. */ - privateLinkResourceId?: string; - /** The private link resource group id. */ - groupId?: string; - /** Request message. */ - requestMessage?: string; - /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ - status?: PrivateEndpointServiceConnectionStatus; + readonly premiumIO?: boolean; + /** The estimated price information for using a VM. */ + estimatedVMPrices?: EstimatedVMPrices; + /** Specifies the compute types supported by the virtual machine size. */ + supportedComputeTypes?: string[]; } -export interface NotebookResourceInfo { - fqdn?: string; - /** the data plane resourceId that used to initialize notebook component */ - resourceId?: string; - /** The error that occurs when preparing notebook. */ - notebookPreparationError?: NotebookPreparationError; +/** The estimated price info for using a VM. */ +export interface EstimatedVMPrices { + /** Three lettered code specifying the currency of the VM price. Example: USD */ + billingCurrency: BillingCurrency; + /** The unit of time measurement for the specified VM price. Example: OneHour */ + unitOfMeasure: UnitOfMeasure; + /** The list of estimated prices for using a VM of a particular OS type, tier, etc. */ + values: EstimatedVMPrice[]; } -export interface NotebookPreparationError { - errorMessage?: string; - statusCode?: number; +/** The estimated price info for using a VM of a particular OS type, tier, etc. */ +export interface EstimatedVMPrice { + /** The price charged for using the VM. */ + retailPrice: number; + /** Operating system type used by the VM. */ + osType: VMPriceOSType; + /** The type of the VM. */ + vmTier: VMTier; } -export interface ServiceManagedResourcesSettings { - /** The settings for the service managed cosmosdb account. */ - cosmosDb?: CosmosDbSettings; +/** Quota update parameters. */ +export interface QuotaUpdateParameters { + /** The list for update quota. */ + value?: QuotaBaseProperties[]; + /** Region of workspace quota to be updated. */ + location?: string; } -export interface CosmosDbSettings { - /** The throughput of the collections in cosmosdb database */ - collectionsThroughput?: number; -} - -/** The parameters for updating a machine learning workspace. */ -export interface WorkspaceUpdateParameters { - /** The resource tags for the machine learning workspace. */ - tags?: { [propertyName: string]: string }; - /** The sku of the workspace. */ - sku?: Sku; - /** The identity of the resource. */ - identity?: ManagedServiceIdentity; - /** The description of this workspace. */ - description?: string; - /** The friendly name for this workspace. */ - friendlyName?: string; - /** The compute name for image build */ - imageBuildCompute?: string; - /** The service managed resource settings. */ - serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; - /** The user assigned identity resource id that represents the workspace identity. */ - primaryUserAssignedIdentity?: string; - /** Whether requests from Public Network are allowed. */ - publicNetworkAccess?: PublicNetworkAccess; - /** ARM id of the application insights associated with this workspace. */ - applicationInsights?: string; - /** ARM id of the container registry associated with this workspace. */ - containerRegistry?: string; -} - -/** The result of a request to list machine learning workspaces. */ -export interface WorkspaceListResult { - /** The list of machine learning workspaces. Since this list may be incomplete, the nextLink field should be used to request the next list of machine learning workspaces. */ - value?: Workspace[]; - /** The URI that can be used to request the next list of machine learning workspaces. */ - nextLink?: string; -} - -/** Parameters to diagnose a workspace */ -export interface DiagnoseWorkspaceParameters { - /** Value of Parameters */ - value?: DiagnoseRequestProperties; -} - -export interface DiagnoseRequestProperties { - /** Setting for diagnosing user defined routing */ - udr?: { [propertyName: string]: Record }; - /** Setting for diagnosing network security group */ - nsg?: { [propertyName: string]: Record }; - /** Setting for diagnosing resource lock */ - resourceLock?: { [propertyName: string]: Record }; - /** Setting for diagnosing dns resolution */ - dnsResolution?: { [propertyName: string]: Record }; - /** Setting for diagnosing dependent storage account */ - storageAccount?: { [propertyName: string]: Record }; - /** Setting for diagnosing dependent key vault */ - keyVault?: { [propertyName: string]: Record }; - /** Setting for diagnosing dependent container registry */ - containerRegistry?: { [propertyName: string]: Record }; - /** Setting for diagnosing dependent application insights */ - applicationInsights?: { [propertyName: string]: Record }; - /** Setting for diagnosing unclassified category of problems */ - others?: { [propertyName: string]: Record }; -} - -export interface DiagnoseResponseResult { - value?: DiagnoseResponseResultValue; +/** The properties for Quota update or retrieval. */ +export interface QuotaBaseProperties { + /** Specifies the resource ID. */ + id?: string; + /** Specifies the resource type. */ + type?: string; + /** The maximum permitted quota of the resource. */ + limit?: number; + /** An enum describing the unit of quota measurement. */ + unit?: QuotaUnit; } -export interface DiagnoseResponseResultValue { - userDefinedRouteResults?: DiagnoseResult[]; - networkSecurityRuleResults?: DiagnoseResult[]; - resourceLockResults?: DiagnoseResult[]; - dnsResolutionResults?: DiagnoseResult[]; - storageAccountResults?: DiagnoseResult[]; - keyVaultResults?: DiagnoseResult[]; - containerRegistryResults?: DiagnoseResult[]; - applicationInsightsResults?: DiagnoseResult[]; - otherResults?: DiagnoseResult[]; +/** The result of update workspace quota. */ +export interface UpdateWorkspaceQuotasResult { + /** + * The list of workspace quota update result. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: UpdateWorkspaceQuotas[]; + /** + * The URI to fetch the next page of workspace quota update result. Call ListNext() with this to fetch the next page of Workspace Quota update result. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } -/** Result of Diagnose */ -export interface DiagnoseResult { +/** The properties for update Quota response. */ +export interface UpdateWorkspaceQuotas { /** - * Code for workspace setup error + * Specifies the resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly code?: string; + readonly id?: string; /** - * Level of workspace setup error + * Specifies the resource type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly level?: DiagnoseResultLevel; + readonly type?: string; + /** The maximum permitted quota of the resource. */ + limit?: number; /** - * Message of workspace setup error + * An enum describing the unit of quota measurement. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; -} - -export interface ListWorkspaceKeysResult { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly userStorageKey?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly userStorageResourceId?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly appInsightsInstrumentationKey?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly containerRegistryCredentials?: RegistryListCredentialsResult; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly notebookAccessKeys?: ListNotebookKeysResult; -} - -export interface RegistryListCredentialsResult { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly username?: string; - passwords?: Password[]; -} - -export interface Password { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: string; -} - -export interface ListNotebookKeysResult { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly primaryAccessKey?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly secondaryAccessKey?: string; + readonly unit?: QuotaUnit; + /** Status of update workspace quota. */ + status?: Status; } -/** The List Usages operation response. */ -export interface ListUsagesResult { +/** The List WorkspaceQuotasByVMFamily operation response. */ +export interface ListWorkspaceQuotas { /** - * The list of AML resource usages. + * The list of Workspace Quotas by VM Family * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Usage[]; + readonly value?: ResourceQuota[]; /** - * The URI to fetch the next page of AML resource usage information. Call ListNext() with this to fetch the next page of AML resource usage information. + * The URI to fetch the next page of workspace quota information by VM Family. Call ListNext() with this to fetch the next page of Workspace Quota information. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } -/** Describes AML Resource Usage. */ -export interface Usage { +/** The quota assigned to a resource. */ +export interface ResourceQuota { /** * Specifies the resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -558,29 +544,24 @@ export interface Usage { */ readonly type?: string; /** - * An enum describing the unit of usage measurement. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly unit?: UsageUnit; - /** - * The current usage of the resource. + * Name of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentValue?: number; + readonly name?: ResourceName; /** - * The maximum permitted usage of the resource. + * The maximum permitted quota of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly limit?: number; /** - * The name of the type of usage. + * An enum describing the unit of quota measurement. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: UsageName; + readonly unit?: QuotaUnit; } -/** The Usage Names. */ -export interface UsageName { +/** The Resource Name. */ +export interface ResourceName { /** * The name of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -593,210 +574,98 @@ export interface UsageName { readonly localizedValue?: string; } -/** The List Virtual Machine size operation response. */ -export interface VirtualMachineSizeListResult { - /** The list of virtual machine sizes supported by AmlCompute. */ - value?: VirtualMachineSize[]; +/** Paginated list of Machine Learning compute objects wrapped in ARM resource envelope. */ +export interface PaginatedComputeResourcesList { + /** An array of Machine Learning compute objects wrapped in ARM resource envelope. */ + value?: ComputeResource[]; + /** A continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; } -/** Describes the properties of a VM size. */ -export interface VirtualMachineSize { - /** - * The name of the virtual machine size. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; +/** Managed service identity (system assigned and/or user assigned identities) */ +export interface ManagedServiceIdentity { /** - * The family name of the virtual machine size. + * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly family?: string; + readonly principalId?: string; /** - * The number of vCPUs supported by the virtual machine size. + * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly vCPUs?: number; + readonly tenantId?: string; + /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */ + type: ManagedServiceIdentityType; + /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */ + userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity }; +} + +/** User assigned identity properties */ +export interface UserAssignedIdentity { /** - * The number of gPUs supported by the virtual machine size. + * The principal ID of the assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly gpus?: number; + readonly principalId?: string; /** - * The OS VHD disk size, in MB, allowed by the virtual machine size. + * The client ID of the assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly osVhdSizeMB?: number; + readonly clientId?: string; +} + +/** The resource model definition representing SKU */ +export interface Sku { + /** The name of the SKU. Ex - P3. It is typically a letter+number code */ + name: string; + /** This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. */ + tier?: SkuTier; + /** The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. */ + size?: string; + /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ + family?: string; + /** If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. */ + capacity?: number; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { /** - * The resource volume size, in MB, allowed by the virtual machine size. + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxResourceVolumeMB?: number; + readonly id?: string; /** - * The amount of memory, in GB, supported by the virtual machine size. + * The name of the resource * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly memoryGB?: number; + readonly name?: string; /** - * Specifies if the virtual machine size supports low priority VMs. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lowPriorityCapable?: boolean; + readonly type?: string; /** - * Specifies if the virtual machine size supports premium IO. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly premiumIO?: boolean; - /** The estimated price information for using a VM. */ - estimatedVMPrices?: EstimatedVMPrices; - /** Specifies the compute types supported by the virtual machine size. */ - supportedComputeTypes?: string[]; + readonly systemData?: SystemData; } -/** The estimated price info for using a VM. */ -export interface EstimatedVMPrices { - /** Three lettered code specifying the currency of the VM price. Example: USD */ - billingCurrency: BillingCurrency; - /** The unit of time measurement for the specified VM price. Example: OneHour */ - unitOfMeasure: UnitOfMeasure; - /** The list of estimated prices for using a VM of a particular OS type, tier, etc. */ - values: EstimatedVMPrice[]; -} - -/** The estimated price info for using a VM of a particular OS type, tier, etc. */ -export interface EstimatedVMPrice { - /** The price charged for using the VM. */ - retailPrice: number; - /** Operating system type used by the VM. */ - osType: VMPriceOSType; - /** The type of the VM. */ - vmTier: VMTier; -} - -/** Quota update parameters. */ -export interface QuotaUpdateParameters { - /** The list for update quota. */ - value?: QuotaBaseProperties[]; - /** Region of workspace quota to be updated. */ - location?: string; -} - -/** The properties for Quota update or retrieval. */ -export interface QuotaBaseProperties { - /** Specifies the resource ID. */ - id?: string; - /** Specifies the resource type. */ - type?: string; - /** The maximum permitted quota of the resource. */ - limit?: number; - /** An enum describing the unit of quota measurement. */ - unit?: QuotaUnit; -} - -/** The result of update workspace quota. */ -export interface UpdateWorkspaceQuotasResult { - /** - * The list of workspace quota update result. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: UpdateWorkspaceQuotas[]; - /** - * The URI to fetch the next page of workspace quota update result. Call ListNext() with this to fetch the next page of Workspace Quota update result. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** The properties for update Quota response. */ -export interface UpdateWorkspaceQuotas { - /** - * Specifies the resource ID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Specifies the resource type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** The maximum permitted quota of the resource. */ - limit?: number; - /** - * An enum describing the unit of quota measurement. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly unit?: QuotaUnit; - /** Status of update workspace quota. */ - status?: Status; -} - -/** The List WorkspaceQuotasByVMFamily operation response. */ -export interface ListWorkspaceQuotas { - /** - * The list of Workspace Quotas by VM Family - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ResourceQuota[]; - /** - * The URI to fetch the next page of workspace quota information by VM Family. Call ListNext() with this to fetch the next page of Workspace Quota information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** The quota assigned to a resource. */ -export interface ResourceQuota { - /** - * Specifies the resource ID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Region of the AML workspace in the id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly amlWorkspaceLocation?: string; - /** - * Specifies the resource type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * Name of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: ResourceName; - /** - * The maximum permitted quota of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly limit?: number; - /** - * An enum describing the unit of quota measurement. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly unit?: QuotaUnit; -} - -/** The Resource Name. */ -export interface ResourceName { - /** - * The name of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: string; - /** - * The localized name of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly localizedValue?: string; -} - -/** Paginated list of Machine Learning compute objects wrapped in ARM resource envelope. */ -export interface PaginatedComputeResourcesList { - /** An array of Machine Learning compute objects wrapped in ARM resource envelope. */ - value?: ComputeResource[]; - /** A continuation link (absolute URI) to the next page of results in the list. */ - nextLink?: string; +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; } export interface ComputeResourceSchema { @@ -875,6 +744,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 { /** @@ -923,102 +886,324 @@ export interface AmlComputeNodeInformation { readonly runId?: string; } -export interface NotebookAccessTokenResult { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly notebookResourceId?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly hostName?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly publicDns?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly accessToken?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tokenType?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly expiresIn?: number; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly refreshToken?: string; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly scope?: string; -} - /** Secrets related to a Machine Learning compute. Might differ for every type of compute. */ export interface ComputeSecrets { /** Polymorphic discriminator, which specifies the different types this object can be */ computeType: "AKS" | "VirtualMachine" | "Databricks"; } -/** List of private endpoint connection associated with the specified workspace */ -export interface PrivateEndpointConnectionListResult { - /** Array of private endpoint connections */ - value?: PrivateEndpointConnection[]; +/** 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; } -/** A list of private link resources */ -export interface PrivateLinkResourceListResult { - /** Array of private link resources */ - value?: PrivateLinkResource[]; +/** Schema for Compute Instance resize. */ +export interface ResizeSchema { + /** The name of the virtual machine size. */ + targetVMSize?: string; } -export interface ListStorageAccountKeysResult { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly userStorageKey?: string; +/** A paginated list of CodeContainer entities. */ +export interface CodeContainerResourceArmPaginatedResult { + /** The link to the next page of CodeContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type CodeContainer. */ + value?: CodeContainer[]; } -export interface WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "PAT" | "SAS" | "UsernamePassword" | "None" | "ManagedIdentity"; - /** Category of the connection */ - category?: ConnectionCategory; - target?: string; - /** Value details of the workspace connection. */ - value?: string; - /** format for the workspace connection value */ - valueFormat?: ValueFormat; +export interface ResourceBase { + /** The asset description text. */ + description?: string; + /** The asset property dictionary. */ + properties?: { [propertyName: string]: string | null }; + /** Tag dictionary. Tags can be added, removed, and updated. */ + tags?: { [propertyName: string]: string | null }; } -export interface WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult { - value?: WorkspaceConnectionPropertiesV2BasicResource[]; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; +/** A paginated list of CodeVersion entities. */ +export interface CodeVersionResourceArmPaginatedResult { + /** The link to the next page of CodeVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type CodeVersion. */ + value?: CodeVersion[]; } -export interface ExternalFqdnResponse { - value?: FqdnEndpoints[]; +export interface AutoDeleteSetting { + /** When to check if an asset is expired */ + condition?: AutoDeleteCondition; + /** Expiration condition value. */ + value?: string; } -export interface FqdnEndpoints { - properties?: FqdnEndpointsProperties; +export interface PendingUploadRequestDto { + /** If PendingUploadId = null then random guid will be used. */ + pendingUploadId?: string; + /** TemporaryBlobReference is the only supported type */ + pendingUploadType?: PendingUploadType; } -export interface FqdnEndpointsProperties { - category?: string; - endpoints?: FqdnEndpoint[]; +export interface PendingUploadResponseDto { + /** Container level read, write, list SAS */ + blobReferenceForConsumption?: BlobReferenceForConsumptionDto; + /** ID for this upload request */ + pendingUploadId?: string; + /** TemporaryBlobReference is the only supported type */ + pendingUploadType?: PendingUploadType; } -export interface FqdnEndpoint { - domainName?: string; - endpointDetails?: FqdnEndpointDetail[]; +export interface BlobReferenceForConsumptionDto { + /** + * Blob URI path for client to upload data. + * Example: https://blob.windows.core.net/Container/Path + */ + blobUri?: string; + /** Credential info to access storage account */ + credential?: PendingUploadCredentialDtoUnion; + /** Arm ID of the storage account to use */ + storageAccountArmId?: string; } -export interface FqdnEndpointDetail { - port?: number; +export interface PendingUploadCredentialDto { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialType: "SAS"; } -/** A paginated list of BatchEndpoint entities. */ -export interface BatchEndpointTrackedResourceArmPaginatedResult { - /** The link to the next page of BatchEndpoint objects. If null, there are no additional pages. */ +/** A paginated list of ComponentContainer entities. */ +export interface ComponentContainerResourceArmPaginatedResult { + /** The link to the next page of ComponentContainer objects. If null, there are no additional pages. */ nextLink?: string; - /** An array of objects of type BatchEndpoint. */ - value?: BatchEndpoint[]; + /** An array of objects of type ComponentContainer. */ + value?: ComponentContainer[]; } -/** Batch endpoint default values */ -export interface BatchEndpointDefaults { - /** - * Name of the deployment that will be default for the endpoint. - * This deployment will end up getting 100% traffic when the endpoint scoring URL is invoked. - */ +/** A paginated list of ComponentVersion entities. */ +export interface ComponentVersionResourceArmPaginatedResult { + /** The link to the next page of ComponentVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type ComponentVersion. */ + value?: ComponentVersion[]; +} + +/** A paginated list of DataContainer entities. */ +export interface DataContainerResourceArmPaginatedResult { + /** The link to the next page of DataContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type DataContainer. */ + value?: DataContainer[]; +} + +/** A paginated list of DataVersionBase entities. */ +export interface DataVersionBaseResourceArmPaginatedResult { + /** The link to the next page of DataVersionBase objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type DataVersionBase. */ + value?: DataVersionBase[]; +} + +/** Intellectual Property details for a resource. */ +export interface IntellectualProperty { + /** Protection level of the Intellectual Property. */ + protectionLevel?: ProtectionLevel; + /** [Required] Publisher of the Intellectual Property. Must be the same as Registry publisher name. */ + publisher: string; +} + +/** A paginated list of EnvironmentContainer entities. */ +export interface EnvironmentContainerResourceArmPaginatedResult { + /** The link to the next page of EnvironmentContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type EnvironmentContainer. */ + value?: EnvironmentContainer[]; +} + +/** A paginated list of EnvironmentVersion entities. */ +export interface EnvironmentVersionResourceArmPaginatedResult { + /** The link to the next page of EnvironmentVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type EnvironmentVersion. */ + value?: EnvironmentVersion[]; +} + +/** Configuration settings for Docker build context */ +export interface BuildContext { + /** + * [Required] URI of the Docker build context used to build the image. Supports blob URIs on environment creation and may return blob or Git URIs. + * + */ + contextUri: string; + /** + * Path to the Dockerfile in the build context. + * + */ + dockerfilePath?: string; +} + +export interface InferenceContainerProperties { + /** The route to check the liveness of the inference server container. */ + livenessRoute?: Route; + /** The route to check the readiness of the inference server container. */ + readinessRoute?: Route; + /** The port to send the scoring requests to, within the inference server container. */ + scoringRoute?: Route; +} + +export interface Route { + /** [Required] The path for the route. */ + path: string; + /** [Required] The port for the route. */ + port: number; +} + +/** A paginated list of ModelContainer entities. */ +export interface ModelContainerResourceArmPaginatedResult { + /** The link to the next page of ModelContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type ModelContainer. */ + value?: ModelContainer[]; +} + +/** A paginated list of ModelVersion entities. */ +export interface ModelVersionResourceArmPaginatedResult { + /** The link to the next page of ModelVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type ModelVersion. */ + value?: ModelVersion[]; +} + +export interface FlavorData { + /** Model flavor-specific data. */ + data?: { [propertyName: string]: string | null }; +} + +/** Model package operation request properties. */ +export interface PackageRequest { + /** Base environment to start with. */ + baseEnvironmentSource?: BaseEnvironmentSourceUnion; + /** Collection of environment variables. */ + environmentVariables?: { [propertyName: string]: string | null }; + /** [Required] Inferencing server configurations. */ + inferencingServer: InferencingServerUnion; + /** Collection of inputs. */ + inputs?: ModelPackageInput[]; + /** Model configuration including the mount mode. */ + modelConfiguration?: ModelConfiguration; + /** Property dictionary. Properties can be added, removed, and updated. */ + properties?: { [propertyName: string]: string | null }; + /** Tag dictionary. Tags can be added, removed, and updated. */ + tags?: { [propertyName: string]: string | null }; + /** [Required] Arm ID of the target environment to be created by package operation. */ + targetEnvironmentId: string; +} + +export interface BaseEnvironmentSource { + /** Polymorphic discriminator, which specifies the different types this object can be */ + baseEnvironmentSourceType: "EnvironmentAsset"; +} + +export interface InferencingServer { + /** Polymorphic discriminator, which specifies the different types this object can be */ + serverType: "AzureMLBatch" | "AzureMLOnline" | "Custom" | "Triton"; +} + +/** Model package input options. */ +export interface ModelPackageInput { + /** [Required] Type of the input included in the target image. */ + inputType: PackageInputType; + /** Input delivery mode of the input. */ + mode?: PackageInputDeliveryMode; + /** Relative mount path of the input in the target image. */ + mountPath?: string; + /** [Required] Location of the input. */ + path: PackageInputPathBaseUnion; +} + +export interface PackageInputPathBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + inputPathType: "PathId" | "Url" | "PathVersion"; +} + +/** Model configuration options. */ +export interface ModelConfiguration { + /** Input delivery mode for the model. */ + mode?: PackageInputDeliveryMode; + /** Relative mounting path of the model in the target image. */ + mountPath?: string; +} + +/** Package response returned after async package operation completes successfully. */ +export interface PackageResponse { + /** + * Base environment to start with. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly baseEnvironmentSource?: BaseEnvironmentSourceUnion; + /** + * Build id of the image build operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly buildId?: string; + /** + * Build state of the image build operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly buildState?: PackageBuildState; + /** + * Collection of environment variables. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly environmentVariables?: { [propertyName: string]: string | null }; + /** + * Inferencing server configurations. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly inferencingServer?: InferencingServerUnion; + /** + * Collection of inputs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly inputs?: ModelPackageInput[]; + /** + * Log url of the image build operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly logUrl?: string; + /** + * Model configuration including the mount mode. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly modelConfiguration?: ModelConfiguration; + /** + * Property dictionary. Tags can be added, removed, and updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly properties?: { [propertyName: string]: string | null }; + /** + * Tag dictionary. Tags can be added, removed, and updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tags?: { [propertyName: string]: string | null }; + /** + * Asset ID of the target environment created by package operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly targetEnvironmentId?: string; +} + +/** A paginated list of BatchEndpoint entities. */ +export interface BatchEndpointTrackedResourceArmPaginatedResult { + /** The link to the next page of BatchEndpoint objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type BatchEndpoint. */ + value?: BatchEndpoint[]; +} + +/** Batch endpoint default values */ +export interface BatchEndpointDefaults { + /** + * Name of the deployment that will be default for the endpoint. + * This deployment will end up getting 100% traffic when the endpoint scoring URL is invoked. + */ deploymentName?: string; } @@ -1077,10 +1262,16 @@ export interface BatchDeploymentTrackedResourceArmPaginatedResult { value?: BatchDeployment[]; } +/** Properties relevant to different deployment types. */ +export interface BatchDeploymentConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + deploymentConfigurationType: "PipelineComponent"; +} + /** Base definition for asset references. */ export interface AssetReferenceBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - referenceType: "DataPath" | "Id" | "OutputPath"; + referenceType: "Id" | "DataPath" | "OutputPath"; } export interface ResourceConfiguration { @@ -1088,6 +1279,13 @@ export interface ResourceConfiguration { instanceCount?: number; /** Optional type of VM used as supported by the compute target. */ instanceType?: string; + /** Locations where the job can run. */ + locations?: string[]; + /** + * Optional max allowed number of instances or nodes to be used by the compute target. + * For use with elastic training, currently supported by PyTorch distribution type only. + */ + maxInstanceCount?: number; /** Additional properties bag. */ properties?: { [propertyName: string]: Record }; } @@ -1106,7 +1304,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 }; @@ -1136,63 +1334,6 @@ export interface PartialBatchDeployment { description?: string; } -/** A paginated list of CodeContainer entities. */ -export interface CodeContainerResourceArmPaginatedResult { - /** The link to the next page of CodeContainer objects. If null, there are no additional pages. */ - nextLink?: string; - /** An array of objects of type CodeContainer. */ - value?: CodeContainer[]; -} - -export interface ResourceBase { - /** The asset description text. */ - description?: string; - /** The asset property dictionary. */ - properties?: { [propertyName: string]: string | null }; - /** Tag dictionary. Tags can be added, removed, and updated. */ - tags?: { [propertyName: string]: string | null }; -} - -/** A paginated list of CodeVersion entities. */ -export interface CodeVersionResourceArmPaginatedResult { - /** The link to the next page of CodeVersion objects. If null, there are no additional pages. */ - nextLink?: string; - /** An array of objects of type CodeVersion. */ - value?: CodeVersion[]; -} - -/** A paginated list of ComponentContainer entities. */ -export interface ComponentContainerResourceArmPaginatedResult { - /** The link to the next page of ComponentContainer objects. If null, there are no additional pages. */ - nextLink?: string; - /** An array of objects of type ComponentContainer. */ - value?: ComponentContainer[]; -} - -/** A paginated list of ComponentVersion entities. */ -export interface ComponentVersionResourceArmPaginatedResult { - /** The link to the next page of ComponentVersion objects. If null, there are no additional pages. */ - nextLink?: string; - /** An array of objects of type ComponentVersion. */ - value?: ComponentVersion[]; -} - -/** A paginated list of DataContainer entities. */ -export interface DataContainerResourceArmPaginatedResult { - /** The link to the next page of DataContainer objects. If null, there are no additional pages. */ - nextLink?: string; - /** An array of objects of type DataContainer. */ - value?: DataContainer[]; -} - -/** A paginated list of DataVersionBase entities. */ -export interface DataVersionBaseResourceArmPaginatedResult { - /** The link to the next page of DataVersionBase objects. If null, there are no additional pages. */ - nextLink?: string; - /** An array of objects of type DataVersionBase. */ - value?: DataVersionBase[]; -} - /** A paginated list of Datastore entities. */ export interface DatastoreResourceArmPaginatedResult { /** The link to the next page of Datastore objects. If null, there are no additional pages. */ @@ -1207,6 +1348,8 @@ export interface DatastoreCredentials { credentialsType: | "AccountKey" | "Certificate" + | "KerberosKeytab" + | "KerberosPassword" | "None" | "Sas" | "ServicePrincipal"; @@ -1215,53 +1358,169 @@ 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. */ -export interface EnvironmentContainerResourceArmPaginatedResult { - /** The link to the next page of EnvironmentContainer objects. If null, there are no additional pages. */ +/** A paginated list of FeaturesetContainer entities. */ +export interface FeaturesetContainerResourceArmPaginatedResult { + /** The link to the next page of FeaturesetContainer objects. If null, there are no additional pages. */ nextLink?: string; - /** An array of objects of type EnvironmentContainer. */ - value?: EnvironmentContainer[]; + /** An array of objects of type FeaturesetContainer. */ + value?: FeaturesetContainer[]; } -/** A paginated list of EnvironmentVersion entities. */ -export interface EnvironmentVersionResourceArmPaginatedResult { - /** The link to the next page of EnvironmentVersion objects. If null, there are no additional pages. */ +/** A paginated list of Feature entities. */ +export interface FeatureResourceArmPaginatedResult { + /** The link to the next page of Feature objects. If null, there are no additional pages. */ nextLink?: string; - /** An array of objects of type EnvironmentVersion. */ - value?: EnvironmentVersion[]; + /** An array of objects of type Feature. */ + value?: Feature[]; } -/** Configuration settings for Docker build context */ -export interface BuildContext { - /** - * [Required] URI of the Docker build context used to build the image. Supports blob URIs on environment creation and may return blob or Git URIs. - * - */ - contextUri: string; - /** - * Path to the Dockerfile in the build context. - * - */ - dockerfilePath?: string; +/** A paginated list of FeaturesetVersion entities. */ +export interface FeaturesetVersionResourceArmPaginatedResult { + /** The link to the next page of FeaturesetVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type FeaturesetVersion. */ + value?: FeaturesetVersion[]; +} + +export interface MaterializationSettings { + /** Specifies the notification details */ + notification?: NotificationSetting; + /** Specifies the compute resource settings */ + resource?: MaterializationComputeResource; + /** Specifies the schedule details */ + schedule?: RecurrenceTrigger; + /** Specifies the spark compute settings */ + sparkConfiguration?: { [propertyName: string]: string | null }; + /** Specifies the stores to which materialization should happen */ + storeType?: MaterializationStoreType; +} + +/** Configuration for notification. */ +export interface NotificationSetting { + /** Send email notification to user on specified notification type */ + emailOn?: EmailNotificationEnableType[]; + /** This is the email recipient list which has a limitation of 499 characters in total concat with comma separator */ + emails?: string[]; + /** Send webhook callback to a service. Key is a user-provided name for the webhook. */ + webhooks?: { [propertyName: string]: WebhookUnion | null }; +} + +/** Webhook base */ +export interface Webhook { + /** Polymorphic discriminator, which specifies the different types this object can be */ + webhookType: "AzureDevOps"; + /** Send callback on a specified notification event */ + eventType?: string; } -export interface InferenceContainerProperties { - /** The route to check the liveness of the inference server container. */ - livenessRoute?: Route; - /** The route to check the readiness of the inference server container. */ - readinessRoute?: Route; - /** The port to send the scoring requests to, within the inference server container. */ - scoringRoute?: Route; +/** Dto object representing compute resource */ +export interface MaterializationComputeResource { + /** Specifies the instance type */ + instanceType?: string; } -export interface Route { - /** [Required] The path for the route. */ - path: string; - /** [Required] The port for the route. */ - port: number; +export interface RecurrenceSchedule { + /** [Required] List of hours for the schedule. */ + hours: number[]; + /** [Required] List of minutes for the schedule. */ + minutes: number[]; + /** List of month days for the schedule */ + monthDays?: number[]; + /** List of days for the schedule. */ + weekDays?: WeekDay[]; +} + +export interface TriggerBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + triggerType: "Recurrence" | "Cron"; + /** + * Specifies end time of schedule in ISO 8601, but without a UTC offset. Refer https://en.wikipedia.org/wiki/ISO_8601. + * Recommented format would be "2022-06-01T00:00:01" + * If not present, the schedule will run indefinitely + */ + endTime?: string; + /** Specifies start time of schedule in ISO 8601 format, but without a UTC offset. */ + startTime?: string; + /** + * Specifies time zone in which the schedule runs. + * TimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11 + */ + timeZone?: string; +} + +/** Dto object representing specification */ +export interface FeaturesetSpecification { + /** Specifies the spec path */ + path?: string; +} + +/** Request payload for creating a backfill request for a given feature set version */ +export interface FeaturesetVersionBackfillRequest { + /** Specified the data availability status that you want to backfill */ + dataAvailabilityStatus?: DataAvailabilityStatus[]; + /** Specifies description */ + description?: string; + /** Specifies description */ + displayName?: string; + /** Specifies the backfill feature window to be materialized */ + featureWindow?: FeatureWindow; + /** Specify the jobId to retry the failed materialization */ + jobId?: string; + /** Specifies the properties */ + properties?: { [propertyName: string]: string | null }; + /** Specifies the compute resource settings */ + resource?: MaterializationComputeResource; + /** Specifies the spark compute settings */ + sparkConfiguration?: { [propertyName: string]: string | null }; + /** Specifies the tags */ + tags?: { [propertyName: string]: string | null }; +} + +/** Specifies the feature window */ +export interface FeatureWindow { + /** Specifies the feature window end time */ + featureWindowEnd?: Date; + /** Specifies the feature window start time */ + featureWindowStart?: Date; +} + +/** Response payload for creating a backfill request for a given feature set version */ +export interface FeaturesetVersionBackfillResponse { + /** List of jobs submitted as part of the backfill request. */ + jobIds?: string[]; +} + +/** A paginated list of FeaturestoreEntityContainer entities. */ +export interface FeaturestoreEntityContainerResourceArmPaginatedResult { + /** The link to the next page of FeaturestoreEntityContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type FeaturestoreEntityContainer. */ + value?: FeaturestoreEntityContainer[]; +} + +/** A paginated list of FeaturestoreEntityVersion entities. */ +export interface FeaturestoreEntityVersionResourceArmPaginatedResult { + /** The link to the next page of FeaturestoreEntityVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type FeaturestoreEntityVersion. */ + value?: FeaturestoreEntityVersion[]; +} + +/** Dto object representing index column */ +export interface IndexColumn { + /** Specifies the column name */ + columnName?: string; + /** Specifies the data type */ + dataType?: FeatureDataType; } /** A paginated list of JobBase entities. */ @@ -1278,6 +1537,17 @@ export interface IdentityConfiguration { identityType: "AMLToken" | "Managed" | "UserIdentity"; } +/** Secret Configuration definition. */ +export interface SecretConfiguration { + /** + * Secret Uri. + * Sample Uri : https://myvault.vault.azure.net/secrets/mysecretname/secretversion + */ + uri?: string; + /** Name of secret in workspace key vault. */ + workspaceSecretName?: string; +} + /** Job endpoint definition */ export interface JobService { /** Url for endpoint. */ @@ -1289,7 +1559,12 @@ export interface JobService { readonly errorMessage?: string; /** Endpoint type. */ jobServiceType?: string; - /** Port for endpoint. */ + /** + * Nodes that user would like to start the service on. + * If Nodes is not set or set to null, the service will only be started on leader node. + */ + nodes?: NodesUnion; + /** Port for endpoint set by user. */ port?: number; /** Additional properties to set on the endpoint. */ properties?: { [propertyName: string]: string | null }; @@ -1300,25 +1575,153 @@ export interface JobService { readonly status?: string; } -/** A paginated list of ModelContainer entities. */ -export interface ModelContainerResourceArmPaginatedResult { - /** The link to the next page of ModelContainer objects. If null, there are no additional pages. */ - nextLink?: string; - /** An array of objects of type ModelContainer. */ - value?: ModelContainer[]; +/** Abstract Nodes definition */ +export interface Nodes { + /** Polymorphic discriminator, which specifies the different types this object can be */ + nodesValueType: "All"; } -/** A paginated list of ModelVersion entities. */ -export interface ModelVersionResourceArmPaginatedResult { - /** The link to the next page of ModelVersion objects. If null, there are no additional pages. */ +/** Azure Resource Manager resource envelope strictly used in update requests. */ +export interface PartialJobBasePartialResource { + /** Additional attributes of the entity. */ + properties?: PartialJobBase; +} + +/** Mutable base definition for a job. */ +export interface PartialJobBase { + /** Mutable notification setting for the job */ + notificationSetting?: PartialNotificationSetting; +} + +/** Mutable configuration for notification. */ +export interface PartialNotificationSetting { + /** Send webhook callback to a service. Key is a user-provided name for the webhook. */ + webhooks?: { [propertyName: string]: WebhookUnion | null }; +} + +/** 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 ModelVersion. */ - value?: ModelVersion[]; + /** An array of objects of type LabelingJob. */ + value?: LabelingJob[]; } -export interface FlavorData { - /** Model flavor-specific data. */ - data?: { [propertyName: string]: string | null }; +/** 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. */ + incrementalDataRefresh?: IncrementalDataRefresh; +} + +/** 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. */ + multiSelect?: MultiSelect; +} + +/** 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 OnlineEndpoint entities. */ @@ -1337,6 +1740,39 @@ export interface OnlineDeploymentTrackedResourceArmPaginatedResult { value?: OnlineDeployment[]; } +export interface DataCollector { + /** + * [Required] The collection configuration. Each collection has it own configuration to collect model data and the name of collection can be arbitrary string. + * Model data collector can be used for either payload logging or custom logging or both of them. Collection request and response are reserved for payload logging, others are for custom logging. + */ + collections: { [propertyName: string]: Collection | null }; + /** The request logging configuration for mdc, it includes advanced logging settings for all collections. It's optional. */ + requestLogging?: RequestLogging; + /** + * When model data is collected to blob storage, we need to roll the data to different path to avoid logging all of them in a single blob file. + * If the rolling rate is hour, all data will be collected in the blob path /yyyy/MM/dd/HH/. + * If it's day, all data will be collected in blob path /yyyy/MM/dd/. + * The other benefit of rolling path is that model monitoring ui is able to select a time range of data very quickly. + */ + rollingRate?: RollingRateType; +} + +export interface Collection { + /** The msi client id used to collect logging to blob storage. If it's null,backend will pick a registered endpoint identity to auth. */ + clientId?: string; + /** Enable or disable data collection. */ + dataCollectionMode?: DataCollectionMode; + /** The data asset arm resource id. Client side will ensure data asset is pointing to the blob storage, and backend will collect data to the blob storage. */ + dataId?: string; + /** The sampling rate for collection. Sampling rate 1.0 means we collect 100% of data by default. */ + samplingRate?: number; +} + +export interface RequestLogging { + /** For payload logging, we only collect payload by default. If customers also want to collect the specified headers, they can set them in captureHeaders so that backend will collect those headers along with payload. */ + captureHeaders?: string[]; +} + /** Deployment container liveness/readiness probe configuration. */ export interface ProbeSettings { /** The number of failures to allow before returning an unhealthy status. */ @@ -1469,25 +1905,172 @@ export interface ScheduleResourceArmPaginatedResult { export interface ScheduleActionBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - actionType: "InvokeBatchEndpoint" | "CreateJob"; + actionType: + | "CreateMonitor" + | "InvokeBatchEndpoint" + | "ImportData" + | "CreateJob"; } -export interface TriggerBase { - /** Polymorphic discriminator, which specifies the different types this object can be */ - triggerType: "Recurrence" | "Cron"; +/** A paginated list of ServerlessEndpoint entities. */ +export interface ServerlessEndpointTrackedResourceArmPaginatedResult { + /** The link to the next page of ServerlessEndpoint objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type ServerlessEndpoint. */ + value?: ServerlessEndpoint[]; +} + +export interface ServerlessEndpointProperties { /** - * 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 + * The inference uri to target when making requests against the serverless endpoint + * NOTE: This property will not be serialized. It can only be populated by the server. */ - endTime?: string; - /** Specifies start time of schedule in ISO 8601 format, but without a UTC offset. */ - startTime?: string; + readonly inferenceUri?: string; + /** [Required] The model profile to configure the serverless endpoint with */ + modelProfile: ModelProfile; /** - * 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 + * Provisioning state for the endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - timeZone?: string; + readonly provisioningState?: EndpointProvisioningState; +} + +export interface ModelProfile { + /** [Required] The model to create a serverless endpoint of */ + modelUri: string; +} + +/** A paginated list of Registry entities. */ +export interface RegistryTrackedResourceArmPaginatedResult { + /** The link to the next page of Registry objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type Registry. */ + value?: Registry[]; +} + +/** ARM ResourceId of a resource */ +export interface ArmResourceId { + /** + * Arm ResourceId is in the format "/subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Storage/storageAccounts/{StorageAccountName}" + * or "/subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{AcrName}" + */ + resourceId?: string; +} + +/** Private endpoint connection definition. */ +export interface RegistryPrivateEndpointConnection { + /** + * This is the private endpoint connection name created on SRP + * Full resource id: /subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.MachineLearningServices/{resourceType}/{resourceName}/registryPrivateEndpointConnections/{peConnectionName} + */ + id?: string; + /** Same as workspace location. */ + location?: string; + /** The group ids */ + groupIds?: string[]; + /** The PE network resource that is linked to this PE connection. */ + privateEndpoint?: PrivateEndpointResource; + /** The connection state. */ + registryPrivateLinkServiceConnectionState?: RegistryPrivateLinkServiceConnectionState; + /** One of null, "Succeeded", "Provisioning", "Failed". While not approved, it's null. */ + provisioningState?: string; +} + +/** The Private Endpoint resource. */ +export interface PrivateEndpoint { + /** + * The ARM identifier for Private Endpoint + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; +} + +/** The connection state. */ +export interface RegistryPrivateLinkServiceConnectionState { + /** Some RP chose "None". Other RPs use this for region expansion. */ + actionsRequired?: string; + /** User-defined message that, per NRP doc, may be used for approval-related message. */ + description?: string; + /** Connection status of the service consumer with the service provider */ + status?: EndpointServiceConnectionStatus; +} + +/** Details for each region the registry is in */ +export interface RegistryRegionArmDetails { + /** List of ACR accounts */ + acrDetails?: AcrDetails[]; + /** The location where the registry exists */ + location?: string; + /** List of storage accounts */ + storageAccountDetails?: StorageAccountDetails[]; +} + +/** Details of ACR account to be used for the Registry */ +export interface AcrDetails { + /** Details of system created ACR account to be used for the Registry */ + systemCreatedAcrAccount?: SystemCreatedAcrAccount; + /** Details of user created ACR account to be used for the Registry */ + userCreatedAcrAccount?: UserCreatedAcrAccount; +} + +export interface SystemCreatedAcrAccount { + /** Name of the ACR account */ + acrAccountName?: string; + /** SKU of the ACR account */ + acrAccountSku?: string; + /** This is populated once the ACR account is created. */ + armResourceId?: ArmResourceId; +} + +export interface UserCreatedAcrAccount { + /** ARM ResourceId of a resource */ + armResourceId?: ArmResourceId; +} + +/** Details of storage account to be used for the Registry */ +export interface StorageAccountDetails { + /** Details of system created storage account to be used for the registry */ + systemCreatedStorageAccount?: SystemCreatedStorageAccount; + /** Details of user created storage account to be used for the registry */ + userCreatedStorageAccount?: UserCreatedStorageAccount; +} + +export interface SystemCreatedStorageAccount { + /** Public blob access allowed */ + allowBlobPublicAccess?: boolean; + /** This is populated once the storage account is created. */ + armResourceId?: ArmResourceId; + /** HNS enabled for storage account */ + storageAccountHnsEnabled?: boolean; + /** Name of the storage account */ + storageAccountName?: string; + /** + * Allowed values: + * "Standard_LRS", + * "Standard_GRS", + * "Standard_RAGRS", + * "Standard_ZRS", + * "Standard_GZRS", + * "Standard_RAGZRS", + * "Premium_LRS", + * "Premium_ZRS" + */ + storageAccountType?: string; +} + +export interface UserCreatedStorageAccount { + /** ARM ResourceId of a resource */ + armResourceId?: ArmResourceId; +} + +/** Strictly used in update requests. */ +export interface PartialRegistryPartialTrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: RegistryPartialManagedServiceIdentity; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: PartialSku; + /** Resource tags. */ + tags?: { [propertyName: string]: string | null }; } /** The List Aml user feature operation response. */ @@ -1514,4100 +2097,7051 @@ export interface AmlUserFeature { description?: string; } -/** Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet. */ -export interface ResourceId { - /** The ID of the resource */ - id: string; +/** An array of operations supported by the resource provider. */ +export interface AmlOperationListResult { + /** + * Gets or sets list of AML team account operations supported by the + * AML team account resource provider. + */ + value?: AmlOperation[]; } -export interface AKSSchema { - /** AKS properties */ - properties?: AKSSchemaProperties; +/** Azure Machine Learning team account REST API operation */ +export interface AmlOperation { + /** Gets or sets display name of operation */ + display?: OperationDisplay; + /** Indicates whether the operation applies to data-plane */ + isDataAction?: boolean; + /** Gets or sets operation name: {provider}/{resource}/{operation} */ + name?: string; + /** The intended executor of the operation: user/system */ + origin?: string; } -/** AKS properties */ -export interface AKSSchemaProperties { - /** Cluster full qualified domain name */ - clusterFqdn?: string; +/** Display name of operation */ +export interface OperationDisplay { + /** Gets or sets the description for the operation. */ + description?: string; + /** Gets or sets the operation that users can perform. */ + operation?: string; /** - * System services - * NOTE: This property will not be serialized. It can only be populated by the server. + * Gets or sets the resource provider name: + * Microsoft.MachineLearningExperimentation */ - readonly systemServices?: SystemService[]; - /** Number of agents */ - agentCount?: number; - /** Agent virtual machine size */ - agentVmSize?: string; - /** Intended usage of the cluster */ - clusterPurpose?: ClusterPurpose; - /** SSL configuration */ - sslConfiguration?: SslConfiguration; - /** AKS networking configuration for vnet */ - aksNetworkingConfiguration?: AksNetworkingConfiguration; - /** Load Balancer Type */ - loadBalancerType?: LoadBalancerType; - /** Load Balancer Subnet */ - loadBalancerSubnet?: string; + provider?: string; + /** Gets or sets the resource on which the operation is performed. */ + resource?: string; } -/** A system service running on a compute. */ -export interface SystemService { +/** The result of a request to list machine learning workspaces. */ +export interface WorkspaceListResult { + /** The link to the next page constructed using the continuationToken. If null, there are no additional pages. */ + nextLink?: string; + /** The list of machine learning workspaces. Since this list may be incomplete, the nextLink field should be used to request the next list of machine learning workspaces. */ + value?: Workspace[]; +} + +export interface EncryptionProperty { /** - * The type of this system service. - * NOTE: This property will not be serialized. It can only be populated by the server. + * The byok cosmosdb account that customer brings to store customer's data + * with encryption */ - readonly systemServiceType?: string; + cosmosDbResourceId?: string; + /** Identity to be used with the keyVault */ + identity?: IdentityForCmk; + /** KeyVault details to do the encryption */ + keyVaultProperties: KeyVaultProperties; /** - * Public IP address - * NOTE: This property will not be serialized. It can only be populated by the server. + * The byok search account that customer brings to store customer's data + * with encryption */ - readonly publicIpAddress?: string; + searchAccountResourceId?: string; + /** Indicates whether or not the encryption is enabled for the workspace. */ + status: EncryptionStatus; /** - * The version for this type. - * NOTE: This property will not be serialized. It can only be populated by the server. + * The byok storage account that customer brings to store customer's data + * with encryption */ - readonly version?: string; + storageAccountResourceId?: string; } -/** The ssl configuration for scoring */ -export interface SslConfiguration { - /** Enable or disable ssl for scoring */ - status?: SslConfigStatus; - /** Cert data */ - cert?: string; - /** Key data */ - key?: string; - /** CNAME of the cert */ - cname?: string; - /** Leaf domain label of public endpoint */ - leafDomainLabel?: string; - /** Indicates whether to overwrite existing domain label. */ - overwriteExistingDomain?: boolean; +/** Identity object used for encryption. */ +export interface IdentityForCmk { + /** UserAssignedIdentity to be used to fetch the encryption key from keyVault */ + userAssignedIdentity?: string; } -/** Advance configuration for AKS networking */ -export interface AksNetworkingConfiguration { - /** Virtual network subnet resource ID the compute nodes belong to */ - subnetId?: string; - /** A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges. */ - serviceCidr?: string; - /** An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr. */ - dnsServiceIP?: string; - /** A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any Subnet IP ranges or the Kubernetes service address range. */ - dockerBridgeCidr?: string; +/** Customer Key vault properties. */ +export interface KeyVaultProperties { + /** + * Currently, we support only SystemAssigned MSI. + * We need this when we support UserAssignedIdentities + */ + identityClientId?: string; + /** KeyVault key identifier to encrypt the data */ + keyIdentifier: string; + /** KeyVault Arm Id that contains the data encryption key */ + keyVaultArmId: string; } -/** Kubernetes Compute Schema */ -export interface KubernetesSchema { - /** Properties of Kubernetes */ - properties?: KubernetesProperties; +export interface FeatureStoreSettings { + computeRuntime?: ComputeRuntimeDto; + offlineStoreConnectionName?: string; + onlineStoreConnectionName?: string; } -/** Kubernetes properties */ -export interface KubernetesProperties { - /** Relay connection string. */ - relayConnectionString?: string; - /** ServiceBus connection string. */ - serviceBusConnectionString?: string; - /** Extension principal-id. */ - extensionPrincipalId?: string; - /** Extension instance release train. */ - extensionInstanceReleaseTrain?: string; - /** VC name. */ - vcName?: string; - /** Compute namespace */ - namespace?: string; - /** Default instance type */ - defaultInstanceType?: string; - /** Instance Type Schema */ - instanceTypes?: { [propertyName: string]: InstanceTypeSchema }; +export interface ComputeRuntimeDto { + sparkRuntimeVersion?: string; } -/** Instance type schema. */ -export interface InstanceTypeSchema { - /** Node Selector */ - nodeSelector?: { [propertyName: string]: string | null }; - /** Resource requests/limits for this instance type */ - resources?: InstanceTypeSchemaResources; +/** Managed Network settings for a machine learning workspace. */ +export interface ManagedNetworkSettings { + /** Isolation mode for the managed network of a machine learning workspace. */ + isolationMode?: IsolationMode; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly networkId?: string; + /** Dictionary of */ + outboundRules?: { [propertyName: string]: OutboundRuleUnion }; + /** Status of the Provisioning for the managed network of a machine learning workspace. */ + status?: ManagedNetworkProvisionStatus; } -/** Resource requests/limits for this instance type */ -export interface InstanceTypeSchemaResources { - /** Resource requests for this instance type */ - requests?: { [propertyName: string]: string }; - /** Resource limits for this instance type */ - limits?: { [propertyName: string]: string }; +/** Outbound Rule for the managed network of a machine learning workspace. */ +export interface OutboundRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "FQDN" | "PrivateEndpoint" | "ServiceTag"; + /** Category of a managed network Outbound Rule of a machine learning workspace. */ + category?: RuleCategory; + /** Type of a managed network Outbound Rule of a machine learning workspace. */ + status?: RuleStatus; } -/** AML Compute properties */ -export interface AmlComputeProperties { - /** Compute OS Type */ - osType?: OsType; - /** Virtual Machine Size */ - vmSize?: string; - /** Virtual Machine priority */ - vmPriority?: VmPriority; - /** Virtual Machine image for AML Compute - windows only */ - virtualMachineImage?: VirtualMachineImage; - /** Network is isolated or not */ - isolatedNetwork?: boolean; - /** Scale settings for AML Compute */ - scaleSettings?: ScaleSettings; - /** Credentials for an administrator user account that will be created on each compute node. */ - userAccountCredentials?: UserAccountCredentials; - /** Virtual network subnet resource ID the compute nodes belong to. */ - subnet?: ResourceId; - /** State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on all nodes of the cluster. Enabled - Indicates that the public ssh port is open on all nodes of the cluster. NotSpecified - Indicates that the public ssh port is closed on all nodes of the cluster if VNet is defined, else is open all public nodes. It can be default only during cluster creation time, after creation it will be either enabled or disabled. */ - remoteLoginPortPublicAccess?: RemoteLoginPortPublicAccess; - /** - * Allocation state of the compute. Possible values are: steady - Indicates that the compute is not resizing. There are no changes to the number of compute nodes in the compute in progress. A compute enters this state when it is created and when no operations are being performed on the compute to change the number of compute nodes. resizing - Indicates that the compute is resizing; that is, compute nodes are being added to or removed from the compute. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly allocationState?: AllocationState; - /** - * The time at which the compute entered its current allocation state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly allocationStateTransitionTime?: Date; - /** - * Collection of errors encountered by various compute nodes during node setup. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errors?: ErrorResponse[]; - /** - * The number of compute nodes currently assigned to the compute. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly currentNodeCount?: number; - /** - * The target number of compute nodes for the compute. If the allocationState is resizing, this property denotes the target node count for the ongoing resize operation. If the allocationState is steady, this property denotes the target node count for the previous resize operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly targetNodeCount?: number; - /** - * Counts of various node states on the compute. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nodeStateCounts?: NodeStateCounts; - /** Enable or disable node public IP address provisioning. Possible values are: Possible values are: true - Indicates that the compute nodes will have public IPs provisioned. false - Indicates that the compute nodes will have a private endpoint and no public IPs. */ - enableNodePublicIp?: boolean; - /** A property bag containing additional properties. */ - propertyBag?: Record; +/** Status of the Provisioning for the managed network of a machine learning workspace. */ +export interface ManagedNetworkProvisionStatus { + sparkReady?: boolean; + /** Status for the managed network of a machine learning workspace. */ + status?: ManagedNetworkStatus; } -/** Virtual Machine image for Windows AML Compute */ -export interface VirtualMachineImage { - /** Virtual Machine image path */ - id: string; +export interface NotebookResourceInfo { + fqdn?: string; + isPrivateLinkEnabled?: boolean; + /** The error that occurs when preparing notebook. */ + notebookPreparationError?: NotebookPreparationError; + /** the data plane resourceId that used to initialize notebook component */ + resourceId?: string; } -/** Settings for user account that gets created on each on the nodes of a compute. */ -export interface UserAccountCredentials { - /** Name of the administrator user account which can be used to SSH to nodes. */ - adminUserName: string; - /** SSH public key of the administrator user account. */ - adminUserSshPublicKey?: string; - /** Password of the administrator user account. */ - adminUserPassword?: string; +export interface NotebookPreparationError { + errorMessage?: string; + statusCode?: number; } -/** Counts of various compute node states on the amlCompute. */ -export interface NodeStateCounts { - /** - * Number of compute nodes in idle state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly idleNodeCount?: number; - /** - * Number of compute nodes which are running jobs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly runningNodeCount?: number; - /** - * Number of compute nodes which are being prepared. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly preparingNodeCount?: number; - /** - * Number of compute nodes which are in unusable state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly unusableNodeCount?: number; +/** The Private Endpoint resource. */ +export interface WorkspacePrivateEndpointResource { /** - * Number of compute nodes which are leaving the amlCompute. + * e.g. /subscriptions/{networkSubscriptionId}/resourceGroups/{rgName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName} * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly leavingNodeCount?: number; + readonly id?: string; /** - * Number of compute nodes which are in preempted state. + * The subnetId that the private endpoint is connected to. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly preemptedNodeCount?: number; + readonly subnetArmId?: string; } -/** Properties(top level) of AmlCompute */ -export interface AmlComputeSchema { - /** Properties of AmlCompute */ - properties?: AmlComputeProperties; +/** A collection of information about the state of the connection between service consumer and provider. */ +export interface PrivateLinkServiceConnectionState { + /** Some RP chose "None". Other RPs use this for region expansion. */ + actionsRequired?: string; + /** User-defined message that, per NRP doc, may be used for approval-related message. */ + description?: string; + /** Connection status of the service consumer with the service provider */ + status?: EndpointServiceConnectionStatus; } -/** Compute Instance properties */ -export interface ComputeInstanceProperties { - /** Virtual Machine Size */ - vmSize?: string; - /** Virtual network subnet resource ID the compute nodes belong to. */ - subnet?: ResourceId; - /** Policy for sharing applications on this compute instance among users of parent workspace. If Personal, only the creator can access applications on this compute instance. When Shared, any workspace user can access applications on this instance depending on his/her assigned role. */ - applicationSharingPolicy?: ApplicationSharingPolicy; - /** Specifies policy and settings for SSH access. */ - sshSettings?: ComputeInstanceSshSettings; - /** - * Describes all connectivity endpoints available for this ComputeInstance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly connectivityEndpoints?: ComputeInstanceConnectivityEndpoints; - /** - * Describes available applications and their endpoints on this ComputeInstance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly applications?: ComputeInstanceApplication[]; - /** - * Describes information on user who created this ComputeInstance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly createdBy?: ComputeInstanceCreatedBy; - /** - * Collection of errors encountered on this ComputeInstance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errors?: ErrorResponse[]; - /** - * The current state of this ComputeInstance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly state?: ComputeInstanceState; - /** The Compute Instance Authorization type. Available values are personal (default). */ - computeInstanceAuthorizationType?: ComputeInstanceAuthorizationType; - /** Settings for a personal compute instance. */ - personalComputeInstanceSettings?: PersonalComputeInstanceSettings; - /** Details of customized scripts to execute for setting up the cluster. */ - setupScripts?: SetupScripts; +export interface ServiceManagedResourcesSettings { + cosmosDb?: CosmosDbSettings; +} + +export interface CosmosDbSettings { + collectionsThroughput?: number; +} + +export interface SharedPrivateLinkResource { + /** Unique name of the private link */ + name?: string; + /** group id of the private link */ + groupId?: string; + /** the resource id that private link links to */ + privateLinkResourceId?: string; + /** Request message */ + requestMessage?: string; + /** Connection status of the service consumer with the service provider */ + status?: EndpointServiceConnectionStatus; +} + +/** WorkspaceHub's configuration object. */ +export interface WorkspaceHubConfig { + additionalWorkspaceStorageAccounts?: string[]; + defaultWorkspaceResourceGroup?: string; +} + +/** The parameters for updating a machine learning workspace. */ +export interface WorkspaceUpdateParameters { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; + /** Optional. This field is required to be implemented by the RP because AML is supporting more than one tier */ + sku?: Sku; + /** The resource tags for the machine learning workspace. */ + tags?: { [propertyName: string]: string }; + /** ARM id of the application insights associated with this workspace. */ + applicationInsights?: string; + /** ARM id of the container registry associated with this workspace. */ + containerRegistry?: string; + /** The description of this workspace. */ + description?: string; + enableDataIsolation?: boolean; + encryption?: EncryptionUpdateProperties; + /** Settings for feature store type workspace. */ + featureStoreSettings?: FeatureStoreSettings; + /** The friendly name for this workspace. This name in mutable */ + friendlyName?: string; + /** The compute name for image build */ + imageBuildCompute?: string; + /** Managed Network settings for a machine learning workspace. */ + managedNetwork?: ManagedNetworkSettings; + /** The user assigned identity resource id that represents the workspace identity. */ + primaryUserAssignedIdentity?: string; + /** Whether requests from Public Network are allowed. */ + publicNetworkAccess?: PublicNetworkAccessType; + /** The service managed resource settings. */ + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; + /** Retention time in days after workspace get soft deleted. */ + softDeleteRetentionInDays?: number; + /** Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. */ + v1LegacyMode?: boolean; +} + +export interface EncryptionUpdateProperties { + keyVaultProperties: EncryptionKeyVaultUpdateProperties; +} + +export interface EncryptionKeyVaultUpdateProperties { + keyIdentifier: string; +} + +export interface WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult { + nextLink?: string; + value?: WorkspaceConnectionPropertiesV2BasicResource[]; +} + +export interface WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: + | "AccessKey" + | "ApiKey" + | "CustomKeys" + | "ManagedIdentity" + | "None" + | "PAT" + | "SAS" + | "ServicePrincipal" + | "UsernamePassword"; + /** Category of the connection */ + category?: ConnectionCategory; + expiryTime?: Date; + /** Any object */ + metadata?: Record; + target?: string; +} + +/** The properties that the machine learning workspace connection will be updated with. */ +export interface WorkspaceConnectionUpdateParameter { + /** The properties that the machine learning workspace connection will be updated with. */ + properties?: WorkspaceConnectionPropertiesV2Union; +} + +/** Parameters to diagnose a workspace */ +export interface DiagnoseWorkspaceParameters { + value?: DiagnoseRequestProperties; +} + +export interface DiagnoseRequestProperties { + /** Setting for diagnosing dependent application insights */ + applicationInsights?: { [propertyName: string]: any }; + /** Setting for diagnosing dependent container registry */ + containerRegistry?: { [propertyName: string]: any }; + /** Setting for diagnosing dns resolution */ + dnsResolution?: { [propertyName: string]: any }; + /** Setting for diagnosing dependent key vault */ + keyVault?: { [propertyName: string]: any }; + /** Setting for diagnosing network security group */ + nsg?: { [propertyName: string]: any }; + /** Setting for diagnosing unclassified category of problems */ + others?: { [propertyName: string]: any }; + /** Setting for diagnosing resource lock */ + resourceLock?: { [propertyName: string]: any }; + /** Setting for diagnosing dependent storage account */ + storageAccount?: { [propertyName: string]: any }; + /** Setting for diagnosing user defined routing */ + udr?: { [propertyName: string]: any }; +} + +export interface DiagnoseResponseResult { + value?: DiagnoseResponseResultValue; +} + +export interface DiagnoseResponseResultValue { + userDefinedRouteResults?: DiagnoseResult[]; + networkSecurityRuleResults?: DiagnoseResult[]; + resourceLockResults?: DiagnoseResult[]; + dnsResolutionResults?: DiagnoseResult[]; + storageAccountResults?: DiagnoseResult[]; + keyVaultResults?: DiagnoseResult[]; + containerRegistryResults?: DiagnoseResult[]; + applicationInsightsResults?: DiagnoseResult[]; + otherResults?: DiagnoseResult[]; +} + +/** Result of Diagnose */ +export interface DiagnoseResult { /** - * The last operation on ComputeInstance. + * Code for workspace setup error * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastOperation?: ComputeInstanceLastOperation; + readonly code?: string; /** - * The list of schedules to be applied on the computes. + * Level of workspace setup error * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly schedules?: ComputeSchedules; - /** Enable or disable node public IP address provisioning. Possible values are: Possible values are: true - Indicates that the compute nodes will have public IPs provisioned. false - Indicates that the compute nodes will have a private endpoint and no public IPs. */ - enableNodePublicIp?: boolean; + readonly level?: DiagnoseResultLevel; /** - * Describes informations of containers on this ComputeInstance. + * Message of workspace setup error * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly containers?: ComputeInstanceContainer[]; + readonly message?: string; +} + +export interface ListWorkspaceKeysResult { /** - * Describes informations of dataDisks on this ComputeInstance. + * The access key of the workspace app insights * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly dataDisks?: ComputeInstanceDataDisk[]; + readonly appInsightsInstrumentationKey?: string; + containerRegistryCredentials?: RegistryListCredentialsResult; + notebookAccessKeys?: ListNotebookKeysResult; /** - * Describes informations of dataMounts on this ComputeInstance. + * The arm Id key of the workspace storage * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly dataMounts?: ComputeInstanceDataMount[]; + readonly userStorageArmId?: string; /** - * ComputeInstance version. + * The access key of the workspace storage * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly versions?: ComputeInstanceVersion; + readonly userStorageKey?: string; } -/** Specifies policy and settings for SSH access. */ -export interface ComputeInstanceSshSettings { - /** State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh port is open and accessible according to the VNet/subnet policy if applicable. */ - sshPublicAccess?: SshPublicAccess; +export interface RegistryListCredentialsResult { /** - * Describes the admin user name. + * The location of the workspace ACR * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly adminUserName?: string; + readonly location?: string; + passwords?: Password[]; /** - * Describes the port for connecting through SSH. + * The username of the workspace ACR * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sshPort?: number; - /** Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs. */ - adminPublicKey?: string; + readonly username?: string; } -/** Defines all connectivity endpoints and properties for an ComputeInstance. */ -export interface ComputeInstanceConnectivityEndpoints { +export interface Password { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly name?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly value?: string; +} + +export interface ListNotebookKeysResult { /** - * Public IP Address of this ComputeInstance. + * The primary access key of the Notebook * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly publicIpAddress?: string; + readonly primaryAccessKey?: string; /** - * Private IP Address of this ComputeInstance (local to the VNET in which the compute instance is deployed). + * The secondary access key of the Notebook * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateIpAddress?: string; + readonly secondaryAccessKey?: string; } -/** Defines an Aml Instance application and its connectivity endpoint URI. */ -export interface ComputeInstanceApplication { - /** Name of the ComputeInstance application. */ - displayName?: string; - /** Application' endpoint URI. */ - endpointUri?: string; +export interface NotebookAccessTokenResult { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly accessToken?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly expiresIn?: number; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly hostName?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly notebookResourceId?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly publicDns?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly refreshToken?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly scope?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly tokenType?: string; } -/** Describes information on user who created this ComputeInstance. */ -export interface ComputeInstanceCreatedBy { - /** - * Name of the user. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly userName?: string; - /** - * Uniquely identifies user' Azure Active Directory organization. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly userOrgId?: string; +export interface ListStorageAccountKeysResult { /** - * Uniquely identifies the user within his/her organization. + * The access key of the storage * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly userId?: string; + readonly userStorageKey?: string; } -/** Settings for a personal compute instance. */ -export interface PersonalComputeInstanceSettings { - /** A user explicitly assigned to a personal compute instance. */ - assignedUser?: AssignedUser; +export interface ExternalFqdnResponse { + value?: FqdnEndpointsPropertyBag[]; } -/** A user that can be assigned to a compute instance. */ -export interface AssignedUser { - /** User’s AAD Object Id. */ - objectId: string; - /** User’s AAD Tenant Id. */ - tenantId: string; +/** Property bag for FQDN endpoints result */ +export interface FqdnEndpointsPropertyBag { + properties?: FqdnEndpoints; } -/** Details of customized scripts to execute for setting up the cluster. */ -export interface SetupScripts { - /** Customized setup scripts */ - scripts?: ScriptsToExecute; +export interface FqdnEndpoints { + category?: string; + endpoints?: FqdnEndpoint[]; } -/** Customized setup scripts */ -export interface ScriptsToExecute { - /** Script that's run every time the machine starts. */ - startupScript?: ScriptReference; - /** Script that's run only once during provision of the compute. */ - creationScript?: ScriptReference; +export interface FqdnEndpoint { + domainName?: string; + endpointDetails?: FqdnEndpointDetail[]; } -/** Script reference */ -export interface ScriptReference { - /** The storage source of the script: workspace. */ - scriptSource?: string; - /** The location of scripts in the mounted volume. */ - scriptData?: string; - /** Optional command line arguments passed to the script to run. */ - scriptArguments?: string; - /** Optional time period passed to timeout command. */ - timeout?: string; +export interface FqdnEndpointDetail { + port?: number; } -/** The last operation on ComputeInstance. */ -export interface ComputeInstanceLastOperation { - /** Name of the last operation. */ - operationName?: OperationName; - /** Time of the last operation. */ - operationTime?: Date; - /** Operation status. */ - operationStatus?: OperationStatus; - /** Trigger of operation. */ - operationTrigger?: OperationTrigger; +/** List of outbound rules for the managed network of a machine learning workspace. */ +export interface OutboundRuleListResult { + /** The link to the next page constructed using the continuationToken. If null, there are no additional pages. */ + nextLink?: string; + /** The list of machine learning workspaces. Since this list may be incomplete, the nextLink field should be used to request the next list of machine learning workspaces. */ + value?: OutboundRuleBasicResource[]; } -/** The list of schedules to be applied on the computes */ -export interface ComputeSchedules { - /** The list of compute start stop schedules to be applied. */ - computeStartStop?: ComputeStartStopSchedule[]; +/** List of private endpoint connection associated with the specified workspace */ +export interface PrivateEndpointConnectionListResult { + /** Array of private endpoint connections */ + value?: PrivateEndpointConnection[]; } -/** Compute start stop schedule properties */ -export interface ComputeStartStopSchedule { - /** - * A system assigned id for the schedule. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The current deployment state of schedule. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningStatus?: ProvisioningStatus; - /** Is the schedule enabled or disabled? */ - status?: ScheduleStatus; - /** [Required] The compute power action. */ - action?: ComputePowerAction; - /** [Required] The schedule trigger type. */ - triggerType?: TriggerType; - /** Required if triggerType is Recurrence. */ - recurrence?: RecurrenceTrigger; - /** Required if triggerType is Cron. */ - cron?: CronTrigger; - /** [Deprecated] Not used any more. */ - schedule?: ScheduleBase; +/** A list of private link resources */ +export interface PrivateLinkResourceListResult { + value?: PrivateLinkResource[]; } -export interface RecurrenceSchedule { - /** [Required] List of hours for the schedule. */ - hours: number[]; - /** [Required] List of minutes for the schedule. */ - minutes: number[]; - /** List of month days for the schedule */ - monthDays?: number[]; - /** List of days for the schedule. */ - weekDays?: WeekDay[]; +/** Managed Network Provisioning options for managed network of a machine learning workspace. */ +export interface ManagedNetworkProvisionOptions { + includeSpark?: boolean; } -export interface ScheduleBase { - /** A system assigned id for the schedule. */ - id?: string; - /** The current deployment state of schedule. */ - provisioningStatus?: ScheduleProvisioningState; - /** Is the schedule enabled or disabled? */ - status?: ScheduleStatus; +/** Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet. */ +export interface ResourceId { + /** The ID of the resource */ + id: string; } -/** Defines an Aml Instance container. */ -export interface ComputeInstanceContainer { - /** Name of the ComputeInstance container. */ - name?: string; - /** Auto save settings. */ - autosave?: Autosave; - /** Information of GPU. */ - gpu?: string; - /** network of this container. */ - network?: Network; - /** Environment information of this container. */ - environment?: ComputeInstanceEnvironmentInfo; +export interface AKSSchema { + /** AKS properties */ + properties?: AKSSchemaProperties; +} + +/** AKS properties */ +export interface AKSSchemaProperties { + /** Cluster full qualified domain name */ + clusterFqdn?: string; /** - * services of this containers. + * System services * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly services?: Record[]; -} - -/** Environment information */ -export interface ComputeInstanceEnvironmentInfo { - /** name of environment. */ - name?: string; - /** version of environment. */ - version?: string; -} - -/** Defines an Aml Instance DataDisk. */ -export interface ComputeInstanceDataDisk { - /** Caching type of Data Disk. */ - caching?: Caching; - /** The initial disk size in gigabytes. */ - diskSizeGB?: number; - /** The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun. */ - lun?: number; - /** type of this storage account. */ - storageAccountType?: StorageAccountType; -} - -/** Defines an Aml Instance DataMount. */ -export interface ComputeInstanceDataMount { - /** Source of the ComputeInstance data mount. */ - source?: string; - /** Data source type. */ - sourceType?: SourceType; - /** name of the ComputeInstance data mount. */ - mountName?: string; - /** Mount Action. */ - mountAction?: MountAction; - /** who this data mount created by. */ - createdBy?: string; - /** Path of this data mount. */ - mountPath?: string; - /** Mount state. */ - mountState?: MountState; - /** The time when the disk mounted. */ - mountedOn?: Date; - /** Error of this data mount. */ - error?: string; -} - -/** Version of computeInstance. */ -export interface ComputeInstanceVersion { - /** Runtime of compute instance. */ - runtime?: string; -} - -/** Properties(top level) of ComputeInstance */ -export interface ComputeInstanceSchema { - /** Properties of ComputeInstance */ - properties?: ComputeInstanceProperties; + readonly systemServices?: SystemService[]; + /** Number of agents */ + agentCount?: number; + /** Agent virtual machine size */ + agentVmSize?: string; + /** Intended usage of the cluster */ + clusterPurpose?: ClusterPurpose; + /** SSL configuration */ + sslConfiguration?: SslConfiguration; + /** AKS networking configuration for vnet */ + aksNetworkingConfiguration?: AksNetworkingConfiguration; + /** Load Balancer Type */ + loadBalancerType?: LoadBalancerType; + /** Load Balancer Subnet */ + loadBalancerSubnet?: string; } -export interface VirtualMachineSchema { - properties?: VirtualMachineSchemaProperties; +/** A system service running on a compute. */ +export interface SystemService { + /** + * The type of this system service. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemServiceType?: string; + /** + * Public IP address + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly publicIpAddress?: string; + /** + * The version for this type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly version?: string; } -export interface VirtualMachineSchemaProperties { - /** Virtual Machine size */ - virtualMachineSize?: string; - /** Port open for ssh connections. */ - sshPort?: number; - /** Notebook server port open for ssh connections. */ - notebookServerPort?: number; - /** Public IP address of the virtual machine. */ - address?: string; - /** Admin credentials for virtual machine */ - administratorAccount?: VirtualMachineSshCredentials; - /** Indicates whether this compute will be used for running notebooks. */ - isNotebookInstanceCompute?: boolean; +/** The ssl configuration for scoring */ +export interface SslConfiguration { + /** Enable or disable ssl for scoring */ + status?: SslConfigStatus; + /** Cert data */ + cert?: string; + /** Key data */ + key?: string; + /** CNAME of the cert */ + cname?: string; + /** Leaf domain label of public endpoint */ + leafDomainLabel?: string; + /** Indicates whether to overwrite existing domain label. */ + overwriteExistingDomain?: boolean; } -/** Admin credentials for virtual machine */ -export interface VirtualMachineSshCredentials { - /** Username of admin account */ - username?: string; - /** Password of admin account */ - password?: string; - /** Public key data */ - publicKeyData?: string; - /** Private key data */ - privateKeyData?: string; +/** Advance configuration for AKS networking */ +export interface AksNetworkingConfiguration { + /** Virtual network subnet resource ID the compute nodes belong to */ + subnetId?: string; + /** A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges. */ + serviceCidr?: string; + /** An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr. */ + dnsServiceIP?: string; + /** A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any Subnet IP ranges or the Kubernetes service address range. */ + dockerBridgeCidr?: string; } -/** HDInsight compute properties */ -export interface HDInsightProperties { - /** Port open for ssh connections on the master node of the cluster. */ - sshPort?: number; - /** Public IP address of the master node of the cluster. */ - address?: string; - /** Admin credentials for master node of the cluster */ - administratorAccount?: VirtualMachineSshCredentials; +/** Kubernetes Compute Schema */ +export interface KubernetesSchema { + /** Properties of Kubernetes */ + properties?: KubernetesProperties; } -export interface HDInsightSchema { - /** HDInsight compute properties */ - properties?: HDInsightProperties; +/** Kubernetes properties */ +export interface KubernetesProperties { + /** Relay connection string. */ + relayConnectionString?: string; + /** ServiceBus connection string. */ + serviceBusConnectionString?: string; + /** Extension principal-id. */ + extensionPrincipalId?: string; + /** Extension instance release train. */ + extensionInstanceReleaseTrain?: string; + /** VC name. */ + vcName?: string; + /** Compute namespace */ + namespace?: string; + /** Default instance type */ + defaultInstanceType?: string; + /** Instance Type Schema */ + instanceTypes?: { [propertyName: string]: InstanceTypeSchema }; } -/** Properties of Databricks */ -export interface DatabricksProperties { - /** Databricks access token */ - databricksAccessToken?: string; - /** Workspace Url */ - workspaceUrl?: string; +/** Instance type schema. */ +export interface InstanceTypeSchema { + /** Node Selector */ + nodeSelector?: { [propertyName: string]: string | null }; + /** Resource requests/limits for this instance type */ + resources?: InstanceTypeSchemaResources; } -export interface DatabricksSchema { - /** Properties of Databricks */ - properties?: DatabricksProperties; +/** Resource requests/limits for this instance type */ +export interface InstanceTypeSchemaResources { + /** Resource requests for this instance type */ + requests?: { [propertyName: string]: string }; + /** Resource limits for this instance type */ + limits?: { [propertyName: string]: string }; } -export interface DataLakeAnalyticsSchema { - properties?: DataLakeAnalyticsSchemaProperties; -} - -export interface DataLakeAnalyticsSchemaProperties { - /** DataLake Store Account Name */ - dataLakeStoreAccountName?: string; -} - -export interface SynapseSparkProperties { - /** Auto scale properties. */ - autoScaleProperties?: AutoScaleProperties; - /** Auto pause properties. */ - autoPauseProperties?: AutoPauseProperties; - /** Spark version. */ - sparkVersion?: string; - /** The number of compute nodes currently assigned to the compute. */ - nodeCount?: number; - /** Node size. */ - nodeSize?: string; - /** Node size family. */ - nodeSizeFamily?: string; - /** Azure subscription identifier. */ - subscriptionId?: string; - /** Name of the resource group in which workspace is located. */ - resourceGroup?: string; - /** Name of Azure Machine Learning workspace. */ - workspaceName?: string; - /** Pool name. */ - poolName?: string; +/** AML Compute properties */ +export interface AmlComputeProperties { + /** Compute OS Type */ + osType?: OsType; + /** Virtual Machine Size */ + vmSize?: string; + /** Virtual Machine priority */ + vmPriority?: VmPriority; + /** Virtual Machine image for AML Compute - windows only */ + virtualMachineImage?: VirtualMachineImage; + /** Network is isolated or not */ + isolatedNetwork?: boolean; + /** Scale settings for AML Compute */ + scaleSettings?: ScaleSettings; + /** Credentials for an administrator user account that will be created on each compute node. */ + userAccountCredentials?: UserAccountCredentials; + /** Virtual network subnet resource ID the compute nodes belong to. */ + subnet?: ResourceId; + /** State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on all nodes of the cluster. Enabled - Indicates that the public ssh port is open on all nodes of the cluster. NotSpecified - Indicates that the public ssh port is closed on all nodes of the cluster if VNet is defined, else is open all public nodes. It can be default only during cluster creation time, after creation it will be either enabled or disabled. */ + remoteLoginPortPublicAccess?: RemoteLoginPortPublicAccess; + /** + * Allocation state of the compute. Possible values are: steady - Indicates that the compute is not resizing. There are no changes to the number of compute nodes in the compute in progress. A compute enters this state when it is created and when no operations are being performed on the compute to change the number of compute nodes. resizing - Indicates that the compute is resizing; that is, compute nodes are being added to or removed from the compute. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly allocationState?: AllocationState; + /** + * The time at which the compute entered its current allocation state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly allocationStateTransitionTime?: Date; + /** + * Collection of errors encountered by various compute nodes during node setup. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errors?: ErrorResponse[]; + /** + * The number of compute nodes currently assigned to the compute. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentNodeCount?: number; + /** + * The target number of compute nodes for the compute. If the allocationState is resizing, this property denotes the target node count for the ongoing resize operation. If the allocationState is steady, this property denotes the target node count for the previous resize operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly targetNodeCount?: number; + /** + * Counts of various node states on the compute. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nodeStateCounts?: NodeStateCounts; + /** Enable or disable node public IP address provisioning. Possible values are: Possible values are: true - Indicates that the compute nodes will have public IPs provisioned. false - Indicates that the compute nodes will have a private endpoint and no public IPs. */ + enableNodePublicIp?: boolean; + /** A property bag containing additional properties. */ + propertyBag?: Record; } -/** Auto scale properties */ -export interface AutoScaleProperties { - minNodeCount?: number; - enabled?: boolean; - maxNodeCount?: number; +/** Virtual Machine image for Windows AML Compute */ +export interface VirtualMachineImage { + /** Virtual Machine image path */ + id: string; } -/** Auto pause properties */ -export interface AutoPauseProperties { - delayInMinutes?: number; - enabled?: boolean; +/** Settings for user account that gets created on each on the nodes of a compute. */ +export interface UserAccountCredentials { + /** Name of the administrator user account which can be used to SSH to nodes. */ + adminUserName: string; + /** SSH public key of the administrator user account. */ + adminUserSshPublicKey?: string; + /** Password of the administrator user account. */ + adminUserPassword?: string; } -/** Properties of AksComputeSecrets */ -export interface AksComputeSecretsProperties { - /** Content of kubeconfig file that can be used to connect to the Kubernetes cluster. */ - userKubeConfig?: string; - /** Content of kubeconfig file that can be used to connect to the Kubernetes cluster. */ - adminKubeConfig?: string; - /** Image registry pull secret. */ - imagePullSecretName?: string; +/** Counts of various compute node states on the amlCompute. */ +export interface NodeStateCounts { + /** + * Number of compute nodes in idle state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly idleNodeCount?: number; + /** + * Number of compute nodes which are running jobs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly runningNodeCount?: number; + /** + * Number of compute nodes which are being prepared. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly preparingNodeCount?: number; + /** + * Number of compute nodes which are in unusable state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly unusableNodeCount?: number; + /** + * Number of compute nodes which are leaving the amlCompute. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly leavingNodeCount?: number; + /** + * Number of compute nodes which are in preempted state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly preemptedNodeCount?: number; } -export interface VirtualMachineSecretsSchema { - /** Admin credentials for virtual machine. */ - administratorAccount?: VirtualMachineSshCredentials; +/** Properties(top level) of AmlCompute */ +export interface AmlComputeSchema { + /** Properties of AmlCompute */ + properties?: AmlComputeProperties; } -/** Properties of Databricks Compute Secrets */ -export interface DatabricksComputeSecretsProperties { - /** access token for databricks account. */ - databricksAccessToken?: string; +/** Compute Instance properties */ +export interface ComputeInstanceProperties { + /** Virtual Machine Size */ + vmSize?: string; + /** Virtual network subnet resource ID the compute nodes belong to. */ + subnet?: ResourceId; + /** Policy for sharing applications on this compute instance among users of parent workspace. If Personal, only the creator can access applications on this compute instance. When Shared, any workspace user can access applications on this instance depending on his/her assigned role. */ + applicationSharingPolicy?: ApplicationSharingPolicy; + /** Specifies settings for autologger. */ + autologgerSettings?: ComputeInstanceAutologgerSettings; + /** Specifies policy and settings for SSH access. */ + sshSettings?: ComputeInstanceSshSettings; + /** List of Custom Services added to the compute. */ + customServices?: CustomService[]; + /** + * Returns metadata about the operating system image for this compute instance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly osImageMetadata?: ImageMetadata; + /** + * Describes all connectivity endpoints available for this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly connectivityEndpoints?: ComputeInstanceConnectivityEndpoints; + /** + * Describes available applications and their endpoints on this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly applications?: ComputeInstanceApplication[]; + /** + * Describes information on user who created this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdBy?: ComputeInstanceCreatedBy; + /** + * Collection of errors encountered on this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errors?: ErrorResponse[]; + /** + * The current state of this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: ComputeInstanceState; + /** The Compute Instance Authorization type. Available values are personal (default). */ + computeInstanceAuthorizationType?: ComputeInstanceAuthorizationType; + /** Enable Auto OS Patching. Possible values are: true, false. */ + enableOSPatching?: boolean; + /** Release quota if compute instance stopped. Possible values are: true - release quota if compute instance stopped. false - don't release quota when compute instance stopped. */ + releaseQuotaOnStop?: boolean; + /** Settings for a personal compute instance. */ + personalComputeInstanceSettings?: PersonalComputeInstanceSettings; + /** Details of customized scripts to execute for setting up the cluster. */ + setupScripts?: SetupScripts; + /** + * The last operation on ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastOperation?: ComputeInstanceLastOperation; + /** The list of schedules to be applied on the computes. */ + schedules?: ComputeSchedules; + /** 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; + /** + * Describes informations of containers on this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly containers?: ComputeInstanceContainer[]; + /** + * Describes informations of dataDisks on this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dataDisks?: ComputeInstanceDataDisk[]; + /** + * Describes informations of dataMounts on this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dataMounts?: ComputeInstanceDataMount[]; + /** + * ComputeInstance version. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly versions?: ComputeInstanceVersion; } -export interface WorkspaceConnectionUsernamePassword { - username?: string; - password?: string; +/** Specifies settings for autologger. */ +export interface ComputeInstanceAutologgerSettings { + /** Indicates whether mlflow autologger is enabled for notebooks. */ + mlflowAutologger?: MlflowAutologger; } -export interface WorkspaceConnectionPersonalAccessToken { - pat?: string; +/** Specifies policy and settings for SSH access. */ +export interface ComputeInstanceSshSettings { + /** State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh port is open and accessible according to the VNet/subnet policy if applicable. */ + sshPublicAccess?: SshPublicAccess; + /** + * Describes the admin user name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly adminUserName?: string; + /** + * Describes the port for connecting through SSH. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sshPort?: number; + /** Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs. */ + adminPublicKey?: string; } -export interface WorkspaceConnectionSharedAccessSignature { - sas?: string; +/** Returns metadata about the operating system image for this compute instance. */ +export interface ImageMetadata { + /** Specifies the current operating system image version this compute instance is running on. */ + currentImageVersion?: string; + /** Specifies the latest available operating system image version. */ + latestImageVersion?: string; + /** Specifies whether this compute instance is running on the latest operating system image. */ + isLatestOsImageVersion?: boolean; + /** + * Metadata about the os patching. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly osPatchingStatus?: OsPatchingStatus; } -export interface WorkspaceConnectionManagedIdentity { - resourceId?: string; - clientId?: string; +/** Returns metadata about the os patching. */ +export interface OsPatchingStatus { + /** The os patching status. */ + patchStatus?: PatchStatus; + /** Time of the latest os patching. */ + latestPatchTime?: string; + /** Specifies whether this compute instance is pending for reboot to finish os patching. */ + rebootPending?: boolean; + /** Time of scheduled reboot. */ + scheduledRebootTime?: string; } -/** Asset input type. */ -export interface AssetJobInput { - /** Input Asset Delivery Mode. */ - mode?: InputDeliveryMode; - /** [Required] Input Asset URI. */ - uri: string; -} - -/** Asset output type. */ -export interface AssetJobOutput { - /** Output Asset Delivery Mode. */ - mode?: OutputDeliveryMode; - /** Output Asset URI. */ - 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"; +/** Defines all connectivity endpoints and properties for an ComputeInstance. */ +export interface ComputeInstanceConnectivityEndpoints { + /** + * Public IP Address of this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly publicIpAddress?: string; + /** + * Private IP Address of this ComputeInstance (local to the VNET in which the compute instance is deployed). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateIpAddress?: string; } -/** 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; +/** Defines an Aml Instance application and its connectivity endpoint URI. */ +export interface ComputeInstanceApplication { + /** Name of the ComputeInstance application. */ + displayName?: string; + /** Application' endpoint URI. */ + endpointUri?: string; } -/** - * 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; +/** Describes information on user who created this ComputeInstance. */ +export interface ComputeInstanceCreatedBy { /** - * Target column name: This is prediction values column. - * Also known as label column name in context of classification tasks. + * Name of the user. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - targetColumnName?: string; - /** [Required] Training data input. */ - trainingData: MLTableJobInput; + readonly userName?: string; + /** + * Uniquely identifies user' Azure Active Directory organization. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly userOrgId?: string; + /** + * Uniquely identifies the user within his/her organization. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly userId?: string; } -/** 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; +/** Settings for a personal compute instance. */ +export interface PersonalComputeInstanceSettings { + /** A user explicitly assigned to a personal compute instance. */ + assignedUser?: AssignedUser; } -/** N-Cross validations value. */ -export interface NCrossValidations { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto" | "Custom"; +/** A user that can be assigned to a compute instance. */ +export interface AssignedUser { + /** User’s AAD Object Id. */ + objectId: string; + /** User’s AAD Tenant Id. */ + tenantId: string; } -/** Forecasting seasonality. */ -export interface Seasonality { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto" | "Custom"; +/** Details of customized scripts to execute for setting up the cluster. */ +export interface SetupScripts { + /** Customized setup scripts */ + scripts?: ScriptsToExecute; } -/** 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"; +/** Customized setup scripts */ +export interface ScriptsToExecute { + /** Script that's run every time the machine starts. */ + startupScript?: ScriptReference; + /** Script that's run only once during provision of the compute. */ + creationScript?: ScriptReference; } -/** Forecasting target rolling window size. */ -export interface TargetRollingWindowSize { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto" | "Custom"; +/** Script reference */ +export interface ScriptReference { + /** The storage source of the script: inline, workspace. */ + scriptSource?: string; + /** The location of scripts in the mounted volume. */ + scriptData?: string; + /** Optional command line arguments passed to the script to run. */ + scriptArguments?: string; + /** Optional time period passed to timeout command. */ + timeout?: string; } -/** Early termination policies enable canceling poor-performing runs before they complete */ -export interface EarlyTerminationPolicy { - /** Polymorphic discriminator, which specifies the different types this object can be */ - policyType: "Bandit" | "MedianStopping" | "TruncationSelection"; - /** Number of intervals by which to delay the first evaluation. */ - delayEvaluation?: number; - /** Interval (number of runs) between policy evaluations. */ - evaluationInterval?: number; +/** The last operation on ComputeInstance. */ +export interface ComputeInstanceLastOperation { + /** Name of the last operation. */ + operationName?: OperationName; + /** Time of the last operation. */ + operationTime?: Date; + /** Operation status. */ + operationStatus?: OperationStatus; + /** Trigger of operation. */ + operationTrigger?: OperationTrigger; } -/** - * The Sampling Algorithm used to generate hyperparameter values, along with properties to - * configure the algorithm - */ -export interface SamplingAlgorithm { - /** Polymorphic discriminator, which specifies the different types this object can be */ - samplingAlgorithmType: "Bayesian" | "Grid" | "Random"; +/** The list of schedules to be applied on the computes */ +export interface ComputeSchedules { + /** The list of compute start stop schedules to be applied. */ + computeStartStop?: ComputeStartStopSchedule[]; } -/** 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; +/** Compute start stop schedule properties */ +export interface ComputeStartStopSchedule { /** - * 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. + * A system assigned id for the schedule. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - ensembleModelDownloadTimeout?: string; - /** Stack ensemble settings for stack ensemble run. */ - stackEnsembleSettings?: StackEnsembleSettings; + readonly id?: string; + /** + * The current deployment state of schedule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatus?: ProvisioningStatus; + /** Is the schedule enabled or disabled? */ + status?: ScheduleStatus; + /** [Required] The compute power action. */ + action?: ComputePowerAction; + /** [Required] The schedule trigger type. */ + triggerType?: TriggerType; + /** Required if triggerType is Recurrence. */ + recurrence?: Recurrence; + /** Required if triggerType is Cron. */ + cron?: Cron; + /** [Deprecated] Not used any more. */ + schedule?: ScheduleBase; } -/** 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; +/** The workflow trigger recurrence for ComputeStartStop schedule type. */ +export interface Recurrence { + /** [Required] The frequency to trigger schedule. */ + frequency?: RecurrenceFrequency; + /** [Required] Specifies schedule interval in conjunction with frequency */ + interval?: number; + /** The start time in yyyy-MM-ddTHH:mm:ss format. */ + startTime?: string; + /** + * Specifies time zone in which the schedule runs. + * TimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11 + */ + timeZone?: string; + /** [Required] The recurrence schedule. */ + schedule?: RecurrenceSchedule; } -/** 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; +/** The workflow trigger cron for ComputeStartStop schedule type. */ +export interface Cron { + /** The start time in yyyy-MM-ddTHH:mm:ss format. */ + startTime?: string; /** - * Number of cross validation folds to be applied on training dataset - * when validation dataset is not provided. + * 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 */ - nCrossValidations?: NCrossValidationsUnion; - /** Test data input. */ - testData?: MLTableJobInput; + timeZone?: string; /** - * 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. + * [Required] Specifies cron expression of schedule. + * The expression should follow NCronTab format. */ - 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; + expression?: string; } -/** Column transformer parameters. */ -export interface ColumnTransformer { - /** Fields to apply transformer logic on. */ - fields?: string[]; +export interface ScheduleBase { + /** A system assigned id for the schedule. */ + id?: string; + /** The current deployment state of schedule. */ + provisioningStatus?: ScheduleProvisioningState; + /** Is the schedule enabled or disabled? */ + status?: ScheduleStatus; +} + +/** Defines an Aml Instance container. */ +export interface ComputeInstanceContainer { + /** Name of the ComputeInstance container. */ + name?: string; + /** Auto save settings. */ + autosave?: Autosave; + /** Information of GPU. */ + gpu?: string; + /** network of this container. */ + network?: Network; + /** Environment information of this container. */ + environment?: ComputeInstanceEnvironmentInfo; /** - * Different properties to be passed to transformer. - * Input expected is dictionary of key,value pairs in JSON format. + * services of this containers. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - parameters?: Record; + readonly services?: Record[]; } -/** Featurization Configuration. */ -export interface FeaturizationSettings { - /** Dataset language, useful for the text data. */ - datasetLanguage?: string; +/** Environment information */ +export interface ComputeInstanceEnvironmentInfo { + /** name of environment. */ + name?: string; + /** version of environment. */ + version?: 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; +/** Defines an Aml Instance DataDisk. */ +export interface ComputeInstanceDataDisk { + /** Caching type of Data Disk. */ + caching?: Caching; + /** The initial disk size in gigabytes. */ + diskSizeGB?: number; + /** The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun. */ + lun?: number; + /** type of this storage account. */ + storageAccountType?: StorageAccountType; } -/** Base definition for job distribution configuration. */ -export interface DistributionConfiguration { - /** Polymorphic discriminator, which specifies the different types this object can be */ - distributionType: "Mpi" | "PyTorch" | "TensorFlow"; +/** Defines an Aml Instance DataMount. */ +export interface ComputeInstanceDataMount { + /** Source of the ComputeInstance data mount. */ + source?: string; + /** Data source type. */ + sourceType?: SourceType; + /** name of the ComputeInstance data mount. */ + mountName?: string; + /** Mount Action. */ + mountAction?: MountAction; + /** who this data mount created by. */ + createdBy?: string; + /** Path of this data mount. */ + mountPath?: string; + /** Mount state. */ + mountState?: MountState; + /** The time when the disk mounted. */ + mountedOn?: Date; + /** Error of this data mount. */ + error?: string; } -export interface JobLimits { - /** Polymorphic discriminator, which specifies the different types this object can be */ - jobLimitsType: "Command" | "Sweep"; - /** The max run duration in ISO 8601 format, after which the job will be cancelled. Only supports duration with precision as low as Seconds. */ - timeout?: string; +/** Version of computeInstance. */ +export interface ComputeInstanceVersion { + /** Runtime of compute instance. */ + runtime?: string; } -/** Resource requirements for each container instance within an online deployment. */ -export interface ContainerResourceRequirements { - /** Container resource limit info: */ - containerResourceLimits?: ContainerResourceSettings; - /** Container resource request info: */ - containerResourceRequests?: ContainerResourceSettings; +/** Properties(top level) of ComputeInstance */ +export interface ComputeInstanceSchema { + /** Properties of ComputeInstance */ + properties?: ComputeInstanceProperties; } -export interface ContainerResourceSettings { - /** - * Number of vCPUs request/limit for container. More info: - * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - */ - cpu?: string; - /** - * Number of Nvidia GPU cards request/limit for container. More info: - * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - */ - gpu?: string; - /** - * Memory size request/limit for container. More info: - * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - */ - memory?: string; +export interface VirtualMachineSchema { + properties?: VirtualMachineSchemaProperties; } -/** 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; +export interface VirtualMachineSchemaProperties { + /** Virtual Machine size */ + virtualMachineSize?: string; + /** Port open for ssh connections. */ + sshPort?: number; + /** Notebook server port open for ssh connections. */ + notebookServerPort?: number; + /** Public IP address of the virtual machine. */ + address?: string; + /** Admin credentials for virtual machine */ + administratorAccount?: VirtualMachineSshCredentials; + /** Indicates whether this compute will be used for running notebooks. */ + isNotebookInstanceCompute?: boolean; } -/** - * 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; +/** Admin credentials for virtual machine */ +export interface VirtualMachineSshCredentials { + /** Username of admin account */ + username?: string; + /** Password of admin account */ + password?: string; + /** Public key data */ + publicKeyData?: string; + /** Private key data */ + privateKeyData?: string; } -/** - * 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; +/** HDInsight compute properties */ +export interface HDInsightProperties { + /** Port open for ssh connections on the master node of the cluster. */ + sshPort?: number; + /** Public IP address of the master node of the cluster. */ + address?: string; + /** Admin credentials for master node of the cluster */ + administratorAccount?: VirtualMachineSshCredentials; } -/** - * 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; +export interface HDInsightSchema { + /** HDInsight compute properties */ + properties?: HDInsightProperties; } -/** 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; +/** Properties of Databricks */ +export interface DatabricksProperties { + /** Databricks access token */ + databricksAccessToken?: string; + /** Workspace Url */ + workspaceUrl?: string; } -/** Model sweeping and hyperparameter sweeping related settings. */ -export interface ImageSweepSettings { - /** Type of early termination policy. */ - earlyTermination?: EarlyTerminationPolicyUnion; - /** [Required] Type of the hyperparameter sampling algorithms. */ - samplingAlgorithm: SamplingAlgorithmType; +export interface DatabricksSchema { + /** Properties of Databricks */ + properties?: DatabricksProperties; } -/** - * 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; +export interface DataLakeAnalyticsSchema { + properties?: DataLakeAnalyticsSchemaProperties; } -/** Job execution constraints. */ -export interface NlpVerticalLimitSettings { - /** Maximum Concurrent AutoML iterations. */ - maxConcurrentTrials?: number; - /** Number of AutoML iterations. */ - maxTrials?: number; - /** AutoML job timeout. */ - timeout?: string; +export interface DataLakeAnalyticsSchemaProperties { + /** DataLake Store Account Name */ + dataLakeStoreAccountName?: 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 SynapseSparkProperties { + /** Auto scale properties. */ + autoScaleProperties?: AutoScaleProperties; + /** Auto pause properties. */ + autoPauseProperties?: AutoPauseProperties; + /** Spark version. */ + sparkVersion?: string; + /** The number of compute nodes currently assigned to the compute. */ + nodeCount?: number; + /** Node size. */ + nodeSize?: string; + /** Node size family. */ + nodeSizeFamily?: string; + /** Azure subscription identifier. */ + subscriptionId?: string; + /** Name of the resource group in which workspace is located. */ + resourceGroup?: string; + /** Name of Azure Machine Learning workspace. */ + workspaceName?: string; + /** Pool name. */ + poolName?: string; } -/** Trial component definition. */ -export interface TrialComponent { - /** ARM resource ID of the code asset. */ - codeId?: string; - /** [Required] The command to execute on startup of the job. eg. "python train.py" */ - command: string; - /** Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. */ - distribution?: DistributionConfigurationUnion; - /** [Required] The ARM resource ID of the Environment specification for the job. */ - environmentId: string; - /** Environment variables included in the job. */ - environmentVariables?: { [propertyName: string]: string | null }; - /** Compute Resource configuration for the job. */ - resources?: JobResourceConfiguration; +/** Auto scale properties */ +export interface AutoScaleProperties { + minNodeCount?: number; + enabled?: boolean; + maxNodeCount?: number; } -/** The Private Endpoint Connection resource. */ -export interface PrivateEndpointConnection extends Resource { - /** The identity of the resource. */ - identity?: ManagedServiceIdentity; - /** Specifies the location of the resource. */ - location?: string; - /** Contains resource tags defined as key/value pairs. */ - tags?: { [propertyName: string]: string }; - /** The sku of the workspace. */ - sku?: Sku; - /** The resource of private end point. */ - privateEndpoint?: PrivateEndpoint; - /** A collection of information about the state of the connection between service consumer and provider. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; - /** - * The provisioning state of the private endpoint connection resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: PrivateEndpointConnectionProvisioningState; +/** Auto pause properties */ +export interface AutoPauseProperties { + delayInMinutes?: number; + enabled?: boolean; } -/** An object that represents a machine learning workspace. */ -export interface Workspace extends Resource { - /** The identity of the resource. */ - identity?: ManagedServiceIdentity; - /** Specifies the location of the resource. */ - location?: string; - /** Contains resource tags defined as key/value pairs. */ - tags?: { [propertyName: string]: string }; - /** The sku of the workspace. */ - sku?: Sku; - /** - * The immutable id associated with this workspace. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly workspaceId?: string; - /** The description of this workspace. */ - description?: string; - /** The friendly name for this workspace. This name in mutable */ - friendlyName?: string; - /** ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created */ - keyVault?: string; - /** ARM id of the application insights associated with this workspace. */ - applicationInsights?: string; - /** ARM id of the container registry associated with this workspace. */ - containerRegistry?: string; - /** ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created */ - storageAccount?: string; - /** Url for the discovery service to identify regional endpoints for machine learning experimentation services */ - discoveryUrl?: string; - /** - * The 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; - /** The encryption settings of Azure ML workspace. */ - encryption?: EncryptionProperty; - /** The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service */ - hbiWorkspace?: boolean; - /** - * The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly serviceProvisionedResourceGroup?: string; - /** - * Count of private connections in the workspace - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly privateLinkCount?: number; - /** The compute name for image build */ - imageBuildCompute?: string; - /** The flag to indicate whether to allow public access when behind VNet. */ - allowPublicAccessWhenBehindVnet?: boolean; - /** Whether requests from Public Network are allowed. */ - publicNetworkAccess?: PublicNetworkAccess; - /** - * The list of private endpoint connections in the workspace. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly privateEndpointConnections?: PrivateEndpointConnection[]; - /** The list of shared private link resources in this workspace. */ - sharedPrivateLinkResources?: SharedPrivateLinkResource[]; - /** - * The notebook info of Azure ML workspace. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly notebookInfo?: NotebookResourceInfo; - /** The service managed resource settings. */ - serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; - /** The user assigned identity resource id that represents the workspace identity. */ - primaryUserAssignedIdentity?: string; - /** - * The tenant id associated with this workspace. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly tenantId?: string; - /** - * If the storage associated with the workspace has hierarchical namespace(HNS) enabled. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly storageHnsEnabled?: boolean; - /** - * The URI associated with this workspace that machine learning flow must point at to set up tracking. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly mlFlowTrackingUri?: string; - /** Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. */ - v1LegacyMode?: boolean; +/** Properties of AksComputeSecrets */ +export interface AksComputeSecretsProperties { + /** Content of kubeconfig file that can be used to connect to the Kubernetes cluster. */ + userKubeConfig?: string; + /** Content of kubeconfig file that can be used to connect to the Kubernetes cluster. */ + adminKubeConfig?: string; + /** Image registry pull secret. */ + imagePullSecretName?: string; } -/** Machine Learning compute object wrapped into ARM resource envelope. */ -export interface ComputeResource extends Resource, ComputeResourceSchema { - /** The identity of the resource. */ - identity?: ManagedServiceIdentity; - /** Specifies the location of the resource. */ - location?: string; - /** Contains resource tags defined as key/value pairs. */ - tags?: { [propertyName: string]: string }; - /** The sku of the workspace. */ - sku?: Sku; +export interface VirtualMachineSecretsSchema { + /** Admin credentials for virtual machine. */ + administratorAccount?: VirtualMachineSshCredentials; } -/** A private link resource */ -export interface PrivateLinkResource extends Resource { - /** The identity of the resource. */ - identity?: ManagedServiceIdentity; - /** Specifies the location of the resource. */ - location?: string; - /** Contains resource tags defined as key/value pairs. */ - tags?: { [propertyName: string]: string }; - /** The sku of the workspace. */ - sku?: Sku; - /** - * The private link resource group id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly groupId?: string; - /** - * The private link resource required member names. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly requiredMembers?: string[]; - /** The private link resource Private link DNS zone name. */ - requiredZoneNames?: string[]; +/** Properties of Databricks Compute Secrets */ +export interface DatabricksComputeSecretsProperties { + /** access token for databricks account. */ + databricksAccessToken?: string; } -export interface WorkspaceConnectionPropertiesV2BasicResource extends Resource { - properties: WorkspaceConnectionPropertiesV2Union; +export interface MonitoringFeatureFilterBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + filterType: "AllFeatures" | "FeatureSubset" | "TopNByAttribution"; } -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends Resource { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The geo-location where the resource lives */ - location: string; +/** Monitor compute identity base definition. */ +export interface MonitorComputeIdentityBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeIdentityType: "AmlToken" | "ManagedIdentity"; } -/** Azure Resource Manager resource envelope. */ -export interface CodeContainer extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: CodeContainerProperties; +/** Asset input type. */ +export interface AssetJobInput { + /** Input Asset Delivery Mode. */ + mode?: InputDeliveryMode; + /** [Required] Input Asset URI. */ + uri: string; } -/** Azure Resource Manager resource envelope. */ -export interface CodeVersion extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: CodeVersionProperties; +/** Asset output type. */ +export interface AssetJobOutput { + /** Output Asset Name. */ + assetName?: string; + /** Output Asset Version. */ + assetVersion?: string; + /** Auto delete setting of output data asset. */ + autoDeleteSetting?: AutoDeleteSetting; + /** Output Asset Delivery Mode. */ + mode?: OutputDeliveryMode; + /** Output Asset URI. */ + uri?: string; } -/** Azure Resource Manager resource envelope. */ -export interface ComponentContainer extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: ComponentContainerProperties; +/** 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"; } -/** Azure Resource Manager resource envelope. */ -export interface ComponentVersion extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: ComponentVersionProperties; +/** 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; } -/** Azure Resource Manager resource envelope. */ -export interface DataContainer extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: DataContainerProperties; +export interface QueueSettings { + /** Controls the compute job tier */ + jobTier?: JobTier; + /** Controls the priority of the job on a compute. */ + priority?: number; } -/** Azure Resource Manager resource envelope. */ -export interface DataVersionBase extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: DataVersionBasePropertiesUnion; +/** + * 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; } -/** Azure Resource Manager resource envelope. */ -export interface Datastore extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: DatastorePropertiesUnion; +/** 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; } -/** Azure Resource Manager resource envelope. */ -export interface EnvironmentContainer extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: EnvironmentContainerProperties; +/** N-Cross validations value. */ +export interface NCrossValidations { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto" | "Custom"; } -/** Azure Resource Manager resource envelope. */ -export interface EnvironmentVersion extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: EnvironmentVersionProperties; +/** Forecasting seasonality. */ +export interface Seasonality { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto" | "Custom"; } -/** Azure Resource Manager resource envelope. */ -export interface JobBase extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: JobBasePropertiesUnion; +/** 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"; } -/** Azure Resource Manager resource envelope. */ -export interface ModelContainer extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: ModelContainerProperties; +/** Forecasting target rolling window size. */ +export interface TargetRollingWindowSize { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto" | "Custom"; } -/** Azure Resource Manager resource envelope. */ -export interface ModelVersion extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: ModelVersionProperties; +/** Settings for Autologger. */ +export interface AutologgerSettings { + /** [Required] Indicates whether mlflow autologger is enabled. */ + mlflowAutologger: MLFlowAutologgerState; } -/** Azure Resource Manager resource envelope. */ -export interface Schedule extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: ScheduleProperties; +export interface MonitoringAlertNotificationSettingsBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + alertNotificationType: "AzureMonitor" | "Email"; } -/** A Machine Learning compute based on AKS. */ -export interface Aks extends Compute, AKSSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "AKS"; +/** Base definition for Azure datastore contents configuration. */ +export interface AzureDatastore { + /** Azure Resource Group name */ + resourceGroup?: string; + /** Azure Subscription Id */ + subscriptionId?: string; } -/** A Machine Learning compute based on Kubernetes Compute. */ -export interface Kubernetes extends Compute, KubernetesSchema { +/** 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 */ - computeType: "Kubernetes"; + policyType: "Bandit" | "MedianStopping" | "TruncationSelection"; + /** Number of intervals by which to delay the first evaluation. */ + delayEvaluation?: number; + /** Interval (number of runs) between policy evaluations. */ + evaluationInterval?: number; } -/** An Azure Machine Learning compute. */ -export interface AmlCompute extends Compute, AmlComputeSchema { +/** + * The Sampling Algorithm used to generate hyperparameter values, along with properties to + * configure the algorithm + */ +export interface SamplingAlgorithm { /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "AmlCompute"; + samplingAlgorithmType: "Bayesian" | "Grid" | "Random"; } -/** An Azure Machine Learning compute instance. */ -export interface ComputeInstance extends Compute, ComputeInstanceSchema { +export interface DataDriftMetricThresholdBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "ComputeInstance"; + dataType: "Categorical" | "Numerical"; + /** The threshold value. If null, a default value will be set depending on the selected metric. */ + threshold?: MonitoringThreshold; } -/** A Machine Learning compute based on Azure Virtual Machines. */ -export interface VirtualMachine extends Compute, VirtualMachineSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "VirtualMachine"; +export interface MonitoringThreshold { + /** The threshold value. If null, the set default is dependent on the metric type. */ + value?: number; } -/** A HDInsight compute. */ -export interface HDInsight extends Compute, HDInsightSchema { +export interface DataQualityMetricThresholdBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "HDInsight"; + dataType: "Categorical" | "Numerical"; + /** The threshold value. If null, a default value will be set depending on the selected metric. */ + threshold?: MonitoringThreshold; } -/** A DataFactory compute. */ -export interface DataFactory extends Compute { +export interface PredictionDriftMetricThresholdBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "DataFactory"; + dataType: "Categorical" | "Numerical"; + /** The threshold value. If null, a default value will be set depending on the selected metric. */ + threshold?: MonitoringThreshold; } -/** A DataFactory compute. */ -export interface Databricks extends Compute, DatabricksSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "Databricks"; +/** 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; + /** + * TrainingMode mode - Setting to 'auto' is same as setting it to 'non-distributed' for now, however in the future may result in mixed mode or heuristics based mode selection. Default is 'auto'. + * If 'Distributed' then only distributed featurization is used and distributed algorithms are chosen. + * If 'NonDistributed' then only non distributed algorithms are chosen. + */ + trainingMode?: TrainingMode; } -/** A DataLakeAnalytics compute. */ -export interface DataLakeAnalytics extends Compute, DataLakeAnalyticsSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "DataLakeAnalytics"; +/** 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; } -/** A SynapseSpark compute. */ -export interface SynapseSpark extends Compute { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "SynapseSpark"; - properties?: SynapseSparkProperties; +/** 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; + /** Model/training parameters that will remain constant throughout training. */ + fixedParameters?: TableFixedParameters; + /** 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; + /** Search space for sampling different combinations of models and their hyperparameters. */ + searchSpace?: TableParameterSubspace[]; + /** Settings for model sweeping and hyperparameter tuning. */ + sweepSettings?: TableSweepSettings; + /** 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; } -/** Secrets related to a Machine Learning compute based on AKS. */ -export interface AksComputeSecrets - extends ComputeSecrets, - AksComputeSecretsProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "AKS"; +/** 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; } -/** Secrets related to a Machine Learning compute based on AKS. */ -export interface VirtualMachineSecrets - extends ComputeSecrets, - VirtualMachineSecretsSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "VirtualMachine"; +/** Featurization Configuration. */ +export interface FeaturizationSettings { + /** Dataset language, useful for the text data. */ + datasetLanguage?: string; } -/** Secrets related to a Machine Learning compute based on Databricks. */ -export interface DatabricksComputeSecrets - extends ComputeSecrets, - DatabricksComputeSecretsProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "Databricks"; +/** Fixed training parameters that won't be swept over during AutoML Table training. */ +export interface TableFixedParameters { + /** Specify the boosting type, e.g gbdt for XGBoost. */ + booster?: string; + /** Specify the boosting type, e.g gbdt for LightGBM. */ + boostingType?: string; + /** Specify the grow policy, which controls the way new nodes are added to the tree. */ + growPolicy?: string; + /** The learning rate for the training procedure. */ + learningRate?: number; + /** Specify the Maximum number of discrete bins to bucket continuous features . */ + maxBin?: number; + /** Specify the max depth to limit the tree depth explicitly. */ + maxDepth?: number; + /** Specify the max leaves to limit the tree leaves explicitly. */ + maxLeaves?: number; + /** The minimum number of data per leaf. */ + minDataInLeaf?: number; + /** Minimum loss reduction required to make a further partition on a leaf node of the tree. */ + minSplitGain?: number; + /** The name of the model to train. */ + modelName?: string; + /** Specify the number of trees (or rounds) in an model. */ + nEstimators?: number; + /** Specify the number of leaves. */ + numLeaves?: number; + /** The name of the preprocessor to use. */ + preprocessorName?: string; + /** L1 regularization term on weights. */ + regAlpha?: number; + /** L2 regularization term on weights. */ + regLambda?: number; + /** Subsample ratio of the training instance. */ + subsample?: number; + /** Frequency of subsample. */ + subsampleFreq?: number; + /** Specify the tree method. */ + treeMethod?: string; + /** If true, center before scaling the data with StandardScalar. */ + withMean?: boolean; + /** If true, scaling the data with Unit Variance with StandardScalar. */ + withStd?: boolean; } -export interface PATAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "PAT"; - credentials?: WorkspaceConnectionPersonalAccessToken; +/** 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; + /** Maximum nodes to use for the experiment. */ + maxNodes?: number; + /** Number of iterations. */ + maxTrials?: number; + /** Number of concurrent sweeping runs that user wants to trigger. */ + sweepConcurrentTrials?: number; + /** Number of sweeping runs that user wants to trigger. */ + sweepTrials?: number; + /** AutoML job timeout. */ + timeout?: string; + /** Iteration timeout. */ + trialTimeout?: string; } -export interface SASAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "SAS"; - credentials?: WorkspaceConnectionSharedAccessSignature; +export interface TableParameterSubspace { + /** Specify the boosting type, e.g gbdt for XGBoost. */ + booster?: string; + /** Specify the boosting type, e.g gbdt for LightGBM. */ + boostingType?: string; + /** Specify the grow policy, which controls the way new nodes are added to the tree. */ + growPolicy?: string; + /** The learning rate for the training procedure. */ + learningRate?: string; + /** Specify the Maximum number of discrete bins to bucket continuous features . */ + maxBin?: string; + /** Specify the max depth to limit the tree depth explicitly. */ + maxDepth?: string; + /** Specify the max leaves to limit the tree leaves explicitly. */ + maxLeaves?: string; + /** The minimum number of data per leaf. */ + minDataInLeaf?: string; + /** Minimum loss reduction required to make a further partition on a leaf node of the tree. */ + minSplitGain?: string; + /** The name of the model to train. */ + modelName?: string; + /** Specify the number of trees (or rounds) in an model. */ + nEstimators?: string; + /** Specify the number of leaves. */ + numLeaves?: string; + /** The name of the preprocessor to use. */ + preprocessorName?: string; + /** L1 regularization term on weights. */ + regAlpha?: string; + /** L2 regularization term on weights. */ + regLambda?: string; + /** Subsample ratio of the training instance. */ + subsample?: string; + /** Frequency of subsample */ + subsampleFreq?: string; + /** Specify the tree method. */ + treeMethod?: string; + /** If true, center before scaling the data with StandardScalar. */ + withMean?: string; + /** If true, scaling the data with Unit Variance with StandardScalar. */ + withStd?: string; +} + +export interface TableSweepSettings { + /** Type of early termination policy for the sweeping job. */ + earlyTermination?: EarlyTerminationPolicyUnion; + /** [Required] Type of sampling algorithm. */ + samplingAlgorithm: SamplingAlgorithmType; } -export interface UsernamePasswordAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { +export interface ModelPerformanceMetricThresholdBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "UsernamePassword"; - credentials?: WorkspaceConnectionUsernamePassword; + modelType: "Classification" | "Regression"; + /** The threshold value. If null, a default value will be set depending on the selected metric. */ + threshold?: MonitoringThreshold; } -export interface NoneAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { +/** Base definition for job distribution configuration. */ +export interface DistributionConfiguration { /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "None"; + distributionType: "Mpi" | "PyTorch" | "Ray" | "TensorFlow"; } -export interface ManagedIdentityAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { +export interface JobLimits { /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "ManagedIdentity"; - credentials?: WorkspaceConnectionManagedIdentity; + jobLimitsType: "Command" | "Sweep"; + /** The max run duration in ISO 8601 format, after which the job will be cancelled. Only supports duration with precision as low as Seconds. */ + timeout?: string; } -/** Batch endpoint configuration. */ -export interface BatchEndpointProperties extends EndpointPropertiesBase { - /** Default values for Batch Endpoint */ - defaults?: BatchEndpointDefaults; - /** - * Provisioning state for the endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: EndpointProvisioningState; +/** Resource requirements for each container instance within an online deployment. */ +export interface ContainerResourceRequirements { + /** Container resource limit info: */ + containerResourceLimits?: ContainerResourceSettings; + /** Container resource request info: */ + containerResourceRequests?: ContainerResourceSettings; } -/** Online endpoint configuration */ -export interface OnlineEndpointProperties extends EndpointPropertiesBase { +export interface ContainerResourceSettings { /** - * ARM resource ID of the compute if it exists. - * optional + * Number of vCPUs request/limit for container. More info: + * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ */ - compute?: string; + cpu?: string; /** - * Provisioning state for the endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Number of Nvidia GPU cards request/limit for container. More info: + * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ */ - 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 }; + gpu?: string; + /** + * Memory size request/limit for container. More info: + * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + */ + memory?: string; } -/** Strictly used in update requests. */ -export interface PartialMinimalTrackedResourceWithIdentity - extends PartialMinimalTrackedResource { - /** Managed service identity (system assigned and/or user assigned identities) */ - identity?: PartialManagedServiceIdentity; +export interface MonitorDefinition { + /** The monitor's notification settings. */ + alertNotificationSetting?: MonitoringAlertNotificationSettingsBaseUnion; + /** [Required] The ARM resource ID of the compute resource to run the monitoring job on. */ + computeConfiguration: MonitorComputeConfigurationBaseUnion; + /** The ARM resource ID of either the model or deployment targeted by this monitor. */ + monitoringTarget?: MonitoringTarget; + /** [Required] The signals to monitor. */ + signals: { [propertyName: string]: MonitoringSignalBaseUnion | null }; } -/** Strictly used in update requests. */ -export interface PartialMinimalTrackedResourceWithSku - extends PartialMinimalTrackedResource { - /** Sku details required for ARM contract for Autoscaling. */ - sku?: PartialSku; +/** Monitor compute configuration base definition. */ +export interface MonitorComputeConfigurationBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "ServerlessSpark"; } -/** Reference to an asset via its path in a datastore. */ -export interface DataPathAssetReference extends AssetReferenceBase { - /** Polymorphic discriminator, which specifies the different types this object can be */ - referenceType: "DataPath"; - /** ARM resource ID of the datastore where the asset is located. */ - datastoreId?: string; - /** The path of the file/directory in the datastore. */ - path?: string; +/** Monitoring target definition. */ +export interface MonitoringTarget { + /** The ARM resource ID of either the deployment targeted by this monitor. */ + deploymentId?: string; + /** The ARM resource ID of either the model targeted by this monitor. */ + modelId?: string; + /** [Required] The machine learning task type of the model. */ + taskType: ModelTaskType; } -/** Reference to an asset via its ARM resource ID. */ -export interface IdAssetReference extends AssetReferenceBase { +export interface MonitoringSignalBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - referenceType: "Id"; - /** [Required] ARM resource ID of the asset. */ - assetId: string; + signalType: + | "Custom" + | "DataDrift" + | "DataQuality" + | "FeatureAttributionDrift" + | "GenerationSafetyQuality" + | "GenerationTokenStatistics" + | "ModelPerformance" + | "PredictionDrift"; + /** The current notification mode for this signal. */ + mode?: MonitoringNotificationMode; + /** Property dictionary. Properties can be added, but not removed or altered. */ + properties?: { [propertyName: string]: string | null }; } -/** Reference to an asset via its path in a job output. */ -export interface OutputPathAssetReference extends AssetReferenceBase { - /** Polymorphic discriminator, which specifies the different types this object can be */ - referenceType: "OutputPath"; - /** ARM resource ID of the job. */ - jobId?: string; - /** The path of the file/directory in the job output. */ - path?: string; +/** Online inference configuration options. */ +export interface OnlineInferenceConfiguration { + /** Additional configurations */ + configurations?: { [propertyName: string]: string | null }; + /** Entry script or command to invoke. */ + entryScript?: string; + /** The route to check the liveness of the inference server container. */ + livenessRoute?: Route; + /** The route to check the readiness of the inference server container. */ + readinessRoute?: Route; + /** The port to send the scoring requests to, within the inference server container. */ + scoringRoute?: Route; } -export interface DeploymentResourceConfiguration - extends ResourceConfiguration {} +export interface CustomMetricThreshold { + /** [Required] The user-defined metric to calculate. */ + metric: string; + /** The threshold value. If null, a default value will be set depending on the selected metric. */ + threshold?: MonitoringThreshold; +} -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; +/** Monitoring input data base definition. */ +export interface MonitoringInputDataBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + inputDataType: "Fixed" | "Static" | "Trailing"; + /** Mapping of column names to special uses. */ + columns?: { [propertyName: string]: string | null }; + /** The context metadata of the data source. */ + dataContext?: string; + /** [Required] Specifies the type of job. */ + jobInputType: JobInputType; + /** [Required] Input Asset URI. */ + uri: string; } -/** Batch inference settings per deployment. */ -export interface BatchDeploymentProperties - extends EndpointDeploymentPropertiesBase { - /** Compute target for batch inference operation. */ - compute?: string; - /** - * Error threshold, if the error count for the entire input goes above this value, - * the batch inference will be aborted. Range is [-1, int.MaxValue]. - * For FileDataset, this value is the count of file failures. - * For TabularDataset, this value is the count of record failures. - * If set to -1 (the lower bound), all failures during batch inference will be ignored. - */ - errorThreshold?: number; - /** Logging level for batch inference operation. */ - loggingLevel?: BatchLoggingLevel; - /** Indicates maximum number of parallelism per instance. */ - maxConcurrencyPerInstance?: number; +/** Monitoring workspace connection definition. */ +export interface MonitoringWorkspaceConnection { /** - * Size of the mini-batch passed to each batch invocation. - * For FileDataset, this is the number of files per mini-batch. - * For TabularDataset, this is the size of the records in bytes, per mini-batch. + * The properties of a workspace service connection to store as environment variables in the submitted jobs. + * Key is workspace connection property path, name is environment variable key. */ - miniBatchSize?: number; - /** Reference to the model asset for the endpoint deployment. */ - model?: AssetReferenceBaseUnion; - /** Indicates how the output will be organized. */ - outputAction?: BatchOutputAction; - /** Customized output file name for append_row output action. */ - outputFileName?: string; + environmentVariables?: { [propertyName: string]: string | null }; /** - * Provisioning state for the endpoint deployment. - * NOTE: This property will not be serialized. It can only be populated by the server. + * The properties of a workspace service connection to store as secrets in the submitted jobs. + * Key is workspace connection property path, name is secret key. */ - readonly provisioningState?: DeploymentProvisioningState; + secrets?: { [propertyName: string]: string | null }; +} + +export interface MonitoringDataSegment { + /** The feature to segment the data on. */ + feature?: string; + /** Filters for only the specified values of the given segmented feature. */ + values?: string[]; +} + +export interface DataImportSource { + /** Polymorphic discriminator, which specifies the different types this object can be */ + sourceType: "database" | "file_system"; + /** Workspace connection for data import source storage */ + connection?: string; +} + +export interface FeatureAttributionMetricThreshold { + /** [Required] The feature attribution metric to calculate. */ + metric: FeatureAttributionMetric; + /** The threshold value. If null, a default value will be set depending on the selected metric. */ + threshold?: MonitoringThreshold; +} + +/** Forecasting specific parameters. */ +export interface ForecastingSettings { /** - * Indicates compute configuration for the job. - * If not provided, will default to the defaults defined in ResourceConfiguration. + * Country or region for holidays for forecasting tasks. + * These should be ISO 3166 two-letter country/region codes, for example 'US' or 'GB'. */ - resources?: DeploymentResourceConfiguration; + countryOrRegionForHolidays?: string; /** - * Retry Settings for the batch inference operation. - * If not provided, will default to the defaults defined in BatchRetrySettings. + * 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. */ - retrySettings?: BatchRetrySettings; -} - -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. */ - instanceType?: string; - /** Liveness probe monitors the health of the container regularly. */ - livenessProbe?: ProbeSettings; - /** The URI path to the model. */ - model?: string; - /** The path to mount the model in custom container. */ - modelMountPath?: string; + cvStepSize?: number; + /** Flag for generating lags for the numeric features with 'auto' or null. */ + featureLags?: FeatureLags; /** - * Provisioning state for the endpoint deployment. - * NOTE: This property will not be serialized. It can only be populated by the server. + * The feature columns that are available for training but unknown at the time of forecast/inference. + * If features_unknown_at_forecast_time is not set, it is assumed that all the feature columns in the dataset are known at inference time. */ - readonly provisioningState?: DeploymentProvisioningState; - /** Readiness probe validates if the container is ready to serve traffic. The properties and defaults are the same as liveness probe. */ - readinessProbe?: ProbeSettings; - /** Request settings for the deployment. */ - requestSettings?: OnlineRequestSettings; + featuresUnknownAtForecastTime?: string[]; + /** 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; /** - * Scale settings for the deployment. - * If it is null or not provided, - * it defaults to TargetUtilizationScaleSettings for KubernetesOnlineDeployment - * and to DefaultScaleSettings for ManagedOnlineDeployment. + * Set time series seasonality as an integer multiple of the series frequency. + * If seasonality is set to 'auto', it will be inferred. */ - scaleSettings?: OnlineScaleSettingsUnion; -} - -export interface AssetContainer extends ResourceBase { - /** Is the asset archived? */ - isArchived?: boolean; + seasonality?: SeasonalityUnion; + /** The parameter defining how if AutoML should handle short time series. */ + shortSeriesHandlingConfig?: ShortSeriesHandlingConfiguration; /** - * The latest version inside this container. - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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". */ - readonly latestVersion?: string; + 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 next auto incremental version - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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. */ - readonly nextVersion?: string; + timeSeriesIdColumnNames?: string[]; + /** Configure STL Decomposition of the time-series target column. */ + useStl?: UseStl; } -export interface AssetBase extends ResourceBase { - /** If the name version are system generated (anonymous registration). */ - isAnonymous?: boolean; - /** Is the asset archived? */ - isArchived?: boolean; +/** Generation safety quality metric threshold definition. */ +export interface GenerationSafetyQualityMetricThreshold { + /** [Required] Gets or sets the feature attribution metric to calculate. */ + metric: GenerationSafetyQualityMetric; + /** + * Gets or sets the threshold value. + * If null, a default value will be set depending on the selected metric. + */ + threshold?: MonitoringThreshold; } -/** Base definition for datastore contents configuration. */ -export interface DatastoreProperties extends ResourceBase { - /** [Required] Account credentials. */ - credentials: DatastoreCredentialsUnion; - /** [Required] Storage type backing the datastore. */ - datastoreType: DatastoreType; +/** Generation token statistics metric threshold definition. */ +export interface GenerationTokenStatisticsMetricThreshold { + /** [Required] Gets or sets the feature attribution metric to calculate. */ + metric: GenerationTokenStatisticsMetric; /** - * Readonly property to indicate if datastore is the workspace default datastore - * NOTE: This property will not be serialized. It can only be populated by the server. + * Gets or sets the threshold value. + * If null, a default value will be set depending on the selected metric. */ - readonly isDefault?: boolean; + threshold?: MonitoringThreshold; } -/** Base definition for a job. */ -export interface JobBaseProperties extends ResourceBase { - /** ARM resource ID of the component resource. */ - componentId?: string; - /** ARM resource ID of the compute resource. */ - computeId?: string; - /** Display name of job. */ - displayName?: string; - /** The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. */ - experimentName?: string; +/** + * 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; /** - * Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. - * Defaults to AmlToken if null. + * Minimum number of epochs or validation evaluations to wait before primary metric improvement + * is tracked for early stopping. Must be a positive integer. */ - identity?: IdentityConfigurationUnion; - /** Is the asset archived? */ - isArchived?: boolean; - /** [Required] Specifies the type of job. */ - jobType: JobType; + earlyStoppingDelay?: number; /** - * List of JobEndpoints. - * For local jobs, a job endpoint will have an endpoint value of FileStreamObject. + * Minimum number of epochs or validation evaluations with no primary metric improvement before + * the run is stopped. Must be a positive integer. */ - services?: { [propertyName: string]: JobService | null }; + 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; /** - * Status of the job. - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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. */ - 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; + gradientAccumulationStep?: number; /** - * Provisioning state for the schedule. - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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. */ - readonly provisioningState?: ScheduleProvisioningStatus; - /** [Required] Specifies the trigger details */ - trigger: TriggerBaseUnion; + 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; } -/** Account key datastore credentials configuration. */ -export interface AccountKeyDatastoreCredentials extends DatastoreCredentials { - /** Polymorphic discriminator, which specifies the different types this object can be */ - credentialsType: "AccountKey"; - /** [Required] Storage account secrets. */ - secrets: AccountKeyDatastoreSecrets; +/** + * 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; } -/** Certificate datastore credentials configuration. */ -export interface CertificateDatastoreCredentials extends DatastoreCredentials { - /** Polymorphic discriminator, which specifies the different types this object can be */ - credentialsType: "Certificate"; - /** Authority URL used for authentication. */ - authorityUrl?: string; - /** [Required] Service principal client ID. */ - clientId: string; - /** Resource the service principal has access to. */ - resourceUrl?: string; - /** [Required] Service principal secrets. */ - secrets: CertificateDatastoreSecrets; - /** [Required] ID of the tenant to which the service principal belongs. */ - tenantId: string; - /** [Required] Thumbprint of the certificate used for authentication. */ - thumbprint: string; +/** + * 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; } -/** Empty/none datastore credentials. */ -export interface NoneDatastoreCredentials extends DatastoreCredentials { - /** Polymorphic discriminator, which specifies the different types this object can be */ - credentialsType: "None"; +/** 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; } -/** SAS datastore credentials configuration. */ -export interface SasDatastoreCredentials extends DatastoreCredentials { - /** Polymorphic discriminator, which specifies the different types this object can be */ - credentialsType: "Sas"; - /** [Required] Storage container secrets. */ - secrets: SasDatastoreSecrets; +/** Model sweeping and hyperparameter sweeping related settings. */ +export interface ImageSweepSettings { + /** Type of early termination policy. */ + earlyTermination?: EarlyTerminationPolicyUnion; + /** [Required] Type of the hyperparameter sampling algorithms. */ + samplingAlgorithm: SamplingAlgorithmType; } -/** Service Principal datastore credentials configuration. */ -export interface ServicePrincipalDatastoreCredentials - extends DatastoreCredentials { - /** Polymorphic discriminator, which specifies the different types this object can be */ - credentialsType: "ServicePrincipal"; - /** Authority URL used for authentication. */ - authorityUrl?: string; - /** [Required] Service principal client ID. */ - clientId: string; - /** Resource the service principal has access to. */ - resourceUrl?: string; - /** [Required] Service principal secrets. */ - secrets: ServicePrincipalDatastoreSecrets; - /** [Required] ID of the tenant to which the service principal belongs. */ - tenantId: string; +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; } -/** Datastore account key secrets. */ -export interface AccountKeyDatastoreSecrets extends DatastoreSecrets { +/** OneLake artifact (data source) configuration. */ +export interface OneLakeArtifact { /** Polymorphic discriminator, which specifies the different types this object can be */ - secretsType: "AccountKey"; - /** Storage account key. */ - key?: string; + artifactType: "LakeHouse"; + /** [Required] OneLake artifact name */ + artifactName: string; } -/** Datastore certificate secrets. */ -export interface CertificateDatastoreSecrets extends DatastoreSecrets { - /** Polymorphic discriminator, which specifies the different types this object can be */ - secretsType: "Certificate"; - /** Service principal certificate. */ - certificate?: string; +/** Fixed training parameters that won't be swept over during AutoML NLP training. */ +export interface NlpFixedParameters { + /** Number of steps to accumulate gradients over before running a backward pass. */ + gradientAccumulationSteps?: number; + /** The learning rate for the training procedure. */ + learningRate?: number; + /** The type of learning rate schedule to use during the training procedure. */ + learningRateScheduler?: NlpLearningRateScheduler; + /** The name of the model to train. */ + modelName?: string; + /** Number of training epochs. */ + numberOfEpochs?: number; + /** The batch size for the training procedure. */ + trainingBatchSize?: number; + /** The batch size to be used during evaluation. */ + validationBatchSize?: number; + /** The warmup ratio, used alongside LrSchedulerType. */ + warmupRatio?: number; + /** The weight decay for the training procedure. */ + weightDecay?: number; } -/** Datastore SAS secrets. */ -export interface SasDatastoreSecrets extends DatastoreSecrets { - /** Polymorphic discriminator, which specifies the different types this object can be */ - secretsType: "Sas"; - /** Storage container SAS token. */ - sasToken?: string; +/** Stringified search spaces for each parameter. See below examples. */ +export interface NlpParameterSubspace { + /** Number of steps to accumulate gradients over before running a backward pass. */ + gradientAccumulationSteps?: string; + /** The learning rate for the training procedure. */ + learningRate?: string; + /** The type of learning rate schedule to use during the training procedure. */ + learningRateScheduler?: string; + /** The name of the model to train. */ + modelName?: string; + /** Number of training epochs. */ + numberOfEpochs?: string; + /** The batch size for the training procedure. */ + trainingBatchSize?: string; + /** The batch size to be used during evaluation. */ + validationBatchSize?: string; + /** The warmup ratio, used alongside LrSchedulerType. */ + warmupRatio?: string; + /** The weight decay for the training procedure. */ + weightDecay?: string; } -/** Datastore Service Principal secrets. */ -export interface ServicePrincipalDatastoreSecrets extends DatastoreSecrets { - /** Polymorphic discriminator, which specifies the different types this object can be */ - secretsType: "ServicePrincipal"; - /** Service principal secret. */ - clientSecret?: string; +/** Model sweeping and hyperparameter tuning related settings. */ +export interface NlpSweepSettings { + /** Type of early termination policy for the sweeping job. */ + earlyTermination?: EarlyTerminationPolicyUnion; + /** [Required] Type of sampling algorithm. */ + samplingAlgorithm: SamplingAlgorithmType; } -/** AML Token identity configuration. */ -export interface AmlToken extends IdentityConfiguration { - /** Polymorphic discriminator, which specifies the different types this object can be */ - identityType: "AMLToken"; +/** + * Abstract class for NLP related AutoML tasks. + * NLP - Natural Language Processing. + */ +export interface NlpVertical { + /** Featurization inputs needed for AutoML job. */ + featurizationSettings?: NlpVerticalFeaturizationSettings; + /** Model/training parameters that will remain constant throughout training. */ + fixedParameters?: NlpFixedParameters; + /** Execution constraints for AutoMLJob. */ + limitSettings?: NlpVerticalLimitSettings; + /** Search space for sampling different combinations of models and their hyperparameters. */ + searchSpace?: NlpParameterSubspace[]; + /** Settings for model sweeping and hyperparameter tuning. */ + sweepSettings?: NlpSweepSettings; + /** Validation data inputs. */ + validationData?: MLTableJobInput; } -/** Managed identity configuration. */ -export interface ManagedIdentity extends IdentityConfiguration { - /** Polymorphic discriminator, which specifies the different types this object can be */ - identityType: "Managed"; - /** Specifies a user-assigned identity by client ID. For system-assigned, do not set this field. */ - clientId?: string; - /** Specifies a user-assigned identity by object ID. For system-assigned, do not set this field. */ - objectId?: string; - /** Specifies a user-assigned identity by ARM resource ID. For system-assigned, do not set this field. */ - resourceId?: string; +/** Job execution constraints. */ +export interface NlpVerticalLimitSettings { + /** Maximum Concurrent AutoML iterations. */ + maxConcurrentTrials?: number; + /** Maximum nodes to use for the experiment. */ + maxNodes?: number; + /** Number of AutoML iterations. */ + maxTrials?: number; + /** AutoML job timeout. */ + timeout?: string; + /** Timeout for individual HD trials. */ + trialTimeout?: string; } -/** User identity configuration. */ -export interface UserIdentity extends IdentityConfiguration { - /** Polymorphic discriminator, which specifies the different types this object can be */ - identityType: "UserIdentity"; +/** 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 DefaultScaleSettings extends OnlineScaleSettings { +/** Spark job entry point definition. */ +export interface SparkJobEntry { /** Polymorphic discriminator, which specifies the different types this object can be */ - scaleType: "Default"; + sparkJobEntryType: "SparkJobPythonEntry" | "SparkJobScalaEntry"; } -export interface TargetUtilizationScaleSettings extends OnlineScaleSettings { - /** Polymorphic discriminator, which specifies the different types this object can be */ - scaleType: "TargetUtilization"; - /** The maximum number of instances that the deployment can scale to. The quota will be reserved for max_instances. */ - maxInstances?: number; - /** The minimum number of instances to always be present. */ - minInstances?: number; - /** The polling interval in ISO 8691 format. Only supports duration with precision as low as Seconds. */ - pollingInterval?: string; - /** Target CPU usage for the autoscaler. */ - targetUtilizationPercentage?: number; +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; } -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; +/** Trial component definition. */ +export interface TrialComponent { + /** ARM resource ID of the code asset. */ + codeId?: string; + /** [Required] The command to execute on startup of the job. eg. "python train.py" */ + command: string; + /** Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. */ + distribution?: DistributionConfigurationUnion; + /** [Required] The ARM resource ID of the Environment specification for the job. */ + environmentId: string; + /** Environment variables included in the job. */ + environmentVariables?: { [propertyName: string]: string | null }; + /** Compute Resource configuration for the job. */ + resources?: JobResourceConfiguration; } -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 WorkspaceConnectionAccessKey { + accessKeyId?: string; + secretAccessKey?: 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; - /** The recurrence schedule. */ - schedule?: RecurrenceSchedule; +/** Api key object for workspace connection credential. */ +export interface WorkspaceConnectionApiKey { + key?: string; } -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; +/** Custom Keys credential object */ +export interface CustomKeys { + /** Dictionary of */ + keys?: { [propertyName: string]: string }; } -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 {} +export interface WorkspaceConnectionManagedIdentity { + clientId?: string; + resourceId?: string; +} -export interface UriFolderJobInput extends AssetJobInput, JobInput {} +export interface WorkspaceConnectionPersonalAccessToken { + pat?: string; +} -export interface CustomModelJobOutput extends AssetJobOutput, JobOutput {} +/** Private Endpoint destination for a Private Endpoint Outbound Rule for the managed network of a machine learning workspace. */ +export interface PrivateEndpointDestination { + serviceResourceId?: string; + sparkEnabled?: boolean; + /** Type of a managed network Outbound Rule of a machine learning workspace. */ + sparkStatus?: RuleStatus; + subresourceTarget?: string; +} -export interface MLFlowModelJobOutput extends AssetJobOutput, JobOutput {} +export interface WorkspaceConnectionSharedAccessSignature { + sas?: string; +} -export interface MLTableJobOutput extends AssetJobOutput, JobOutput {} +export interface WorkspaceConnectionServicePrincipal { + clientId?: string; + clientSecret?: string; + tenantId?: string; +} -export interface TritonModelJobOutput extends AssetJobOutput, JobOutput {} +/** Service Tag destination for a Service Tag Outbound Rule for the managed network of a machine learning workspace. */ +export interface ServiceTagDestination { + /** The action enum for networking rule. */ + action?: RuleAction; + /** + * Optional, if provided, the ServiceTag property will be ignored. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly addressPrefixes?: string[]; + portRanges?: string; + protocol?: string; + serviceTag?: string; +} -export interface UriFileJobOutput extends AssetJobOutput, JobOutput {} +export interface WorkspaceConnectionUsernamePassword { + password?: string; + username?: string; +} -export interface UriFolderJobOutput extends AssetJobOutput, JobOutput {} +/** Managed service identity (system assigned and/or user assigned identities) */ +export interface RegistryPartialManagedServiceIdentity + extends ManagedServiceIdentity {} -/** Forecast horizon determined automatically by system. */ -export interface AutoForecastHorizon extends ForecastHorizon { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto"; +/** Machine Learning compute object wrapped into ARM resource envelope. */ +export interface ComputeResource extends Resource, ComputeResourceSchema { + /** The identity of the resource. */ + identity?: ManagedServiceIdentity; + /** Specifies the location of the resource. */ + location?: string; + /** Contains resource tags defined as key/value pairs. */ + tags?: { [propertyName: string]: string }; + /** The sku of the workspace. */ + sku?: Sku; } -/** The 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 */ - mode: "Custom"; - /** [Required] Forecast horizon value. */ - value: number; +/** Azure Resource Manager resource envelope. */ +export interface CodeContainer extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: CodeContainerProperties; } -/** 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; +/** Azure Resource Manager resource envelope. */ +export interface CodeVersion extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: CodeVersionProperties; } -/** 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; +/** Azure Resource Manager resource envelope. */ +export interface ComponentContainer extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: ComponentContainerProperties; } -/** - * 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 { - /** Primary metric to optimize for this task. */ - primaryMetric?: ClassificationPrimaryMetrics; +/** Azure Resource Manager resource envelope. */ +export interface ComponentVersion extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: ComponentVersionProperties; } -/** - * 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 { - /** Primary metric to optimize for this task. */ - primaryMetric?: ClassificationMultilabelPrimaryMetrics; +/** Azure Resource Manager resource envelope. */ +export interface DataContainer extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: DataContainerProperties; } -/** - * 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 { - /** Primary metric to optimize for this task. */ - primaryMetric?: InstanceSegmentationPrimaryMetrics; +/** Azure Resource Manager resource envelope. */ +export interface DataVersionBase extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: DataVersionBasePropertiesUnion; } -/** - * 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 { - /** Primary metric to optimize for this task. */ - primaryMetric?: ObjectDetectionPrimaryMetrics; +/** Azure Resource Manager resource envelope. */ +export interface EnvironmentContainer extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: EnvironmentContainerProperties; } -/** 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; +/** Azure Resource Manager resource envelope. */ +export interface EnvironmentVersion extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: EnvironmentVersionProperties; } -/** - * 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; +/** Azure Resource Manager resource envelope. */ +export interface ModelContainer extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: ModelContainerProperties; } -/** - * Text Classification Multilabel task in AutoML NLP vertical. - * NLP - Natural Language Processing. - */ -export interface TextClassificationMultilabel - extends NlpVertical, - AutoMLVertical { +/** Azure Resource Manager resource envelope. */ +export interface ModelVersion extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: ModelVersionProperties; +} + +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResource extends Resource { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The geo-location where the resource lives */ + location: string; +} + +/** Azure Resource Manager resource envelope. */ +export interface Datastore extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: DatastorePropertiesUnion; +} + +/** Azure Resource Manager resource envelope. */ +export interface FeaturesetContainer extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: FeaturesetContainerProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface Feature extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: FeatureProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface FeaturesetVersion extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: FeaturesetVersionProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface FeaturestoreEntityContainer extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: FeaturestoreEntityContainerProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface FeaturestoreEntityVersion extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: FeaturestoreEntityVersionProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface JobBase extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: JobBasePropertiesUnion; +} + +/** Azure Resource Manager resource envelope. */ +export interface LabelingJob extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: LabelingJobProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface Schedule extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: ScheduleProperties; +} + +/** The Private Endpoint Connection resource. */ +export interface PrivateEndpointConnection extends Resource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; + /** Same as workspace location. */ + location?: string; + /** Optional. This field is required to be implemented by the RP because AML is supporting more than one tier */ + sku?: Sku; + /** Dictionary of */ + tags?: { [propertyName: string]: string }; + /** The Private Endpoint resource. */ + privateEndpoint?: WorkspacePrivateEndpointResource; + /** The connection state. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; /** - * Primary metric for Text-Classification-Multilabel task. - * Currently only Accuracy is supported as primary metric, hence user need not set it explicitly. + * The current provisioning state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly primaryMetric?: ClassificationMultilabelPrimaryMetrics; + readonly provisioningState?: PrivateEndpointConnectionProvisioningState; } -/** - * Text-NER task in AutoML NLP vertical. - * NER - Named Entity Recognition. - * NLP - Natural Language Processing. - */ -export interface TextNer extends NlpVertical, AutoMLVertical { +/** An object that represents a machine learning workspace. */ +export interface Workspace extends Resource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; + kind?: string; + location?: string; + /** Optional. This field is required to be implemented by the RP because AML is supporting more than one tier */ + sku?: Sku; + /** Dictionary of */ + tags?: { [propertyName: string]: string }; + /** The flag to indicate whether to allow public access when behind VNet. */ + allowPublicAccessWhenBehindVnet?: boolean; + /** ARM id of the application insights associated with this workspace. */ + applicationInsights?: string; + associatedWorkspaces?: string[]; + containerRegistries?: string[]; + /** ARM id of the container registry associated with this workspace. */ + containerRegistry?: string; + /** The description of this workspace. */ + description?: string; + /** Url for the discovery service to identify regional endpoints for machine learning experimentation services */ + discoveryUrl?: string; + enableDataIsolation?: boolean; + encryption?: EncryptionProperty; + existingWorkspaces?: string[]; + /** Settings for feature store type workspace. */ + featureStoreSettings?: FeatureStoreSettings; + /** The friendly name for this workspace. This name in mutable */ + friendlyName?: string; + /** The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service */ + hbiWorkspace?: boolean; + hubResourceId?: string; + /** The compute name for image build */ + imageBuildCompute?: string; + /** ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created */ + keyVault?: string; + keyVaults?: string[]; + /** Managed Network settings for a machine learning workspace. */ + managedNetwork?: ManagedNetworkSettings; /** - * Primary metric for Text-NER task. - * Only 'Accuracy' is supported for Text-NER, so user need not set this explicitly. + * The URI associated with this workspace that machine learning flow must point at to set up tracking. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly primaryMetric?: ClassificationPrimaryMetrics; + readonly mlFlowTrackingUri?: string; + /** + * The notebook info of Azure ML workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly notebookInfo?: NotebookResourceInfo; + /** The user assigned identity resource id that represents the workspace identity. */ + primaryUserAssignedIdentity?: string; + /** + * The list of private endpoint connections in the workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: PrivateEndpointConnection[]; + /** + * Count of private connections in the workspace + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateLinkCount?: number; + /** + * 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; + /** Whether requests from Public Network are allowed. */ + publicNetworkAccess?: PublicNetworkAccessType; + /** The service managed resource settings. */ + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; + /** + * The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serviceProvisionedResourceGroup?: string; + /** The list of shared private link resources in this workspace. */ + sharedPrivateLinkResources?: SharedPrivateLinkResource[]; + /** Retention time in days after workspace get soft deleted. */ + softDeleteRetentionInDays?: number; + /** ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created */ + storageAccount?: string; + storageAccounts?: string[]; + /** + * If the storage associated with the workspace has hierarchical namespace(HNS) enabled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly storageHnsEnabled?: boolean; + /** The auth mode used for accessing the system datastores of the workspace. */ + systemDatastoresAuthMode?: string; + /** + * The tenant id associated with this workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. */ + v1LegacyMode?: boolean; + /** WorkspaceHub's configuration object. */ + workspaceHubConfig?: WorkspaceHubConfig; + /** + * The immutable id associated with this workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly workspaceId?: string; } -/** Literal input type. */ -export interface LiteralJobInput extends JobInput { - /** Polymorphic discriminator, which specifies the different types this object can be */ - jobInputType: "literal"; - /** [Required] Literal value for the input. */ - value: string; +export interface WorkspaceConnectionPropertiesV2BasicResource extends Resource { + properties: WorkspaceConnectionPropertiesV2Union; } -/** N-Cross validations determined automatically. */ -export interface AutoNCrossValidations extends NCrossValidations { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto"; +/** Outbound Rule Basic Resource for the managed network of a machine learning workspace. */ +export interface OutboundRuleBasicResource extends Resource { + /** Outbound Rule for the managed network of a machine learning workspace. */ + properties: OutboundRuleUnion; } -/** N-Cross validations are specified by user. */ -export interface CustomNCrossValidations extends NCrossValidations { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Custom"; - /** [Required] N-Cross validations value. */ - value: number; +/** A private link resource */ +export interface PrivateLinkResource extends Resource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; + /** Same as workspace location. */ + location?: string; + /** Optional. This field is required to be implemented by the RP because AML is supporting more than one tier */ + sku?: Sku; + /** Dictionary of */ + tags?: { [propertyName: string]: string }; + /** The private link resource group id. */ + groupId?: string; + /** The private link resource required member names. */ + requiredMembers?: string[]; + /** The private link resource Private link DNS zone name. */ + requiredZoneNames?: string[]; } -export interface AutoSeasonality extends Seasonality { +/** A Machine Learning compute based on AKS. */ +export interface Aks extends Compute, AKSSchema { /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto"; + computeType: "AKS"; } -export interface CustomSeasonality extends Seasonality { +/** A Machine Learning compute based on Kubernetes Compute. */ +export interface Kubernetes extends Compute, KubernetesSchema { /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Custom"; - /** [Required] Seasonality value. */ - value: number; + computeType: "Kubernetes"; } -export interface AutoTargetLags extends TargetLags { +/** An Azure Machine Learning compute. */ +export interface AmlCompute extends Compute, AmlComputeSchema { /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto"; + computeType: "AmlCompute"; } -export interface CustomTargetLags extends TargetLags { +/** An Azure Machine Learning compute instance. */ +export interface ComputeInstance extends Compute, ComputeInstanceSchema { /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Custom"; - /** [Required] Set target lags values. */ - values: number[]; + computeType: "ComputeInstance"; } -/** Target lags rolling window determined automatically. */ -export interface AutoTargetRollingWindowSize extends TargetRollingWindowSize { +/** A Machine Learning compute based on Azure Virtual Machines. */ +export interface VirtualMachine extends Compute, VirtualMachineSchema { /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto"; + computeType: "VirtualMachine"; } -export interface CustomTargetRollingWindowSize extends TargetRollingWindowSize { +/** A HDInsight compute. */ +export interface HDInsight extends Compute, HDInsightSchema { /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Custom"; - /** [Required] TargetRollingWindowSize value. */ - value: number; + computeType: "HDInsight"; } -/** Defines an early termination policy based on slack criteria, and a frequency and delay interval for evaluation */ -export interface BanditPolicy extends EarlyTerminationPolicy { +/** A DataFactory compute. */ +export interface DataFactory extends Compute { /** 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; + computeType: "DataFactory"; } -/** Defines an early termination policy based on running averages of the primary metric of all runs */ -export interface MedianStoppingPolicy extends EarlyTerminationPolicy { +/** A DataFactory compute. */ +export interface Databricks extends Compute, DatabricksSchema { /** Polymorphic discriminator, which specifies the different types this object can be */ - policyType: "MedianStopping"; + computeType: "Databricks"; } -/** Defines an early termination policy that cancels a given percentage of runs at each evaluation interval. */ -export interface TruncationSelectionPolicy extends EarlyTerminationPolicy { +/** A DataLakeAnalytics compute. */ +export interface DataLakeAnalytics extends Compute, DataLakeAnalyticsSchema { /** 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; + computeType: "DataLakeAnalytics"; } -/** Defines a Sampling Algorithm that generates values based on previous values */ -export interface BayesianSamplingAlgorithm extends SamplingAlgorithm { +/** A SynapseSpark compute. */ +export interface SynapseSpark extends Compute { /** Polymorphic discriminator, which specifies the different types this object can be */ - samplingAlgorithmType: "Bayesian"; + computeType: "SynapseSpark"; + properties?: SynapseSparkProperties; } -/** Defines a Sampling Algorithm that exhaustively generates every value combination in the space */ -export interface GridSamplingAlgorithm extends SamplingAlgorithm { +/** Secrets related to a Machine Learning compute based on AKS. */ +export interface AksComputeSecrets + extends ComputeSecrets, + AksComputeSecretsProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ - samplingAlgorithmType: "Grid"; + computeType: "AKS"; } -/** Defines a Sampling Algorithm that generates values randomly */ -export interface RandomSamplingAlgorithm extends SamplingAlgorithm { +/** Secrets related to a Machine Learning compute based on AKS. */ +export interface VirtualMachineSecrets + extends ComputeSecrets, + VirtualMachineSecretsSchema { /** 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; + computeType: "VirtualMachine"; } -/** Classification Training related configuration. */ -export interface ClassificationTrainingSettings extends TrainingSettings { - /** Allowed models for classification task. */ - allowedTrainingAlgorithms?: ClassificationModels[]; - /** Blocked models for classification task. */ - blockedTrainingAlgorithms?: ClassificationModels[]; +/** Secrets related to a Machine Learning compute based on Databricks. */ +export interface DatabricksComputeSecrets + extends ComputeSecrets, + DatabricksComputeSecretsProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "Databricks"; } -/** Forecasting Training related configuration. */ -export interface ForecastingTrainingSettings extends TrainingSettings { - /** Allowed models for forecasting task. */ - allowedTrainingAlgorithms?: ForecastingModels[]; - /** Blocked models for forecasting task. */ - blockedTrainingAlgorithms?: ForecastingModels[]; +export interface AssetContainer extends ResourceBase { + /** Is the asset archived? */ + isArchived?: boolean; + /** + * The latest version inside this container. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly latestVersion?: string; + /** + * The next auto incremental version + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextVersion?: string; } -/** Regression Training related configuration. */ -export interface RegressionTrainingSettings extends TrainingSettings { - /** Allowed models for regression task. */ - allowedTrainingAlgorithms?: RegressionModels[]; - /** Blocked models for regression task. */ - blockedTrainingAlgorithms?: RegressionModels[]; +export interface AssetBase extends ResourceBase { + /** Specifies the lifecycle setting of managed data asset. */ + autoDeleteSetting?: AutoDeleteSetting; + /** If the name version are system generated (anonymous registration). For types where Stage is defined, when Stage is provided it will be used to populate IsAnonymous */ + isAnonymous?: boolean; + /** Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived */ + isArchived?: boolean; } -/** 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; +/** Base definition for datastore contents configuration. */ +export interface DatastoreProperties extends ResourceBase { + /** [Required] Account credentials. */ + credentials: DatastoreCredentialsUnion; + /** [Required] Storage type backing the datastore. */ + datastoreType: DatastoreType; + /** Intellectual Property details. */ + intellectualProperty?: IntellectualProperty; /** - * 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. + * Readonly property to indicate if datastore is the workspace default datastore + * NOTE: This property will not be serialized. It can only be populated by the server. */ - 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 }; + readonly isDefault?: boolean; } -export interface NlpVerticalFeaturizationSettings - extends FeaturizationSettings {} +/** Dto object representing feature */ +export interface FeatureProperties extends ResourceBase { + /** Specifies type */ + dataType?: FeatureDataType; + /** Specifies name */ + featureName?: string; +} -/** MPI distribution configuration. */ -export interface Mpi extends DistributionConfiguration { +/** Base definition for a job. */ +export interface JobBaseProperties extends ResourceBase { + /** ARM resource ID of the component resource. */ + componentId?: string; + /** ARM resource ID of the compute resource. */ + computeId?: string; + /** Display name of job. */ + displayName?: string; + /** The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. */ + experimentName?: string; + /** + * Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. + * Defaults to AmlToken if null. + */ + identity?: IdentityConfigurationUnion; + /** Is the asset archived? */ + isArchived?: boolean; + /** [Required] Specifies the type of job. */ + jobType: JobType; + /** Notification setting for the job */ + notificationSetting?: NotificationSetting; + /** Configuration for secrets to be made available during runtime. */ + secretsConfiguration?: { [propertyName: string]: SecretConfiguration | null }; + /** + * List of JobEndpoints. + * For local jobs, a job endpoint will have an endpoint value of FileStreamObject. + */ + services?: { [propertyName: string]: JobService | null }; + /** + * Status of the job. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: JobStatus; +} + +/** Base definition of a schedule */ +export interface ScheduleProperties extends ResourceBase { + /** [Required] Specifies the action of the schedule */ + action: ScheduleActionBaseUnion; + /** Display name of schedule. */ + displayName?: string; + /** Is the schedule enabled? */ + isEnabled?: boolean; + /** + * Provisioning state for the schedule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ScheduleProvisioningStatus; + /** [Required] Specifies the trigger details */ + trigger: TriggerBaseUnion; +} + +export interface SASCredentialDto extends PendingUploadCredentialDto { /** Polymorphic discriminator, which specifies the different types this object can be */ - distributionType: "Mpi"; - /** Number of processes per MPI node. */ - processCountPerInstance?: number; + credentialType: "SAS"; + /** Full SAS Uri, including the storage, container/blob path and SAS token */ + sasUri?: string; } -/** PyTorch distribution configuration. */ -export interface PyTorch extends DistributionConfiguration { +/** Base environment type. */ +export interface BaseEnvironmentId extends BaseEnvironmentSource { /** Polymorphic discriminator, which specifies the different types this object can be */ - distributionType: "PyTorch"; - /** Number of processes per node. */ - processCountPerInstance?: number; + baseEnvironmentSourceType: "EnvironmentAsset"; + /** [Required] Resource id accepting ArmId or AzureMlId. */ + resourceId: string; } -/** TensorFlow distribution configuration. */ -export interface TensorFlow extends DistributionConfiguration { +/** Azure ML batch inferencing server configurations. */ +export interface AzureMLBatchInferencingServer extends InferencingServer { /** 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; + serverType: "AzureMLBatch"; + /** Code configuration for AML batch inferencing server. */ + codeConfiguration?: CodeConfiguration; } -/** Command Job limit class. */ -export interface CommandJobLimits extends JobLimits { +/** Azure ML online inferencing configurations. */ +export interface AzureMLOnlineInferencingServer extends InferencingServer { /** Polymorphic discriminator, which specifies the different types this object can be */ - jobLimitsType: "Command"; + serverType: "AzureMLOnline"; + /** Code configuration for AML inferencing server. */ + codeConfiguration?: CodeConfiguration; } -/** Sweep Job limit class. */ -export interface SweepJobLimits extends JobLimits { +/** Custom inference server configurations. */ +export interface CustomInferencingServer extends InferencingServer { /** 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; + serverType: "Custom"; + /** Inference configuration for custom inferencing. */ + inferenceConfiguration?: OnlineInferenceConfiguration; } -/** - * 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; +/** Triton inferencing server configurations. */ +export interface TritonInferencingServer extends InferencingServer { + /** Polymorphic discriminator, which specifies the different types this object can be */ + serverType: "Triton"; + /** Inference configuration for Triton. */ + inferenceConfiguration?: OnlineInferenceConfiguration; } -/** - * 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; +/** Package input path specified with a resource id. */ +export interface PackageInputPathId extends PackageInputPathBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + inputPathType: "PathId"; + /** Input resource id. */ + resourceId?: string; +} + +/** Package input path specified as an url. */ +export interface PackageInputPathUrl extends PackageInputPathBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + inputPathType: "Url"; + /** Input path url. */ + url?: string; +} + +/** Package input path specified with name and version. */ +export interface PackageInputPathVersion extends PackageInputPathBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + inputPathType: "PathVersion"; + /** Input resource name. */ + resourceName?: string; + /** Input resource version. */ + resourceVersion?: string; +} + +/** Batch endpoint configuration. */ +export interface BatchEndpointProperties extends EndpointPropertiesBase { + /** Default values for Batch Endpoint. */ + defaults?: BatchEndpointDefaults; /** - * 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. + * Provisioning state for the endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - imageSize?: number; + readonly provisioningState?: EndpointProvisioningState; +} + +/** Online endpoint configuration */ +export interface OnlineEndpointProperties extends EndpointPropertiesBase { /** - * 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. + * ARM resource ID of the compute if it exists. + * optional */ - maxSize?: number; + 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 }; /** - * 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. + * Provisioning state for the endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - 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[]; + 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 }; } -export interface BatchEndpoint extends TrackedResource { +/** Strictly used in update requests. */ +export interface PartialMinimalTrackedResourceWithIdentity + extends PartialMinimalTrackedResource { /** 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; + identity?: PartialManagedServiceIdentity; } -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; +/** Strictly used in update requests. */ +export interface PartialMinimalTrackedResourceWithSku + extends PartialMinimalTrackedResource { /** Sku details required for ARM contract for Autoscaling. */ - sku?: Sku; + sku?: PartialSku; } -export interface OnlineEndpoint extends TrackedResource { +/** Strictly used in update requests. */ +export interface PartialMinimalTrackedResourceWithSkuAndIdentity + extends PartialMinimalTrackedResource { /** Managed service identity (system assigned and/or user assigned identities) */ - identity?: ManagedServiceIdentity; - /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ - kind?: string; - /** [Required] Additional attributes of the entity. */ - properties: OnlineEndpointProperties; + identity?: PartialManagedServiceIdentity; /** Sku details required for ARM contract for Autoscaling. */ - sku?: Sku; + sku?: PartialSku; } -export interface OnlineDeployment 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: OnlineDeploymentPropertiesUnion; - /** Sku details required for ARM contract for Autoscaling. */ - sku?: Sku; +/** Properties for a Batch Pipeline Component Deployment. */ +export interface BatchPipelineComponentDeploymentConfiguration + extends BatchDeploymentConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + deploymentConfigurationType: "PipelineComponent"; + /** The ARM id of the component to be run. */ + componentId?: IdAssetReference; + /** The description which will be applied to the job. */ + description?: string; + /** Run-time settings for the pipeline job. */ + settings?: { [propertyName: string]: string | null }; + /** The tags which will be applied to the job. */ + tags?: { [propertyName: string]: string | null }; } -/** Properties specific to a KubernetesOnlineDeployment. */ -export interface KubernetesOnlineDeployment extends OnlineDeploymentProperties { +/** Reference to an asset via its ARM resource ID. */ +export interface IdAssetReference extends AssetReferenceBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - endpointComputeType: "Kubernetes"; - /** The resource requirements for the container (cpu and memory). */ - containerResourceRequirements?: ContainerResourceRequirements; + referenceType: "Id"; + /** [Required] ARM resource ID of the asset. */ + assetId: string; } -/** Properties specific to a ManagedOnlineDeployment. */ -export interface ManagedOnlineDeployment extends OnlineDeploymentProperties { +/** Reference to an asset via its path in a datastore. */ +export interface DataPathAssetReference extends AssetReferenceBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - endpointComputeType: "Managed"; + referenceType: "DataPath"; + /** ARM resource ID of the datastore where the asset is located. */ + datastoreId?: string; + /** The path of the file/directory in the datastore. */ + path?: string; } -/** Container for code asset versions. */ -export interface CodeContainerProperties extends AssetContainer {} - -/** - * Component container definition. - * - */ -export interface ComponentContainerProperties extends AssetContainer {} - -/** Container for data asset versions. */ -export interface DataContainerProperties extends AssetContainer { - /** [Required] Specifies the type of data. */ - dataType: DataType; +/** Reference to an asset via its path in a job output. */ +export interface OutputPathAssetReference extends AssetReferenceBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + referenceType: "OutputPath"; + /** ARM resource ID of the job. */ + jobId?: string; + /** The path of the file/directory in the job output. */ + path?: string; } -/** Container for environment specification versions. */ -export interface EnvironmentContainerProperties extends AssetContainer {} +export interface DeploymentResourceConfiguration + extends ResourceConfiguration {} -export interface ModelContainerProperties extends AssetContainer {} +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; +} -/** Code asset version details. */ -export interface CodeVersionProperties extends AssetBase { - /** Uri where code is located */ - codeUri?: string; -} - -/** Definition of a component version: defines resources that span component types. */ -export interface ComponentVersionProperties extends AssetBase { +/** Batch inference settings per deployment. */ +export interface BatchDeploymentProperties + extends EndpointDeploymentPropertiesBase { + /** Compute target for batch inference operation. */ + compute?: string; + /** Properties relevant to different deployment types. */ + deploymentConfiguration?: BatchDeploymentConfigurationUnion; /** - * Defines Component definition details. - * + * Error threshold, if the error count for the entire input goes above this value, + * the batch inference will be aborted. Range is [-1, int.MaxValue]. + * For FileDataset, this value is the count of file failures. + * For TabularDataset, this value is the count of record failures. + * If set to -1 (the lower bound), all failures during batch inference will be ignored. */ - componentSpec?: Record; -} - -/** Data version base definition */ -export interface DataVersionBaseProperties extends AssetBase { - /** [Required] Specifies the type of data. */ - dataType: DataType; - /** [Required] Uri of the data. Usage/meaning depends on Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20221001.Assets.DataVersionBase.DataType */ - dataUri: string; -} - -/** Environment version details. */ -export interface EnvironmentVersionProperties extends AssetBase { - /** Defines if image needs to be rebuilt based on base image changes. */ - autoRebuild?: AutoRebuildSetting; - /** Configuration settings for Docker build context. */ - build?: BuildContext; + errorThreshold?: number; + /** Logging level for batch inference operation. */ + loggingLevel?: BatchLoggingLevel; + /** Indicates maximum number of parallelism per instance. */ + maxConcurrencyPerInstance?: number; /** - * Standard configuration file used by Conda that lets you install any kind of package, including Python, R, and C/C++ packages. - * + * Size of the mini-batch passed to each batch invocation. + * For FileDataset, this is the number of files per mini-batch. + * For TabularDataset, this is the size of the records in bytes, per mini-batch. */ - condaFile?: string; + miniBatchSize?: number; + /** Reference to the model asset for the endpoint deployment. */ + model?: AssetReferenceBaseUnion; + /** Indicates how the output will be organized. */ + outputAction?: BatchOutputAction; + /** Customized output file name for append_row output action. */ + outputFileName?: string; /** - * Environment type is either user managed or curated by the Azure ML service - * + * Provisioning state for the endpoint deployment. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly environmentType?: EnvironmentType; + readonly provisioningState?: DeploymentProvisioningState; /** - * Name of the image that will be used for the environment. - * + * Indicates compute configuration for the job. + * If not provided, will default to the defaults defined in ResourceConfiguration. */ - image?: string; - /** Defines configuration specific to inference. */ - inferenceConfig?: InferenceContainerProperties; - /** The OS type of the environment. */ - osType?: OperatingSystemType; + resources?: DeploymentResourceConfiguration; + /** + * Retry Settings for the batch inference operation. + * If not provided, will default to the defaults defined in BatchRetrySettings. + */ + retrySettings?: BatchRetrySettings; } -/** Model asset version details. */ -export interface ModelVersionProperties extends AssetBase { - /** Mapping of model flavors to their properties. */ - flavors?: { [propertyName: string]: FlavorData | null }; - /** Name of the training job which produced this model */ - jobName?: string; - /** The storage format for this entity. Used for NCD. */ - modelType?: string; - /** The URI path to the model contents. */ - modelUri?: string; +export interface OnlineDeploymentProperties + extends EndpointDeploymentPropertiesBase { + /** If true, enables Application Insights logging. */ + appInsightsEnabled?: boolean; + /** The mdc configuration, we disable mdc when it's null. */ + dataCollector?: DataCollector; + /** If Enabled, allow egress public network access. If Disabled, this will create secure egress. Default: Enabled. */ + egressPublicNetworkAccess?: EgressPublicNetworkAccessType; + /** [Required] The compute type of the endpoint. */ + endpointComputeType: EndpointComputeType; + /** Compute instance type. */ + instanceType?: string; + /** Liveness probe monitors the health of the container regularly. */ + livenessProbe?: ProbeSettings; + /** The URI path to the model. */ + model?: string; + /** The path to mount the model in custom container. */ + modelMountPath?: string; + /** + * Provisioning state for the endpoint deployment. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: DeploymentProvisioningState; + /** Readiness probe validates if the container is ready to serve traffic. The properties and defaults are the same as liveness probe. */ + readinessProbe?: ProbeSettings; + /** Request settings for the deployment. */ + requestSettings?: OnlineRequestSettings; + /** + * Scale settings for the deployment. + * If it is null or not provided, + * it defaults to TargetUtilizationScaleSettings for KubernetesOnlineDeployment + * and to DefaultScaleSettings for ManagedOnlineDeployment. + */ + scaleSettings?: OnlineScaleSettingsUnion; } -/** Azure Blob datastore configuration. */ -export interface AzureBlobDatastore extends DatastoreProperties { +/** Account key datastore credentials configuration. */ +export interface AccountKeyDatastoreCredentials extends DatastoreCredentials { /** Polymorphic discriminator, which specifies the different types this object can be */ - datastoreType: "AzureBlob"; - /** Storage account name. */ - accountName?: string; - /** Storage account container name. */ - containerName?: string; - /** Azure cloud endpoint for the storage account. */ - endpoint?: string; - /** Protocol used to communicate with the storage account. */ - protocol?: string; - /** Indicates which identity to use to authenticate service data access to customer's storage. */ - serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; + credentialsType: "AccountKey"; + /** [Required] Storage account secrets. */ + secrets: AccountKeyDatastoreSecrets; } -/** Azure Data Lake Gen1 datastore configuration. */ -export interface AzureDataLakeGen1Datastore extends DatastoreProperties { +/** Certificate datastore credentials configuration. */ +export interface CertificateDatastoreCredentials extends DatastoreCredentials { /** Polymorphic discriminator, which specifies the different types this object can be */ - datastoreType: "AzureDataLakeGen1"; - /** Indicates which identity to use to authenticate service data access to customer's storage. */ - serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; - /** [Required] Azure Data Lake store name. */ - storeName: string; + credentialsType: "Certificate"; + /** Authority URL used for authentication. */ + authorityUrl?: string; + /** [Required] Service principal client ID. */ + clientId: string; + /** Resource the service principal has access to. */ + resourceUrl?: string; + /** [Required] Service principal secrets. */ + secrets: CertificateDatastoreSecrets; + /** [Required] ID of the tenant to which the service principal belongs. */ + tenantId: string; + /** [Required] Thumbprint of the certificate used for authentication. */ + thumbprint: string; } -/** Azure Data Lake Gen2 datastore configuration. */ -export interface AzureDataLakeGen2Datastore extends DatastoreProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - datastoreType: "AzureDataLakeGen2"; - /** [Required] Storage account name. */ - accountName: string; - /** Azure cloud endpoint for the storage account. */ - endpoint?: string; - /** [Required] The name of the Data Lake Gen2 filesystem. */ - filesystem: string; - /** Protocol used to communicate with the storage account. */ - protocol?: string; - /** Indicates which identity to use to authenticate service data access to customer's storage. */ - serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; +export interface KerberosKeytabCredentials + extends KerberosCredentials, + DatastoreCredentials { + /** [Required] Keytab secrets. */ + secrets: KerberosKeytabSecrets; } -/** Azure File datastore configuration. */ -export interface AzureFileDatastore extends DatastoreProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - datastoreType: "AzureFile"; - /** [Required] Storage account name. */ - accountName: string; - /** Azure cloud endpoint for the storage account. */ - endpoint?: string; - /** [Required] The name of the Azure file share that the datastore points to. */ - fileShareName: string; - /** Protocol used to communicate with the storage account. */ - protocol?: string; - /** Indicates which identity to use to authenticate service data access to customer's storage. */ - serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; +export interface KerberosPasswordCredentials + extends KerberosCredentials, + DatastoreCredentials { + /** [Required] Kerberos password secrets. */ + secrets: KerberosPasswordSecrets; } -/** - * 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 { +/** Empty/none datastore credentials. */ +export interface NoneDatastoreCredentials extends DatastoreCredentials { /** Polymorphic discriminator, which specifies the different types this object can be */ - jobType: "AutoML"; - /** - * 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; + credentialsType: "None"; } -/** Command job definition. */ -export interface CommandJob extends JobBaseProperties { +/** SAS datastore credentials configuration. */ +export interface SasDatastoreCredentials extends DatastoreCredentials { /** Polymorphic discriminator, which specifies the different types this object can be */ - jobType: "Command"; - /** ARM resource ID of the code asset. */ - codeId?: string; - /** [Required] The command to execute on startup of the job. eg. "python train.py" */ - command: string; - /** Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. */ - distribution?: DistributionConfigurationUnion; - /** [Required] The ARM resource ID of the Environment specification for the job. */ - environmentId: string; - /** Environment variables included in the job. */ - environmentVariables?: { [propertyName: string]: string | null }; - /** Mapping of input data bindings used in the job. */ - inputs?: { [propertyName: string]: JobInputUnion | null }; - /** Command Job limit. */ - limits?: CommandJobLimits; - /** Mapping of output data bindings used in the job. */ - outputs?: { [propertyName: string]: JobOutputUnion | null }; - /** - * Input parameters. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly parameters?: Record; - /** Compute Resource configuration for the job. */ - resources?: JobResourceConfiguration; + credentialsType: "Sas"; + /** [Required] Storage container secrets. */ + secrets: SasDatastoreSecrets; } -/** Pipeline Job definition: defines generic to MFE attributes. */ -export interface PipelineJob extends JobBaseProperties { +/** Service Principal datastore credentials configuration. */ +export interface ServicePrincipalDatastoreCredentials + extends DatastoreCredentials { /** Polymorphic discriminator, which specifies the different types this object can be */ - jobType: "Pipeline"; - /** Inputs for the pipeline job. */ - inputs?: { [propertyName: string]: JobInputUnion | null }; - /** Jobs construct the Pipeline Job. */ - jobs?: { [propertyName: string]: Record }; - /** Outputs for the pipeline job */ - outputs?: { [propertyName: string]: JobOutputUnion | null }; - /** Pipeline settings, for things like ContinueRunOnStepFailure etc. */ - settings?: Record; - /** ARM resource ID of source job. */ - sourceJobId?: string; + credentialsType: "ServicePrincipal"; + /** Authority URL used for authentication. */ + authorityUrl?: string; + /** [Required] Service principal client ID. */ + clientId: string; + /** Resource the service principal has access to. */ + resourceUrl?: string; + /** [Required] Service principal secrets. */ + secrets: ServicePrincipalDatastoreSecrets; + /** [Required] ID of the tenant to which the service principal belongs. */ + tenantId: string; } -/** Sweep job definition. */ -export interface SweepJob extends JobBaseProperties { +/** Datastore account key secrets. */ +export interface AccountKeyDatastoreSecrets extends DatastoreSecrets { /** Polymorphic discriminator, which specifies the different types this object can be */ - jobType: "Sweep"; - /** Early termination policies enable canceling poor-performing runs before they complete */ - earlyTermination?: EarlyTerminationPolicyUnion; - /** Mapping of input data bindings used in the job. */ - inputs?: { [propertyName: string]: JobInputUnion | null }; - /** Sweep Job limit. */ - limits?: SweepJobLimits; - /** [Required] Optimization objective. */ - objective: Objective; - /** Mapping of output data bindings used in the job. */ - outputs?: { [propertyName: string]: JobOutputUnion | null }; - /** [Required] The hyperparameter sampling algorithm */ - samplingAlgorithm: SamplingAlgorithmUnion; - /** [Required] A dictionary containing each parameter and its distribution. The dictionary key is the name of the parameter */ - searchSpace: Record; - /** [Required] Trial component definition. */ - trial: TrialComponent; + secretsType: "AccountKey"; + /** Storage account key. */ + key?: string; } -/** MLTable data definition */ -export interface MLTableData extends DataVersionBaseProperties { +/** Datastore certificate secrets. */ +export interface CertificateDatastoreSecrets extends DatastoreSecrets { /** Polymorphic discriminator, which specifies the different types this object can be */ - dataType: "mltable"; - /** Uris referenced in the MLTable definition (required for lineage) */ - referencedUris?: string[]; + secretsType: "Certificate"; + /** Service principal certificate. */ + certificate?: string; } -/** uri-file data version entity */ -export interface UriFileDataVersion extends DataVersionBaseProperties { +export interface KerberosKeytabSecrets extends DatastoreSecrets { /** Polymorphic discriminator, which specifies the different types this object can be */ - dataType: "uri_file"; + secretsType: "KerberosKeytab"; + /** Kerberos keytab secret. */ + kerberosKeytab?: string; } -/** uri-folder data version entity */ -export interface UriFolderDataVersion extends DataVersionBaseProperties { +export interface KerberosPasswordSecrets extends DatastoreSecrets { /** Polymorphic discriminator, which specifies the different types this object can be */ - dataType: "uri_folder"; + secretsType: "KerberosPassword"; + /** Kerberos password secret. */ + kerberosPassword?: string; } -/** Defines headers for Workspaces_diagnose operation. */ -export interface WorkspacesDiagnoseHeaders { - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +/** Datastore SAS secrets. */ +export interface SasDatastoreSecrets extends DatastoreSecrets { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: "Sas"; + /** Storage container SAS token. */ + sasToken?: string; } -/** Defines headers for Compute_createOrUpdate operation. */ -export interface ComputeCreateOrUpdateHeaders { - /** URI to poll for asynchronous operation status. */ - azureAsyncOperation?: string; +/** Datastore Service Principal secrets. */ +export interface ServicePrincipalDatastoreSecrets extends DatastoreSecrets { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: "ServicePrincipal"; + /** Service principal secret. */ + clientSecret?: string; } -/** Defines headers for Compute_delete operation. */ -export interface ComputeDeleteHeaders { - /** URI to poll for asynchronous operation status. */ - azureAsyncOperation?: string; - /** URI to poll for asynchronous operation result. */ - location?: string; +/** Webhook details specific for Azure DevOps */ +export interface AzureDevOpsWebhook extends Webhook { + /** Polymorphic discriminator, which specifies the different types this object can be */ + webhookType: "AzureDevOps"; } -/** Defines headers for BatchEndpoints_delete operation. */ -export interface BatchEndpointsDeleteHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +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; + /** The recurrence schedule. */ + schedule?: RecurrenceSchedule; } -/** Defines headers for BatchEndpoints_update operation. */ -export interface BatchEndpointsUpdateHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +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; } -/** Defines headers for BatchEndpoints_createOrUpdate operation. */ -export interface BatchEndpointsCreateOrUpdateHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation status. */ - azureAsyncOperation?: string; +/** AML Token identity configuration. */ +export interface AmlToken extends IdentityConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + identityType: "AMLToken"; } -/** Defines headers for BatchDeployments_delete operation. */ -export interface BatchDeploymentsDeleteHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +/** Managed identity configuration. */ +export interface ManagedIdentity extends IdentityConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + identityType: "Managed"; + /** Specifies a user-assigned identity by client ID. For system-assigned, do not set this field. */ + clientId?: string; + /** Specifies a user-assigned identity by object ID. For system-assigned, do not set this field. */ + objectId?: string; + /** Specifies a user-assigned identity by ARM resource ID. For system-assigned, do not set this field. */ + resourceId?: string; } -/** Defines headers for BatchDeployments_update operation. */ -export interface BatchDeploymentsUpdateHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +/** User identity configuration. */ +export interface UserIdentity extends IdentityConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + identityType: "UserIdentity"; } -/** Defines headers for BatchDeployments_createOrUpdate operation. */ -export interface BatchDeploymentsCreateOrUpdateHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation status. */ - azureAsyncOperation?: string; +/** All nodes means the service will be running on all of the nodes of the job */ +export interface AllNodes extends Nodes { + /** Polymorphic discriminator, which specifies the different types this object can be */ + nodesValueType: "All"; } -/** Defines headers for Jobs_delete operation. */ -export interface JobsDeleteHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +/** 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; } -/** Defines headers for Jobs_cancel operation. */ -export interface JobsCancelHeaders { - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +/** 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; } -/** Defines headers for OnlineEndpoints_delete operation. */ -export interface OnlineEndpointsDeleteHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +/** 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"; } -/** Defines headers for OnlineEndpoints_update operation. */ -export interface OnlineEndpointsUpdateHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +/** 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; } -/** Defines headers for OnlineEndpoints_createOrUpdate operation. */ -export interface OnlineEndpointsCreateOrUpdateHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation status. */ - azureAsyncOperation?: string; +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; } -/** Defines headers for OnlineEndpoints_regenerateKeys operation. */ -export interface OnlineEndpointsRegenerateKeysHeaders { - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +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; } -/** Defines headers for OnlineDeployments_delete operation. */ -export interface OnlineDeploymentsDeleteHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +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; } -/** Defines headers for OnlineDeployments_update operation. */ -export interface OnlineDeploymentsUpdateHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +export interface DefaultScaleSettings extends OnlineScaleSettings { + /** Polymorphic discriminator, which specifies the different types this object can be */ + scaleType: "Default"; } -/** Defines headers for OnlineDeployments_createOrUpdate operation. */ -export interface OnlineDeploymentsCreateOrUpdateHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation status. */ - azureAsyncOperation?: string; +export interface TargetUtilizationScaleSettings extends OnlineScaleSettings { + /** Polymorphic discriminator, which specifies the different types this object can be */ + scaleType: "TargetUtilization"; + /** The maximum number of instances that the deployment can scale to. The quota will be reserved for max_instances. */ + maxInstances?: number; + /** The minimum number of instances to always be present. */ + minInstances?: number; + /** The polling interval in ISO 8691 format. Only supports duration with precision as low as Seconds. */ + pollingInterval?: string; + /** Target CPU usage for the autoscaler. */ + targetUtilizationPercentage?: number; } -/** 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; +export interface CreateMonitorAction extends ScheduleActionBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + actionType: "CreateMonitor"; + /** [Required] Defines the monitor. */ + monitorDefinition: MonitorDefinition; } -/** 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; +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; } -/** Known values of {@link ProvisioningState} that the service accepts. */ -export enum KnownProvisioningState { - /** Unknown */ - Unknown = "Unknown", - /** Updating */ - Updating = "Updating", - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled" +export interface ImportDataAction extends ScheduleActionBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + actionType: "ImportData"; + /** [Required] Defines Schedule action definition details. */ + dataImportDefinition: DataImport; } -/** - * Defines values for ProvisioningState. \ - * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Unknown** \ - * **Updating** \ - * **Creating** \ - * **Deleting** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** - */ -export type ProvisioningState = string; +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; +} -/** Known values of {@link EncryptionStatus} that the service accepts. */ -export enum KnownEncryptionStatus { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** The PE network resource that is linked to this PE connection. */ +export interface PrivateEndpointResource extends PrivateEndpoint { + /** The subnetId that the private endpoint is connected to. */ + subnetArmId?: string; } -/** - * Defines values for EncryptionStatus. \ - * {@link KnownEncryptionStatus} can be used interchangeably with EncryptionStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled** \ - * **Disabled** - */ -export type EncryptionStatus = string; +/** FQDN Outbound Rule for the managed network of a machine learning workspace. */ +export interface FqdnOutboundRule extends OutboundRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "FQDN"; + destination?: string; +} -/** Known values of {@link PublicNetworkAccess} that the service accepts. */ -export enum KnownPublicNetworkAccess { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Private Endpoint Outbound Rule for the managed network of a machine learning workspace. */ +export interface PrivateEndpointOutboundRule extends OutboundRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "PrivateEndpoint"; + /** Private Endpoint destination for a Private Endpoint Outbound Rule for the managed network of a machine learning workspace. */ + destination?: PrivateEndpointDestination; } -/** - * Defines values for PublicNetworkAccess. \ - * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled** \ - * **Disabled** - */ -export type PublicNetworkAccess = string; +/** Service Tag Outbound Rule for the managed network of a machine learning workspace. */ +export interface ServiceTagOutboundRule extends OutboundRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "ServiceTag"; + /** Service Tag destination for a Service Tag Outbound Rule for the managed network of a machine learning workspace. */ + destination?: ServiceTagDestination; +} -/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ -export enum KnownPrivateEndpointServiceConnectionStatus { - /** Pending */ - Pending = "Pending", - /** Approved */ - Approved = "Approved", - /** Rejected */ - Rejected = "Rejected", - /** Disconnected */ - Disconnected = "Disconnected", - /** Timeout */ - Timeout = "Timeout" +export interface AccessKeyAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "AccessKey"; + credentials?: WorkspaceConnectionAccessKey; } /** - * Defines values for PrivateEndpointServiceConnectionStatus. \ - * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Pending** \ - * **Approved** \ - * **Rejected** \ - * **Disconnected** \ - * **Timeout** + * This connection type covers the generic ApiKey auth connection categories, for examples: + * AzureOpenAI: + * Category:= AzureOpenAI + * AuthType:= ApiKey (as type discriminator) + * Credentials:= {ApiKey} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.ApiKey + * Target:= {ApiBase} + * + * CognitiveService: + * Category:= CognitiveService + * AuthType:= ApiKey (as type discriminator) + * Credentials:= {SubscriptionKey} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.ApiKey + * Target:= ServiceRegion={serviceRegion} + * + * CognitiveSearch: + * Category:= CognitiveSearch + * AuthType:= ApiKey (as type discriminator) + * Credentials:= {Key} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.ApiKey + * Target:= {Endpoint} + * + * Use Metadata property bag for ApiType, ApiVersion, Kind and other metadata fields */ -export type PrivateEndpointServiceConnectionStatus = string; - -/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ -export enum KnownPrivateEndpointConnectionProvisioningState { - /** Succeeded */ - Succeeded = "Succeeded", - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", - /** Failed */ - Failed = "Failed" +export interface ApiKeyAuthWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "ApiKey"; + /** Api key object for workspace connection credential. */ + credentials?: WorkspaceConnectionApiKey; } /** - * Defines values for PrivateEndpointConnectionProvisioningState. \ - * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Succeeded** \ - * **Creating** \ - * **Deleting** \ - * **Failed** + * Category:= CustomKeys + * AuthType:= CustomKeys (as type discriminator) + * Credentials:= {CustomKeys} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.CustomKeys + * Target:= {any value} + * Use Metadata property bag for ApiVersion and other metadata fields */ -export type PrivateEndpointConnectionProvisioningState = string; +export interface CustomKeysWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "CustomKeys"; + /** Custom Keys credential object */ + credentials?: CustomKeys; +} -/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ -export enum KnownManagedServiceIdentityType { - /** None */ - None = "None", - /** SystemAssigned */ - SystemAssigned = "SystemAssigned", - /** UserAssigned */ - UserAssigned = "UserAssigned", - /** SystemAssignedUserAssigned */ - SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" +export interface ManagedIdentityAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "ManagedIdentity"; + credentials?: WorkspaceConnectionManagedIdentity; } -/** - * Defines values for ManagedServiceIdentityType. \ - * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **SystemAssigned** \ - * **UserAssigned** \ - * **SystemAssigned,UserAssigned** - */ -export type ManagedServiceIdentityType = string; +export interface NoneAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "None"; +} -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" +export interface PATAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "PAT"; + credentials?: WorkspaceConnectionPersonalAccessToken; } -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; +export interface SASAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "SAS"; + credentials?: WorkspaceConnectionSharedAccessSignature; +} -/** Known values of {@link DiagnoseResultLevel} that the service accepts. */ -export enum KnownDiagnoseResultLevel { - /** Warning */ - Warning = "Warning", - /** Error */ - Error = "Error", - /** Information */ - Information = "Information" +export interface ServicePrincipalAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "ServicePrincipal"; + credentials?: WorkspaceConnectionServicePrincipal; } -/** - * Defines values for DiagnoseResultLevel. \ - * {@link KnownDiagnoseResultLevel} can be used interchangeably with DiagnoseResultLevel, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Warning** \ - * **Error** \ - * **Information** - */ -export type DiagnoseResultLevel = string; +export interface UsernamePasswordAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "UsernamePassword"; + credentials?: WorkspaceConnectionUsernamePassword; +} -/** Known values of {@link UsageUnit} that the service accepts. */ -export enum KnownUsageUnit { - /** Count */ - Count = "Count" +export interface AllFeatures extends MonitoringFeatureFilterBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + filterType: "AllFeatures"; } -/** - * Defines values for UsageUnit. \ - * {@link KnownUsageUnit} can be used interchangeably with UsageUnit, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Count** - */ -export type UsageUnit = string; +export interface FeatureSubset extends MonitoringFeatureFilterBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + filterType: "FeatureSubset"; + /** [Required] The list of features to include. */ + features: string[]; +} -/** Known values of {@link BillingCurrency} that the service accepts. */ -export enum KnownBillingCurrency { - /** USD */ - USD = "USD" +export interface TopNFeaturesByAttribution extends MonitoringFeatureFilterBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + filterType: "TopNByAttribution"; + /** The number of top features to include. */ + top?: number; } -/** - * Defines values for BillingCurrency. \ - * {@link KnownBillingCurrency} can be used interchangeably with BillingCurrency, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **USD** - */ -export type BillingCurrency = string; +/** AML token compute identity definition. */ +export interface AmlTokenComputeIdentity extends MonitorComputeIdentityBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeIdentityType: "AmlToken"; +} -/** Known values of {@link UnitOfMeasure} that the service accepts. */ -export enum KnownUnitOfMeasure { - /** OneHour */ - OneHour = "OneHour" +/** Managed compute identity definition. */ +export interface ManagedComputeIdentity extends MonitorComputeIdentityBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeIdentityType: "ManagedIdentity"; + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; } -/** - * Defines values for UnitOfMeasure. \ - * {@link KnownUnitOfMeasure} can be used interchangeably with UnitOfMeasure, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **OneHour** - */ -export type UnitOfMeasure = string; +export interface MLTableJobInput extends AssetJobInput, JobInput {} -/** Known values of {@link VMPriceOSType} that the service accepts. */ -export enum KnownVMPriceOSType { - /** Linux */ - Linux = "Linux", - /** Windows */ - Windows = "Windows" +export interface CustomModelJobInput extends AssetJobInput, JobInput {} + +export interface MLFlowModelJobInput extends AssetJobInput, JobInput {} + +export interface TritonModelJobInput extends AssetJobInput, JobInput {} + +export interface UriFileJobInput extends AssetJobInput, JobInput {} + +export interface UriFolderJobInput extends AssetJobInput, JobInput {} + +export interface CustomModelJobOutput extends AssetJobOutput, JobOutput {} + +export interface MLFlowModelJobOutput extends AssetJobOutput, JobOutput {} + +export interface MLTableJobOutput extends AssetJobOutput, JobOutput {} + +export interface TritonModelJobOutput extends AssetJobOutput, JobOutput {} + +export interface UriFileJobOutput extends AssetJobOutput, JobOutput {} + +export interface UriFolderJobOutput extends AssetJobOutput, JobOutput {} + +/** Forecast horizon determined automatically by system. */ +export interface AutoForecastHorizon extends ForecastHorizon { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto"; } -/** - * Defines values for VMPriceOSType. \ - * {@link KnownVMPriceOSType} can be used interchangeably with VMPriceOSType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Linux** \ - * **Windows** - */ -export type VMPriceOSType = string; +/** 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 */ + mode: "Custom"; + /** [Required] Forecast horizon value. */ + value: number; +} -/** Known values of {@link VMTier} that the service accepts. */ -export enum KnownVMTier { - /** Standard */ - Standard = "Standard", - /** LowPriority */ - LowPriority = "LowPriority", - /** Spot */ - Spot = "Spot" +/** 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; +} + +/** 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 values for VMTier. \ - * {@link KnownVMTier} can be used interchangeably with VMTier, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Standard** \ - * **LowPriority** \ - * **Spot** + * 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 type VMTier = string; - -/** Known values of {@link QuotaUnit} that the service accepts. */ -export enum KnownQuotaUnit { - /** Count */ - Count = "Count" +export interface ImageClassification + extends ImageClassificationBase, + AutoMLVertical { + /** Primary metric to optimize for this task. */ + primaryMetric?: ClassificationPrimaryMetrics; } /** - * Defines values for QuotaUnit. \ - * {@link KnownQuotaUnit} can be used interchangeably with QuotaUnit, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Count** + * 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 type QuotaUnit = string; - -/** Known values of {@link Status} that the service accepts. */ -export enum KnownStatus { - /** Undefined */ - Undefined = "Undefined", - /** Success */ - Success = "Success", - /** Failure */ - Failure = "Failure", - /** InvalidQuotaBelowClusterMinimum */ - InvalidQuotaBelowClusterMinimum = "InvalidQuotaBelowClusterMinimum", - /** InvalidQuotaExceedsSubscriptionLimit */ - InvalidQuotaExceedsSubscriptionLimit = "InvalidQuotaExceedsSubscriptionLimit", - /** InvalidVMFamilyName */ - InvalidVMFamilyName = "InvalidVMFamilyName", - /** OperationNotSupportedForSku */ - OperationNotSupportedForSku = "OperationNotSupportedForSku", - /** OperationNotEnabledForRegion */ - OperationNotEnabledForRegion = "OperationNotEnabledForRegion" +export interface ImageClassificationMultilabel + extends ImageClassificationBase, + AutoMLVertical { + /** Primary metric to optimize for this task. */ + primaryMetric?: ClassificationMultilabelPrimaryMetrics; } /** - * Defines values for Status. \ - * {@link KnownStatus} can be used interchangeably with Status, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Undefined** \ - * **Success** \ - * **Failure** \ - * **InvalidQuotaBelowClusterMinimum** \ - * **InvalidQuotaExceedsSubscriptionLimit** \ - * **InvalidVMFamilyName** \ - * **OperationNotSupportedForSku** \ - * **OperationNotEnabledForRegion** + * 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 type Status = string; - -/** Known values of {@link ComputeType} that the service accepts. */ -export enum KnownComputeType { - /** AKS */ - AKS = "AKS", - /** Kubernetes */ - Kubernetes = "Kubernetes", - /** AmlCompute */ - AmlCompute = "AmlCompute", - /** ComputeInstance */ - ComputeInstance = "ComputeInstance", - /** DataFactory */ - DataFactory = "DataFactory", - /** VirtualMachine */ - VirtualMachine = "VirtualMachine", - /** HDInsight */ - HDInsight = "HDInsight", - /** Databricks */ - Databricks = "Databricks", - /** DataLakeAnalytics */ - DataLakeAnalytics = "DataLakeAnalytics", - /** SynapseSpark */ - SynapseSpark = "SynapseSpark" +export interface ImageInstanceSegmentation + extends ImageObjectDetectionBase, + AutoMLVertical { + /** Primary metric to optimize for this task. */ + primaryMetric?: InstanceSegmentationPrimaryMetrics; } /** - * Defines values for ComputeType. \ - * {@link KnownComputeType} can be used interchangeably with ComputeType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AKS** \ - * **Kubernetes** \ - * **AmlCompute** \ - * **ComputeInstance** \ - * **DataFactory** \ - * **VirtualMachine** \ - * **HDInsight** \ - * **Databricks** \ - * **DataLakeAnalytics** \ - * **SynapseSpark** + * 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 type ComputeType = string; +export interface ImageObjectDetection + extends ImageObjectDetectionBase, + AutoMLVertical { + /** Primary metric to optimize for this task. */ + primaryMetric?: ObjectDetectionPrimaryMetrics; +} -/** Known values of {@link UnderlyingResourceAction} that the service accepts. */ -export enum KnownUnderlyingResourceAction { - /** Delete */ - Delete = "Delete", - /** Detach */ - Detach = "Detach" +/** 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; } /** - * Defines values for UnderlyingResourceAction. \ - * {@link KnownUnderlyingResourceAction} can be used interchangeably with UnderlyingResourceAction, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Delete** \ - * **Detach** + * Text Classification task in AutoML NLP vertical. + * NLP - Natural Language Processing. */ -export type UnderlyingResourceAction = string; - -/** Known values of {@link NodeState} that the service accepts. */ -export enum KnownNodeState { - /** Idle */ - Idle = "idle", - /** Running */ - Running = "running", - /** Preparing */ - Preparing = "preparing", - /** Unusable */ - Unusable = "unusable", - /** Leaving */ - Leaving = "leaving", - /** Preempted */ - Preempted = "preempted" +export interface TextClassification extends NlpVertical, AutoMLVertical { + /** Primary metric for Text-Classification task. */ + primaryMetric?: ClassificationPrimaryMetrics; } /** - * Defines values for NodeState. \ - * {@link KnownNodeState} can be used interchangeably with NodeState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **idle** \ - * **running** \ - * **preparing** \ - * **unusable** \ - * **leaving** \ - * **preempted** + * Text Classification Multilabel task in AutoML NLP vertical. + * NLP - Natural Language Processing. */ -export type NodeState = string; - -/** Known values of {@link ConnectionAuthType} that the service accepts. */ -export enum KnownConnectionAuthType { - /** PAT */ - PAT = "PAT", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** UsernamePassword */ - UsernamePassword = "UsernamePassword", - /** None */ - None = "None", - /** SAS */ - SAS = "SAS" +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; } /** - * Defines values for ConnectionAuthType. \ - * {@link KnownConnectionAuthType} can be used interchangeably with ConnectionAuthType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **PAT** \ - * **ManagedIdentity** \ - * **UsernamePassword** \ - * **None** \ - * **SAS** + * Text-NER task in AutoML NLP vertical. + * NER - Named Entity Recognition. + * NLP - Natural Language Processing. */ -export type ConnectionAuthType = string; - -/** Known values of {@link ConnectionCategory} that the service accepts. */ -export enum KnownConnectionCategory { - /** PythonFeed */ - PythonFeed = "PythonFeed", - /** ContainerRegistry */ - ContainerRegistry = "ContainerRegistry", - /** Git */ - Git = "Git" +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; } -/** - * Defines values for ConnectionCategory. \ - * {@link KnownConnectionCategory} can be used interchangeably with ConnectionCategory, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **PythonFeed** \ - * **ContainerRegistry** \ - * **Git** - */ -export type ConnectionCategory = string; +/** Literal input type. */ +export interface LiteralJobInput extends JobInput { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobInputType: "literal"; + /** [Required] Literal value for the input. */ + value: string; +} -/** Known values of {@link ValueFormat} that the service accepts. */ -export enum KnownValueFormat { - /** Json */ - Json = "JSON" +/** N-Cross validations determined automatically. */ +export interface AutoNCrossValidations extends NCrossValidations { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto"; } -/** - * Defines values for ValueFormat. \ - * {@link KnownValueFormat} can be used interchangeably with ValueFormat, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **JSON** - */ -export type ValueFormat = string; +/** N-Cross validations are specified by user. */ +export interface CustomNCrossValidations extends NCrossValidations { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Custom"; + /** [Required] N-Cross validations value. */ + value: number; +} -/** Known values of {@link EndpointProvisioningState} that the service accepts. */ -export enum KnownEndpointProvisioningState { - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Updating */ - Updating = "Updating", - /** Canceled */ - Canceled = "Canceled" +export interface AutoSeasonality extends Seasonality { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto"; } -/** - * Defines values for EndpointProvisioningState. \ - * {@link KnownEndpointProvisioningState} can be used interchangeably with EndpointProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Deleting** \ - * **Succeeded** \ - * **Failed** \ - * **Updating** \ - * **Canceled** - */ -export type EndpointProvisioningState = string; +export interface CustomSeasonality extends Seasonality { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Custom"; + /** [Required] Seasonality value. */ + value: number; +} -/** Known values of {@link EndpointAuthMode} that the service accepts. */ -export enum KnownEndpointAuthMode { - /** AMLToken */ - AMLToken = "AMLToken", - /** Key */ - Key = "Key", - /** AADToken */ - AADToken = "AADToken" +export interface AutoTargetLags extends TargetLags { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto"; } -/** - * Defines values for EndpointAuthMode. \ - * {@link KnownEndpointAuthMode} can be used interchangeably with EndpointAuthMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AMLToken** \ - * **Key** \ - * **AADToken** - */ -export type EndpointAuthMode = string; +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[]; +} -/** Known values of {@link BatchLoggingLevel} that the service accepts. */ -export enum KnownBatchLoggingLevel { - /** Info */ - Info = "Info", - /** Warning */ - Warning = "Warning", - /** Debug */ - Debug = "Debug" +/** Target lags rolling window determined automatically. */ +export interface AutoTargetRollingWindowSize extends TargetRollingWindowSize { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto"; } -/** - * Defines values for BatchLoggingLevel. \ - * {@link KnownBatchLoggingLevel} can be used interchangeably with BatchLoggingLevel, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Info** \ - * **Warning** \ - * **Debug** - */ -export type BatchLoggingLevel = string; +export interface CustomTargetRollingWindowSize extends TargetRollingWindowSize { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Custom"; + /** [Required] TargetRollingWindowSize value. */ + value: number; +} -/** Known values of {@link ReferenceType} that the service accepts. */ -export enum KnownReferenceType { - /** Id */ - Id = "Id", - /** DataPath */ - DataPath = "DataPath", - /** OutputPath */ - OutputPath = "OutputPath" +export interface AzMonMonitoringAlertNotificationSettings + extends MonitoringAlertNotificationSettingsBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + alertNotificationType: "AzureMonitor"; } -/** - * Defines values for ReferenceType. \ - * {@link KnownReferenceType} can be used interchangeably with ReferenceType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Id** \ - * **DataPath** \ - * **OutputPath** - */ -export type ReferenceType = string; +export interface EmailMonitoringAlertNotificationSettings + extends MonitoringAlertNotificationSettingsBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + alertNotificationType: "Email"; + /** Configuration for notification. */ + emailNotificationSetting?: NotificationSetting; +} -/** Known values of {@link BatchOutputAction} that the service accepts. */ -export enum KnownBatchOutputAction { - /** SummaryOnly */ - SummaryOnly = "SummaryOnly", - /** AppendRow */ - AppendRow = "AppendRow" +/** 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; } -/** - * Defines values for BatchOutputAction. \ - * {@link KnownBatchOutputAction} can be used interchangeably with BatchOutputAction, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **SummaryOnly** \ - * **AppendRow** - */ -export type BatchOutputAction = string; +/** 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; +} -/** Known values of {@link DeploymentProvisioningState} that the service accepts. */ -export enum KnownDeploymentProvisioningState { - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", - /** Scaling */ - Scaling = "Scaling", - /** Updating */ - Updating = "Updating", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled" +/** 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; } -/** - * Defines values for DeploymentProvisioningState. \ - * {@link KnownDeploymentProvisioningState} can be used interchangeably with DeploymentProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Deleting** \ - * **Scaling** \ - * **Updating** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** - */ -export type DeploymentProvisioningState = string; +/** 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; +} -/** Known values of {@link ListViewType} that the service accepts. */ -export enum KnownListViewType { - /** ActiveOnly */ - ActiveOnly = "ActiveOnly", - /** ArchivedOnly */ - ArchivedOnly = "ArchivedOnly", - /** All */ - All = "All" +/** 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 values for ListViewType. \ - * {@link KnownListViewType} can be used interchangeably with ListViewType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ActiveOnly** \ - * **ArchivedOnly** \ - * **All** - */ -export type ListViewType = string; +/** 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"; +} -/** Known values of {@link DataType} that the service accepts. */ -export enum KnownDataType { - /** UriFile */ - UriFile = "uri_file", - /** UriFolder */ - UriFolder = "uri_folder", - /** Mltable */ - Mltable = "mltable" +/** 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 values for DataType. \ - * {@link KnownDataType} can be used interchangeably with DataType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **uri_file** \ - * **uri_folder** \ - * **mltable** - */ -export type DataType = string; +/** 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"; +} -/** Known values of {@link CredentialsType} that the service accepts. */ -export enum KnownCredentialsType { - /** AccountKey */ - AccountKey = "AccountKey", - /** Certificate */ - Certificate = "Certificate", - /** None */ - None = "None", - /** Sas */ - Sas = "Sas", - /** ServicePrincipal */ - ServicePrincipal = "ServicePrincipal" +/** 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 values for CredentialsType. \ - * {@link KnownCredentialsType} can be used interchangeably with CredentialsType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AccountKey** \ - * **Certificate** \ - * **None** \ - * **Sas** \ - * **ServicePrincipal** - */ -export type CredentialsType = string; +/** 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"; + /** An optional positive number or e in string format to be used as base for log based random sampling */ + logbase?: string; + /** The specific type of random algorithm */ + rule?: RandomSamplingAlgorithmRule; + /** An optional integer to use as the seed for random number generation */ + seed?: number; +} -/** Known values of {@link DatastoreType} that the service accepts. */ -export enum KnownDatastoreType { - /** AzureBlob */ - AzureBlob = "AzureBlob", - /** AzureDataLakeGen1 */ - AzureDataLakeGen1 = "AzureDataLakeGen1", - /** AzureDataLakeGen2 */ - AzureDataLakeGen2 = "AzureDataLakeGen2", - /** AzureFile */ - AzureFile = "AzureFile" +export interface CategoricalDataDriftMetricThreshold + extends DataDriftMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "Categorical"; + /** [Required] The categorical data drift metric to calculate. */ + metric: CategoricalDataDriftMetric; } -/** - * Defines values for DatastoreType. \ - * {@link KnownDatastoreType} can be used interchangeably with DatastoreType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AzureBlob** \ - * **AzureDataLakeGen1** \ - * **AzureDataLakeGen2** \ - * **AzureFile** - */ -export type DatastoreType = string; +export interface NumericalDataDriftMetricThreshold + extends DataDriftMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "Numerical"; + /** [Required] The numerical data drift metric to calculate. */ + metric: NumericalDataDriftMetric; +} -/** Known values of {@link SecretsType} that the service accepts. */ -export enum KnownSecretsType { - /** AccountKey */ - AccountKey = "AccountKey", - /** Certificate */ - Certificate = "Certificate", - /** Sas */ - Sas = "Sas", - /** ServicePrincipal */ - ServicePrincipal = "ServicePrincipal" +export interface CategoricalDataQualityMetricThreshold + extends DataQualityMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "Categorical"; + /** [Required] The categorical data quality metric to calculate. */ + metric: CategoricalDataQualityMetric; } -/** - * Defines values for SecretsType. \ - * {@link KnownSecretsType} can be used interchangeably with SecretsType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AccountKey** \ - * **Certificate** \ - * **Sas** \ - * **ServicePrincipal** - */ -export type SecretsType = string; +export interface NumericalDataQualityMetricThreshold + extends DataQualityMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "Numerical"; + /** [Required] The numerical data quality metric to calculate. */ + metric: NumericalDataQualityMetric; +} -/** Known values of {@link AutoRebuildSetting} that the service accepts. */ -export enum KnownAutoRebuildSetting { - /** Disabled */ - Disabled = "Disabled", - /** OnBaseImageUpdate */ - OnBaseImageUpdate = "OnBaseImageUpdate" +export interface CategoricalPredictionDriftMetricThreshold + extends PredictionDriftMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "Categorical"; + /** [Required] The categorical prediction drift metric to calculate. */ + metric: CategoricalPredictionDriftMetric; } -/** - * Defines values for AutoRebuildSetting. \ - * {@link KnownAutoRebuildSetting} can be used interchangeably with AutoRebuildSetting, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Disabled** \ - * **OnBaseImageUpdate** - */ -export type AutoRebuildSetting = string; +export interface NumericalPredictionDriftMetricThreshold + extends PredictionDriftMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "Numerical"; + /** [Required] The numerical prediction drift metric to calculate. */ + metric: NumericalPredictionDriftMetric; +} -/** Known values of {@link EnvironmentType} that the service accepts. */ -export enum KnownEnvironmentType { - /** Curated */ - Curated = "Curated", - /** UserCreated */ - UserCreated = "UserCreated" +/** Classification Training related configuration. */ +export interface ClassificationTrainingSettings extends TrainingSettings { + /** Allowed models for classification task. */ + allowedTrainingAlgorithms?: ClassificationModels[]; + /** Blocked models for classification task. */ + blockedTrainingAlgorithms?: ClassificationModels[]; } -/** - * Defines values for EnvironmentType. \ - * {@link KnownEnvironmentType} can be used interchangeably with EnvironmentType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Curated** \ - * **UserCreated** - */ -export type EnvironmentType = string; +/** Forecasting Training related configuration. */ +export interface ForecastingTrainingSettings extends TrainingSettings { + /** Allowed models for forecasting task. */ + allowedTrainingAlgorithms?: ForecastingModels[]; + /** Blocked models for forecasting task. */ + blockedTrainingAlgorithms?: ForecastingModels[]; +} -/** Known values of {@link OperatingSystemType} that the service accepts. */ -export enum KnownOperatingSystemType { - /** Linux */ - Linux = "Linux", - /** Windows */ - Windows = "Windows" +/** Regression Training related configuration. */ +export interface RegressionTrainingSettings extends TrainingSettings { + /** Allowed models for regression task. */ + allowedTrainingAlgorithms?: RegressionModels[]; + /** Blocked models for regression task. */ + blockedTrainingAlgorithms?: RegressionModels[]; } -/** - * Defines values for OperatingSystemType. \ - * {@link KnownOperatingSystemType} can be used interchangeably with OperatingSystemType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Linux** \ - * **Windows** - */ -export type OperatingSystemType = string; +/** 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 }; +} -/** Known values of {@link IdentityConfigurationType} that the service accepts. */ -export enum KnownIdentityConfigurationType { - /** Managed */ - Managed = "Managed", - /** AMLToken */ - AMLToken = "AMLToken", - /** UserIdentity */ - UserIdentity = "UserIdentity" +export interface NlpVerticalFeaturizationSettings + extends FeaturizationSettings {} + +export interface ClassificationModelPerformanceMetricThreshold + extends ModelPerformanceMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + modelType: "Classification"; + /** [Required] The classification model performance to calculate. */ + metric: ClassificationModelPerformanceMetric; } -/** - * Defines values for IdentityConfigurationType. \ - * {@link KnownIdentityConfigurationType} can be used interchangeably with IdentityConfigurationType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Managed** \ - * **AMLToken** \ - * **UserIdentity** - */ -export type IdentityConfigurationType = string; +export interface RegressionModelPerformanceMetricThreshold + extends ModelPerformanceMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + modelType: "Regression"; + /** [Required] The regression model performance metric to calculate. */ + metric: RegressionModelPerformanceMetric; +} -/** Known values of {@link JobType} that the service accepts. */ -export enum KnownJobType { - /** AutoML */ - AutoML = "AutoML", - /** Command */ - Command = "Command", - /** Sweep */ - Sweep = "Sweep", - /** Pipeline */ - Pipeline = "Pipeline" +/** 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; } -/** - * Defines values for JobType. \ - * {@link KnownJobType} can be used interchangeably with JobType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AutoML** \ - * **Command** \ - * **Sweep** \ - * **Pipeline** - */ -export type JobType = string; +/** 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; +} -/** Known values of {@link JobStatus} that the service accepts. */ -export enum KnownJobStatus { - /** Run hasn't started yet. */ - NotStarted = "NotStarted", - /** Run has started. The user has a run ID. */ - Starting = "Starting", - /** (Not used currently) It will be used if ES is creating the compute target. */ - Provisioning = "Provisioning", - /** The run environment is being prepared. */ - Preparing = "Preparing", - /** The job is queued in the compute target. For example, in BatchAI the job is in queued state, while waiting for all required nodes to be ready. */ - Queued = "Queued", - /** The job started to run in the compute target. */ - Running = "Running", - /** Job is completed in the target. It is in output collection state now. */ - Finalizing = "Finalizing", - /** Cancellation has been requested for the job. */ - CancelRequested = "CancelRequested", - /** Job completed successfully. This reflects that both the job itself and output collection states completed successfully */ - Completed = "Completed", - /** Job failed. */ - Failed = "Failed", - /** Following cancellation request, the job is now successfully canceled. */ - Canceled = "Canceled", - /** - * When heartbeat is enabled, if the run isn't updating any information to RunHistory then the run goes to NotResponding state. - * NotResponding is the only state that is exempt from strict transition orders. A run can go from NotResponding to any of the previous states. - */ - NotResponding = "NotResponding", - /** The job is paused by users. Some adjustment to labeling jobs can be made only in paused state. */ - Paused = "Paused", - /** Default job status if not mapped to all other statuses */ - Unknown = "Unknown" +/** Ray distribution configuration. */ +export interface Ray extends DistributionConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + distributionType: "Ray"; + /** The address of Ray head node. */ + address?: string; + /** The port to bind the dashboard server to. */ + dashboardPort?: number; + /** Additional arguments passed to ray start in head node. */ + headNodeAdditionalArgs?: string; + /** Provide this argument to start the Ray dashboard GUI. */ + includeDashboard?: boolean; + /** The port of the head ray process. */ + port?: number; + /** Additional arguments passed to ray start in worker node. */ + workerNodeAdditionalArgs?: string; } -/** - * Defines values for JobStatus. \ - * {@link KnownJobStatus} can be used interchangeably with JobStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotStarted**: Run hasn't started yet. \ - * **Starting**: Run has started. The user has a run ID. \ - * **Provisioning**: (Not used currently) It will be used if ES is creating the compute target. \ - * **Preparing**: The run environment is being prepared. \ - * **Queued**: The job is queued in the compute target. For example, in BatchAI the job is in queued state, while waiting for all required nodes to be ready. \ - * **Running**: The job started to run in the compute target. \ - * **Finalizing**: Job is completed in the target. It is in output collection state now. \ - * **CancelRequested**: Cancellation has been requested for the job. \ - * **Completed**: Job completed successfully. This reflects that both the job itself and output collection states completed successfully \ - * **Failed**: Job failed. \ - * **Canceled**: Following cancellation request, the job is now successfully canceled. \ - * **NotResponding**: When heartbeat is enabled, if the run isn't updating any information to RunHistory then the run goes to NotResponding state. - * NotResponding is the only state that is exempt from strict transition orders. A run can go from NotResponding to any of the previous states. \ - * **Paused**: The job is paused by users. Some adjustment to labeling jobs can be made only in paused state. \ - * **Unknown**: Default job status if not mapped to all other statuses - */ -export type JobStatus = string; +/** 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; +} -/** Known values of {@link EndpointComputeType} that the service accepts. */ -export enum KnownEndpointComputeType { - /** Managed */ - Managed = "Managed", - /** Kubernetes */ - Kubernetes = "Kubernetes", - /** AzureMLCompute */ - AzureMLCompute = "AzureMLCompute" +/** Command Job limit class. */ +export interface CommandJobLimits extends JobLimits { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobLimitsType: "Command"; } -/** - * Defines values for EndpointComputeType. \ - * {@link KnownEndpointComputeType} can be used interchangeably with EndpointComputeType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Managed** \ - * **Kubernetes** \ - * **AzureMLCompute** - */ -export type EndpointComputeType = string; +/** 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; +} -/** Known values of {@link OrderString} that the service accepts. */ -export enum KnownOrderString { - /** CreatedAtDesc */ - CreatedAtDesc = "CreatedAtDesc", - /** CreatedAtAsc */ - CreatedAtAsc = "CreatedAtAsc", - /** UpdatedAtDesc */ - UpdatedAtDesc = "UpdatedAtDesc", - /** UpdatedAtAsc */ - UpdatedAtAsc = "UpdatedAtAsc" +/** Monitor serverless spark compute definition. */ +export interface MonitorServerlessSparkCompute + extends MonitorComputeConfigurationBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "ServerlessSpark"; + /** [Required] The identity scheme leveraged to by the spark jobs running on serverless Spark. */ + computeIdentity: MonitorComputeIdentityBaseUnion; + /** [Required] The instance type running the Spark job. */ + instanceType: string; + /** [Required] The Spark runtime version. */ + runtimeVersion: string; } -/** - * Defines values for OrderString. \ - * {@link KnownOrderString} can be used interchangeably with OrderString, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **CreatedAtDesc** \ - * **CreatedAtAsc** \ - * **UpdatedAtDesc** \ - * **UpdatedAtAsc** - */ -export type OrderString = string; +export interface CustomMonitoringSignal extends MonitoringSignalBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + signalType: "Custom"; + /** [Required] ARM resource ID of the component resource used to calculate the custom metrics. */ + componentId: string; + /** Monitoring assets to take as input. Key is the component input port name, value is the data asset. */ + inputAssets?: { [propertyName: string]: MonitoringInputDataBaseUnion | null }; + /** Extra component parameters to take as input. Key is the component literal input port name, value is the parameter value. */ + inputs?: { [propertyName: string]: JobInputUnion | null }; + /** [Required] A list of metrics to calculate and their associated thresholds. */ + metricThresholds: CustomMetricThreshold[]; + /** [Required] A list of metrics to calculate and their associated thresholds. */ + workspaceConnection: MonitoringWorkspaceConnection; +} -/** Known values of {@link PublicNetworkAccessType} that the service accepts. */ -export enum KnownPublicNetworkAccessType { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +export interface DataDriftMonitoringSignal extends MonitoringSignalBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + signalType: "DataDrift"; + /** The data segment used for scoping on a subset of the data population. */ + dataSegment?: MonitoringDataSegment; + /** A dictionary that maps feature names to their respective data types. */ + featureDataTypeOverride?: { + [propertyName: string]: MonitoringFeatureDataType; + }; + /** The feature filter which identifies which feature to calculate drift over. */ + features?: MonitoringFeatureFilterBaseUnion; + /** [Required] A list of metrics to calculate and their associated thresholds. */ + metricThresholds: DataDriftMetricThresholdBaseUnion[]; + /** [Required] The data which drift will be calculated for. */ + productionData: MonitoringInputDataBaseUnion; + /** [Required] The data to calculate drift against. */ + referenceData: MonitoringInputDataBaseUnion; +} + +export interface DataQualityMonitoringSignal extends MonitoringSignalBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + signalType: "DataQuality"; + /** A dictionary that maps feature names to their respective data types. */ + featureDataTypeOverride?: { + [propertyName: string]: MonitoringFeatureDataType; + }; + /** The features to calculate drift over. */ + features?: MonitoringFeatureFilterBaseUnion; + /** [Required] A list of metrics to calculate and their associated thresholds. */ + metricThresholds: DataQualityMetricThresholdBaseUnion[]; + /** [Required] The data produced by the production service which drift will be calculated for. */ + productionData: MonitoringInputDataBaseUnion; + /** [Required] The data to calculate drift against. */ + referenceData: MonitoringInputDataBaseUnion; +} + +export interface FeatureAttributionDriftMonitoringSignal + extends MonitoringSignalBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + signalType: "FeatureAttributionDrift"; + /** [Required] A list of metrics to calculate and their associated thresholds. */ + metricThreshold: FeatureAttributionMetricThreshold; + /** [Required] The data which drift will be calculated for. */ + productionData: MonitoringInputDataBaseUnion[]; + /** [Required] The data to calculate drift against. */ + referenceData: MonitoringInputDataBaseUnion; +} + +/** Generation safety quality monitoring signal definition. */ +export interface GenerationSafetyQualityMonitoringSignal + extends MonitoringSignalBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + signalType: "GenerationSafetyQuality"; + /** [Required] Gets or sets the metrics to calculate and the corresponding thresholds. */ + metricThresholds: GenerationSafetyQualityMetricThreshold[]; + /** Gets or sets the target data for computing metrics. */ + productionData?: MonitoringInputDataBaseUnion[]; + /** [Required] The sample rate of the target data, should be greater than 0 and at most 1. */ + samplingRate: number; + /** Gets or sets the workspace connection ID used to connect to the content generation endpoint. */ + workspaceConnectionId?: string; +} + +/** Generation token statistics signal definition. */ +export interface GenerationTokenStatisticsSignal extends MonitoringSignalBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + signalType: "GenerationTokenStatistics"; + /** [Required] Gets or sets the metrics to calculate and the corresponding thresholds. */ + metricThresholds: GenerationTokenStatisticsMetricThreshold[]; + /** Gets or sets the target data for computing metrics. */ + productionData?: MonitoringInputDataBaseUnion; + /** [Required] The sample rate of the target data, should be greater than 0 and at most 1. */ + samplingRate: number; } -/** - * 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; +/** Model performance signal definition. */ +export interface ModelPerformanceSignal extends MonitoringSignalBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + signalType: "ModelPerformance"; + /** The data segment. */ + dataSegment?: MonitoringDataSegment; + /** [Required] A list of metrics to calculate and their associated thresholds. */ + metricThreshold: ModelPerformanceMetricThresholdBaseUnion; + /** [Required] The data produced by the production service which drift will be calculated for. */ + productionData: MonitoringInputDataBaseUnion[]; + /** [Required] The data to calculate drift against. */ + referenceData: MonitoringInputDataBaseUnion; +} + +export interface PredictionDriftMonitoringSignal extends MonitoringSignalBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + signalType: "PredictionDrift"; + /** [Required] A list of metrics to calculate and their associated thresholds. */ + metricThresholds: PredictionDriftMetricThresholdBaseUnion[]; + /** [Required] The type of the model monitored. */ + modelType: MonitoringModelType; + /** [Required] The data which drift will be calculated for. */ + productionData: MonitoringInputDataBaseUnion; + /** [Required] The data to calculate drift against. */ + referenceData: MonitoringInputDataBaseUnion; +} + +/** Fixed input data definition. */ +export interface FixedInputData extends MonitoringInputDataBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + inputDataType: "Fixed"; +} -/** Known values of {@link EgressPublicNetworkAccessType} that the service accepts. */ -export enum KnownEgressPublicNetworkAccessType { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Static input data definition. */ +export interface StaticInputData extends MonitoringInputDataBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + inputDataType: "Static"; + /** The ARM resource ID of the component resource used to preprocess the data. */ + preprocessingComponentId?: string; + /** [Required] The end date of the data window. */ + windowEnd: Date; + /** [Required] The start date of the data window. */ + windowStart: Date; } -/** - * 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; +/** Trailing input data definition. */ +export interface TrailingInputData extends MonitoringInputDataBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + inputDataType: "Trailing"; + /** The ARM resource ID of the component resource used to preprocess the data. */ + preprocessingComponentId?: string; + /** [Required] The time offset between the end of the data window and the monitor's current run time. */ + windowOffset: string; + /** [Required] The size of the trailing data window. */ + windowSize: string; +} -/** Known values of {@link ScaleType} that the service accepts. */ -export enum KnownScaleType { - /** Default */ - Default = "Default", - /** TargetUtilization */ - TargetUtilization = "TargetUtilization" +export interface DatabaseSource extends DataImportSource { + /** Polymorphic discriminator, which specifies the different types this object can be */ + sourceType: "database"; + /** SQL Query statement for data import Database source */ + query?: string; + /** SQL StoredProcedure on data import Database source */ + storedProcedure?: string; + /** SQL StoredProcedure parameters */ + storedProcedureParams?: { [propertyName: string]: string }[]; + /** Name of the table on data import Database source */ + tableName?: string; +} + +export interface FileSystemSource extends DataImportSource { + /** Polymorphic discriminator, which specifies the different types this object can be */ + sourceType: "file_system"; + /** Path on data import FileSystem source */ + path?: string; } /** - * Defines values for ScaleType. \ - * {@link KnownScaleType} can be used interchangeably with ScaleType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Default** \ - * **TargetUtilization** + * 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 type ScaleType = string; - -/** Known values of {@link ContainerType} that the service accepts. */ -export enum KnownContainerType { - /** StorageInitializer */ - StorageInitializer = "StorageInitializer", - /** InferenceServer */ - InferenceServer = "InferenceServer" +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; } /** - * Defines values for ContainerType. \ - * {@link KnownContainerType} can be used interchangeably with ContainerType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **StorageInitializer** \ - * **InferenceServer** + * 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 type ContainerType = string; - -/** Known values of {@link SkuScaleType} that the service accepts. */ -export enum KnownSkuScaleType { - /** Automatically scales node count. */ +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; + /** Enable computing and logging training metrics. */ + logTrainingMetrics?: LogTrainingMetrics; + /** Enable computing and logging validation loss. */ + logValidationLoss?: LogValidationLoss; + /** + * 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 LakeHouseArtifact extends OneLakeArtifact { + /** Polymorphic discriminator, which specifies the different types this object can be */ + artifactType: "LakeHouse"; +} + +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: "SparkJobScalaEntry"; + /** [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 { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** [Required] Additional attributes of the entity. */ + properties: OnlineEndpointProperties; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: Sku; +} + +export interface OnlineDeployment extends TrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** [Required] Additional attributes of the entity. */ + properties: OnlineDeploymentPropertiesUnion; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: Sku; +} + +export interface ServerlessEndpoint extends TrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** [Required] Additional attributes of the entity. */ + properties: ServerlessEndpointProperties; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: Sku; +} + +export interface Registry extends TrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: Sku; + /** Discovery URL for the Registry */ + discoveryUrl?: string; + /** IntellectualPropertyPublisher for the registry */ + intellectualPropertyPublisher?: string; + /** ResourceId of the managed RG if the registry has system created resources */ + managedResourceGroup?: ArmResourceId; + /** MLFlow Registry URI for the Registry */ + mlFlowRegistryUri?: string; + /** Private endpoint connections info used for pending connections in private link portal */ + registryPrivateEndpointConnections?: RegistryPrivateEndpointConnection[]; + /** + * Is the Registry accessible from the internet? + * Possible values: "Enabled" or "Disabled" + */ + publicNetworkAccess?: string; + /** Details of each region the registry is in */ + regionDetails?: RegistryRegionArmDetails[]; +} + +/** Container for code asset versions. */ +export interface CodeContainerProperties extends AssetContainer { + /** + * Provisioning state for the code container. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; +} + +/** + * Component container definition. + * + */ +export interface ComponentContainerProperties extends AssetContainer { + /** + * Provisioning state for the component container. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; +} + +/** Container for data asset versions. */ +export interface DataContainerProperties extends AssetContainer { + /** [Required] Specifies the type of data. */ + dataType: DataType; +} + +/** Container for environment specification versions. */ +export interface EnvironmentContainerProperties extends AssetContainer { + /** + * Provisioning state for the environment container. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; +} + +export interface ModelContainerProperties extends AssetContainer { + /** + * Provisioning state for the model container. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; +} + +/** Dto object representing feature set */ +export interface FeaturesetContainerProperties extends AssetContainer { + /** + * Provisioning state for the featureset container. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; +} + +/** Dto object representing feature entity */ +export interface FeaturestoreEntityContainerProperties extends AssetContainer { + /** + * Provisioning state for the featurestore entity container. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; +} + +/** Code asset version details. */ +export interface CodeVersionProperties extends AssetBase { + /** Uri where code is located */ + codeUri?: string; + /** + * Provisioning state for the code version. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; +} + +/** Definition of a component version: defines resources that span component types. */ +export interface ComponentVersionProperties extends AssetBase { + /** + * Defines Component definition details. + * + */ + componentSpec?: Record; + /** + * Provisioning state for the component version. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; + /** Stage in the component lifecycle */ + stage?: string; +} + +/** Data version base definition */ +export interface DataVersionBaseProperties extends AssetBase { + /** [Required] Specifies the type of data. */ + dataType: DataType; + /** [Required] Uri of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330 */ + dataUri: string; + /** Intellectual Property details. Used if data is an Intellectual Property. */ + intellectualProperty?: IntellectualProperty; + /** Stage in the data lifecycle assigned to this data asset */ + stage?: string; +} + +/** Environment version details. */ +export interface EnvironmentVersionProperties extends AssetBase { + /** Defines if image needs to be rebuilt based on base image changes. */ + autoRebuild?: AutoRebuildSetting; + /** Configuration settings for Docker build context. */ + build?: BuildContext; + /** + * Standard configuration file used by Conda that lets you install any kind of package, including Python, R, and C/C++ packages. + * + */ + condaFile?: string; + /** + * Environment type is either user managed or curated by the Azure ML service + * + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly environmentType?: EnvironmentType; + /** + * Name of the image that will be used for the environment. + * + */ + image?: string; + /** Defines configuration specific to inference. */ + inferenceConfig?: InferenceContainerProperties; + /** Intellectual Property details. Used if environment is an Intellectual Property. */ + intellectualProperty?: IntellectualProperty; + /** The OS type of the environment. */ + osType?: OperatingSystemType; + /** + * Provisioning state for the environment version. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; + /** Stage in the environment lifecycle assigned to this environment */ + stage?: string; +} + +/** Model asset version details. */ +export interface ModelVersionProperties extends AssetBase { + /** Mapping of model flavors to their properties. */ + flavors?: { [propertyName: string]: FlavorData | null }; + /** Intellectual Property details. Used if model is an Intellectual Property. */ + intellectualProperty?: IntellectualProperty; + /** Name of the training job which produced this model */ + jobName?: string; + /** The storage format for this entity. Used for NCD. */ + modelType?: string; + /** The URI path to the model contents. */ + modelUri?: string; + /** + * Provisioning state for the model version. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; + /** Stage in the model lifecycle assigned to this model */ + stage?: string; +} + +/** Dto object representing feature set version */ +export interface FeaturesetVersionProperties extends AssetBase { + /** Specifies list of entities */ + entities?: string[]; + /** Specifies the materialization settings */ + materializationSettings?: MaterializationSettings; + /** + * Provisioning state for the featureset version container. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; + /** Specifies the feature spec details */ + specification?: FeaturesetSpecification; + /** Specifies the asset stage */ + stage?: string; +} + +/** Dto object representing feature entity version */ +export interface FeaturestoreEntityVersionProperties extends AssetBase { + /** Specifies index columns */ + indexColumns?: IndexColumn[]; + /** + * Provisioning state for the featurestore entity version. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; + /** Specifies the asset stage */ + stage?: string; +} + +export interface HdfsDatastore extends DatastoreProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + datastoreType: "Hdfs"; + /** 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; +} + +/** OneLake (Trident) datastore configuration. */ +export interface OneLakeDatastore extends DatastoreProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + datastoreType: "OneLake"; + /** [Required] OneLake artifact backing the datastore. */ + artifact: OneLakeArtifactUnion; + /** OneLake endpoint to use for the datastore. */ + endpoint?: string; + /** [Required] OneLake workspace name. */ + oneLakeWorkspaceName: string; + /** Indicates which identity to use to authenticate service data access to customer's storage. */ + serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; +} + +/** Labeling job definition */ +export interface LabelingJobProperties extends JobBaseProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobType: "Labeling"; + /** + * 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[]; +} + +/** + * AutoMLJob class. + * Use this class for executing AutoML tasks like Classification/Regression etc. + * See TaskType enum for all the tasks supported. + */ +export interface AutoMLJob extends JobBaseProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobType: "AutoML"; + /** + * 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 }; + /** Queue settings for the job */ + queueSettings?: QueueSettings; + /** Compute Resource configuration for the job. */ + resources?: JobResourceConfiguration; + /** [Required] This represents scenario which can be one of Tables/NLP/Image */ + taskDetails: AutoMLVerticalUnion; +} + +/** Command job definition. */ +export interface CommandJob extends JobBaseProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobType: "Command"; + /** Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. */ + autologgerSettings?: AutologgerSettings; + /** ARM resource ID of the code asset. */ + codeId?: string; + /** [Required] The command to execute on startup of the job. eg. "python train.py" */ + command: string; + /** Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, Ray, or null. */ + distribution?: DistributionConfigurationUnion; + /** [Required] The ARM resource ID of the Environment specification for the job. */ + environmentId: string; + /** Environment variables included in the job. */ + environmentVariables?: { [propertyName: string]: string | null }; + /** Mapping of input data bindings used in the job. */ + inputs?: { [propertyName: string]: JobInputUnion | null }; + /** Command Job limit. */ + limits?: CommandJobLimits; + /** Mapping of output data bindings used in the job. */ + outputs?: { [propertyName: string]: JobOutputUnion | null }; + /** + * Input parameters. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly parameters?: Record; + /** Queue settings for the job */ + queueSettings?: QueueSettings; + /** Compute Resource configuration for the job. */ + resources?: JobResourceConfiguration; +} + +/** Pipeline Job definition: defines generic to MFE attributes. */ +export interface PipelineJob extends JobBaseProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobType: "Pipeline"; + /** Inputs for the pipeline job. */ + inputs?: { [propertyName: string]: JobInputUnion | null }; + /** Jobs construct the Pipeline Job. */ + jobs?: { [propertyName: string]: Record }; + /** Outputs for the pipeline job */ + outputs?: { [propertyName: string]: JobOutputUnion | null }; + /** Pipeline settings, for things like ContinueRunOnStepFailure etc. */ + settings?: Record; + /** ARM resource ID of source job. */ + sourceJobId?: string; +} + +/** Spark job definition. */ +export interface SparkJob extends JobBaseProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobType: "Spark"; + /** 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[]; + /** Queue settings for the job */ + queueSettings?: QueueSettings; + /** Compute Resource configuration for the job. */ + resources?: SparkResourceConfiguration; +} + +/** Sweep job definition. */ +export interface SweepJob extends JobBaseProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobType: "Sweep"; + /** Early termination policies enable canceling poor-performing runs before they complete */ + earlyTermination?: EarlyTerminationPolicyUnion; + /** Mapping of input data bindings used in the job. */ + inputs?: { [propertyName: string]: JobInputUnion | null }; + /** Sweep Job limit. */ + limits?: SweepJobLimits; + /** [Required] Optimization objective. */ + objective: Objective; + /** Mapping of output data bindings used in the job. */ + outputs?: { [propertyName: string]: JobOutputUnion | null }; + /** Queue settings for the job */ + queueSettings?: QueueSettings; + /** Compute Resource configuration for the job. */ + resources?: JobResourceConfiguration; + /** [Required] The hyperparameter sampling algorithm */ + samplingAlgorithm: SamplingAlgorithmUnion; + /** [Required] A dictionary containing each parameter and its distribution. The dictionary key is the name of the parameter */ + searchSpace: Record; + /** [Required] Trial component definition. */ + trial: TrialComponent; +} + +/** Properties specific to a KubernetesOnlineDeployment. */ +export interface KubernetesOnlineDeployment extends OnlineDeploymentProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + endpointComputeType: "Kubernetes"; + /** The resource requirements for the container (cpu and memory). */ + containerResourceRequirements?: ContainerResourceRequirements; +} + +/** Properties specific to a ManagedOnlineDeployment. */ +export interface ManagedOnlineDeployment extends OnlineDeploymentProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + endpointComputeType: "Managed"; +} + +export interface DataImport extends DataVersionBaseProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "uri_folder"; + /** Name of the asset for data import job to create */ + assetName?: string; + /** Source data of the asset to import from */ + source?: DataImportSourceUnion; +} + +/** MLTable data definition */ +export interface MLTableData extends DataVersionBaseProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "mltable"; + /** Uris referenced in the MLTable definition (required for lineage) */ + referencedUris?: string[]; +} + +/** uri-file data version entity */ +export interface UriFileDataVersion extends DataVersionBaseProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "uri_file"; +} + +/** uri-folder data version entity */ +export interface UriFolderDataVersion extends DataVersionBaseProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "uri_folder"; +} + +/** Defines headers for Compute_createOrUpdate operation. */ +export interface ComputeCreateOrUpdateHeaders { + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for Compute_delete operation. */ +export interface ComputeDeleteHeaders { + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; +} + +/** Defines headers for Compute_resize operation. */ +export interface ComputeResizeHeaders { + location?: string; +} + +/** Defines headers for RegistryCodeContainers_delete operation. */ +export interface RegistryCodeContainersDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for RegistryCodeContainers_createOrUpdate operation. */ +export interface RegistryCodeContainersCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for RegistryCodeVersions_delete operation. */ +export interface RegistryCodeVersionsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for RegistryCodeVersions_createOrUpdate operation. */ +export interface RegistryCodeVersionsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for RegistryComponentContainers_delete operation. */ +export interface RegistryComponentContainersDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for RegistryComponentContainers_createOrUpdate operation. */ +export interface RegistryComponentContainersCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for RegistryComponentVersions_delete operation. */ +export interface RegistryComponentVersionsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for RegistryComponentVersions_createOrUpdate operation. */ +export interface RegistryComponentVersionsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for RegistryDataContainers_delete operation. */ +export interface RegistryDataContainersDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for RegistryDataContainers_createOrUpdate operation. */ +export interface RegistryDataContainersCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for RegistryDataVersions_delete operation. */ +export interface RegistryDataVersionsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for RegistryDataVersions_createOrUpdate operation. */ +export interface RegistryDataVersionsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for RegistryEnvironmentContainers_delete operation. */ +export interface RegistryEnvironmentContainersDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for RegistryEnvironmentContainers_createOrUpdate operation. */ +export interface RegistryEnvironmentContainersCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for RegistryEnvironmentVersions_delete operation. */ +export interface RegistryEnvironmentVersionsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for RegistryEnvironmentVersions_createOrUpdate operation. */ +export interface RegistryEnvironmentVersionsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for RegistryModelContainers_delete operation. */ +export interface RegistryModelContainersDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for RegistryModelContainers_createOrUpdate operation. */ +export interface RegistryModelContainersCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for RegistryModelVersions_delete operation. */ +export interface RegistryModelVersionsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for RegistryModelVersions_createOrUpdate operation. */ +export interface RegistryModelVersionsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for RegistryModelVersions_package operation. */ +export interface RegistryModelVersionsPackageHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for BatchEndpoints_delete operation. */ +export interface BatchEndpointsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for BatchEndpoints_update operation. */ +export interface BatchEndpointsUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for BatchEndpoints_createOrUpdate operation. */ +export interface BatchEndpointsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for BatchDeployments_delete operation. */ +export interface BatchDeploymentsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for BatchDeployments_update operation. */ +export interface BatchDeploymentsUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for BatchDeployments_createOrUpdate operation. */ +export interface BatchDeploymentsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for FeaturesetContainers_delete operation. */ +export interface FeaturesetContainersDeleteHeaders { + /** 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 FeaturesetContainers_createOrUpdate operation. */ +export interface FeaturesetContainersCreateOrUpdateHeaders { + /** 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 FeaturesetVersions_delete operation. */ +export interface FeaturesetVersionsDeleteHeaders { + /** 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 FeaturesetVersions_createOrUpdate operation. */ +export interface FeaturesetVersionsCreateOrUpdateHeaders { + /** 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 FeaturesetVersions_backfill operation. */ +export interface FeaturesetVersionsBackfillHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for FeaturestoreEntityContainers_delete operation. */ +export interface FeaturestoreEntityContainersDeleteHeaders { + /** 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 FeaturestoreEntityContainers_createOrUpdate operation. */ +export interface FeaturestoreEntityContainersCreateOrUpdateHeaders { + /** 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 FeaturestoreEntityVersions_delete operation. */ +export interface FeaturestoreEntityVersionsDeleteHeaders { + /** 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 FeaturestoreEntityVersions_createOrUpdate operation. */ +export interface FeaturestoreEntityVersionsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for Jobs_delete operation. */ +export interface JobsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for Jobs_cancel operation. */ +export interface JobsCancelHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for 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 ModelVersions_package operation. */ +export interface ModelVersionsPackageHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineEndpoints_delete operation. */ +export interface OnlineEndpointsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineEndpoints_update operation. */ +export interface OnlineEndpointsUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineEndpoints_createOrUpdate operation. */ +export interface OnlineEndpointsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for OnlineEndpoints_regenerateKeys operation. */ +export interface OnlineEndpointsRegenerateKeysHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineDeployments_delete operation. */ +export interface OnlineDeploymentsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineDeployments_update operation. */ +export interface OnlineDeploymentsUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineDeployments_createOrUpdate operation. */ +export interface OnlineDeploymentsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for Schedules_delete operation. */ +export interface SchedulesDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for Schedules_createOrUpdate operation. */ +export interface SchedulesCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for ServerlessEndpoints_delete operation. */ +export interface ServerlessEndpointsDeleteHeaders { + /** 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 ServerlessEndpoints_update operation. */ +export interface ServerlessEndpointsUpdateHeaders { + /** 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 ServerlessEndpoints_createOrUpdate operation. */ +export interface ServerlessEndpointsCreateOrUpdateHeaders { + /** 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 ServerlessEndpoints_regenerateKeys operation. */ +export interface ServerlessEndpointsRegenerateKeysHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for Registries_delete operation. */ +export interface RegistriesDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for Registries_removeRegions operation. */ +export interface RegistriesRemoveRegionsHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for Workspaces_createOrUpdate operation. */ +export interface WorkspacesCreateOrUpdateHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for Workspaces_diagnose operation. */ +export interface WorkspacesDiagnoseHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for Workspaces_prepareNotebook operation. */ +export interface WorkspacesPrepareNotebookHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for Workspaces_resyncKeys operation. */ +export interface WorkspacesResyncKeysHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for ManagedNetworkSettingsRule_delete operation. */ +export interface ManagedNetworkSettingsRuleDeleteHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; +} + +/** Defines headers for ManagedNetworkSettingsRule_createOrUpdate operation. */ +export interface ManagedNetworkSettingsRuleCreateOrUpdateHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for ManagedNetworkProvisions_provisionManagedNetwork operation. */ +export interface ManagedNetworkProvisionsProvisionManagedNetworkHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Known values of {@link UsageUnit} that the service accepts. */ +export enum KnownUsageUnit { + /** Count */ + Count = "Count" +} + +/** + * Defines values for UsageUnit. \ + * {@link KnownUsageUnit} can be used interchangeably with UsageUnit, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Count** + */ +export type UsageUnit = string; + +/** Known values of {@link BillingCurrency} that the service accepts. */ +export enum KnownBillingCurrency { + /** USD */ + USD = "USD" +} + +/** + * Defines values for BillingCurrency. \ + * {@link KnownBillingCurrency} can be used interchangeably with BillingCurrency, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **USD** + */ +export type BillingCurrency = string; + +/** Known values of {@link UnitOfMeasure} that the service accepts. */ +export enum KnownUnitOfMeasure { + /** OneHour */ + OneHour = "OneHour" +} + +/** + * Defines values for UnitOfMeasure. \ + * {@link KnownUnitOfMeasure} can be used interchangeably with UnitOfMeasure, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **OneHour** + */ +export type UnitOfMeasure = string; + +/** Known values of {@link VMPriceOSType} that the service accepts. */ +export enum KnownVMPriceOSType { + /** Linux */ + Linux = "Linux", + /** Windows */ + Windows = "Windows" +} + +/** + * Defines values for VMPriceOSType. \ + * {@link KnownVMPriceOSType} can be used interchangeably with VMPriceOSType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Linux** \ + * **Windows** + */ +export type VMPriceOSType = string; + +/** Known values of {@link VMTier} that the service accepts. */ +export enum KnownVMTier { + /** Standard */ + Standard = "Standard", + /** LowPriority */ + LowPriority = "LowPriority", + /** Spot */ + Spot = "Spot" +} + +/** + * Defines values for VMTier. \ + * {@link KnownVMTier} can be used interchangeably with VMTier, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Standard** \ + * **LowPriority** \ + * **Spot** + */ +export type VMTier = string; + +/** Known values of {@link QuotaUnit} that the service accepts. */ +export enum KnownQuotaUnit { + /** Count */ + Count = "Count" +} + +/** + * Defines values for QuotaUnit. \ + * {@link KnownQuotaUnit} can be used interchangeably with QuotaUnit, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Count** + */ +export type QuotaUnit = string; + +/** Known values of {@link Status} that the service accepts. */ +export enum KnownStatus { + /** Undefined */ + Undefined = "Undefined", + /** Success */ + Success = "Success", + /** Failure */ + Failure = "Failure", + /** InvalidQuotaBelowClusterMinimum */ + InvalidQuotaBelowClusterMinimum = "InvalidQuotaBelowClusterMinimum", + /** InvalidQuotaExceedsSubscriptionLimit */ + InvalidQuotaExceedsSubscriptionLimit = "InvalidQuotaExceedsSubscriptionLimit", + /** InvalidVMFamilyName */ + InvalidVMFamilyName = "InvalidVMFamilyName", + /** OperationNotSupportedForSku */ + OperationNotSupportedForSku = "OperationNotSupportedForSku", + /** OperationNotEnabledForRegion */ + OperationNotEnabledForRegion = "OperationNotEnabledForRegion" +} + +/** + * Defines values for Status. \ + * {@link KnownStatus} can be used interchangeably with Status, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Undefined** \ + * **Success** \ + * **Failure** \ + * **InvalidQuotaBelowClusterMinimum** \ + * **InvalidQuotaExceedsSubscriptionLimit** \ + * **InvalidVMFamilyName** \ + * **OperationNotSupportedForSku** \ + * **OperationNotEnabledForRegion** + */ +export type Status = string; + +/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ +export enum KnownManagedServiceIdentityType { + /** None */ + None = "None", + /** SystemAssigned */ + SystemAssigned = "SystemAssigned", + /** UserAssigned */ + UserAssigned = "UserAssigned", + /** SystemAssignedUserAssigned */ + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" +} + +/** + * Defines values for ManagedServiceIdentityType. \ + * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **SystemAssigned** \ + * **UserAssigned** \ + * **SystemAssigned,UserAssigned** + */ +export type ManagedServiceIdentityType = string; + +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key" +} + +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; + +/** Known values of {@link ComputeType} that the service accepts. */ +export enum KnownComputeType { + /** AKS */ + AKS = "AKS", + /** Kubernetes */ + Kubernetes = "Kubernetes", + /** AmlCompute */ + AmlCompute = "AmlCompute", + /** ComputeInstance */ + ComputeInstance = "ComputeInstance", + /** DataFactory */ + DataFactory = "DataFactory", + /** VirtualMachine */ + VirtualMachine = "VirtualMachine", + /** HDInsight */ + HDInsight = "HDInsight", + /** Databricks */ + Databricks = "Databricks", + /** DataLakeAnalytics */ + DataLakeAnalytics = "DataLakeAnalytics", + /** SynapseSpark */ + SynapseSpark = "SynapseSpark" +} + +/** + * Defines values for ComputeType. \ + * {@link KnownComputeType} can be used interchangeably with ComputeType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AKS** \ + * **Kubernetes** \ + * **AmlCompute** \ + * **ComputeInstance** \ + * **DataFactory** \ + * **VirtualMachine** \ + * **HDInsight** \ + * **Databricks** \ + * **DataLakeAnalytics** \ + * **SynapseSpark** + */ +export type ComputeType = string; + +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + /** Unknown */ + Unknown = "Unknown", + /** Updating */ + Updating = "Updating", + /** Creating */ + Creating = "Creating", + /** Deleting */ + Deleting = "Deleting", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled" +} + +/** + * Defines values for ProvisioningState. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unknown** \ + * **Updating** \ + * **Creating** \ + * **Deleting** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** + */ +export type ProvisioningState = string; + +/** Known values of {@link UnderlyingResourceAction} that the service accepts. */ +export enum KnownUnderlyingResourceAction { + /** Delete */ + Delete = "Delete", + /** Detach */ + Detach = "Detach" +} + +/** + * Defines values for UnderlyingResourceAction. \ + * {@link KnownUnderlyingResourceAction} can be used interchangeably with UnderlyingResourceAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Delete** \ + * **Detach** + */ +export 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 */ + Idle = "idle", + /** Running */ + Running = "running", + /** Preparing */ + Preparing = "preparing", + /** Unusable */ + Unusable = "unusable", + /** Leaving */ + Leaving = "leaving", + /** Preempted */ + Preempted = "preempted" +} + +/** + * Defines values for NodeState. \ + * {@link KnownNodeState} can be used interchangeably with NodeState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **idle** \ + * **running** \ + * **preparing** \ + * **unusable** \ + * **leaving** \ + * **preempted** + */ +export type NodeState = string; + +/** Known values of {@link AssetProvisioningState} that the service accepts. */ +export enum KnownAssetProvisioningState { + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled", + /** Creating */ + Creating = "Creating", + /** Updating */ + Updating = "Updating", + /** Deleting */ + Deleting = "Deleting" +} + +/** + * Defines values for AssetProvisioningState. \ + * {@link KnownAssetProvisioningState} can be used interchangeably with AssetProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **Creating** \ + * **Updating** \ + * **Deleting** + */ +export type AssetProvisioningState = string; + +/** Known values of {@link AutoDeleteCondition} that the service accepts. */ +export enum KnownAutoDeleteCondition { + /** CreatedGreaterThan */ + CreatedGreaterThan = "CreatedGreaterThan", + /** LastAccessedGreaterThan */ + LastAccessedGreaterThan = "LastAccessedGreaterThan" +} + +/** + * Defines values for AutoDeleteCondition. \ + * {@link KnownAutoDeleteCondition} can be used interchangeably with AutoDeleteCondition, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CreatedGreaterThan** \ + * **LastAccessedGreaterThan** + */ +export type AutoDeleteCondition = string; + +/** Known values of {@link PendingUploadType} that the service accepts. */ +export enum KnownPendingUploadType { + /** None */ + None = "None", + /** TemporaryBlobReference */ + TemporaryBlobReference = "TemporaryBlobReference" +} + +/** + * Defines values for PendingUploadType. \ + * {@link KnownPendingUploadType} can be used interchangeably with PendingUploadType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **TemporaryBlobReference** + */ +export type PendingUploadType = string; + +/** Known values of {@link PendingUploadCredentialType} that the service accepts. */ +export enum KnownPendingUploadCredentialType { + /** SAS */ + SAS = "SAS" +} + +/** + * Defines values for PendingUploadCredentialType. \ + * {@link KnownPendingUploadCredentialType} can be used interchangeably with PendingUploadCredentialType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SAS** + */ +export type PendingUploadCredentialType = string; + +/** Known values of {@link ListViewType} that the service accepts. */ +export enum KnownListViewType { + /** ActiveOnly */ + ActiveOnly = "ActiveOnly", + /** ArchivedOnly */ + ArchivedOnly = "ArchivedOnly", + /** All */ + All = "All" +} + +/** + * Defines values for ListViewType. \ + * {@link KnownListViewType} can be used interchangeably with ListViewType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ActiveOnly** \ + * **ArchivedOnly** \ + * **All** + */ +export type ListViewType = string; + +/** Known values of {@link DataType} that the service accepts. */ +export enum KnownDataType { + /** UriFile */ + UriFile = "uri_file", + /** UriFolder */ + UriFolder = "uri_folder", + /** Mltable */ + Mltable = "mltable" +} + +/** + * Defines values for DataType. \ + * {@link KnownDataType} can be used interchangeably with DataType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **uri_file** \ + * **uri_folder** \ + * **mltable** + */ +export type DataType = string; + +/** Known values of {@link ProtectionLevel} that the service accepts. */ +export enum KnownProtectionLevel { + /** All means Intellectual Property is fully protected. */ + All = "All", + /** None means it is not an Intellectual Property. */ + None = "None" +} + +/** + * Defines values for ProtectionLevel. \ + * {@link KnownProtectionLevel} can be used interchangeably with ProtectionLevel, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **All**: All means Intellectual Property is fully protected. \ + * **None**: None means it is not an Intellectual Property. + */ +export type ProtectionLevel = string; + +/** Known values of {@link AutoRebuildSetting} that the service accepts. */ +export enum KnownAutoRebuildSetting { + /** Disabled */ + Disabled = "Disabled", + /** OnBaseImageUpdate */ + OnBaseImageUpdate = "OnBaseImageUpdate" +} + +/** + * Defines values for AutoRebuildSetting. \ + * {@link KnownAutoRebuildSetting} can be used interchangeably with AutoRebuildSetting, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **OnBaseImageUpdate** + */ +export type AutoRebuildSetting = string; + +/** Known values of {@link EnvironmentType} that the service accepts. */ +export enum KnownEnvironmentType { + /** Curated */ + Curated = "Curated", + /** UserCreated */ + UserCreated = "UserCreated" +} + +/** + * Defines values for EnvironmentType. \ + * {@link KnownEnvironmentType} can be used interchangeably with EnvironmentType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Curated** \ + * **UserCreated** + */ +export type EnvironmentType = string; + +/** Known values of {@link OperatingSystemType} that the service accepts. */ +export enum KnownOperatingSystemType { + /** Linux */ + Linux = "Linux", + /** Windows */ + Windows = "Windows" +} + +/** + * Defines values for OperatingSystemType. \ + * {@link KnownOperatingSystemType} can be used interchangeably with OperatingSystemType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Linux** \ + * **Windows** + */ +export type OperatingSystemType = string; + +/** Known values of {@link BaseEnvironmentSourceType} that the service accepts. */ +export enum KnownBaseEnvironmentSourceType { + /** EnvironmentAsset */ + EnvironmentAsset = "EnvironmentAsset" +} + +/** + * Defines values for BaseEnvironmentSourceType. \ + * {@link KnownBaseEnvironmentSourceType} can be used interchangeably with BaseEnvironmentSourceType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **EnvironmentAsset** + */ +export type BaseEnvironmentSourceType = string; + +/** Known values of {@link InferencingServerType} that the service accepts. */ +export enum KnownInferencingServerType { + /** AzureMLOnline */ + AzureMLOnline = "AzureMLOnline", + /** AzureMLBatch */ + AzureMLBatch = "AzureMLBatch", + /** Triton */ + Triton = "Triton", + /** Custom */ + Custom = "Custom" +} + +/** + * Defines values for InferencingServerType. \ + * {@link KnownInferencingServerType} can be used interchangeably with InferencingServerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AzureMLOnline** \ + * **AzureMLBatch** \ + * **Triton** \ + * **Custom** + */ +export type InferencingServerType = string; + +/** Known values of {@link PackageInputType} that the service accepts. */ +export enum KnownPackageInputType { + /** UriFile */ + UriFile = "UriFile", + /** UriFolder */ + UriFolder = "UriFolder" +} + +/** + * Defines values for PackageInputType. \ + * {@link KnownPackageInputType} can be used interchangeably with PackageInputType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **UriFile** \ + * **UriFolder** + */ +export type PackageInputType = string; + +/** Known values of {@link PackageInputDeliveryMode} that the service accepts. */ +export enum KnownPackageInputDeliveryMode { + /** Copy */ + Copy = "Copy", + /** Download */ + Download = "Download" +} + +/** + * Defines values for PackageInputDeliveryMode. \ + * {@link KnownPackageInputDeliveryMode} can be used interchangeably with PackageInputDeliveryMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Copy** \ + * **Download** + */ +export type PackageInputDeliveryMode = string; + +/** Known values of {@link InputPathType} that the service accepts. */ +export enum KnownInputPathType { + /** Url */ + Url = "Url", + /** PathId */ + PathId = "PathId", + /** PathVersion */ + PathVersion = "PathVersion" +} + +/** + * Defines values for InputPathType. \ + * {@link KnownInputPathType} can be used interchangeably with InputPathType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Url** \ + * **PathId** \ + * **PathVersion** + */ +export type InputPathType = string; + +/** Known values of {@link PackageBuildState} that the service accepts. */ +export enum KnownPackageBuildState { + /** NotStarted */ + NotStarted = "NotStarted", + /** Running */ + Running = "Running", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed" +} + +/** + * Defines values for PackageBuildState. \ + * {@link KnownPackageBuildState} can be used interchangeably with PackageBuildState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotStarted** \ + * **Running** \ + * **Succeeded** \ + * **Failed** + */ +export type PackageBuildState = string; + +/** Known values of {@link EndpointProvisioningState} that the service accepts. */ +export enum KnownEndpointProvisioningState { + /** Creating */ + Creating = "Creating", + /** Deleting */ + Deleting = "Deleting", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Updating */ + Updating = "Updating", + /** Canceled */ + Canceled = "Canceled" +} + +/** + * Defines values for EndpointProvisioningState. \ + * {@link KnownEndpointProvisioningState} can be used interchangeably with EndpointProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Deleting** \ + * **Succeeded** \ + * **Failed** \ + * **Updating** \ + * **Canceled** + */ +export type EndpointProvisioningState = string; + +/** Known values of {@link EndpointAuthMode} that the service accepts. */ +export enum KnownEndpointAuthMode { + /** AMLToken */ + AMLToken = "AMLToken", + /** Key */ + Key = "Key", + /** AADToken */ + AADToken = "AADToken" +} + +/** + * Defines values for EndpointAuthMode. \ + * {@link KnownEndpointAuthMode} can be used interchangeably with EndpointAuthMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AMLToken** \ + * **Key** \ + * **AADToken** + */ +export type EndpointAuthMode = string; + +/** Known values of {@link BatchDeploymentConfigurationType} that the service accepts. */ +export enum KnownBatchDeploymentConfigurationType { + /** Model */ + Model = "Model", + /** PipelineComponent */ + PipelineComponent = "PipelineComponent" +} + +/** + * Defines values for BatchDeploymentConfigurationType. \ + * {@link KnownBatchDeploymentConfigurationType} can be used interchangeably with BatchDeploymentConfigurationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Model** \ + * **PipelineComponent** + */ +export type BatchDeploymentConfigurationType = string; + +/** Known values of {@link BatchLoggingLevel} that the service accepts. */ +export enum KnownBatchLoggingLevel { + /** Info */ + Info = "Info", + /** Warning */ + Warning = "Warning", + /** Debug */ + Debug = "Debug" +} + +/** + * Defines values for BatchLoggingLevel. \ + * {@link KnownBatchLoggingLevel} can be used interchangeably with BatchLoggingLevel, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Info** \ + * **Warning** \ + * **Debug** + */ +export type BatchLoggingLevel = string; + +/** Known values of {@link ReferenceType} that the service accepts. */ +export enum KnownReferenceType { + /** Id */ + Id = "Id", + /** DataPath */ + DataPath = "DataPath", + /** OutputPath */ + OutputPath = "OutputPath" +} + +/** + * Defines values for ReferenceType. \ + * {@link KnownReferenceType} can be used interchangeably with ReferenceType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Id** \ + * **DataPath** \ + * **OutputPath** + */ +export type ReferenceType = string; + +/** Known values of {@link BatchOutputAction} that the service accepts. */ +export enum KnownBatchOutputAction { + /** SummaryOnly */ + SummaryOnly = "SummaryOnly", + /** AppendRow */ + AppendRow = "AppendRow" +} + +/** + * Defines values for BatchOutputAction. \ + * {@link KnownBatchOutputAction} can be used interchangeably with BatchOutputAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SummaryOnly** \ + * **AppendRow** + */ +export type BatchOutputAction = string; + +/** Known values of {@link DeploymentProvisioningState} that the service accepts. */ +export enum KnownDeploymentProvisioningState { + /** Creating */ + Creating = "Creating", + /** Deleting */ + Deleting = "Deleting", + /** Scaling */ + Scaling = "Scaling", + /** Updating */ + Updating = "Updating", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled" +} + +/** + * Defines values for DeploymentProvisioningState. \ + * {@link KnownDeploymentProvisioningState} can be used interchangeably with DeploymentProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Deleting** \ + * **Scaling** \ + * **Updating** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** + */ +export type DeploymentProvisioningState = string; + +/** Known values of {@link CredentialsType} that the service accepts. */ +export enum KnownCredentialsType { + /** AccountKey */ + AccountKey = "AccountKey", + /** Certificate */ + Certificate = "Certificate", + /** None */ + None = "None", + /** Sas */ + Sas = "Sas", + /** ServicePrincipal */ + ServicePrincipal = "ServicePrincipal", + /** KerberosKeytab */ + KerberosKeytab = "KerberosKeytab", + /** KerberosPassword */ + KerberosPassword = "KerberosPassword" +} + +/** + * Defines values for CredentialsType. \ + * {@link KnownCredentialsType} can be used interchangeably with CredentialsType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AccountKey** \ + * **Certificate** \ + * **None** \ + * **Sas** \ + * **ServicePrincipal** \ + * **KerberosKeytab** \ + * **KerberosPassword** + */ +export type CredentialsType = string; + +/** Known values of {@link DatastoreType} that the service accepts. */ +export enum KnownDatastoreType { + /** AzureBlob */ + AzureBlob = "AzureBlob", + /** AzureDataLakeGen1 */ + AzureDataLakeGen1 = "AzureDataLakeGen1", + /** AzureDataLakeGen2 */ + AzureDataLakeGen2 = "AzureDataLakeGen2", + /** AzureFile */ + AzureFile = "AzureFile", + /** Hdfs */ + Hdfs = "Hdfs", + /** OneLake */ + OneLake = "OneLake" +} + +/** + * Defines values for DatastoreType. \ + * {@link KnownDatastoreType} can be used interchangeably with DatastoreType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AzureBlob** \ + * **AzureDataLakeGen1** \ + * **AzureDataLakeGen2** \ + * **AzureFile** \ + * **Hdfs** \ + * **OneLake** + */ +export type DatastoreType = string; + +/** Known values of {@link SecretsType} that the service accepts. */ +export enum KnownSecretsType { + /** AccountKey */ + AccountKey = "AccountKey", + /** Certificate */ + Certificate = "Certificate", + /** Sas */ + Sas = "Sas", + /** ServicePrincipal */ + ServicePrincipal = "ServicePrincipal", + /** KerberosPassword */ + KerberosPassword = "KerberosPassword", + /** KerberosKeytab */ + KerberosKeytab = "KerberosKeytab" +} + +/** + * Defines values for SecretsType. \ + * {@link KnownSecretsType} can be used interchangeably with SecretsType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AccountKey** \ + * **Certificate** \ + * **Sas** \ + * **ServicePrincipal** \ + * **KerberosPassword** \ + * **KerberosKeytab** + */ +export type SecretsType = string; + +/** Known values of {@link FeatureDataType} that the service accepts. */ +export enum KnownFeatureDataType { + /** String */ + String = "String", + /** Integer */ + Integer = "Integer", + /** Long */ + Long = "Long", + /** Float */ + Float = "Float", + /** Double */ + Double = "Double", + /** Binary */ + Binary = "Binary", + /** Datetime */ + Datetime = "Datetime", + /** Boolean */ + Boolean = "Boolean" +} + +/** + * Defines values for FeatureDataType. \ + * {@link KnownFeatureDataType} can be used interchangeably with FeatureDataType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **String** \ + * **Integer** \ + * **Long** \ + * **Float** \ + * **Double** \ + * **Binary** \ + * **Datetime** \ + * **Boolean** + */ +export type FeatureDataType = string; + +/** Known values of {@link EmailNotificationEnableType} that the service accepts. */ +export enum KnownEmailNotificationEnableType { + /** JobCompleted */ + JobCompleted = "JobCompleted", + /** JobFailed */ + JobFailed = "JobFailed", + /** JobCancelled */ + JobCancelled = "JobCancelled" +} + +/** + * Defines values for EmailNotificationEnableType. \ + * {@link KnownEmailNotificationEnableType} can be used interchangeably with EmailNotificationEnableType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **JobCompleted** \ + * **JobFailed** \ + * **JobCancelled** + */ +export type EmailNotificationEnableType = string; + +/** Known values of {@link WebhookType} that the service accepts. */ +export enum KnownWebhookType { + /** AzureDevOps */ + AzureDevOps = "AzureDevOps" +} + +/** + * Defines values for WebhookType. \ + * {@link KnownWebhookType} can be used interchangeably with WebhookType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AzureDevOps** + */ +export type WebhookType = 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 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 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 MaterializationStoreType} that the service accepts. */ +export enum KnownMaterializationStoreType { + /** None */ + None = "None", + /** Online */ + Online = "Online", + /** Offline */ + Offline = "Offline", + /** OnlineAndOffline */ + OnlineAndOffline = "OnlineAndOffline" +} + +/** + * Defines values for MaterializationStoreType. \ + * {@link KnownMaterializationStoreType} can be used interchangeably with MaterializationStoreType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **Online** \ + * **Offline** \ + * **OnlineAndOffline** + */ +export type MaterializationStoreType = string; + +/** Known values of {@link DataAvailabilityStatus} that the service accepts. */ +export enum KnownDataAvailabilityStatus { + /** None */ + None = "None", + /** Pending */ + Pending = "Pending", + /** Incomplete */ + Incomplete = "Incomplete", + /** Complete */ + Complete = "Complete" +} + +/** + * Defines values for DataAvailabilityStatus. \ + * {@link KnownDataAvailabilityStatus} can be used interchangeably with DataAvailabilityStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **Pending** \ + * **Incomplete** \ + * **Complete** + */ +export type DataAvailabilityStatus = string; + +/** Known values of {@link IdentityConfigurationType} that the service accepts. */ +export enum KnownIdentityConfigurationType { + /** Managed */ + Managed = "Managed", + /** AMLToken */ + AMLToken = "AMLToken", + /** UserIdentity */ + UserIdentity = "UserIdentity" +} + +/** + * Defines values for IdentityConfigurationType. \ + * {@link KnownIdentityConfigurationType} can be used interchangeably with IdentityConfigurationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Managed** \ + * **AMLToken** \ + * **UserIdentity** + */ +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", + /** Spark */ + Spark = "Spark" +} + +/** + * Defines values for JobType. \ + * {@link KnownJobType} can be used interchangeably with JobType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AutoML** \ + * **Command** \ + * **Labeling** \ + * **Sweep** \ + * **Pipeline** \ + * **Spark** + */ +export type JobType = string; + +/** Known values of {@link NodesValueType} that the service accepts. */ +export enum KnownNodesValueType { + /** All */ + All = "All", + /** Custom */ + Custom = "Custom" +} + +/** + * Defines values for NodesValueType. \ + * {@link KnownNodesValueType} can be used interchangeably with NodesValueType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **All** \ + * **Custom** + */ +export type NodesValueType = string; + +/** Known values of {@link JobStatus} that the service accepts. */ +export enum KnownJobStatus { + /** Run hasn't started yet. */ + NotStarted = "NotStarted", + /** Run has started. The user has a run ID. */ + Starting = "Starting", + /** (Not used currently) It will be used if ES is creating the compute target. */ + Provisioning = "Provisioning", + /** The run environment is being prepared. */ + Preparing = "Preparing", + /** The job is queued in the compute target. For example, in BatchAI the job is in queued state, while waiting for all required nodes to be ready. */ + Queued = "Queued", + /** The job started to run in the compute target. */ + Running = "Running", + /** Job is completed in the target. It is in output collection state now. */ + Finalizing = "Finalizing", + /** Cancellation has been requested for the job. */ + CancelRequested = "CancelRequested", + /** Job completed successfully. This reflects that both the job itself and output collection states completed successfully */ + Completed = "Completed", + /** Job failed. */ + Failed = "Failed", + /** Following cancellation request, the job is now successfully canceled. */ + Canceled = "Canceled", + /** + * When heartbeat is enabled, if the run isn't updating any information to RunHistory then the run goes to NotResponding state. + * NotResponding is the only state that is exempt from strict transition orders. A run can go from NotResponding to any of the previous states. + */ + NotResponding = "NotResponding", + /** The job is paused by users. Some adjustment to labeling jobs can be made only in paused state. */ + Paused = "Paused", + /** Default job status if not mapped to all other statuses */ + Unknown = "Unknown", + /** The job is in a scheduled state. Job is not in any active state. */ + Scheduled = "Scheduled" +} + +/** + * Defines values for JobStatus. \ + * {@link KnownJobStatus} can be used interchangeably with JobStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotStarted**: Run hasn't started yet. \ + * **Starting**: Run has started. The user has a run ID. \ + * **Provisioning**: (Not used currently) It will be used if ES is creating the compute target. \ + * **Preparing**: The run environment is being prepared. \ + * **Queued**: The job is queued in the compute target. For example, in BatchAI the job is in queued state, while waiting for all required nodes to be ready. \ + * **Running**: The job started to run in the compute target. \ + * **Finalizing**: Job is completed in the target. It is in output collection state now. \ + * **CancelRequested**: Cancellation has been requested for the job. \ + * **Completed**: Job completed successfully. This reflects that both the job itself and output collection states completed successfully \ + * **Failed**: Job failed. \ + * **Canceled**: Following cancellation request, the job is now successfully canceled. \ + * **NotResponding**: When heartbeat is enabled, if the run isn't updating any information to RunHistory then the run goes to NotResponding state. + * NotResponding is the only state that is exempt from strict transition orders. A run can go from NotResponding to any of the previous states. \ + * **Paused**: The job is paused by users. Some adjustment to labeling jobs can be made only in paused state. \ + * **Unknown**: Default job status if not mapped to all other statuses \ + * **Scheduled**: The job is in a scheduled state. Job is not in any active state. + */ +export type JobStatus = string; + +/** Known values of {@link IncrementalDataRefresh} that the service accepts. */ +export enum KnownIncrementalDataRefresh { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for IncrementalDataRefresh. \ + * {@link KnownIncrementalDataRefresh} can be used interchangeably with IncrementalDataRefresh, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type IncrementalDataRefresh = string; + +/** Known values of {@link MultiSelect} that the service accepts. */ +export enum KnownMultiSelect { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for MultiSelect. \ + * {@link KnownMultiSelect} can be used interchangeably with MultiSelect, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type MultiSelect = 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 */ + Managed = "Managed", + /** Kubernetes */ + Kubernetes = "Kubernetes", + /** AzureMLCompute */ + AzureMLCompute = "AzureMLCompute" +} + +/** + * Defines values for EndpointComputeType. \ + * {@link KnownEndpointComputeType} can be used interchangeably with EndpointComputeType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Managed** \ + * **Kubernetes** \ + * **AzureMLCompute** + */ +export type EndpointComputeType = string; + +/** Known values of {@link OrderString} that the service accepts. */ +export enum KnownOrderString { + /** CreatedAtDesc */ + CreatedAtDesc = "CreatedAtDesc", + /** CreatedAtAsc */ + CreatedAtAsc = "CreatedAtAsc", + /** UpdatedAtDesc */ + UpdatedAtDesc = "UpdatedAtDesc", + /** UpdatedAtAsc */ + UpdatedAtAsc = "UpdatedAtAsc" +} + +/** + * Defines values for OrderString. \ + * {@link KnownOrderString} can be used interchangeably with OrderString, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CreatedAtDesc** \ + * **CreatedAtAsc** \ + * **UpdatedAtDesc** \ + * **UpdatedAtAsc** + */ +export type OrderString = string; + +/** Known values of {@link 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 DataCollectionMode} that the service accepts. */ +export enum KnownDataCollectionMode { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for DataCollectionMode. \ + * {@link KnownDataCollectionMode} can be used interchangeably with DataCollectionMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type DataCollectionMode = string; + +/** Known values of {@link RollingRateType} that the service accepts. */ +export enum KnownRollingRateType { + /** Year */ + Year = "Year", + /** Month */ + Month = "Month", + /** Day */ + Day = "Day", + /** Hour */ + Hour = "Hour", + /** Minute */ + Minute = "Minute" +} + +/** + * Defines values for RollingRateType. \ + * {@link KnownRollingRateType} can be used interchangeably with RollingRateType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Year** \ + * **Month** \ + * **Day** \ + * **Hour** \ + * **Minute** + */ +export type RollingRateType = 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 */ + Default = "Default", + /** TargetUtilization */ + TargetUtilization = "TargetUtilization" +} + +/** + * Defines values for ScaleType. \ + * {@link KnownScaleType} can be used interchangeably with ScaleType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default** \ + * **TargetUtilization** + */ +export type ScaleType = string; + +/** Known values of {@link ContainerType} that the service accepts. */ +export enum KnownContainerType { + /** The container used to download models and score script. */ + StorageInitializer = "StorageInitializer", + /** The container used to serve user's request. */ + InferenceServer = "InferenceServer", + /** The container used to collect payload and custom logging when mdc is enabled. */ + ModelDataCollector = "ModelDataCollector" +} + +/** + * Defines values for ContainerType. \ + * {@link KnownContainerType} can be used interchangeably with ContainerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **StorageInitializer**: The container used to download models and score script. \ + * **InferenceServer**: The container used to serve user's request. \ + * **ModelDataCollector**: The container used to collect payload and custom logging when mdc is enabled. + */ +export type ContainerType = string; + +/** Known values of {@link SkuScaleType} that the service accepts. */ +export enum KnownSkuScaleType { + /** Automatically scales node count. */ Automatic = "Automatic", /** Node count scaled upon user request. */ Manual = "Manual", @@ -5616,1907 +9150,3578 @@ export enum KnownSkuScaleType { } /** - * Defines values for SkuScaleType. \ - * {@link KnownSkuScaleType} can be used interchangeably with SkuScaleType, + * Defines values for SkuScaleType. \ + * {@link KnownSkuScaleType} can be used interchangeably with SkuScaleType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Automatic**: Automatically scales node count. \ + * **Manual**: Node count scaled upon user request. \ + * **None**: Fixed set of nodes. + */ +export type SkuScaleType = string; + +/** Known values of {@link KeyType} that the service accepts. */ +export enum KnownKeyType { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary" +} + +/** + * Defines values for KeyType. \ + * {@link KnownKeyType} can be used interchangeably with KeyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Primary** \ + * **Secondary** + */ +export type KeyType = string; + +/** Known values of {@link ScheduleListViewType} that the service accepts. */ +export enum KnownScheduleListViewType { + /** EnabledOnly */ + EnabledOnly = "EnabledOnly", + /** DisabledOnly */ + DisabledOnly = "DisabledOnly", + /** All */ + All = "All" +} + +/** + * Defines values for ScheduleListViewType. \ + * {@link KnownScheduleListViewType} can be used interchangeably with ScheduleListViewType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **EnabledOnly** \ + * **DisabledOnly** \ + * **All** + */ +export type ScheduleListViewType = string; + +/** Known values of {@link ScheduleActionType} that the service accepts. */ +export enum KnownScheduleActionType { + /** CreateJob */ + CreateJob = "CreateJob", + /** InvokeBatchEndpoint */ + InvokeBatchEndpoint = "InvokeBatchEndpoint", + /** ImportData */ + ImportData = "ImportData", + /** CreateMonitor */ + CreateMonitor = "CreateMonitor" +} + +/** + * 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 + * **CreateJob** \ + * **InvokeBatchEndpoint** \ + * **ImportData** \ + * **CreateMonitor** + */ +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 EndpointServiceConnectionStatus} that the service accepts. */ +export enum KnownEndpointServiceConnectionStatus { + /** Approved */ + Approved = "Approved", + /** Pending */ + Pending = "Pending", + /** Rejected */ + Rejected = "Rejected", + /** Disconnected */ + Disconnected = "Disconnected", + /** Timeout */ + Timeout = "Timeout" +} + +/** + * Defines values for EndpointServiceConnectionStatus. \ + * {@link KnownEndpointServiceConnectionStatus} can be used interchangeably with EndpointServiceConnectionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Approved** \ + * **Pending** \ + * **Rejected** \ + * **Disconnected** \ + * **Timeout** + */ +export type EndpointServiceConnectionStatus = string; + +/** Known values of {@link EncryptionStatus} that the service accepts. */ +export enum KnownEncryptionStatus { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for EncryptionStatus. \ + * {@link KnownEncryptionStatus} can be used interchangeably with EncryptionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type EncryptionStatus = string; + +/** Known values of {@link IsolationMode} that the service accepts. */ +export enum KnownIsolationMode { + /** Disabled */ + Disabled = "Disabled", + /** AllowInternetOutbound */ + AllowInternetOutbound = "AllowInternetOutbound", + /** AllowOnlyApprovedOutbound */ + AllowOnlyApprovedOutbound = "AllowOnlyApprovedOutbound" +} + +/** + * Defines values for IsolationMode. \ + * {@link KnownIsolationMode} can be used interchangeably with IsolationMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **AllowInternetOutbound** \ + * **AllowOnlyApprovedOutbound** + */ +export type IsolationMode = string; + +/** Known values of {@link RuleCategory} that the service accepts. */ +export enum KnownRuleCategory { + /** Required */ + Required = "Required", + /** Recommended */ + Recommended = "Recommended", + /** UserDefined */ + UserDefined = "UserDefined" +} + +/** + * Defines values for RuleCategory. \ + * {@link KnownRuleCategory} can be used interchangeably with RuleCategory, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Required** \ + * **Recommended** \ + * **UserDefined** + */ +export type RuleCategory = string; + +/** Known values of {@link RuleStatus} that the service accepts. */ +export enum KnownRuleStatus { + /** Inactive */ + Inactive = "Inactive", + /** Active */ + Active = "Active" +} + +/** + * Defines values for RuleStatus. \ + * {@link KnownRuleStatus} can be used interchangeably with RuleStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Inactive** \ + * **Active** + */ +export type RuleStatus = string; + +/** Known values of {@link RuleType} that the service accepts. */ +export enum KnownRuleType { + /** Fqdn */ + Fqdn = "FQDN", + /** PrivateEndpoint */ + PrivateEndpoint = "PrivateEndpoint", + /** ServiceTag */ + ServiceTag = "ServiceTag" +} + +/** + * Defines values for RuleType. \ + * {@link KnownRuleType} can be used interchangeably with RuleType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **FQDN** \ + * **PrivateEndpoint** \ + * **ServiceTag** + */ +export type RuleType = string; + +/** Known values of {@link ManagedNetworkStatus} that the service accepts. */ +export enum KnownManagedNetworkStatus { + /** Inactive */ + Inactive = "Inactive", + /** Active */ + Active = "Active" +} + +/** + * Defines values for ManagedNetworkStatus. \ + * {@link KnownManagedNetworkStatus} can be used interchangeably with ManagedNetworkStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Inactive** \ + * **Active** + */ +export type ManagedNetworkStatus = string; + +/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ +export enum KnownPrivateEndpointConnectionProvisioningState { + /** Succeeded */ + Succeeded = "Succeeded", + /** Creating */ + Creating = "Creating", + /** Deleting */ + Deleting = "Deleting", + /** Failed */ + Failed = "Failed" +} + +/** + * Defines values for PrivateEndpointConnectionProvisioningState. \ + * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Creating** \ + * **Deleting** \ + * **Failed** + */ +export type PrivateEndpointConnectionProvisioningState = string; + +/** Known values of {@link ConnectionAuthType} that the service accepts. */ +export enum KnownConnectionAuthType { + /** PAT */ + PAT = "PAT", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** UsernamePassword */ + UsernamePassword = "UsernamePassword", + /** None */ + None = "None", + /** SAS */ + SAS = "SAS", + /** ServicePrincipal */ + ServicePrincipal = "ServicePrincipal", + /** AccessKey */ + AccessKey = "AccessKey", + /** ApiKey */ + ApiKey = "ApiKey", + /** CustomKeys */ + CustomKeys = "CustomKeys" +} + +/** + * Defines values for ConnectionAuthType. \ + * {@link KnownConnectionAuthType} can be used interchangeably with ConnectionAuthType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PAT** \ + * **ManagedIdentity** \ + * **UsernamePassword** \ + * **None** \ + * **SAS** \ + * **ServicePrincipal** \ + * **AccessKey** \ + * **ApiKey** \ + * **CustomKeys** + */ +export type ConnectionAuthType = string; + +/** Known values of {@link ConnectionCategory} that the service accepts. */ +export enum KnownConnectionCategory { + /** PythonFeed */ + PythonFeed = "PythonFeed", + /** ContainerRegistry */ + ContainerRegistry = "ContainerRegistry", + /** Git */ + Git = "Git", + /** S3 */ + S3 = "S3", + /** Snowflake */ + Snowflake = "Snowflake", + /** AzureSqlDb */ + AzureSqlDb = "AzureSqlDb", + /** AzureSynapseAnalytics */ + AzureSynapseAnalytics = "AzureSynapseAnalytics", + /** AzureMySqlDb */ + AzureMySqlDb = "AzureMySqlDb", + /** AzurePostgresDb */ + AzurePostgresDb = "AzurePostgresDb", + /** AdlsGen2 */ + AdlsGen2 = "ADLSGen2", + /** Redis */ + Redis = "Redis", + /** ApiKey */ + ApiKey = "ApiKey", + /** AzureOpenAI */ + AzureOpenAI = "AzureOpenAI", + /** CognitiveSearch */ + CognitiveSearch = "CognitiveSearch", + /** CognitiveService */ + CognitiveService = "CognitiveService", + /** CustomKeys */ + CustomKeys = "CustomKeys" +} + +/** + * Defines values for ConnectionCategory. \ + * {@link KnownConnectionCategory} can be used interchangeably with ConnectionCategory, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PythonFeed** \ + * **ContainerRegistry** \ + * **Git** \ + * **S3** \ + * **Snowflake** \ + * **AzureSqlDb** \ + * **AzureSynapseAnalytics** \ + * **AzureMySqlDb** \ + * **AzurePostgresDb** \ + * **ADLSGen2** \ + * **Redis** \ + * **ApiKey** \ + * **AzureOpenAI** \ + * **CognitiveSearch** \ + * **CognitiveService** \ + * **CustomKeys** + */ +export type ConnectionCategory = string; + +/** Known values of {@link DiagnoseResultLevel} that the service accepts. */ +export enum KnownDiagnoseResultLevel { + /** Warning */ + Warning = "Warning", + /** Error */ + Error = "Error", + /** Information */ + Information = "Information" +} + +/** + * Defines values for DiagnoseResultLevel. \ + * {@link KnownDiagnoseResultLevel} can be used interchangeably with DiagnoseResultLevel, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Warning** \ + * **Error** \ + * **Information** + */ +export type DiagnoseResultLevel = 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 { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled", + /** Auto */ + Auto = "Auto" +} + +/** + * Defines values for SslConfigStatus. \ + * {@link KnownSslConfigStatus} can be used interchangeably with SslConfigStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** \ + * **Auto** + */ +export type SslConfigStatus = string; + +/** Known values of {@link LoadBalancerType} that the service accepts. */ +export enum KnownLoadBalancerType { + /** PublicIp */ + PublicIp = "PublicIp", + /** InternalLoadBalancer */ + InternalLoadBalancer = "InternalLoadBalancer" +} + +/** + * Defines values for LoadBalancerType. \ + * {@link KnownLoadBalancerType} can be used interchangeably with LoadBalancerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PublicIp** \ + * **InternalLoadBalancer** + */ +export type LoadBalancerType = string; + +/** Known values of {@link OsType} that the service accepts. */ +export enum KnownOsType { + /** Linux */ + Linux = "Linux", + /** Windows */ + Windows = "Windows" +} + +/** + * Defines values for OsType. \ + * {@link KnownOsType} can be used interchangeably with OsType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Linux** \ + * **Windows** + */ +export type OsType = string; + +/** Known values of {@link VmPriority} that the service accepts. */ +export enum KnownVmPriority { + /** Dedicated */ + Dedicated = "Dedicated", + /** LowPriority */ + LowPriority = "LowPriority" +} + +/** + * Defines values for VmPriority. \ + * {@link KnownVmPriority} can be used interchangeably with VmPriority, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Dedicated** \ + * **LowPriority** + */ +export type VmPriority = string; + +/** Known values of {@link RemoteLoginPortPublicAccess} that the service accepts. */ +export enum KnownRemoteLoginPortPublicAccess { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", + /** NotSpecified */ + NotSpecified = "NotSpecified" +} + +/** + * Defines values for RemoteLoginPortPublicAccess. \ + * {@link KnownRemoteLoginPortPublicAccess} can be used interchangeably with RemoteLoginPortPublicAccess, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** \ + * **NotSpecified** + */ +export type RemoteLoginPortPublicAccess = string; + +/** Known values of {@link AllocationState} that the service accepts. */ +export enum KnownAllocationState { + /** Steady */ + Steady = "Steady", + /** Resizing */ + Resizing = "Resizing" +} + +/** + * Defines values for AllocationState. \ + * {@link KnownAllocationState} can be used interchangeably with AllocationState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Steady** \ + * **Resizing** + */ +export type AllocationState = string; + +/** Known values of {@link ApplicationSharingPolicy} that the service accepts. */ +export enum KnownApplicationSharingPolicy { + /** Personal */ + Personal = "Personal", + /** Shared */ + Shared = "Shared" +} + +/** + * Defines values for ApplicationSharingPolicy. \ + * {@link KnownApplicationSharingPolicy} can be used interchangeably with ApplicationSharingPolicy, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Personal** \ + * **Shared** + */ +export type ApplicationSharingPolicy = string; + +/** Known values of {@link MlflowAutologger} that the service accepts. */ +export enum KnownMlflowAutologger { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for MlflowAutologger. \ + * {@link KnownMlflowAutologger} can be used interchangeably with MlflowAutologger, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type MlflowAutologger = string; + +/** Known values of {@link SshPublicAccess} that the service accepts. */ +export enum KnownSshPublicAccess { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for SshPublicAccess. \ + * {@link KnownSshPublicAccess} can be used interchangeably with SshPublicAccess, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type SshPublicAccess = string; + +/** Known values of {@link PatchStatus} that the service accepts. */ +export enum KnownPatchStatus { + /** CompletedWithWarnings */ + CompletedWithWarnings = "CompletedWithWarnings", + /** Failed */ + Failed = "Failed", + /** InProgress */ + InProgress = "InProgress", + /** Succeeded */ + Succeeded = "Succeeded", + /** Unknown */ + Unknown = "Unknown" +} + +/** + * Defines values for PatchStatus. \ + * {@link KnownPatchStatus} can be used interchangeably with PatchStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CompletedWithWarnings** \ + * **Failed** \ + * **InProgress** \ + * **Succeeded** \ + * **Unknown** + */ +export type PatchStatus = string; + +/** Known values of {@link ComputeInstanceState} that the service accepts. */ +export enum KnownComputeInstanceState { + /** Creating */ + Creating = "Creating", + /** CreateFailed */ + CreateFailed = "CreateFailed", + /** Deleting */ + Deleting = "Deleting", + /** Running */ + Running = "Running", + /** Restarting */ + Restarting = "Restarting", + /** Resizing */ + Resizing = "Resizing", + /** JobRunning */ + JobRunning = "JobRunning", + /** SettingUp */ + SettingUp = "SettingUp", + /** SetupFailed */ + SetupFailed = "SetupFailed", + /** Starting */ + Starting = "Starting", + /** Stopped */ + Stopped = "Stopped", + /** Stopping */ + Stopping = "Stopping", + /** UserSettingUp */ + UserSettingUp = "UserSettingUp", + /** UserSetupFailed */ + UserSetupFailed = "UserSetupFailed", + /** Unknown */ + Unknown = "Unknown", + /** Unusable */ + Unusable = "Unusable" +} + +/** + * Defines values for ComputeInstanceState. \ + * {@link KnownComputeInstanceState} can be used interchangeably with ComputeInstanceState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **CreateFailed** \ + * **Deleting** \ + * **Running** \ + * **Restarting** \ + * **Resizing** \ + * **JobRunning** \ + * **SettingUp** \ + * **SetupFailed** \ + * **Starting** \ + * **Stopped** \ + * **Stopping** \ + * **UserSettingUp** \ + * **UserSetupFailed** \ + * **Unknown** \ + * **Unusable** + */ +export type ComputeInstanceState = string; + +/** Known values of {@link ComputeInstanceAuthorizationType} that the service accepts. */ +export enum KnownComputeInstanceAuthorizationType { + /** Personal */ + Personal = "personal" +} + +/** + * Defines values for ComputeInstanceAuthorizationType. \ + * {@link KnownComputeInstanceAuthorizationType} can be used interchangeably with ComputeInstanceAuthorizationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **personal** + */ +export type ComputeInstanceAuthorizationType = string; + +/** Known values of {@link OperationName} that the service accepts. */ +export enum KnownOperationName { + /** Create */ + Create = "Create", + /** Start */ + Start = "Start", + /** Stop */ + Stop = "Stop", + /** Restart */ + Restart = "Restart", + /** Resize */ + Resize = "Resize", + /** Reimage */ + Reimage = "Reimage", + /** Delete */ + Delete = "Delete" +} + +/** + * Defines values for OperationName. \ + * {@link KnownOperationName} can be used interchangeably with OperationName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Create** \ + * **Start** \ + * **Stop** \ + * **Restart** \ + * **Resize** \ + * **Reimage** \ + * **Delete** + */ +export type OperationName = string; + +/** Known values of {@link OperationStatus} that the service accepts. */ +export enum KnownOperationStatus { + /** InProgress */ + InProgress = "InProgress", + /** Succeeded */ + Succeeded = "Succeeded", + /** CreateFailed */ + CreateFailed = "CreateFailed", + /** StartFailed */ + StartFailed = "StartFailed", + /** StopFailed */ + StopFailed = "StopFailed", + /** RestartFailed */ + RestartFailed = "RestartFailed", + /** ResizeFailed */ + ResizeFailed = "ResizeFailed", + /** ReimageFailed */ + ReimageFailed = "ReimageFailed", + /** DeleteFailed */ + DeleteFailed = "DeleteFailed" +} + +/** + * Defines values for OperationStatus. \ + * {@link KnownOperationStatus} can be used interchangeably with OperationStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **InProgress** \ + * **Succeeded** \ + * **CreateFailed** \ + * **StartFailed** \ + * **StopFailed** \ + * **RestartFailed** \ + * **ResizeFailed** \ + * **ReimageFailed** \ + * **DeleteFailed** + */ +export type OperationStatus = string; + +/** Known values of {@link OperationTrigger} that the service accepts. */ +export enum KnownOperationTrigger { + /** User */ + User = "User", + /** Schedule */ + Schedule = "Schedule", + /** IdleShutdown */ + IdleShutdown = "IdleShutdown" +} + +/** + * Defines values for OperationTrigger. \ + * {@link KnownOperationTrigger} can be used interchangeably with OperationTrigger, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Schedule** \ + * **IdleShutdown** + */ +export type OperationTrigger = string; + +/** Known values of {@link ProvisioningStatus} that the service accepts. */ +export enum KnownProvisioningStatus { + /** Completed */ + Completed = "Completed", + /** Provisioning */ + Provisioning = "Provisioning", + /** Failed */ + Failed = "Failed" +} + +/** + * Defines values for ProvisioningStatus. \ + * {@link KnownProvisioningStatus} can be used interchangeably with ProvisioningStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Completed** \ + * **Provisioning** \ + * **Failed** + */ +export type ProvisioningStatus = string; + +/** Known values of {@link ScheduleStatus} that the service accepts. */ +export enum KnownScheduleStatus { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for ScheduleStatus. \ + * {@link KnownScheduleStatus} can be used interchangeably with ScheduleStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type ScheduleStatus = string; + +/** Known values of {@link ComputePowerAction} that the service accepts. */ +export enum KnownComputePowerAction { + /** Start */ + Start = "Start", + /** Stop */ + Stop = "Stop" +} + +/** + * Defines values for ComputePowerAction. \ + * {@link KnownComputePowerAction} can be used interchangeably with ComputePowerAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Start** \ + * **Stop** + */ +export type ComputePowerAction = string; + +/** Known values of {@link ScheduleProvisioningState} that the service accepts. */ +export enum KnownScheduleProvisioningState { + /** Completed */ + Completed = "Completed", + /** Provisioning */ + Provisioning = "Provisioning", + /** Failed */ + Failed = "Failed" +} + +/** + * Defines values for ScheduleProvisioningState. \ + * {@link KnownScheduleProvisioningState} can be used interchangeably with ScheduleProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Completed** \ + * **Provisioning** \ + * **Failed** + */ +export type ScheduleProvisioningState = string; + +/** Known values of {@link Autosave} that the service accepts. */ +export enum KnownAutosave { + /** None */ + None = "None", + /** Local */ + Local = "Local", + /** Remote */ + Remote = "Remote" +} + +/** + * Defines values for Autosave. \ + * {@link KnownAutosave} can be used interchangeably with Autosave, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **Local** \ + * **Remote** + */ +export type Autosave = string; + +/** Known values of {@link Network} that the service accepts. */ +export enum KnownNetwork { + /** Bridge */ + Bridge = "Bridge", + /** Host */ + Host = "Host" +} + +/** + * Defines values for Network. \ + * {@link KnownNetwork} can be used interchangeably with Network, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Bridge** \ + * **Host** + */ +export type Network = string; + +/** Known values of {@link Caching} that the service accepts. */ +export enum KnownCaching { + /** None */ + None = "None", + /** ReadOnly */ + ReadOnly = "ReadOnly", + /** ReadWrite */ + ReadWrite = "ReadWrite" +} + +/** + * Defines values for Caching. \ + * {@link KnownCaching} can be used interchangeably with Caching, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **ReadOnly** \ + * **ReadWrite** + */ +export type Caching = string; + +/** Known values of {@link StorageAccountType} that the service accepts. */ +export enum KnownStorageAccountType { + /** StandardLRS */ + StandardLRS = "Standard_LRS", + /** PremiumLRS */ + PremiumLRS = "Premium_LRS" +} + +/** + * Defines values for StorageAccountType. \ + * {@link KnownStorageAccountType} can be used interchangeably with StorageAccountType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Standard_LRS** \ + * **Premium_LRS** + */ +export type StorageAccountType = string; + +/** Known values of {@link SourceType} that the service accepts. */ +export enum KnownSourceType { + /** Dataset */ + Dataset = "Dataset", + /** Datastore */ + Datastore = "Datastore", + /** URI */ + URI = "URI" +} + +/** + * Defines values for SourceType. \ + * {@link KnownSourceType} can be used interchangeably with SourceType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Dataset** \ + * **Datastore** \ + * **URI** + */ +export type SourceType = string; + +/** Known values of {@link MountAction} that the service accepts. */ +export enum KnownMountAction { + /** Mount */ + Mount = "Mount", + /** Unmount */ + Unmount = "Unmount" +} + +/** + * Defines values for MountAction. \ + * {@link KnownMountAction} can be used interchangeably with MountAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Mount** \ + * **Unmount** + */ +export type MountAction = string; + +/** Known values of {@link MountState} that the service accepts. */ +export enum KnownMountState { + /** MountRequested */ + MountRequested = "MountRequested", + /** Mounted */ + Mounted = "Mounted", + /** MountFailed */ + MountFailed = "MountFailed", + /** UnmountRequested */ + UnmountRequested = "UnmountRequested", + /** UnmountFailed */ + UnmountFailed = "UnmountFailed", + /** Unmounted */ + Unmounted = "Unmounted" +} + +/** + * Defines values for MountState. \ + * {@link KnownMountState} can be used interchangeably with MountState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **MountRequested** \ + * **Mounted** \ + * **MountFailed** \ + * **UnmountRequested** \ + * **UnmountFailed** \ + * **Unmounted** + */ +export type MountState = string; + +/** Known values of {@link MonitoringFeatureFilterType} that the service accepts. */ +export enum KnownMonitoringFeatureFilterType { + /** Includes all features. */ + AllFeatures = "AllFeatures", + /** Only includes the top contributing features, measured by feature attribution. */ + TopNByAttribution = "TopNByAttribution", + /** Includes a user-defined subset of features. */ + FeatureSubset = "FeatureSubset" +} + +/** + * Defines values for MonitoringFeatureFilterType. \ + * {@link KnownMonitoringFeatureFilterType} can be used interchangeably with MonitoringFeatureFilterType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AllFeatures**: Includes all features. \ + * **TopNByAttribution**: Only includes the top contributing features, measured by feature attribution. \ + * **FeatureSubset**: Includes a user-defined subset of features. + */ +export type MonitoringFeatureFilterType = string; + +/** Known values of {@link MonitorComputeIdentityType} that the service accepts. */ +export enum KnownMonitorComputeIdentityType { + /** Authenticates through user's AML token. */ + AmlToken = "AmlToken", + /** Authenticates through a user-provided managed identity. */ + ManagedIdentity = "ManagedIdentity" +} + +/** + * Defines values for MonitorComputeIdentityType. \ + * {@link KnownMonitorComputeIdentityType} can be used interchangeably with MonitorComputeIdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AmlToken**: Authenticates through user's AML token. \ + * **ManagedIdentity**: Authenticates through a user-provided managed identity. + */ +export type MonitorComputeIdentityType = string; + +/** Known values of {@link InputDeliveryMode} that the service accepts. */ +export enum KnownInputDeliveryMode { + /** ReadOnlyMount */ + ReadOnlyMount = "ReadOnlyMount", + /** ReadWriteMount */ + ReadWriteMount = "ReadWriteMount", + /** Download */ + Download = "Download", + /** Direct */ + Direct = "Direct", + /** EvalMount */ + EvalMount = "EvalMount", + /** EvalDownload */ + EvalDownload = "EvalDownload" +} + +/** + * Defines values for InputDeliveryMode. \ + * {@link KnownInputDeliveryMode} can be used interchangeably with InputDeliveryMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ReadOnlyMount** \ + * **ReadWriteMount** \ + * **Download** \ + * **Direct** \ + * **EvalMount** \ + * **EvalDownload** + */ +export type InputDeliveryMode = string; + +/** Known values of {@link OutputDeliveryMode} that the service accepts. */ +export enum KnownOutputDeliveryMode { + /** ReadWriteMount */ + ReadWriteMount = "ReadWriteMount", + /** Upload */ + Upload = "Upload", + /** Direct */ + Direct = "Direct" +} + +/** + * Defines values for OutputDeliveryMode. \ + * {@link KnownOutputDeliveryMode} can be used interchangeably with OutputDeliveryMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ReadWriteMount** \ + * **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 JobTier} that the service accepts. */ +export enum KnownJobTier { + /** Null */ + Null = "Null", + /** Spot */ + Spot = "Spot", + /** Basic */ + Basic = "Basic", + /** Standard */ + Standard = "Standard", + /** Premium */ + Premium = "Premium" +} + +/** + * Defines values for JobTier. \ + * {@link KnownJobTier} can be used interchangeably with JobTier, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Null** \ + * **Spot** \ + * **Basic** \ + * **Standard** \ + * **Premium** + */ +export type JobTier = string; + +/** Known values of {@link LogVerbosity} that the service accepts. */ +export enum KnownLogVerbosity { + /** No logs emitted. */ + 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 MLFlowAutologgerState} that the service accepts. */ +export enum KnownMLFlowAutologgerState { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for MLFlowAutologgerState. \ + * {@link KnownMLFlowAutologgerState} can be used interchangeably with MLFlowAutologgerState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type MLFlowAutologgerState = string; + +/** Known values of {@link MonitoringAlertNotificationType} that the service accepts. */ +export enum KnownMonitoringAlertNotificationType { + /** Settings for Azure Monitor based alerting. */ + AzureMonitor = "AzureMonitor", + /** Settings for AML email notifications. */ + Email = "Email" +} + +/** + * Defines values for MonitoringAlertNotificationType. \ + * {@link KnownMonitoringAlertNotificationType} can be used interchangeably with MonitoringAlertNotificationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AzureMonitor**: Settings for Azure Monitor based alerting. \ + * **Email**: Settings for AML email notifications. + */ +export type MonitoringAlertNotificationType = string; + +/** Known values of {@link ServiceDataAccessAuthIdentity} that the service accepts. */ +export enum KnownServiceDataAccessAuthIdentity { + /** Do not use any identity for service data access. */ + None = "None", + /** Use the system assigned managed identity of the Workspace to authenticate service data access. */ + WorkspaceSystemAssignedIdentity = "WorkspaceSystemAssignedIdentity", + /** Use the user assigned managed identity of the Workspace to authenticate service data access. */ + WorkspaceUserAssignedIdentity = "WorkspaceUserAssignedIdentity" +} + +/** + * Defines values for ServiceDataAccessAuthIdentity. \ + * {@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. + */ +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 CategoricalDataDriftMetric} that the service accepts. */ +export enum KnownCategoricalDataDriftMetric { + /** The Jensen Shannon Distance (JSD) metric. */ + JensenShannonDistance = "JensenShannonDistance", + /** The Population Stability Index (PSI) metric. */ + PopulationStabilityIndex = "PopulationStabilityIndex", + /** The Pearsons Chi Squared Test metric. */ + PearsonsChiSquaredTest = "PearsonsChiSquaredTest" +} + +/** + * Defines values for CategoricalDataDriftMetric. \ + * {@link KnownCategoricalDataDriftMetric} can be used interchangeably with CategoricalDataDriftMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **JensenShannonDistance**: The Jensen Shannon Distance (JSD) metric. \ + * **PopulationStabilityIndex**: The Population Stability Index (PSI) metric. \ + * **PearsonsChiSquaredTest**: The Pearsons Chi Squared Test metric. + */ +export type CategoricalDataDriftMetric = string; + +/** Known values of {@link MonitoringFeatureDataType} that the service accepts. */ +export enum KnownMonitoringFeatureDataType { + /** Used for features of numerical data type. */ + Numerical = "Numerical", + /** Used for features of categorical data type. */ + Categorical = "Categorical" +} + +/** + * Defines values for MonitoringFeatureDataType. \ + * {@link KnownMonitoringFeatureDataType} can be used interchangeably with MonitoringFeatureDataType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Numerical**: Used for features of numerical data type. \ + * **Categorical**: Used for features of categorical data type. + */ +export type MonitoringFeatureDataType = string; + +/** Known values of {@link CategoricalDataQualityMetric} that the service accepts. */ +export enum KnownCategoricalDataQualityMetric { + /** Calculates the rate of null values. */ + NullValueRate = "NullValueRate", + /** Calculates the rate of data type errors. */ + DataTypeErrorRate = "DataTypeErrorRate", + /** Calculates the rate values are out of bounds. */ + OutOfBoundsRate = "OutOfBoundsRate" +} + +/** + * Defines values for CategoricalDataQualityMetric. \ + * {@link KnownCategoricalDataQualityMetric} can be used interchangeably with CategoricalDataQualityMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NullValueRate**: Calculates the rate of null values. \ + * **DataTypeErrorRate**: Calculates the rate of data type errors. \ + * **OutOfBoundsRate**: Calculates the rate values are out of bounds. + */ +export type CategoricalDataQualityMetric = string; + +/** Known values of {@link CategoricalPredictionDriftMetric} that the service accepts. */ +export enum KnownCategoricalPredictionDriftMetric { + /** The Jensen Shannon Distance (JSD) metric. */ + JensenShannonDistance = "JensenShannonDistance", + /** The Population Stability Index (PSI) metric. */ + PopulationStabilityIndex = "PopulationStabilityIndex", + /** The Pearsons Chi Squared Test metric. */ + PearsonsChiSquaredTest = "PearsonsChiSquaredTest" +} + +/** + * Defines values for CategoricalPredictionDriftMetric. \ + * {@link KnownCategoricalPredictionDriftMetric} can be used interchangeably with CategoricalPredictionDriftMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **JensenShannonDistance**: The Jensen Shannon Distance (JSD) metric. \ + * **PopulationStabilityIndex**: The Population Stability Index (PSI) metric. \ + * **PearsonsChiSquaredTest**: The Pearsons Chi Squared Test metric. + */ +export type CategoricalPredictionDriftMetric = string; + +/** Known values of {@link ClassificationPrimaryMetrics} that the service accepts. */ +export enum KnownClassificationPrimaryMetrics { + /** + * 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 - * **Automatic**: Automatically scales node count. \ - * **Manual**: Node count scaled upon user request. \ - * **None**: Fixed set of nodes. + * **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 SkuScaleType = string; +export type StackMetaLearnerType = string; -/** Known values of {@link KeyType} that the service accepts. */ -export enum KnownKeyType { - /** Primary */ - Primary = "Primary", - /** Secondary */ - Secondary = "Secondary" +/** Known values of {@link TrainingMode} that the service accepts. */ +export enum KnownTrainingMode { + /** Auto mode */ + Auto = "Auto", + /** Distributed training mode */ + Distributed = "Distributed", + /** Non distributed training mode */ + NonDistributed = "NonDistributed" } /** - * Defines values for KeyType. \ - * {@link KnownKeyType} can be used interchangeably with KeyType, + * Defines values for TrainingMode. \ + * {@link KnownTrainingMode} can be used interchangeably with TrainingMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Primary** \ - * **Secondary** + * **Auto**: Auto mode \ + * **Distributed**: Distributed training mode \ + * **NonDistributed**: Non distributed training mode */ -export type KeyType = string; +export type TrainingMode = string; -/** Known values of {@link ScheduleListViewType} that the service accepts. */ -export enum KnownScheduleListViewType { - /** EnabledOnly */ - EnabledOnly = "EnabledOnly", - /** DisabledOnly */ - DisabledOnly = "DisabledOnly", - /** All */ - All = "All" +/** Known values of {@link 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 ScheduleListViewType. \ - * {@link KnownScheduleListViewType} can be used interchangeably with ScheduleListViewType, + * 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 - * **EnabledOnly** \ - * **DisabledOnly** \ - * **All** + * **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 ScheduleListViewType = string; +export type BlockedTransformers = string; -/** Known values of {@link ScheduleActionType} that the service accepts. */ -export enum KnownScheduleActionType { - /** CreateJob */ - CreateJob = "CreateJob", - /** InvokeBatchEndpoint */ - InvokeBatchEndpoint = "InvokeBatchEndpoint" +/** 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 ScheduleActionType. \ - * {@link KnownScheduleActionType} can be used interchangeably with ScheduleActionType, + * 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 - * **CreateJob** \ - * **InvokeBatchEndpoint** + * **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 ScheduleActionType = string; +export type FeaturizationMode = string; -/** Known values of {@link ScheduleProvisioningStatus} that the service accepts. */ -export enum KnownScheduleProvisioningStatus { - /** Creating */ - Creating = "Creating", - /** Updating */ - Updating = "Updating", - /** Deleting */ - Deleting = "Deleting", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled" +/** Known values of {@link ClassificationModelPerformanceMetric} that the service accepts. */ +export enum KnownClassificationModelPerformanceMetric { + /** Calculates the accuracy of the model predictions. */ + Accuracy = "Accuracy", + /** Calculates the precision of the model predictions. */ + Precision = "Precision", + /** Calculates the recall of the model predictions. */ + Recall = "Recall" } /** - * Defines values for ScheduleProvisioningStatus. \ - * {@link KnownScheduleProvisioningStatus} can be used interchangeably with ScheduleProvisioningStatus, + * Defines values for ClassificationModelPerformanceMetric. \ + * {@link KnownClassificationModelPerformanceMetric} can be used interchangeably with ClassificationModelPerformanceMetric, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Creating** \ - * **Updating** \ - * **Deleting** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** + * **Accuracy**: Calculates the accuracy of the model predictions. \ + * **Precision**: Calculates the precision of the model predictions. \ + * **Recall**: Calculates the recall of the model predictions. */ -export type ScheduleProvisioningStatus = string; +export type ClassificationModelPerformanceMetric = string; -/** Known values of {@link TriggerType} that the service accepts. */ -export enum KnownTriggerType { - /** Recurrence */ - Recurrence = "Recurrence", - /** Cron */ - Cron = "Cron" +/** Known values of {@link MonitoringModelType} that the service accepts. */ +export enum KnownMonitoringModelType { + /** A model trained for classification tasks. */ + Classification = "Classification", + /** A model trained for regressions tasks. */ + Regression = "Regression" +} + +/** + * Defines values for MonitoringModelType. \ + * {@link KnownMonitoringModelType} can be used interchangeably with MonitoringModelType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Classification**: A model trained for classification tasks. \ + * **Regression**: A model trained for regressions tasks. + */ +export type MonitoringModelType = string; + +/** Known values of {@link DistributionType} that the service accepts. */ +export enum KnownDistributionType { + /** PyTorch */ + PyTorch = "PyTorch", + /** TensorFlow */ + TensorFlow = "TensorFlow", + /** Mpi */ + Mpi = "Mpi", + /** Ray */ + Ray = "Ray" +} + +/** + * 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** \ + * **Ray** + */ +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 MonitorComputeType} that the service accepts. */ +export enum KnownMonitorComputeType { + /** Serverless Spark compute. */ + ServerlessSpark = "ServerlessSpark" +} + +/** + * Defines values for MonitorComputeType. \ + * {@link KnownMonitorComputeType} can be used interchangeably with MonitorComputeType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ServerlessSpark**: Serverless Spark compute. + */ +export type MonitorComputeType = string; + +/** Known values of {@link ModelTaskType} that the service accepts. */ +export enum KnownModelTaskType { + /** Classification */ + Classification = "Classification", + /** Regression */ + Regression = "Regression", + /** QuestionAnswering */ + QuestionAnswering = "QuestionAnswering" +} + +/** + * Defines values for ModelTaskType. \ + * {@link KnownModelTaskType} can be used interchangeably with ModelTaskType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Classification** \ + * **Regression** \ + * **QuestionAnswering** + */ +export type ModelTaskType = string; + +/** Known values of {@link MonitoringNotificationMode} that the service accepts. */ +export enum KnownMonitoringNotificationMode { + /** Disabled notifications will not produce emails\/metrics leveraged for alerting. */ + Disabled = "Disabled", + /** Enabled notification will produce emails\/metrics leveraged for alerting. */ + Enabled = "Enabled" +} + +/** + * Defines values for MonitoringNotificationMode. \ + * {@link KnownMonitoringNotificationMode} can be used interchangeably with MonitoringNotificationMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled**: Disabled notifications will not produce emails\/metrics leveraged for alerting. \ + * **Enabled**: Enabled notification will produce emails\/metrics leveraged for alerting. + */ +export type MonitoringNotificationMode = string; + +/** Known values of {@link MonitoringSignalType} that the service accepts. */ +export enum KnownMonitoringSignalType { + /** Tracks model input data distribution change, comparing against training data or past production data. */ + DataDrift = "DataDrift", + /** Tracks prediction result data distribution change, comparing against validation\/test label data or past production data. */ + PredictionDrift = "PredictionDrift", + /** Tracks model input data integrity. */ + DataQuality = "DataQuality", + /** Tracks feature importance change in production, comparing against feature importance at training time. */ + FeatureAttributionDrift = "FeatureAttributionDrift", + /** Tracks a custom signal provided by users. */ + Custom = "Custom", + /** Tracks model performance based on ground truth data. */ + ModelPerformance = "ModelPerformance", + /** Tracks the safety and quality of generated content. */ + GenerationSafetyQuality = "GenerationSafetyQuality", + /** Tracks the token usage of generative endpoints. */ + GenerationTokenStatistics = "GenerationTokenStatistics" +} + +/** + * Defines values for MonitoringSignalType. \ + * {@link KnownMonitoringSignalType} can be used interchangeably with MonitoringSignalType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **DataDrift**: Tracks model input data distribution change, comparing against training data or past production data. \ + * **PredictionDrift**: Tracks prediction result data distribution change, comparing against validation\/test label data or past production data. \ + * **DataQuality**: Tracks model input data integrity. \ + * **FeatureAttributionDrift**: Tracks feature importance change in production, comparing against feature importance at training time. \ + * **Custom**: Tracks a custom signal provided by users. \ + * **ModelPerformance**: Tracks model performance based on ground truth data. \ + * **GenerationSafetyQuality**: Tracks the safety and quality of generated content. \ + * **GenerationTokenStatistics**: Tracks the token usage of generative endpoints. + */ +export type MonitoringSignalType = string; + +/** Known values of {@link MonitoringInputDataType} that the service accepts. */ +export enum KnownMonitoringInputDataType { + /** An input data with a fixed window size. */ + Static = "Static", + /** An input data which trailing relatively to the monitor's current run. */ + Trailing = "Trailing", + /** An input data with tabular format which doesn't require preprocessing. */ + Fixed = "Fixed" +} + +/** + * Defines values for MonitoringInputDataType. \ + * {@link KnownMonitoringInputDataType} can be used interchangeably with MonitoringInputDataType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Static**: An input data with a fixed window size. \ + * **Trailing**: An input data which trailing relatively to the monitor's current run. \ + * **Fixed**: An input data with tabular format which doesn't require preprocessing. + */ +export type MonitoringInputDataType = string; + +/** Known values of {@link DataImportSourceType} that the service accepts. */ +export enum KnownDataImportSourceType { + /** Database */ + Database = "database", + /** FileSystem */ + FileSystem = "file_system" +} + +/** + * Defines values for DataImportSourceType. \ + * {@link KnownDataImportSourceType} can be used interchangeably with DataImportSourceType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **database** \ + * **file_system** + */ +export type DataImportSourceType = string; + +/** Known values of {@link FeatureAttributionMetric} that the service accepts. */ +export enum KnownFeatureAttributionMetric { + /** The Normalized Discounted Cumulative Gain metric. */ + NormalizedDiscountedCumulativeGain = "NormalizedDiscountedCumulativeGain" +} + +/** + * Defines values for FeatureAttributionMetric. \ + * {@link KnownFeatureAttributionMetric} can be used interchangeably with FeatureAttributionMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NormalizedDiscountedCumulativeGain**: The Normalized Discounted Cumulative Gain metric. + */ +export type FeatureAttributionMetric = string; + +/** Known values of {@link FeatureLags} that the service accepts. */ +export enum KnownFeatureLags { + /** No feature lags generated. */ + None = "None", + /** System auto-generates feature lags. */ + Auto = "Auto" } /** - * Defines values for TriggerType. \ - * {@link KnownTriggerType} can be used interchangeably with TriggerType, + * 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 - * **Recurrence** \ - * **Cron** + * **None**: No feature lags generated. \ + * **Auto**: System auto-generates feature lags. */ -export type TriggerType = string; +export type FeatureLags = 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 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 ClusterPurpose. \ - * {@link KnownClusterPurpose} can be used interchangeably with ClusterPurpose, + * 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 - * **FastProd** \ - * **DenseProd** \ - * **DevTest** + * **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 ClusterPurpose = string; +export type ShortSeriesHandlingConfiguration = string; -/** Known values of {@link SslConfigStatus} that the service accepts. */ -export enum KnownSslConfigStatus { - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled", - /** Auto */ - Auto = "Auto" +/** 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 SslConfigStatus. \ - * {@link KnownSslConfigStatus} can be used interchangeably with SslConfigStatus, + * 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 - * **Disabled** \ - * **Enabled** \ - * **Auto** + * **None**: Represent no value set. \ + * **Sum** \ + * **Max** \ + * **Min** \ + * **Mean** */ -export type SslConfigStatus = string; +export type TargetAggregationFunction = string; -/** Known values of {@link LoadBalancerType} that the service accepts. */ -export enum KnownLoadBalancerType { - /** PublicIp */ - PublicIp = "PublicIp", - /** InternalLoadBalancer */ - InternalLoadBalancer = "InternalLoadBalancer" +/** 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 LoadBalancerType. \ - * {@link KnownLoadBalancerType} can be used interchangeably with LoadBalancerType, + * 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 - * **PublicIp** \ - * **InternalLoadBalancer** + * **None**: No stl decomposition. \ + * **Season** \ + * **SeasonTrend** */ -export type LoadBalancerType = string; +export type UseStl = string; -/** Known values of {@link OsType} that the service accepts. */ -export enum KnownOsType { - /** Linux */ - Linux = "Linux", - /** Windows */ - Windows = "Windows" +/** 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 OsType. \ - * {@link KnownOsType} can be used interchangeably with OsType, + * 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 - * **Linux** \ - * **Windows** + * **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 OsType = string; +export type ForecastingPrimaryMetrics = string; -/** Known values of {@link VmPriority} that the service accepts. */ -export enum KnownVmPriority { - /** Dedicated */ - Dedicated = "Dedicated", - /** LowPriority */ - LowPriority = "LowPriority" +/** 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 VmPriority. \ - * {@link KnownVmPriority} can be used interchangeably with VmPriority, + * 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 - * **Dedicated** \ - * **LowPriority** + * **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 VmPriority = string; +export type ForecastingModels = string; -/** Known values of {@link RemoteLoginPortPublicAccess} that the service accepts. */ -export enum KnownRemoteLoginPortPublicAccess { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled", - /** NotSpecified */ - NotSpecified = "NotSpecified" +/** Known values of {@link GenerationSafetyQualityMetric} that the service accepts. */ +export enum KnownGenerationSafetyQualityMetric { + /** AcceptableGroundednessScorePerInstance */ + AcceptableGroundednessScorePerInstance = "AcceptableGroundednessScorePerInstance", + /** AggregatedGroundednessPassRate */ + AggregatedGroundednessPassRate = "AggregatedGroundednessPassRate", + /** AcceptableCoherenceScorePerInstance */ + AcceptableCoherenceScorePerInstance = "AcceptableCoherenceScorePerInstance", + /** AggregatedCoherencePassRate */ + AggregatedCoherencePassRate = "AggregatedCoherencePassRate", + /** AcceptableFluencyScorePerInstance */ + AcceptableFluencyScorePerInstance = "AcceptableFluencyScorePerInstance", + /** AggregatedFluencyPassRate */ + AggregatedFluencyPassRate = "AggregatedFluencyPassRate", + /** AcceptableSimilarityScorePerInstance */ + AcceptableSimilarityScorePerInstance = "AcceptableSimilarityScorePerInstance", + /** AggregatedSimilarityPassRate */ + AggregatedSimilarityPassRate = "AggregatedSimilarityPassRate", + /** AcceptableRelevanceScorePerInstance */ + AcceptableRelevanceScorePerInstance = "AcceptableRelevanceScorePerInstance", + /** AggregatedRelevancePassRate */ + AggregatedRelevancePassRate = "AggregatedRelevancePassRate" +} + +/** + * Defines values for GenerationSafetyQualityMetric. \ + * {@link KnownGenerationSafetyQualityMetric} can be used interchangeably with GenerationSafetyQualityMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AcceptableGroundednessScorePerInstance** \ + * **AggregatedGroundednessPassRate** \ + * **AcceptableCoherenceScorePerInstance** \ + * **AggregatedCoherencePassRate** \ + * **AcceptableFluencyScorePerInstance** \ + * **AggregatedFluencyPassRate** \ + * **AcceptableSimilarityScorePerInstance** \ + * **AggregatedSimilarityPassRate** \ + * **AcceptableRelevanceScorePerInstance** \ + * **AggregatedRelevancePassRate** + */ +export type GenerationSafetyQualityMetric = string; + +/** Known values of {@link GenerationTokenStatisticsMetric} that the service accepts. */ +export enum KnownGenerationTokenStatisticsMetric { + /** TotalTokenCount */ + TotalTokenCount = "TotalTokenCount", + /** TotalTokenCountPerGroup */ + TotalTokenCountPerGroup = "TotalTokenCountPerGroup" +} + +/** + * Defines values for GenerationTokenStatisticsMetric. \ + * {@link KnownGenerationTokenStatisticsMetric} can be used interchangeably with GenerationTokenStatisticsMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **TotalTokenCount** \ + * **TotalTokenCountPerGroup** + */ +export type GenerationTokenStatisticsMetric = 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 RemoteLoginPortPublicAccess. \ - * {@link KnownRemoteLoginPortPublicAccess} can be used interchangeably with RemoteLoginPortPublicAccess, + * 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 - * **Enabled** \ - * **Disabled** \ - * **NotSpecified** + * **None**: No learning rate scheduler selected. \ + * **WarmupCosine**: Cosine Annealing With Warmup. \ + * **Step**: Step learning rate scheduler. */ -export type RemoteLoginPortPublicAccess = string; +export type LearningRateScheduler = string; -/** Known values of {@link AllocationState} that the service accepts. */ -export enum KnownAllocationState { - /** Steady */ - Steady = "Steady", - /** Resizing */ - Resizing = "Resizing" +/** 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 AllocationState. \ - * {@link KnownAllocationState} can be used interchangeably with AllocationState, + * 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 - * **Steady** \ - * **Resizing** + * **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 AllocationState = string; +export type StochasticOptimizer = string; -/** Known values of {@link ApplicationSharingPolicy} that the service accepts. */ -export enum KnownApplicationSharingPolicy { - /** Personal */ - Personal = "Personal", - /** Shared */ - Shared = "Shared" +/** 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 ApplicationSharingPolicy. \ - * {@link KnownApplicationSharingPolicy} can be used interchangeably with ApplicationSharingPolicy, + * 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 - * **Personal** \ - * **Shared** + * **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 ApplicationSharingPolicy = string; +export type ClassificationMultilabelPrimaryMetrics = string; -/** Known values of {@link SshPublicAccess} that the service accepts. */ -export enum KnownSshPublicAccess { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** 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 SshPublicAccess. \ - * {@link KnownSshPublicAccess} can be used interchangeably with SshPublicAccess, + * 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 - * **Enabled** \ - * **Disabled** + * **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 SshPublicAccess = string; +export type InstanceSegmentationPrimaryMetrics = string; -/** Known values of {@link ComputeInstanceState} that the service accepts. */ -export enum KnownComputeInstanceState { - /** Creating */ - Creating = "Creating", - /** CreateFailed */ - CreateFailed = "CreateFailed", - /** Deleting */ - Deleting = "Deleting", - /** Running */ - Running = "Running", - /** Restarting */ - Restarting = "Restarting", - /** JobRunning */ - JobRunning = "JobRunning", - /** SettingUp */ - SettingUp = "SettingUp", - /** SetupFailed */ - SetupFailed = "SetupFailed", - /** Starting */ - Starting = "Starting", - /** Stopped */ - Stopped = "Stopped", - /** Stopping */ - Stopping = "Stopping", - /** UserSettingUp */ - UserSettingUp = "UserSettingUp", - /** UserSetupFailed */ - UserSetupFailed = "UserSetupFailed", - /** Unknown */ - Unknown = "Unknown", - /** Unusable */ - Unusable = "Unusable" +/** Known values of {@link LogTrainingMetrics} that the service accepts. */ +export enum KnownLogTrainingMetrics { + /** Enable compute and log training metrics. */ + Enable = "Enable", + /** Disable compute and log training metrics. */ + Disable = "Disable" } /** - * Defines values for ComputeInstanceState. \ - * {@link KnownComputeInstanceState} can be used interchangeably with ComputeInstanceState, + * Defines values for LogTrainingMetrics. \ + * {@link KnownLogTrainingMetrics} can be used interchangeably with LogTrainingMetrics, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Creating** \ - * **CreateFailed** \ - * **Deleting** \ - * **Running** \ - * **Restarting** \ - * **JobRunning** \ - * **SettingUp** \ - * **SetupFailed** \ - * **Starting** \ - * **Stopped** \ - * **Stopping** \ - * **UserSettingUp** \ - * **UserSetupFailed** \ - * **Unknown** \ - * **Unusable** + * **Enable**: Enable compute and log training metrics. \ + * **Disable**: Disable compute and log training metrics. */ -export type ComputeInstanceState = string; +export type LogTrainingMetrics = string; -/** Known values of {@link ComputeInstanceAuthorizationType} that the service accepts. */ -export enum KnownComputeInstanceAuthorizationType { - /** Personal */ - Personal = "personal" +/** Known values of {@link LogValidationLoss} that the service accepts. */ +export enum KnownLogValidationLoss { + /** Enable compute and log validation metrics. */ + Enable = "Enable", + /** Disable compute and log validation metrics. */ + Disable = "Disable" } /** - * Defines values for ComputeInstanceAuthorizationType. \ - * {@link KnownComputeInstanceAuthorizationType} can be used interchangeably with ComputeInstanceAuthorizationType, + * Defines values for LogValidationLoss. \ + * {@link KnownLogValidationLoss} can be used interchangeably with LogValidationLoss, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **personal** + * **Enable**: Enable compute and log validation metrics. \ + * **Disable**: Disable compute and log validation metrics. */ -export type ComputeInstanceAuthorizationType = string; +export type LogValidationLoss = string; -/** Known values of {@link OperationName} that the service accepts. */ -export enum KnownOperationName { - /** Create */ - Create = "Create", - /** Start */ - Start = "Start", - /** Stop */ - Stop = "Stop", - /** Restart */ - Restart = "Restart", - /** Reimage */ - Reimage = "Reimage", - /** Delete */ - Delete = "Delete" +/** 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 OperationName. \ - * {@link KnownOperationName} can be used interchangeably with OperationName, + * 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 - * **Create** \ - * **Start** \ - * **Stop** \ - * **Restart** \ - * **Reimage** \ - * **Delete** + * **None**: No value selected. \ + * **Small**: Small size. \ + * **Medium**: Medium size. \ + * **Large**: Large size. \ + * **ExtraLarge**: Extra large size. */ -export type OperationName = string; +export type ModelSize = string; -/** Known values of {@link OperationStatus} that the service accepts. */ -export enum KnownOperationStatus { - /** InProgress */ - InProgress = "InProgress", - /** Succeeded */ - Succeeded = "Succeeded", - /** CreateFailed */ - CreateFailed = "CreateFailed", - /** StartFailed */ - StartFailed = "StartFailed", - /** StopFailed */ - StopFailed = "StopFailed", - /** RestartFailed */ - RestartFailed = "RestartFailed", - /** ReimageFailed */ - ReimageFailed = "ReimageFailed", - /** DeleteFailed */ - DeleteFailed = "DeleteFailed" +/** 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 OperationStatus. \ - * {@link KnownOperationStatus} can be used interchangeably with OperationStatus, + * 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 - * **InProgress** \ - * **Succeeded** \ - * **CreateFailed** \ - * **StartFailed** \ - * **StopFailed** \ - * **RestartFailed** \ - * **ReimageFailed** \ - * **DeleteFailed** + * **None**: No metric. \ + * **Coco**: Coco metric. \ + * **Voc**: Voc metric. \ + * **CocoVoc**: CocoVoc metric. */ -export type OperationStatus = string; +export type ValidationMetricType = string; -/** Known values of {@link OperationTrigger} that the service accepts. */ -export enum KnownOperationTrigger { - /** User */ - User = "User", - /** Schedule */ - Schedule = "Schedule", - /** IdleShutdown */ - IdleShutdown = "IdleShutdown" +/** 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 OperationTrigger. \ - * {@link KnownOperationTrigger} can be used interchangeably with OperationTrigger, + * 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 - * **User** \ - * **Schedule** \ - * **IdleShutdown** + * **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 OperationTrigger = string; +export type ObjectDetectionPrimaryMetrics = string; -/** Known values of {@link ProvisioningStatus} that the service accepts. */ -export enum KnownProvisioningStatus { - /** Completed */ - Completed = "Completed", - /** Provisioning */ - Provisioning = "Provisioning", - /** Failed */ - Failed = "Failed" +/** Known values of {@link ImageAnnotationType} that the service accepts. */ +export enum KnownImageAnnotationType { + /** Classification */ + Classification = "Classification", + /** BoundingBox */ + BoundingBox = "BoundingBox", + /** InstanceSegmentation */ + InstanceSegmentation = "InstanceSegmentation" } /** - * Defines values for ProvisioningStatus. \ - * {@link KnownProvisioningStatus} can be used interchangeably with ProvisioningStatus, + * 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 - * **Completed** \ - * **Provisioning** \ - * **Failed** + * **Classification** \ + * **BoundingBox** \ + * **InstanceSegmentation** */ -export type ProvisioningStatus = string; +export type ImageAnnotationType = string; -/** Known values of {@link ScheduleStatus} that the service accepts. */ -export enum KnownScheduleStatus { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link TextAnnotationType} that the service accepts. */ +export enum KnownTextAnnotationType { + /** Classification */ + Classification = "Classification", + /** NamedEntityRecognition */ + NamedEntityRecognition = "NamedEntityRecognition" } /** - * Defines values for ScheduleStatus. \ - * {@link KnownScheduleStatus} can be used interchangeably with ScheduleStatus, + * 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 - * **Enabled** \ - * **Disabled** + * **Classification** \ + * **NamedEntityRecognition** */ -export type ScheduleStatus = string; +export type TextAnnotationType = string; -/** Known values of {@link ComputePowerAction} that the service accepts. */ -export enum KnownComputePowerAction { - /** Start */ - Start = "Start", - /** Stop */ - Stop = "Stop" +/** Known values of {@link OneLakeArtifactType} that the service accepts. */ +export enum KnownOneLakeArtifactType { + /** LakeHouse */ + LakeHouse = "LakeHouse" } /** - * Defines values for ComputePowerAction. \ - * {@link KnownComputePowerAction} can be used interchangeably with ComputePowerAction, + * Defines values for OneLakeArtifactType. \ + * {@link KnownOneLakeArtifactType} can be used interchangeably with OneLakeArtifactType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Start** \ - * **Stop** + * **LakeHouse** */ -export type ComputePowerAction = string; +export type OneLakeArtifactType = string; -/** Known values of {@link RecurrenceFrequency} that the service accepts. */ -export enum KnownRecurrenceFrequency { - /** Minute frequency */ - Minute = "Minute", - /** Hour frequency */ - Hour = "Hour", - /** Day frequency */ - Day = "Day", - /** Week frequency */ - Week = "Week", - /** Month frequency */ - Month = "Month" +/** Known values of {@link NlpLearningRateScheduler} that the service accepts. */ +export enum KnownNlpLearningRateScheduler { + /** No learning rate schedule. */ + None = "None", + /** Linear warmup and decay. */ + Linear = "Linear", + /** Linear warmup then cosine decay. */ + Cosine = "Cosine", + /** Linear warmup, cosine decay, then restart to initial LR. */ + CosineWithRestarts = "CosineWithRestarts", + /** Increase linearly then polynomially decay. */ + Polynomial = "Polynomial", + /** Constant learning rate. */ + Constant = "Constant", + /** Linear warmup followed by constant value. */ + ConstantWithWarmup = "ConstantWithWarmup" +} + +/** + * Defines values for NlpLearningRateScheduler. \ + * {@link KnownNlpLearningRateScheduler} can be used interchangeably with NlpLearningRateScheduler, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: No learning rate schedule. \ + * **Linear**: Linear warmup and decay. \ + * **Cosine**: Linear warmup then cosine decay. \ + * **CosineWithRestarts**: Linear warmup, cosine decay, then restart to initial LR. \ + * **Polynomial**: Increase linearly then polynomially decay. \ + * **Constant**: Constant learning rate. \ + * **ConstantWithWarmup**: Linear warmup followed by constant value. + */ +export type NlpLearningRateScheduler = string; + +/** Known values of {@link NumericalDataDriftMetric} that the service accepts. */ +export enum KnownNumericalDataDriftMetric { + /** The Jensen Shannon Distance (JSD) metric. */ + JensenShannonDistance = "JensenShannonDistance", + /** The Population Stability Index (PSI) metric. */ + PopulationStabilityIndex = "PopulationStabilityIndex", + /** The Normalized Wasserstein Distance metric. */ + NormalizedWassersteinDistance = "NormalizedWassersteinDistance", + /** The Two Sample Kolmogorov-Smirnov Test (two-sample K–S) metric. */ + TwoSampleKolmogorovSmirnovTest = "TwoSampleKolmogorovSmirnovTest" +} + +/** + * Defines values for NumericalDataDriftMetric. \ + * {@link KnownNumericalDataDriftMetric} can be used interchangeably with NumericalDataDriftMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **JensenShannonDistance**: The Jensen Shannon Distance (JSD) metric. \ + * **PopulationStabilityIndex**: The Population Stability Index (PSI) metric. \ + * **NormalizedWassersteinDistance**: The Normalized Wasserstein Distance metric. \ + * **TwoSampleKolmogorovSmirnovTest**: The Two Sample Kolmogorov-Smirnov Test (two-sample K–S) metric. + */ +export type NumericalDataDriftMetric = string; + +/** Known values of {@link NumericalDataQualityMetric} that the service accepts. */ +export enum KnownNumericalDataQualityMetric { + /** Calculates the rate of null values. */ + NullValueRate = "NullValueRate", + /** Calculates the rate of data type errors. */ + DataTypeErrorRate = "DataTypeErrorRate", + /** Calculates the rate values are out of bounds. */ + OutOfBoundsRate = "OutOfBoundsRate" } /** - * Defines values for RecurrenceFrequency. \ - * {@link KnownRecurrenceFrequency} can be used interchangeably with RecurrenceFrequency, + * Defines values for NumericalDataQualityMetric. \ + * {@link KnownNumericalDataQualityMetric} can be used interchangeably with NumericalDataQualityMetric, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Minute**: Minute frequency \ - * **Hour**: Hour frequency \ - * **Day**: Day frequency \ - * **Week**: Week frequency \ - * **Month**: Month frequency + * **NullValueRate**: Calculates the rate of null values. \ + * **DataTypeErrorRate**: Calculates the rate of data type errors. \ + * **OutOfBoundsRate**: Calculates the rate values are out of bounds. */ -export type RecurrenceFrequency = string; +export type NumericalDataQualityMetric = string; -/** Known values of {@link WeekDay} that the service accepts. */ -export enum KnownWeekDay { - /** Monday weekday */ - Monday = "Monday", - /** Tuesday weekday */ - Tuesday = "Tuesday", - /** Wednesday weekday */ - Wednesday = "Wednesday", - /** Thursday weekday */ - Thursday = "Thursday", - /** Friday weekday */ - Friday = "Friday", - /** Saturday weekday */ - Saturday = "Saturday", - /** Sunday weekday */ - Sunday = "Sunday" +/** Known values of {@link NumericalPredictionDriftMetric} that the service accepts. */ +export enum KnownNumericalPredictionDriftMetric { + /** The Jensen Shannon Distance (JSD) metric. */ + JensenShannonDistance = "JensenShannonDistance", + /** The Population Stability Index (PSI) metric. */ + PopulationStabilityIndex = "PopulationStabilityIndex", + /** The Normalized Wasserstein Distance metric. */ + NormalizedWassersteinDistance = "NormalizedWassersteinDistance", + /** The Two Sample Kolmogorov-Smirnov Test (two-sample K–S) metric. */ + TwoSampleKolmogorovSmirnovTest = "TwoSampleKolmogorovSmirnovTest" } /** - * Defines values for WeekDay. \ - * {@link KnownWeekDay} can be used interchangeably with WeekDay, + * Defines values for NumericalPredictionDriftMetric. \ + * {@link KnownNumericalPredictionDriftMetric} can be used interchangeably with NumericalPredictionDriftMetric, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Monday**: Monday weekday \ - * **Tuesday**: Tuesday weekday \ - * **Wednesday**: Wednesday weekday \ - * **Thursday**: Thursday weekday \ - * **Friday**: Friday weekday \ - * **Saturday**: Saturday weekday \ - * **Sunday**: Sunday weekday + * **JensenShannonDistance**: The Jensen Shannon Distance (JSD) metric. \ + * **PopulationStabilityIndex**: The Population Stability Index (PSI) metric. \ + * **NormalizedWassersteinDistance**: The Normalized Wasserstein Distance metric. \ + * **TwoSampleKolmogorovSmirnovTest**: The Two Sample Kolmogorov-Smirnov Test (two-sample K–S) metric. */ -export type WeekDay = string; +export type NumericalPredictionDriftMetric = string; -/** Known values of {@link ScheduleProvisioningState} that the service accepts. */ -export enum KnownScheduleProvisioningState { - /** Completed */ - Completed = "Completed", - /** Provisioning */ - Provisioning = "Provisioning", - /** Failed */ - Failed = "Failed" +/** Known values of {@link Goal} that the service accepts. */ +export enum KnownGoal { + /** Minimize */ + Minimize = "Minimize", + /** Maximize */ + Maximize = "Maximize" } /** - * Defines values for ScheduleProvisioningState. \ - * {@link KnownScheduleProvisioningState} can be used interchangeably with ScheduleProvisioningState, + * Defines values for Goal. \ + * {@link KnownGoal} can be used interchangeably with Goal, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Completed** \ - * **Provisioning** \ - * **Failed** + * **Minimize** \ + * **Maximize** */ -export type ScheduleProvisioningState = string; +export type Goal = string; -/** Known values of {@link Autosave} that the service accepts. */ -export enum KnownAutosave { - /** None */ - None = "None", - /** Local */ - Local = "Local", - /** Remote */ - Remote = "Remote" +/** Known values of {@link RandomSamplingAlgorithmRule} that the service accepts. */ +export enum KnownRandomSamplingAlgorithmRule { + /** Random */ + Random = "Random", + /** Sobol */ + Sobol = "Sobol" } /** - * Defines values for Autosave. \ - * {@link KnownAutosave} can be used interchangeably with Autosave, + * Defines values for RandomSamplingAlgorithmRule. \ + * {@link KnownRandomSamplingAlgorithmRule} can be used interchangeably with RandomSamplingAlgorithmRule, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None** \ - * **Local** \ - * **Remote** + * **Random** \ + * **Sobol** */ -export type Autosave = string; +export type RandomSamplingAlgorithmRule = string; -/** Known values of {@link Network} that the service accepts. */ -export enum KnownNetwork { - /** Bridge */ - Bridge = "Bridge", - /** Host */ - Host = "Host" +/** 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 Network. \ - * {@link KnownNetwork} can be used interchangeably with Network, + * 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 - * **Bridge** \ - * **Host** + * **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 Network = string; +export type RegressionPrimaryMetrics = string; -/** Known values of {@link Caching} that the service accepts. */ -export enum KnownCaching { - /** None */ - None = "None", - /** ReadOnly */ - ReadOnly = "ReadOnly", - /** ReadWrite */ - ReadWrite = "ReadWrite" +/** 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 Caching. \ - * {@link KnownCaching} can be used interchangeably with Caching, + * 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 - * **None** \ - * **ReadOnly** \ - * **ReadWrite** + * **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 Caching = string; +export type RegressionModels = string; -/** Known values of {@link StorageAccountType} that the service accepts. */ -export enum KnownStorageAccountType { - /** StandardLRS */ - StandardLRS = "Standard_LRS", - /** PremiumLRS */ - PremiumLRS = "Premium_LRS" +/** Known values of {@link RegressionModelPerformanceMetric} that the service accepts. */ +export enum KnownRegressionModelPerformanceMetric { + /** The Mean Absolute Error (MAE) metric. */ + MeanAbsoluteError = "MeanAbsoluteError", + /** The Root Mean Squared Error (RMSE) metric. */ + RootMeanSquaredError = "RootMeanSquaredError", + /** The Mean Squared Error (MSE) metric. */ + MeanSquaredError = "MeanSquaredError" } /** - * Defines values for StorageAccountType. \ - * {@link KnownStorageAccountType} can be used interchangeably with StorageAccountType, + * Defines values for RegressionModelPerformanceMetric. \ + * {@link KnownRegressionModelPerformanceMetric} can be used interchangeably with RegressionModelPerformanceMetric, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Standard_LRS** \ - * **Premium_LRS** + * **MeanAbsoluteError**: The Mean Absolute Error (MAE) metric. \ + * **RootMeanSquaredError**: The Root Mean Squared Error (RMSE) metric. \ + * **MeanSquaredError**: The Mean Squared Error (MSE) metric. */ -export type StorageAccountType = string; +export type RegressionModelPerformanceMetric = string; -/** Known values of {@link SourceType} that the service accepts. */ -export enum KnownSourceType { - /** Dataset */ - Dataset = "Dataset", - /** Datastore */ - Datastore = "Datastore", - /** URI */ - URI = "URI" +/** Known values of {@link SparkJobEntryType} that the service accepts. */ +export enum KnownSparkJobEntryType { + /** SparkJobPythonEntry */ + SparkJobPythonEntry = "SparkJobPythonEntry", + /** SparkJobScalaEntry */ + SparkJobScalaEntry = "SparkJobScalaEntry" } /** - * Defines values for SourceType. \ - * {@link KnownSourceType} can be used interchangeably with SourceType, + * 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 - * **Dataset** \ - * **Datastore** \ - * **URI** + * **SparkJobPythonEntry** \ + * **SparkJobScalaEntry** */ -export type SourceType = string; +export type SparkJobEntryType = string; -/** Known values of {@link MountAction} that the service accepts. */ -export enum KnownMountAction { - /** Mount */ - Mount = "Mount", - /** Unmount */ - Unmount = "Unmount" +/** Known values of {@link RuleAction} that the service accepts. */ +export enum KnownRuleAction { + /** Allow */ + Allow = "Allow", + /** Deny */ + Deny = "Deny" } /** - * Defines values for MountAction. \ - * {@link KnownMountAction} can be used interchangeably with MountAction, + * Defines values for RuleAction. \ + * {@link KnownRuleAction} can be used interchangeably with RuleAction, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Mount** \ - * **Unmount** + * **Allow** \ + * **Deny** */ -export type MountAction = string; +export type RuleAction = string; +/** Defines values for SkuTier. */ +export type SkuTier = "Free" | "Basic" | "Standard" | "Premium"; -/** Known values of {@link MountState} that the service accepts. */ -export enum KnownMountState { - /** MountRequested */ - MountRequested = "MountRequested", - /** Mounted */ - Mounted = "Mounted", - /** MountFailed */ - MountFailed = "MountFailed", - /** UnmountRequested */ - UnmountRequested = "UnmountRequested", - /** UnmountFailed */ - UnmountFailed = "UnmountFailed", - /** Unmounted */ - Unmounted = "Unmounted" +/** Optional parameters. */ +export interface UsagesListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type UsagesListResponse = ListUsagesResult; + +/** Optional parameters. */ +export interface UsagesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type UsagesListNextResponse = ListUsagesResult; + +/** Optional parameters. */ +export interface VirtualMachineSizesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult; + +/** Optional parameters. */ +export interface QuotasUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult; + +/** Optional parameters. */ +export interface QuotasListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type QuotasListResponse = ListWorkspaceQuotas; + +/** Optional parameters. */ +export interface QuotasListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type QuotasListNextResponse = ListWorkspaceQuotas; + +/** Optional parameters. */ +export interface ComputeListOptionalParams extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; } -/** - * Defines values for MountState. \ - * {@link KnownMountState} can be used interchangeably with MountState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **MountRequested** \ - * **Mounted** \ - * **MountFailed** \ - * **UnmountRequested** \ - * **UnmountFailed** \ - * **Unmounted** - */ -export type MountState = string; +/** Contains response data for the list operation. */ +export type ComputeListResponse = PaginatedComputeResourcesList; -/** Known values of {@link InputDeliveryMode} that the service accepts. */ -export enum KnownInputDeliveryMode { - /** ReadOnlyMount */ - ReadOnlyMount = "ReadOnlyMount", - /** ReadWriteMount */ - ReadWriteMount = "ReadWriteMount", - /** Download */ - Download = "Download", - /** Direct */ - Direct = "Direct", - /** EvalMount */ - EvalMount = "EvalMount", - /** EvalDownload */ - EvalDownload = "EvalDownload" +/** Optional parameters. */ +export interface ComputeGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ComputeGetResponse = ComputeResource; + +/** Optional parameters. */ +export interface ComputeCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for InputDeliveryMode. \ - * {@link KnownInputDeliveryMode} can be used interchangeably with InputDeliveryMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ReadOnlyMount** \ - * **ReadWriteMount** \ - * **Download** \ - * **Direct** \ - * **EvalMount** \ - * **EvalDownload** - */ -export type InputDeliveryMode = string; +/** Contains response data for the createOrUpdate operation. */ +export type ComputeCreateOrUpdateResponse = ComputeResource; -/** Known values of {@link OutputDeliveryMode} that the service accepts. */ -export enum KnownOutputDeliveryMode { - /** ReadWriteMount */ - ReadWriteMount = "ReadWriteMount", - /** Upload */ - Upload = "Upload" +/** Optional parameters. */ +export interface ComputeUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for OutputDeliveryMode. \ - * {@link KnownOutputDeliveryMode} can be used interchangeably with OutputDeliveryMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ReadWriteMount** \ - * **Upload** - */ -export type OutputDeliveryMode = string; +/** Contains response data for the update operation. */ +export type ComputeUpdateResponse = ComputeResource; -/** 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" +/** Optional parameters. */ +export interface ComputeDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ComputeUpdateCustomServicesOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ComputeListNodesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNodes operation. */ +export type ComputeListNodesResponse = AmlComputeNodesInformation; + +/** Optional parameters. */ +export interface ComputeListKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listKeys operation. */ +export type ComputeListKeysResponse = ComputeSecretsUnion; + +/** Optional parameters. */ +export interface ComputeStartOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ComputeStopOptionalParams extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ComputeRestartOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ComputeUpdateIdleShutdownSettingOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ComputeGetAllowedResizeSizesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getAllowedResizeSizes operation. */ +export type ComputeGetAllowedResizeSizesResponse = VirtualMachineSizeListResult; + +/** Optional parameters. */ +export interface ComputeResizeOptionalParams + 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; } -/** - * 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; +/** Contains response data for the resize operation. */ +export type ComputeResizeResponse = ComputeResizeHeaders; + +/** Optional parameters. */ +export interface ComputeListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ComputeListNextResponse = PaginatedComputeResourcesList; -/** 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" -} +/** Optional parameters. */ +export interface ComputeListNodesNextOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the listNodesNext operation. */ +export type ComputeListNodesNextResponse = AmlComputeNodesInformation; -/** 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" +/** Optional parameters. */ +export interface RegistryCodeContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; } -/** - * 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; +/** Contains response data for the list operation. */ +export type RegistryCodeContainersListResponse = CodeContainerResourceArmPaginatedResult; -/** 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" +/** Optional parameters. */ +export interface RegistryCodeContainersDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * 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; +/** Optional parameters. */ +export interface RegistryCodeContainersGetOptionalParams + extends coreClient.OperationOptions {} -/** 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" +/** Contains response data for the get operation. */ +export type RegistryCodeContainersGetResponse = CodeContainer; + +/** Optional parameters. */ +export interface RegistryCodeContainersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * 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; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryCodeContainersCreateOrUpdateResponse = CodeContainer; -/** 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" +/** Optional parameters. */ +export interface RegistryCodeContainersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type RegistryCodeContainersListNextResponse = CodeContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistryCodeVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; } -/** - * 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; +/** Contains response data for the list operation. */ +export type RegistryCodeVersionsListResponse = CodeVersionResourceArmPaginatedResult; -/** 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" +/** Optional parameters. */ +export interface RegistryCodeVersionsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * 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; +/** Optional parameters. */ +export interface RegistryCodeVersionsGetOptionalParams + extends coreClient.OperationOptions {} -/** 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" +/** Contains response data for the get operation. */ +export type RegistryCodeVersionsGetResponse = CodeVersion; + +/** Optional parameters. */ +export interface RegistryCodeVersionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * 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; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryCodeVersionsCreateOrUpdateResponse = CodeVersion; -/** 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" -} +/** Optional parameters. */ +export interface RegistryCodeVersionsCreateOrGetStartPendingUploadOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the createOrGetStartPendingUpload operation. */ +export type RegistryCodeVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; -/** Known values of {@link ServiceDataAccessAuthIdentity} that the service accepts. */ -export enum KnownServiceDataAccessAuthIdentity { - /** Do not use any identity for service data access. */ - None = "None", - /** Use the system assigned managed identity of the Workspace to authenticate service data access. */ - WorkspaceSystemAssignedIdentity = "WorkspaceSystemAssignedIdentity", - /** Use the user assigned managed identity of the Workspace to authenticate service data access. */ - WorkspaceUserAssignedIdentity = "WorkspaceUserAssignedIdentity" -} +/** Optional parameters. */ +export interface RegistryCodeVersionsListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for ServiceDataAccessAuthIdentity. \ - * {@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. - */ -export type ServiceDataAccessAuthIdentity = string; +/** Contains response data for the listNext operation. */ +export type RegistryCodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult; -/** Known values of {@link EarlyTerminationPolicyType} that the service accepts. */ -export enum KnownEarlyTerminationPolicyType { - /** Bandit */ - Bandit = "Bandit", - /** MedianStopping */ - MedianStopping = "MedianStopping", - /** TruncationSelection */ - TruncationSelection = "TruncationSelection" +/** Optional parameters. */ +export interface RegistryComponentContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; } -/** - * Defines values for EarlyTerminationPolicyType. \ - * {@link KnownEarlyTerminationPolicyType} can be used interchangeably with EarlyTerminationPolicyType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Bandit** \ - * **MedianStopping** \ - * **TruncationSelection** - */ -export type EarlyTerminationPolicyType = string; +/** Contains response data for the list operation. */ +export type RegistryComponentContainersListResponse = ComponentContainerResourceArmPaginatedResult; -/** Known values of {@link SamplingAlgorithmType} that the service accepts. */ -export enum KnownSamplingAlgorithmType { - /** Grid */ - Grid = "Grid", - /** Random */ - Random = "Random", - /** Bayesian */ - Bayesian = "Bayesian" +/** Optional parameters. */ +export interface RegistryComponentContainersDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * 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; +/** Optional parameters. */ +export interface RegistryComponentContainersGetOptionalParams + extends coreClient.OperationOptions {} -/** 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" +/** Contains response data for the get operation. */ +export type RegistryComponentContainersGetResponse = ComponentContainer; + +/** Optional parameters. */ +export interface RegistryComponentContainersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * 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; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryComponentContainersCreateOrUpdateResponse = ComponentContainer; -/** 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" +/** Optional parameters. */ +export interface RegistryComponentContainersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type RegistryComponentContainersListNextResponse = ComponentContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistryComponentVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** Component stage. */ + stage?: string; } -/** - * 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; +/** Contains response data for the list operation. */ +export type RegistryComponentVersionsListResponse = ComponentVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistryComponentVersionsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** 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" +/** Optional parameters. */ +export interface RegistryComponentVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type RegistryComponentVersionsGetResponse = ComponentVersion; + +/** Optional parameters. */ +export interface RegistryComponentVersionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * 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; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryComponentVersionsCreateOrUpdateResponse = ComponentVersion; -/** 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" +/** Optional parameters. */ +export interface RegistryComponentVersionsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type RegistryComponentVersionsListNextResponse = ComponentVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistryDataContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; } -/** - * 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; +/** Contains response data for the list operation. */ +export type RegistryDataContainersListResponse = DataContainerResourceArmPaginatedResult; -/** 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" +/** Optional parameters. */ +export interface RegistryDataContainersDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * 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; +/** Optional parameters. */ +export interface RegistryDataContainersGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link DistributionType} that the service accepts. */ -export enum KnownDistributionType { - /** PyTorch */ - PyTorch = "PyTorch", - /** TensorFlow */ - TensorFlow = "TensorFlow", - /** Mpi */ - Mpi = "Mpi" +/** Contains response data for the get operation. */ +export type RegistryDataContainersGetResponse = DataContainer; + +/** Optional parameters. */ +export interface RegistryDataContainersCreateOrUpdateOptionalParams + 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; } -/** - * 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; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryDataContainersCreateOrUpdateResponse = DataContainer; -/** Known values of {@link JobLimitsType} that the service accepts. */ -export enum KnownJobLimitsType { - /** Command */ - Command = "Command", - /** Sweep */ - Sweep = "Sweep" +/** Optional parameters. */ +export interface RegistryDataContainersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type RegistryDataContainersListNextResponse = DataContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistryDataVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Please choose OrderBy value from ['createdtime', 'modifiedtime'] */ + orderBy?: string; + /** + * Top count of results, top count cannot be greater than the page size. + * If topCount > page size, results with be default page size count will be returned + */ + top?: number; + /** [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; } -/** - * 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; +/** Contains response data for the list operation. */ +export type RegistryDataVersionsListResponse = DataVersionBaseResourceArmPaginatedResult; -/** 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" +/** Optional parameters. */ +export interface RegistryDataVersionsDeleteOptionalParams + 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; } -/** - * 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; +/** Optional parameters. */ +export interface RegistryDataVersionsGetOptionalParams + extends coreClient.OperationOptions {} -/** 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" +/** Contains response data for the get operation. */ +export type RegistryDataVersionsGetResponse = DataVersionBase; + +/** Optional parameters. */ +export interface RegistryDataVersionsCreateOrUpdateOptionalParams + 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; } -/** - * 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; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryDataVersionsCreateOrUpdateResponse = DataVersionBase; -/** 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" +/** Optional parameters. */ +export interface RegistryDataVersionsCreateOrGetStartPendingUploadOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrGetStartPendingUpload operation. */ +export type RegistryDataVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; + +/** Optional parameters. */ +export interface RegistryDataVersionsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type RegistryDataVersionsListNextResponse = DataVersionBaseResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistryEnvironmentContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; } -/** - * 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; +/** Contains response data for the list operation. */ +export type RegistryEnvironmentContainersListResponse = EnvironmentContainerResourceArmPaginatedResult; -/** Known values of {@link UseStl} that the service accepts. */ -export enum KnownUseStl { - /** No stl decomposition. */ - None = "None", - /** Season */ - Season = "Season", - /** SeasonTrend */ - SeasonTrend = "SeasonTrend" +/** Optional parameters. */ +export interface RegistryEnvironmentContainersDeleteOptionalParams + 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; } -/** - * 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; +/** Optional parameters. */ +export interface RegistryEnvironmentContainersGetOptionalParams + extends coreClient.OperationOptions {} -/** 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" +/** Contains response data for the get operation. */ +export type RegistryEnvironmentContainersGetResponse = EnvironmentContainer; + +/** Optional parameters. */ +export interface RegistryEnvironmentContainersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * 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; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryEnvironmentContainersCreateOrUpdateResponse = EnvironmentContainer; -/** 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" -} +/** Optional parameters. */ +export interface RegistryEnvironmentContainersListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the listNext operation. */ +export type RegistryEnvironmentContainersListNextResponse = EnvironmentContainerResourceArmPaginatedResult; -/** 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" +/** Optional parameters. */ +export interface RegistryEnvironmentVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** Stage for including/excluding (for example) archived entities. Takes priority over listViewType */ + stage?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; } -/** - * 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; +/** Contains response data for the list operation. */ +export type RegistryEnvironmentVersionsListResponse = EnvironmentVersionResourceArmPaginatedResult; -/** 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" +/** Optional parameters. */ +export interface RegistryEnvironmentVersionsDeleteOptionalParams + 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; } -/** - * 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; +/** Optional parameters. */ +export interface RegistryEnvironmentVersionsGetOptionalParams + extends coreClient.OperationOptions {} -/** 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" +/** Contains response data for the get operation. */ +export type RegistryEnvironmentVersionsGetResponse = EnvironmentVersion; + +/** Optional parameters. */ +export interface RegistryEnvironmentVersionsCreateOrUpdateOptionalParams + 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; } -/** - * 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 ClassificationMultilabelPrimaryMetrics = string; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryEnvironmentVersionsCreateOrUpdateResponse = EnvironmentVersion; -/** 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" -} +/** Optional parameters. */ +export interface RegistryEnvironmentVersionsListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * 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 - * **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 InstanceSegmentationPrimaryMetrics = string; +/** Contains response data for the listNext operation. */ +export type RegistryEnvironmentVersionsListNextResponse = EnvironmentVersionResourceArmPaginatedResult; -/** 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" +/** Optional parameters. */ +export interface RegistryModelContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; } -/** - * 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 - * **None**: No value selected. \ - * **Small**: Small size. \ - * **Medium**: Medium size. \ - * **Large**: Large size. \ - * **ExtraLarge**: Extra large size. - */ -export type ModelSize = string; +/** Contains response data for the list operation. */ +export type RegistryModelContainersListResponse = ModelContainerResourceArmPaginatedResult; -/** 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" +/** Optional parameters. */ +export interface RegistryModelContainersDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * 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 - * **None**: No metric. \ - * **Coco**: Coco metric. \ - * **Voc**: Voc metric. \ - * **CocoVoc**: CocoVoc metric. - */ -export type ValidationMetricType = string; +/** Optional parameters. */ +export interface RegistryModelContainersGetOptionalParams + extends coreClient.OperationOptions {} -/** 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" +/** Contains response data for the get operation. */ +export type RegistryModelContainersGetResponse = ModelContainer; + +/** Optional parameters. */ +export interface RegistryModelContainersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * 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 - * **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 ObjectDetectionPrimaryMetrics = string; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryModelContainersCreateOrUpdateResponse = ModelContainer; -/** Known values of {@link Goal} that the service accepts. */ -export enum KnownGoal { - /** Minimize */ - Minimize = "Minimize", - /** Maximize */ - Maximize = "Maximize" +/** Optional parameters. */ +export interface RegistryModelContainersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type RegistryModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistryModelVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** Version identifier. */ + version?: string; + /** Model description. */ + description?: string; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; + /** Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2 */ + properties?: string; } -/** - * Defines values for Goal. \ - * {@link KnownGoal} can be used interchangeably with Goal, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Minimize** \ - * **Maximize** - */ -export type Goal = string; +/** Contains response data for the list operation. */ +export type RegistryModelVersionsListResponse = ModelVersionResourceArmPaginatedResult; -/** Known values of {@link RandomSamplingAlgorithmRule} that the service accepts. */ -export enum KnownRandomSamplingAlgorithmRule { - /** Random */ - Random = "Random", - /** Sobol */ - Sobol = "Sobol" +/** Optional parameters. */ +export interface RegistryModelVersionsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for RandomSamplingAlgorithmRule. \ - * {@link KnownRandomSamplingAlgorithmRule} can be used interchangeably with RandomSamplingAlgorithmRule, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Random** \ - * **Sobol** - */ -export type RandomSamplingAlgorithmRule = string; +/** Optional parameters. */ +export interface RegistryModelVersionsGetOptionalParams + extends coreClient.OperationOptions {} -/** 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" +/** Contains response data for the get operation. */ +export type RegistryModelVersionsGetResponse = ModelVersion; + +/** Optional parameters. */ +export interface RegistryModelVersionsCreateOrUpdateOptionalParams + 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; } -/** - * 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; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryModelVersionsCreateOrUpdateResponse = ModelVersion; -/** 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" +/** Optional parameters. */ +export interface RegistryModelVersionsPackageOptionalParams + 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; } -/** - * 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; -/** Defines values for SkuTier. */ -export type SkuTier = "Free" | "Basic" | "Standard" | "Premium"; +/** Contains response data for the package operation. */ +export type RegistryModelVersionsPackageResponse = PackageResponse; /** Optional parameters. */ -export interface OperationsListOptionalParams +export interface RegistryModelVersionsCreateOrGetStartPendingUploadOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type OperationsListResponse = AmlOperationListResult; +/** Contains response data for the createOrGetStartPendingUpload operation. */ +export type RegistryModelVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; /** Optional parameters. */ -export interface WorkspacesGetOptionalParams +export interface RegistryModelVersionsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type WorkspacesGetResponse = Workspace; +/** Contains response data for the listNext operation. */ +export type RegistryModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface WorkspacesCreateOrUpdateOptionalParams +export interface BatchEndpointsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Number of endpoints to be retrieved in a page of results. */ + count?: number; +} + +/** Contains response data for the list operation. */ +export type BatchEndpointsListResponse = BatchEndpointTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface BatchEndpointsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7524,11 +12729,15 @@ export interface WorkspacesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type WorkspacesCreateOrUpdateResponse = Workspace; +/** Optional parameters. */ +export interface BatchEndpointsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type BatchEndpointsGetResponse = BatchEndpoint; /** Optional parameters. */ -export interface WorkspacesDeleteOptionalParams +export interface BatchEndpointsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7536,8 +12745,11 @@ export interface WorkspacesDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the update operation. */ +export type BatchEndpointsUpdateResponse = BatchEndpoint; + /** Optional parameters. */ -export interface WorkspacesUpdateOptionalParams +export interface BatchEndpointsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7545,42 +12757,55 @@ export interface WorkspacesUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type WorkspacesUpdateResponse = Workspace; +/** Contains response data for the createOrUpdate operation. */ +export type BatchEndpointsCreateOrUpdateResponse = BatchEndpoint; /** Optional parameters. */ -export interface WorkspacesListByResourceGroupOptionalParams +export interface BatchEndpointsListKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listKeys operation. */ +export type BatchEndpointsListKeysResponse = EndpointAuthKeys; + +/** Optional parameters. */ +export interface BatchEndpointsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type BatchEndpointsListNextResponse = BatchEndpointTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface BatchDeploymentsListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Top of list. */ + top?: number; } -/** Contains response data for the listByResourceGroup operation. */ -export type WorkspacesListByResourceGroupResponse = WorkspaceListResult; +/** Contains response data for the list operation. */ +export type BatchDeploymentsListResponse = BatchDeploymentTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface WorkspacesDiagnoseOptionalParams +export interface BatchDeploymentsDeleteOptionalParams extends coreClient.OperationOptions { - /** The parameter of diagnosing workspace health */ - parameters?: DiagnoseWorkspaceParameters; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } -/** Contains response data for the diagnose operation. */ -export type WorkspacesDiagnoseResponse = DiagnoseResponseResult; - /** Optional parameters. */ -export interface WorkspacesListKeysOptionalParams +export interface BatchDeploymentsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listKeys operation. */ -export type WorkspacesListKeysResponse = ListWorkspaceKeysResult; +/** Contains response data for the get operation. */ +export type BatchDeploymentsGetResponse = BatchDeployment; /** Optional parameters. */ -export interface WorkspacesResyncKeysOptionalParams +export interface BatchDeploymentsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7588,309 +12813,439 @@ export interface WorkspacesResyncKeysOptionalParams resumeFrom?: string; } +/** Contains response data for the update operation. */ +export type BatchDeploymentsUpdateResponse = BatchDeployment; + /** Optional parameters. */ -export interface WorkspacesListBySubscriptionOptionalParams +export interface BatchDeploymentsCreateOrUpdateOptionalParams + 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 BatchDeploymentsCreateOrUpdateResponse = BatchDeployment; + +/** Optional parameters. */ +export interface BatchDeploymentsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type BatchDeploymentsListNextResponse = BatchDeploymentTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface CodeContainersListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; } -/** Contains response data for the listBySubscription operation. */ -export type WorkspacesListBySubscriptionResponse = WorkspaceListResult; +/** Contains response data for the list operation. */ +export type CodeContainersListResponse = CodeContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface WorkspacesListNotebookAccessTokenOptionalParams +export interface CodeContainersDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNotebookAccessToken operation. */ -export type WorkspacesListNotebookAccessTokenResponse = NotebookAccessTokenResult; +/** Optional parameters. */ +export interface CodeContainersGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CodeContainersGetResponse = CodeContainer; /** Optional parameters. */ -export interface WorkspacesPrepareNotebookOptionalParams +export interface CodeContainersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type CodeContainersCreateOrUpdateResponse = CodeContainer; + +/** Optional parameters. */ +export interface CodeContainersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type CodeContainersListNextResponse = CodeContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface CodeVersionsListOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** If specified, return CodeVersion assets with specified content hash value, regardless of name */ + hash?: string; + /** Hash algorithm version when listing by hash */ + hashVersion?: string; } -/** Contains response data for the prepareNotebook operation. */ -export type WorkspacesPrepareNotebookResponse = NotebookResourceInfo; +/** Contains response data for the list operation. */ +export type CodeVersionsListResponse = CodeVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface CodeVersionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface CodeVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CodeVersionsGetResponse = CodeVersion; + +/** Optional parameters. */ +export interface CodeVersionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type CodeVersionsCreateOrUpdateResponse = CodeVersion; + +/** Optional parameters. */ +export interface CodeVersionsCreateOrGetStartPendingUploadOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrGetStartPendingUpload operation. */ +export type CodeVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; + +/** Optional parameters. */ +export interface CodeVersionsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type CodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface ComponentContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; +} + +/** Contains response data for the list operation. */ +export type ComponentContainersListResponse = ComponentContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface ComponentContainersDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ComponentContainersGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ComponentContainersGetResponse = ComponentContainer; + +/** Optional parameters. */ +export interface ComponentContainersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type ComponentContainersCreateOrUpdateResponse = ComponentContainer; + +/** Optional parameters. */ +export interface ComponentContainersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ComponentContainersListNextResponse = ComponentContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface ComponentVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** Component stage. */ + stage?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; +} + +/** Contains response data for the list operation. */ +export type ComponentVersionsListResponse = ComponentVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface WorkspacesListStorageAccountKeysOptionalParams +export interface ComponentVersionsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listStorageAccountKeys operation. */ -export type WorkspacesListStorageAccountKeysResponse = ListStorageAccountKeysResult; - /** Optional parameters. */ -export interface WorkspacesListNotebookKeysOptionalParams +export interface ComponentVersionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNotebookKeys operation. */ -export type WorkspacesListNotebookKeysResponse = ListNotebookKeysResult; +/** Contains response data for the get operation. */ +export type ComponentVersionsGetResponse = ComponentVersion; /** Optional parameters. */ -export interface WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams +export interface ComponentVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listOutboundNetworkDependenciesEndpoints operation. */ -export type WorkspacesListOutboundNetworkDependenciesEndpointsResponse = ExternalFqdnResponse; +/** Contains response data for the createOrUpdate operation. */ +export type ComponentVersionsCreateOrUpdateResponse = ComponentVersion; /** Optional parameters. */ -export interface WorkspacesListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; -} +export interface ComponentVersionsListNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult; +/** Contains response data for the listNext operation. */ +export type ComponentVersionsListNextResponse = ComponentVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface WorkspacesListBySubscriptionNextOptionalParams +export interface DataContainersListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; } -/** Contains response data for the listBySubscriptionNext operation. */ -export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult; - -/** Optional parameters. */ -export interface UsagesListOptionalParams extends coreClient.OperationOptions {} - /** Contains response data for the list operation. */ -export type UsagesListResponse = ListUsagesResult; +export type DataContainersListResponse = DataContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface UsagesListNextOptionalParams +export interface DataContainersDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type UsagesListNextResponse = ListUsagesResult; - /** Optional parameters. */ -export interface VirtualMachineSizesListOptionalParams +export interface DataContainersGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult; +/** Contains response data for the get operation. */ +export type DataContainersGetResponse = DataContainer; /** Optional parameters. */ -export interface QuotasUpdateOptionalParams +export interface DataContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult; - -/** Optional parameters. */ -export interface QuotasListOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type QuotasListResponse = ListWorkspaceQuotas; +/** Contains response data for the createOrUpdate operation. */ +export type DataContainersCreateOrUpdateResponse = DataContainer; /** Optional parameters. */ -export interface QuotasListNextOptionalParams +export interface DataContainersListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type QuotasListNextResponse = ListWorkspaceQuotas; +export type DataContainersListNextResponse = DataContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface ComputeListOptionalParams extends coreClient.OperationOptions { +export interface DataVersionsListOptionalParams + extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; + /** Please choose OrderBy value from ['createdtime', 'modifiedtime'] */ + orderBy?: string; + /** + * Top count of results, top count cannot be greater than the page size. + * If topCount > page size, results with be default page size count will be returned + */ + top?: number; + /** data stage */ + stage?: string; + /** [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; } /** Contains response data for the list operation. */ -export type ComputeListResponse = PaginatedComputeResourcesList; +export type DataVersionsListResponse = DataVersionBaseResourceArmPaginatedResult; /** Optional parameters. */ -export interface ComputeGetOptionalParams extends coreClient.OperationOptions {} +export interface DataVersionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DataVersionsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ComputeGetResponse = ComputeResource; +export type DataVersionsGetResponse = DataVersionBase; /** Optional parameters. */ -export interface ComputeCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DataVersionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ComputeCreateOrUpdateResponse = ComputeResource; +export type DataVersionsCreateOrUpdateResponse = DataVersionBase; /** Optional parameters. */ -export interface ComputeUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DataVersionsListNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ComputeUpdateResponse = ComputeResource; +/** Contains response data for the listNext operation. */ +export type DataVersionsListNextResponse = DataVersionBaseResourceArmPaginatedResult; /** Optional parameters. */ -export interface ComputeDeleteOptionalParams +export interface DatastoresListOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Continuation token for pagination. */ + skip?: string; + /** Maximum number of results to return. */ + count?: number; + /** Filter down to the workspace default datastore. */ + isDefault?: boolean; + /** Names of datastores to return. */ + names?: string[]; + /** Text to search for in the datastore names. */ + searchText?: string; + /** Order by property (createdtime | modifiedtime | name). */ + orderBy?: string; + /** Order by property in ascending order. */ + orderByAsc?: boolean; } +/** Contains response data for the list operation. */ +export type DatastoresListResponse = DatastoreResourceArmPaginatedResult; + /** Optional parameters. */ -export interface ComputeListNodesOptionalParams +export interface DatastoresDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNodes operation. */ -export type ComputeListNodesResponse = AmlComputeNodesInformation; - /** Optional parameters. */ -export interface ComputeListKeysOptionalParams +export interface DatastoresGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listKeys operation. */ -export type ComputeListKeysResponse = ComputeSecretsUnion; +/** Contains response data for the get operation. */ +export type DatastoresGetResponse = Datastore; /** Optional parameters. */ -export interface ComputeStartOptionalParams +export interface DatastoresCreateOrUpdateOptionalParams 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; + /** Flag to skip validation. */ + skipValidation?: boolean; } +/** Contains response data for the createOrUpdate operation. */ +export type DatastoresCreateOrUpdateResponse = Datastore; + /** Optional parameters. */ -export interface ComputeStopOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DatastoresListSecretsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSecrets operation. */ +export type DatastoresListSecretsResponse = DatastoreSecretsUnion; /** Optional parameters. */ -export interface ComputeRestartOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DatastoresListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type DatastoresListNextResponse = DatastoreResourceArmPaginatedResult; /** Optional parameters. */ -export interface ComputeListNextOptionalParams +export interface EnvironmentContainersListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; } -/** Contains response data for the listNext operation. */ -export type ComputeListNextResponse = PaginatedComputeResourcesList; - -/** Optional parameters. */ -export interface ComputeListNodesNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNodesNext operation. */ -export type ComputeListNodesNextResponse = AmlComputeNodesInformation; +/** Contains response data for the list operation. */ +export type EnvironmentContainersListResponse = EnvironmentContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface PrivateEndpointConnectionsListOptionalParams +export interface EnvironmentContainersDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; - /** Optional parameters. */ -export interface PrivateEndpointConnectionsGetOptionalParams +export interface EnvironmentContainersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; +export type EnvironmentContainersGetResponse = EnvironmentContainer; /** Optional parameters. */ -export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams +export interface EnvironmentContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; +export type EnvironmentContainersCreateOrUpdateResponse = EnvironmentContainer; /** Optional parameters. */ -export interface PrivateEndpointConnectionsDeleteOptionalParams +export interface EnvironmentContainersListNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type EnvironmentContainersListNextResponse = EnvironmentContainerResourceArmPaginatedResult; + /** Optional parameters. */ -export interface PrivateLinkResourcesListOptionalParams - extends coreClient.OperationOptions {} +export interface EnvironmentVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** Stage for including/excluding (for example) archived entities. Takes priority over listViewType */ + stage?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; +} /** Contains response data for the list operation. */ -export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; +export type EnvironmentVersionsListResponse = EnvironmentVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface WorkspaceConnectionsCreateOptionalParams +export interface EnvironmentVersionsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type WorkspaceConnectionsCreateResponse = WorkspaceConnectionPropertiesV2BasicResource; - /** Optional parameters. */ -export interface WorkspaceConnectionsGetOptionalParams +export interface EnvironmentVersionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkspaceConnectionsGetResponse = WorkspaceConnectionPropertiesV2BasicResource; - -/** Optional parameters. */ -export interface WorkspaceConnectionsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface WorkspaceConnectionsListOptionalParams - extends coreClient.OperationOptions { - /** Target of the workspace connection. */ - target?: string; - /** Category of the workspace connection. */ - category?: string; -} +export type EnvironmentVersionsGetResponse = EnvironmentVersion; -/** Contains response data for the list operation. */ -export type WorkspaceConnectionsListResponse = WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult; +/** Optional parameters. */ +export interface EnvironmentVersionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type EnvironmentVersionsCreateOrUpdateResponse = EnvironmentVersion; /** Optional parameters. */ -export interface WorkspaceConnectionsListNextOptionalParams - extends coreClient.OperationOptions { - /** Target of the workspace connection. */ - target?: string; - /** Category of the workspace connection. */ - category?: string; -} +export interface EnvironmentVersionsListNextOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type WorkspaceConnectionsListNextResponse = WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult; +export type EnvironmentVersionsListNextResponse = EnvironmentVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface BatchEndpointsListOptionalParams +export interface FeaturesetContainersListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** Number of endpoints to be retrieved in a page of results. */ - count?: number; + /** [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** description for the feature set */ + description?: string; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; + /** page size */ + pageSize?: number; + /** name for the featureset */ + name?: string; + /** createdBy user name */ + createdBy?: string; } /** Contains response data for the list operation. */ -export type BatchEndpointsListResponse = BatchEndpointTrackedResourceArmPaginatedResult; +export type FeaturesetContainersListResponse = FeaturesetContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface BatchEndpointsDeleteOptionalParams +export interface FeaturesetContainersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7899,26 +13254,14 @@ export interface BatchEndpointsDeleteOptionalParams } /** Optional parameters. */ -export interface BatchEndpointsGetOptionalParams +export interface FeaturesetContainersGetEntityOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type BatchEndpointsGetResponse = BatchEndpoint; - -/** Optional parameters. */ -export interface BatchEndpointsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type BatchEndpointsUpdateResponse = BatchEndpoint; +/** Contains response data for the getEntity operation. */ +export type FeaturesetContainersGetEntityResponse = FeaturesetContainer; /** Optional parameters. */ -export interface BatchEndpointsCreateOrUpdateOptionalParams +export interface FeaturesetContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7927,43 +13270,77 @@ export interface BatchEndpointsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type BatchEndpointsCreateOrUpdateResponse = BatchEndpoint; +export type FeaturesetContainersCreateOrUpdateResponse = FeaturesetContainer; /** Optional parameters. */ -export interface BatchEndpointsListKeysOptionalParams +export interface FeaturesetContainersListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listKeys operation. */ -export type BatchEndpointsListKeysResponse = EndpointAuthKeys; +/** Contains response data for the listNext operation. */ +export type FeaturesetContainersListNextResponse = FeaturesetContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface BatchEndpointsListNextOptionalParams +export interface FeaturesListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** Number of endpoints to be retrieved in a page of results. */ - count?: number; + /** [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** Description of the featureset. */ + description?: string; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; + /** feature name. */ + featureName?: string; + /** Page size. */ + pageSize?: number; } +/** Contains response data for the list operation. */ +export type FeaturesListResponse = FeatureResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface FeaturesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type FeaturesGetResponse = Feature; + +/** Optional parameters. */ +export interface FeaturesListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ -export type BatchEndpointsListNextResponse = BatchEndpointTrackedResourceArmPaginatedResult; +export type FeaturesListNextResponse = FeatureResourceArmPaginatedResult; /** Optional parameters. */ -export interface BatchDeploymentsListOptionalParams +export interface FeaturesetVersionsListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Top of list. */ - top?: number; + /** Specifies the featurestore stage */ + stage?: string; + /** [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** featureset version */ + version?: string; + /** description for the feature set version */ + description?: string; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; + /** page size */ + pageSize?: number; + /** createdBy user name */ + createdBy?: string; + /** name for the featureset version */ + versionName?: string; } /** Contains response data for the list operation. */ -export type BatchDeploymentsListResponse = BatchDeploymentTrackedResourceArmPaginatedResult; +export type FeaturesetVersionsListResponse = FeaturesetVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface BatchDeploymentsDeleteOptionalParams +export interface FeaturesetVersionsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7972,14 +13349,14 @@ export interface BatchDeploymentsDeleteOptionalParams } /** Optional parameters. */ -export interface BatchDeploymentsGetOptionalParams +export interface FeaturesetVersionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type BatchDeploymentsGetResponse = BatchDeployment; +export type FeaturesetVersionsGetResponse = FeaturesetVersion; /** Optional parameters. */ -export interface BatchDeploymentsUpdateOptionalParams +export interface FeaturesetVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7987,11 +13364,11 @@ export interface BatchDeploymentsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type BatchDeploymentsUpdateResponse = BatchDeployment; +/** Contains response data for the createOrUpdate operation. */ +export type FeaturesetVersionsCreateOrUpdateResponse = FeaturesetVersion; /** Optional parameters. */ -export interface BatchDeploymentsCreateOrUpdateOptionalParams +export interface FeaturesetVersionsBackfillOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7999,482 +13376,615 @@ export interface BatchDeploymentsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type BatchDeploymentsCreateOrUpdateResponse = BatchDeployment; +/** Contains response data for the backfill operation. */ +export type FeaturesetVersionsBackfillResponse = FeaturesetVersionBackfillResponse; /** Optional parameters. */ -export interface BatchDeploymentsListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Top of list. */ - top?: number; -} +export interface FeaturesetVersionsListNextOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type BatchDeploymentsListNextResponse = BatchDeploymentTrackedResourceArmPaginatedResult; +export type FeaturesetVersionsListNextResponse = FeaturesetVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface CodeContainersListOptionalParams +export interface FeaturestoreEntityContainersListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; + /** [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** description for the featurestore entity */ + description?: string; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; + /** page size */ + pageSize?: number; + /** name for the featurestore entity */ + name?: string; + /** createdBy user name */ + createdBy?: string; } /** Contains response data for the list operation. */ -export type CodeContainersListResponse = CodeContainerResourceArmPaginatedResult; +export type FeaturestoreEntityContainersListResponse = FeaturestoreEntityContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface CodeContainersDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface FeaturestoreEntityContainersDeleteOptionalParams + 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 CodeContainersGetOptionalParams +export interface FeaturestoreEntityContainersGetEntityOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type CodeContainersGetResponse = CodeContainer; +/** Contains response data for the getEntity operation. */ +export type FeaturestoreEntityContainersGetEntityResponse = FeaturestoreEntityContainer; /** Optional parameters. */ -export interface CodeContainersCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface FeaturestoreEntityContainersCreateOrUpdateOptionalParams + 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 CodeContainersCreateOrUpdateResponse = CodeContainer; +export type FeaturestoreEntityContainersCreateOrUpdateResponse = FeaturestoreEntityContainer; /** Optional parameters. */ -export interface CodeContainersListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; -} +export interface FeaturestoreEntityContainersListNextOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type CodeContainersListNextResponse = CodeContainerResourceArmPaginatedResult; +export type FeaturestoreEntityContainersListNextResponse = FeaturestoreEntityContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface CodeVersionsListOptionalParams +export interface FeaturestoreEntityVersionsListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Maximum number of records to return. */ - top?: number; + /** Specifies the featurestore stage */ + stage?: string; + /** [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** featurestore entity version */ + version?: string; + /** description for the feature entity version */ + description?: string; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; + /** page size */ + pageSize?: number; + /** createdBy user name */ + createdBy?: string; + /** name for the featurestore entity version */ + versionName?: string; } /** Contains response data for the list operation. */ -export type CodeVersionsListResponse = CodeVersionResourceArmPaginatedResult; +export type FeaturestoreEntityVersionsListResponse = FeaturestoreEntityVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface CodeVersionsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface FeaturestoreEntityVersionsDeleteOptionalParams + 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 CodeVersionsGetOptionalParams +export interface FeaturestoreEntityVersionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type CodeVersionsGetResponse = CodeVersion; +export type FeaturestoreEntityVersionsGetResponse = FeaturestoreEntityVersion; /** Optional parameters. */ -export interface CodeVersionsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface FeaturestoreEntityVersionsCreateOrUpdateOptionalParams + 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 CodeVersionsCreateOrUpdateResponse = CodeVersion; +export type FeaturestoreEntityVersionsCreateOrUpdateResponse = FeaturestoreEntityVersion; /** Optional parameters. */ -export interface CodeVersionsListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Maximum number of records to return. */ - top?: number; -} +export interface FeaturestoreEntityVersionsListNextOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type CodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult; +export type FeaturestoreEntityVersionsListNextResponse = FeaturestoreEntityVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface ComponentContainersListOptionalParams - extends coreClient.OperationOptions { +export interface JobsListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; /** View type for including/excluding (for example) archived entities. */ listViewType?: ListViewType; + /** Type of job to be returned. */ + jobType?: string; + /** Jobs returned will have this tag key. */ + tag?: string; + /** Asset name the job's named output is registered with */ + assetName?: 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. */ -export type ComponentContainersListResponse = ComponentContainerResourceArmPaginatedResult; +export type JobsListResponse = JobBaseResourceArmPaginatedResult; /** Optional parameters. */ -export interface ComponentContainersDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface JobsDeleteOptionalParams extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface ComponentContainersGetOptionalParams - extends coreClient.OperationOptions {} +export interface JobsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ComponentContainersGetResponse = ComponentContainer; +export type JobsGetResponse = JobBase; /** Optional parameters. */ -export interface ComponentContainersCreateOrUpdateOptionalParams +export interface JobsUpdateOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type JobsUpdateResponse = JobBase; + +/** Optional parameters. */ +export interface JobsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ComponentContainersCreateOrUpdateResponse = ComponentContainer; +export type JobsCreateOrUpdateResponse = JobBase; /** Optional parameters. */ -export interface ComponentContainersListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; +export interface JobsCancelOptionalParams 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 JobsListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ -export type ComponentContainersListNextResponse = ComponentContainerResourceArmPaginatedResult; +export type JobsListNextResponse = JobBaseResourceArmPaginatedResult; /** Optional parameters. */ -export interface ComponentVersionsListOptionalParams +export interface LabelingJobsListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Maximum number of records to return. */ + /** Number of labeling jobs to return. */ top?: number; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; } /** Contains response data for the list operation. */ -export type ComponentVersionsListResponse = ComponentVersionResourceArmPaginatedResult; +export type LabelingJobsListResponse = LabelingJobResourceArmPaginatedResult; /** Optional parameters. */ -export interface ComponentVersionsDeleteOptionalParams +export interface LabelingJobsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ComponentVersionsGetOptionalParams +export interface LabelingJobsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ComponentVersionsGetResponse = ComponentVersion; +/** 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 ComponentVersionsCreateOrUpdateOptionalParams +export interface LabelingJobsPauseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ComponentVersionsCreateOrUpdateResponse = ComponentVersion; +/** Contains response data for the pause operation. */ +export type LabelingJobsPauseResponse = LabelingJobProperties; /** Optional parameters. */ -export interface ComponentVersionsListNextOptionalParams +export interface LabelingJobsResumeOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Maximum number of records to return. */ - top?: number; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } +/** Contains response data for the resume operation. */ +export type LabelingJobsResumeResponse = LabelingJobProperties; + +/** Optional parameters. */ +export interface LabelingJobsListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ -export type ComponentVersionsListNextResponse = ComponentVersionResourceArmPaginatedResult; +export type LabelingJobsListNextResponse = LabelingJobResourceArmPaginatedResult; /** Optional parameters. */ -export interface DataContainersListOptionalParams +export interface ModelContainersListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; /** View type for including/excluding (for example) archived entities. */ listViewType?: ListViewType; + /** Maximum number of results to return. */ + count?: number; } /** Contains response data for the list operation. */ -export type DataContainersListResponse = DataContainerResourceArmPaginatedResult; +export type ModelContainersListResponse = ModelContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface DataContainersDeleteOptionalParams +export interface ModelContainersDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DataContainersGetOptionalParams +export interface ModelContainersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DataContainersGetResponse = DataContainer; +export type ModelContainersGetResponse = ModelContainer; /** Optional parameters. */ -export interface DataContainersCreateOrUpdateOptionalParams +export interface ModelContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type DataContainersCreateOrUpdateResponse = DataContainer; +export type ModelContainersCreateOrUpdateResponse = ModelContainer; /** Optional parameters. */ -export interface DataContainersListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; -} +export interface ModelContainersListNextOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type DataContainersListNextResponse = DataContainerResourceArmPaginatedResult; +export type ModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface DataVersionsListOptionalParams +export interface ModelVersionsListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** Please choose OrderBy value from ['createdtime', 'modifiedtime'] */ + /** Ordering of list. */ orderBy?: string; - /** - * Top count of results, top count cannot be greater than the page size. - * If topCount > page size, results with be default page size count will be returned - */ + /** Maximum number of records to return. */ top?: number; - /** [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. */ + /** Model stage */ + stage?: string; + /** View type for including/excluding (for example) archived entities. */ listViewType?: ListViewType; + /** Model version. */ + version?: string; + /** Model description. */ + description?: string; /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ tags?: string; + /** Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2 */ + properties?: string; + /** Number of initial results to skip. */ + offset?: number; + /** Name of the feed. */ + feed?: string; } /** Contains response data for the list operation. */ -export type DataVersionsListResponse = DataVersionBaseResourceArmPaginatedResult; +export type ModelVersionsListResponse = ModelVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface DataVersionsDeleteOptionalParams +export interface ModelVersionsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DataVersionsGetOptionalParams +export interface ModelVersionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DataVersionsGetResponse = DataVersionBase; +export type ModelVersionsGetResponse = ModelVersion; /** Optional parameters. */ -export interface DataVersionsCreateOrUpdateOptionalParams +export interface ModelVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type DataVersionsCreateOrUpdateResponse = DataVersionBase; +export type ModelVersionsCreateOrUpdateResponse = ModelVersion; /** Optional parameters. */ -export interface DataVersionsListNextOptionalParams +export interface ModelVersionsPackageOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Please choose OrderBy value from ['createdtime', 'modifiedtime'] */ - orderBy?: string; - /** - * Top count of results, top count cannot be greater than the page size. - * If topCount > page size, results with be default page size count will be returned - */ - top?: number; - /** [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; - /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ - tags?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } +/** Contains response data for the package operation. */ +export type ModelVersionsPackageResponse = PackageResponse; + +/** Optional parameters. */ +export interface ModelVersionsListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ -export type DataVersionsListNextResponse = DataVersionBaseResourceArmPaginatedResult; +export type ModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface DatastoresListOptionalParams +export interface OnlineEndpointsListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** Maximum number of results to return. */ + /** A set of tags with which to filter the returned models. It is a comma separated string of tags key or tags key=value. Example: tagKey1,tagKey2,tagKey3=value3 . */ + tags?: string; + /** A set of properties with which to filter the returned models. It is a comma separated string of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 . */ + properties?: string; + /** Number of endpoints to be retrieved in a page of results. */ count?: number; - /** Filter down to the workspace default datastore. */ - isDefault?: boolean; - /** Names of datastores to return. */ - names?: string[]; - /** Text to search for in the datastore names. */ - searchText?: string; - /** Order by property (createdtime | modifiedtime | name). */ - orderBy?: string; - /** Order by property in ascending order. */ - orderByAsc?: boolean; + /** Name of the endpoint. */ + name?: string; + /** EndpointComputeType to be filtered by. */ + computeType?: EndpointComputeType; + /** The option to order the response. */ + orderBy?: OrderString; } /** Contains response data for the list operation. */ -export type DatastoresListResponse = DatastoreResourceArmPaginatedResult; +export type OnlineEndpointsListResponse = OnlineEndpointTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface DatastoresDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface OnlineEndpointsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface DatastoresGetOptionalParams +export interface OnlineEndpointsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatastoresGetResponse = Datastore; +export type OnlineEndpointsGetResponse = OnlineEndpoint; /** Optional parameters. */ -export interface DatastoresCreateOrUpdateOptionalParams +export interface OnlineEndpointsUpdateOptionalParams extends coreClient.OperationOptions { - /** Flag to skip validation. */ - skipValidation?: boolean; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type OnlineEndpointsUpdateResponse = OnlineEndpoint; + +/** Optional parameters. */ +export interface OnlineEndpointsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ -export type DatastoresCreateOrUpdateResponse = Datastore; +export type OnlineEndpointsCreateOrUpdateResponse = OnlineEndpoint; /** Optional parameters. */ -export interface DatastoresListSecretsOptionalParams +export interface OnlineEndpointsListKeysOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type DatastoresListSecretsResponse = DatastoreSecretsUnion; +/** Contains response data for the listKeys operation. */ +export type OnlineEndpointsListKeysResponse = EndpointAuthKeys; /** Optional parameters. */ -export interface DatastoresListNextOptionalParams +export interface OnlineEndpointsRegenerateKeysOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Maximum number of results to return. */ - count?: number; - /** Filter down to the workspace default datastore. */ - isDefault?: boolean; - /** Names of datastores to return. */ - names?: string[]; - /** Text to search for in the datastore names. */ - searchText?: string; - /** Order by property (createdtime | modifiedtime | name). */ - orderBy?: string; - /** Order by property in ascending order. */ - orderByAsc?: boolean; + /** 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 OnlineEndpointsGetTokenOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getToken operation. */ +export type OnlineEndpointsGetTokenResponse = EndpointAuthToken; + +/** Optional parameters. */ +export interface OnlineEndpointsListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ -export type DatastoresListNextResponse = DatastoreResourceArmPaginatedResult; +export type OnlineEndpointsListNextResponse = OnlineEndpointTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface EnvironmentContainersListOptionalParams +export interface OnlineDeploymentsListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; + /** Ordering of list. */ + orderBy?: string; + /** Top of list. */ + top?: number; } /** Contains response data for the list operation. */ -export type EnvironmentContainersListResponse = EnvironmentContainerResourceArmPaginatedResult; +export type OnlineDeploymentsListResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface EnvironmentContainersDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface OnlineDeploymentsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface EnvironmentContainersGetOptionalParams +export interface OnlineDeploymentsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type EnvironmentContainersGetResponse = EnvironmentContainer; +/** Contains response data for the get operation. */ +export type OnlineDeploymentsGetResponse = OnlineDeployment; + +/** Optional parameters. */ +export interface OnlineDeploymentsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type OnlineDeploymentsUpdateResponse = OnlineDeployment; + +/** Optional parameters. */ +export interface OnlineDeploymentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type OnlineDeploymentsCreateOrUpdateResponse = OnlineDeployment; /** Optional parameters. */ -export interface EnvironmentContainersCreateOrUpdateOptionalParams +export interface OnlineDeploymentsGetLogsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type EnvironmentContainersCreateOrUpdateResponse = EnvironmentContainer; +/** Contains response data for the getLogs operation. */ +export type OnlineDeploymentsGetLogsResponse = DeploymentLogs; /** Optional parameters. */ -export interface EnvironmentContainersListNextOptionalParams +export interface OnlineDeploymentsListSkusOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; + /** Number of Skus to be retrieved in a page of results. */ + count?: number; } +/** Contains response data for the listSkus operation. */ +export type OnlineDeploymentsListSkusResponse = SkuResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface OnlineDeploymentsListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ -export type EnvironmentContainersListNextResponse = EnvironmentContainerResourceArmPaginatedResult; +export type OnlineDeploymentsListNextResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface EnvironmentVersionsListOptionalParams +export interface OnlineDeploymentsListSkusNextOptionalParams + extends coreClient.OperationOptions {} + +/** 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; - /** Ordering of list. */ - orderBy?: string; - /** Maximum number of records to return. */ - top?: number; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; + /** Status filter for schedule. */ + listViewType?: ScheduleListViewType; } /** Contains response data for the list operation. */ -export type EnvironmentVersionsListResponse = EnvironmentVersionResourceArmPaginatedResult; +export type SchedulesListResponse = ScheduleResourceArmPaginatedResult; /** Optional parameters. */ -export interface EnvironmentVersionsDeleteOptionalParams - extends coreClient.OperationOptions {} +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 EnvironmentVersionsGetOptionalParams +export interface SchedulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type EnvironmentVersionsGetResponse = EnvironmentVersion; +export type SchedulesGetResponse = Schedule; /** Optional parameters. */ -export interface EnvironmentVersionsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +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 EnvironmentVersionsCreateOrUpdateResponse = EnvironmentVersion; +export type SchedulesCreateOrUpdateResponse = Schedule; /** Optional parameters. */ -export interface EnvironmentVersionsListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Maximum number of records to return. */ - top?: number; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; -} +export interface SchedulesListNextOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type EnvironmentVersionsListNextResponse = EnvironmentVersionResourceArmPaginatedResult; +export type SchedulesListNextResponse = ScheduleResourceArmPaginatedResult; /** Optional parameters. */ -export interface JobsListOptionalParams extends coreClient.OperationOptions { +export interface ServerlessEndpointsListOptionalParams + extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; - /** Type of job to be returned. */ - jobType?: string; - /** Jobs returned will have this tag key. */ - tag?: string; } /** Contains response data for the list operation. */ -export type JobsListResponse = JobBaseResourceArmPaginatedResult; +export type ServerlessEndpointsListResponse = ServerlessEndpointTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface JobsDeleteOptionalParams extends coreClient.OperationOptions { +export interface ServerlessEndpointsDeleteOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -8482,187 +13992,187 @@ export interface JobsDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ -export interface JobsGetOptionalParams extends coreClient.OperationOptions {} +export interface ServerlessEndpointsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobsGetResponse = JobBase; +export type ServerlessEndpointsGetResponse = ServerlessEndpoint; /** Optional parameters. */ -export interface JobsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ServerlessEndpointsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the createOrUpdate operation. */ -export type JobsCreateOrUpdateResponse = JobBase; +/** Contains response data for the update operation. */ +export type ServerlessEndpointsUpdateResponse = ServerlessEndpoint; /** Optional parameters. */ -export interface JobsCancelOptionalParams extends coreClient.OperationOptions { +export interface ServerlessEndpointsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type ServerlessEndpointsCreateOrUpdateResponse = ServerlessEndpoint; + /** Optional parameters. */ -export interface JobsListNextOptionalParams +export interface ServerlessEndpointsListKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listKeys operation. */ +export type ServerlessEndpointsListKeysResponse = EndpointAuthKeys; + +/** Optional parameters. */ +export interface ServerlessEndpointsRegenerateKeysOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; - /** Type of job to be returned. */ - jobType?: string; - /** Jobs returned will have this tag key. */ - tag?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } +/** Contains response data for the regenerateKeys operation. */ +export type ServerlessEndpointsRegenerateKeysResponse = EndpointAuthKeys; + +/** Optional parameters. */ +export interface ServerlessEndpointsListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ -export type JobsListNextResponse = JobBaseResourceArmPaginatedResult; +export type ServerlessEndpointsListNextResponse = ServerlessEndpointTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface ModelContainersListOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Maximum number of results to return. */ - count?: number; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; -} +export interface RegistriesListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ModelContainersListResponse = ModelContainerResourceArmPaginatedResult; +/** Contains response data for the listBySubscription operation. */ +export type RegistriesListBySubscriptionResponse = RegistryTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface ModelContainersDeleteOptionalParams +export interface RegistriesListOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the list operation. */ +export type RegistriesListResponse = RegistryTrackedResourceArmPaginatedResult; + /** Optional parameters. */ -export interface ModelContainersGetOptionalParams +export interface RegistriesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface RegistriesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ModelContainersGetResponse = ModelContainer; +export type RegistriesGetResponse = Registry; /** Optional parameters. */ -export interface ModelContainersCreateOrUpdateOptionalParams +export interface RegistriesUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ModelContainersCreateOrUpdateResponse = ModelContainer; +/** Contains response data for the update operation. */ +export type RegistriesUpdateResponse = Registry; /** Optional parameters. */ -export interface ModelContainersListNextOptionalParams +export interface RegistriesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Maximum number of results to return. */ - count?: number; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listNext operation. */ -export type ModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult; +/** Contains response data for the createOrUpdate operation. */ +export type RegistriesCreateOrUpdateResponse = Registry; /** Optional parameters. */ -export interface ModelVersionsListOptionalParams +export interface RegistriesRemoveRegionsOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Maximum number of records to return. */ - top?: number; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; - /** Model version. */ - version?: string; - /** Model description. */ - description?: string; - /** Number of initial results to skip. */ - offset?: number; - /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ - tags?: string; - /** Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2 */ - properties?: string; - /** Name of the feed. */ - feed?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the list operation. */ -export type ModelVersionsListResponse = ModelVersionResourceArmPaginatedResult; +/** Contains response data for the removeRegions operation. */ +export type RegistriesRemoveRegionsResponse = Registry; /** Optional parameters. */ -export interface ModelVersionsDeleteOptionalParams +export interface RegistriesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listBySubscriptionNext operation. */ +export type RegistriesListBySubscriptionNextResponse = RegistryTrackedResourceArmPaginatedResult; + /** Optional parameters. */ -export interface ModelVersionsGetOptionalParams +export interface RegistriesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ModelVersionsGetResponse = ModelVersion; +/** Contains response data for the listNext operation. */ +export type RegistriesListNextResponse = RegistryTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface ModelVersionsCreateOrUpdateOptionalParams +export interface WorkspaceFeaturesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ModelVersionsCreateOrUpdateResponse = ModelVersion; +/** Contains response data for the list operation. */ +export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult; /** Optional parameters. */ -export interface ModelVersionsListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Maximum number of records to return. */ - top?: number; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; - /** Model version. */ - version?: string; - /** Model description. */ - description?: string; - /** Number of initial results to skip. */ - offset?: number; - /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ - tags?: string; - /** Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2 */ - properties?: string; - /** Name of the feed. */ - feed?: string; +export interface WorkspaceFeaturesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult; + +/** Optional parameters. */ +export interface OperationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type OperationsListResponse = AmlOperationListResult; + +/** Optional parameters. */ +export interface WorkspacesListBySubscriptionOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Kind of workspace. */ + kind?: string; } -/** Contains response data for the listNext operation. */ -export type ModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult; +/** Contains response data for the listBySubscription operation. */ +export type WorkspacesListBySubscriptionResponse = WorkspaceListResult; /** Optional parameters. */ -export interface OnlineEndpointsListOptionalParams +export interface WorkspacesListByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** Number of endpoints to be retrieved in a page of results. */ - count?: number; - /** A set of tags with which to filter the returned models. It is a comma separated string of tags key or tags key=value. Example: tagKey1,tagKey2,tagKey3=value3 . */ - tags?: string; - /** A set of properties with which to filter the returned models. It is a comma separated string of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 . */ - properties?: string; - /** Name of the endpoint. */ - name?: string; - /** EndpointComputeType to be filtered by. */ - computeType?: EndpointComputeType; - /** The option to order the response. */ - orderBy?: OrderString; + /** Kind of workspace. */ + kind?: string; } -/** Contains response data for the list operation. */ -export type OnlineEndpointsListResponse = OnlineEndpointTrackedResourceArmPaginatedResult; +/** Contains response data for the listByResourceGroup operation. */ +export type WorkspacesListByResourceGroupResponse = WorkspaceListResult; /** Optional parameters. */ -export interface OnlineEndpointsDeleteOptionalParams +export interface WorkspacesDeleteOptionalParams extends coreClient.OperationOptions { + /** Flag to indicate delete is a purge request. */ + forceToPurge?: boolean; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -8670,14 +14180,14 @@ export interface OnlineEndpointsDeleteOptionalParams } /** Optional parameters. */ -export interface OnlineEndpointsGetOptionalParams +export interface WorkspacesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type OnlineEndpointsGetResponse = OnlineEndpoint; +export type WorkspacesGetResponse = Workspace; /** Optional parameters. */ -export interface OnlineEndpointsUpdateOptionalParams +export interface WorkspacesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8686,10 +14196,10 @@ export interface OnlineEndpointsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type OnlineEndpointsUpdateResponse = OnlineEndpoint; +export type WorkspacesUpdateResponse = Workspace; /** Optional parameters. */ -export interface OnlineEndpointsCreateOrUpdateOptionalParams +export interface WorkspacesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8698,85 +14208,59 @@ export interface OnlineEndpointsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type OnlineEndpointsCreateOrUpdateResponse = OnlineEndpoint; - -/** Optional parameters. */ -export interface OnlineEndpointsListKeysOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listKeys operation. */ -export type OnlineEndpointsListKeysResponse = EndpointAuthKeys; +export type WorkspacesCreateOrUpdateResponse = Workspace; /** Optional parameters. */ -export interface OnlineEndpointsRegenerateKeysOptionalParams +export interface WorkspacesDiagnoseOptionalParams extends coreClient.OperationOptions { + /** The parameter of diagnosing workspace health */ + body?: DiagnoseWorkspaceParameters; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } +/** Contains response data for the diagnose operation. */ +export type WorkspacesDiagnoseResponse = DiagnoseResponseResult; + /** Optional parameters. */ -export interface OnlineEndpointsGetTokenOptionalParams +export interface WorkspacesListKeysOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getToken operation. */ -export type OnlineEndpointsGetTokenResponse = EndpointAuthToken; +/** Contains response data for the listKeys operation. */ +export type WorkspacesListKeysResponse = ListWorkspaceKeysResult; /** Optional parameters. */ -export interface OnlineEndpointsListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Number of endpoints to be retrieved in a page of results. */ - count?: number; - /** A set of tags with which to filter the returned models. It is a comma separated string of tags key or tags key=value. Example: tagKey1,tagKey2,tagKey3=value3 . */ - tags?: string; - /** A set of properties with which to filter the returned models. It is a comma separated string of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 . */ - properties?: string; - /** Name of the endpoint. */ - name?: string; - /** EndpointComputeType to be filtered by. */ - computeType?: EndpointComputeType; - /** The option to order the response. */ - orderBy?: OrderString; -} +export interface WorkspacesListNotebookAccessTokenOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type OnlineEndpointsListNextResponse = OnlineEndpointTrackedResourceArmPaginatedResult; +/** Contains response data for the listNotebookAccessToken operation. */ +export type WorkspacesListNotebookAccessTokenResponse = NotebookAccessTokenResult; /** Optional parameters. */ -export interface OnlineDeploymentsListOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Top of list. */ - top?: number; -} +export interface WorkspacesListNotebookKeysOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type OnlineDeploymentsListResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; +/** Contains response data for the listNotebookKeys operation. */ +export type WorkspacesListNotebookKeysResponse = ListNotebookKeysResult; /** Optional parameters. */ -export interface OnlineDeploymentsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface WorkspacesListStorageAccountKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listStorageAccountKeys operation. */ +export type WorkspacesListStorageAccountKeysResponse = ListStorageAccountKeysResult; /** Optional parameters. */ -export interface OnlineDeploymentsGetOptionalParams +export interface WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type OnlineDeploymentsGetResponse = OnlineDeployment; +/** Contains response data for the listOutboundNetworkDependenciesEndpoints operation. */ +export type WorkspacesListOutboundNetworkDependenciesEndpointsResponse = ExternalFqdnResponse; /** Optional parameters. */ -export interface OnlineDeploymentsUpdateOptionalParams +export interface WorkspacesPrepareNotebookOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8784,11 +14268,11 @@ export interface OnlineDeploymentsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type OnlineDeploymentsUpdateResponse = OnlineDeployment; +/** Contains response data for the prepareNotebook operation. */ +export type WorkspacesPrepareNotebookResponse = NotebookResourceInfo; /** Optional parameters. */ -export interface OnlineDeploymentsCreateOrUpdateOptionalParams +export interface WorkspacesResyncKeysOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8796,68 +14280,86 @@ export interface OnlineDeploymentsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type OnlineDeploymentsCreateOrUpdateResponse = OnlineDeployment; +/** Optional parameters. */ +export interface WorkspacesListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult; /** Optional parameters. */ -export interface OnlineDeploymentsGetLogsOptionalParams +export interface WorkspacesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getLogs operation. */ -export type OnlineDeploymentsGetLogsResponse = DeploymentLogs; +/** Contains response data for the listByResourceGroupNext operation. */ +export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult; /** Optional parameters. */ -export interface OnlineDeploymentsListSkusOptionalParams +export interface WorkspaceConnectionsListOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Number of Skus to be retrieved in a page of results. */ - count?: number; + /** Target of the workspace connection. */ + target?: string; + /** Category of the workspace connection. */ + category?: string; } -/** Contains response data for the listSkus operation. */ -export type OnlineDeploymentsListSkusResponse = SkuResourceArmPaginatedResult; +/** Contains response data for the list operation. */ +export type WorkspaceConnectionsListResponse = WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult; /** Optional parameters. */ -export interface OnlineDeploymentsListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Top of list. */ - top?: number; -} +export interface WorkspaceConnectionsDeleteOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type OnlineDeploymentsListNextResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; +/** Optional parameters. */ +export interface WorkspaceConnectionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type WorkspaceConnectionsGetResponse = WorkspaceConnectionPropertiesV2BasicResource; /** Optional parameters. */ -export interface OnlineDeploymentsListSkusNextOptionalParams +export interface WorkspaceConnectionsUpdateOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Number of Skus to be retrieved in a page of results. */ - count?: number; + /** Parameters for workspace connection update. */ + body?: WorkspaceConnectionUpdateParameter; } -/** Contains response data for the listSkusNext operation. */ -export type OnlineDeploymentsListSkusNextResponse = SkuResourceArmPaginatedResult; +/** Contains response data for the update operation. */ +export type WorkspaceConnectionsUpdateResponse = WorkspaceConnectionPropertiesV2BasicResource; /** Optional parameters. */ -export interface SchedulesListOptionalParams +export interface WorkspaceConnectionsCreateOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Status filter for schedule. */ - listViewType?: ScheduleListViewType; + /** The object for creating or updating a new workspace connection */ + body?: WorkspaceConnectionPropertiesV2BasicResource; } +/** Contains response data for the create operation. */ +export type WorkspaceConnectionsCreateResponse = WorkspaceConnectionPropertiesV2BasicResource; + +/** Optional parameters. */ +export interface WorkspaceConnectionsListSecretsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSecrets operation. */ +export type WorkspaceConnectionsListSecretsResponse = WorkspaceConnectionPropertiesV2BasicResource; + +/** Optional parameters. */ +export interface WorkspaceConnectionsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type WorkspaceConnectionsListNextResponse = WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface ManagedNetworkSettingsRuleListOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the list operation. */ -export type SchedulesListResponse = ScheduleResourceArmPaginatedResult; +export type ManagedNetworkSettingsRuleListResponse = OutboundRuleListResult; /** Optional parameters. */ -export interface SchedulesDeleteOptionalParams +export interface ManagedNetworkSettingsRuleDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8866,14 +14368,14 @@ export interface SchedulesDeleteOptionalParams } /** Optional parameters. */ -export interface SchedulesGetOptionalParams +export interface ManagedNetworkSettingsRuleGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SchedulesGetResponse = Schedule; +export type ManagedNetworkSettingsRuleGetResponse = OutboundRuleBasicResource; /** Optional parameters. */ -export interface SchedulesCreateOrUpdateOptionalParams +export interface ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8882,36 +14384,63 @@ export interface SchedulesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type SchedulesCreateOrUpdateResponse = Schedule; +export type ManagedNetworkSettingsRuleCreateOrUpdateResponse = OutboundRuleBasicResource; /** Optional parameters. */ -export interface SchedulesListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Status filter for schedule. */ - listViewType?: ScheduleListViewType; -} +export interface ManagedNetworkSettingsRuleListNextOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SchedulesListNextResponse = ScheduleResourceArmPaginatedResult; +export type ManagedNetworkSettingsRuleListNextResponse = OutboundRuleListResult; /** Optional parameters. */ -export interface WorkspaceFeaturesListOptionalParams +export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult; +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface WorkspaceFeaturesListNextOptionalParams +export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult; +/** Optional parameters. */ +export interface PrivateEndpointConnectionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; + +/** Optional parameters. */ +export interface PrivateLinkResourcesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; + +/** Optional parameters. */ +export interface ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams + extends coreClient.OperationOptions { + /** Managed Network Provisioning Options for a machine learning workspace. */ + body?: ManagedNetworkProvisionOptions; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the provisionManagedNetwork operation. */ +export type ManagedNetworkProvisionsProvisionManagedNetworkResponse = ManagedNetworkProvisionStatus; /** Optional parameters. */ -export interface AzureMachineLearningWorkspacesOptionalParams +export interface AzureMachineLearningServicesOptionalParams extends coreClient.ServiceClientOptions { /** server parameter */ $host?: string; diff --git a/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts b/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts index ef591872516f..98ac60447a23 100644 --- a/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts @@ -8,80 +8,108 @@ import * as coreClient from "@azure/core-client"; -export const AmlOperationListResult: coreClient.CompositeMapper = { +export const ListUsagesResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlOperationListResult", + className: "ListUsagesResult", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AmlOperation" + className: "Usage" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const AmlOperation: coreClient.CompositeMapper = { +export const Usage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlOperation", + className: "Usage", modelProperties: { - name: { - serializedName: "name", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - display: { - serializedName: "display", + amlWorkspaceLocation: { + serializedName: "amlWorkspaceLocation", + readOnly: true, type: { - name: "Composite", - className: "AmlOperationDisplay" + name: "String" } }, - isDataAction: { - serializedName: "isDataAction", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Boolean" + name: "String" + } + }, + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "String" + } + }, + currentValue: { + serializedName: "currentValue", + readOnly: true, + type: { + name: "Number" + } + }, + limit: { + serializedName: "limit", + readOnly: true, + type: { + name: "Number" + } + }, + name: { + serializedName: "name", + type: { + name: "Composite", + className: "UsageName" } } } } }; -export const AmlOperationDisplay: coreClient.CompositeMapper = { +export const UsageName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlOperationDisplay", + className: "UsageName", modelProperties: { - provider: { - serializedName: "provider", - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", - type: { - name: "String" - } - }, - operation: { - serializedName: "operation", + value: { + serializedName: "value", + readOnly: true, type: { name: "String" } }, - description: { - serializedName: "description", + localizedValue: { + serializedName: "localizedValue", + readOnly: true, type: { name: "String" } @@ -186,95 +214,175 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { } }; -export const EncryptionProperty: coreClient.CompositeMapper = { +export const VirtualMachineSizeListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionProperty", + className: "VirtualMachineSizeListResult", modelProperties: { - status: { - serializedName: "status", - required: true, - type: { - name: "String" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "IdentityForCmk" - } - }, - keyVaultProperties: { - serializedName: "keyVaultProperties", + value: { + serializedName: "value", type: { - name: "Composite", - className: "EncryptionKeyVaultProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineSize" + } + } } } } } }; -export const IdentityForCmk: coreClient.CompositeMapper = { +export const VirtualMachineSize: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IdentityForCmk", + className: "VirtualMachineSize", modelProperties: { - userAssignedIdentity: { - serializedName: "userAssignedIdentity", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } + }, + family: { + serializedName: "family", + readOnly: true, + type: { + name: "String" + } + }, + vCPUs: { + serializedName: "vCPUs", + readOnly: true, + type: { + name: "Number" + } + }, + gpus: { + serializedName: "gpus", + readOnly: true, + type: { + name: "Number" + } + }, + osVhdSizeMB: { + serializedName: "osVhdSizeMB", + readOnly: true, + type: { + name: "Number" + } + }, + maxResourceVolumeMB: { + serializedName: "maxResourceVolumeMB", + readOnly: true, + type: { + name: "Number" + } + }, + memoryGB: { + serializedName: "memoryGB", + readOnly: true, + type: { + name: "Number" + } + }, + lowPriorityCapable: { + serializedName: "lowPriorityCapable", + readOnly: true, + type: { + name: "Boolean" + } + }, + premiumIO: { + serializedName: "premiumIO", + readOnly: true, + type: { + name: "Boolean" + } + }, + estimatedVMPrices: { + serializedName: "estimatedVMPrices", + type: { + name: "Composite", + className: "EstimatedVMPrices" + } + }, + supportedComputeTypes: { + serializedName: "supportedComputeTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } }; -export const EncryptionKeyVaultProperties: coreClient.CompositeMapper = { +export const EstimatedVMPrices: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionKeyVaultProperties", + className: "EstimatedVMPrices", modelProperties: { - keyVaultArmId: { - serializedName: "keyVaultArmId", + billingCurrency: { + serializedName: "billingCurrency", required: true, type: { name: "String" } }, - keyIdentifier: { - serializedName: "keyIdentifier", + unitOfMeasure: { + serializedName: "unitOfMeasure", required: true, type: { name: "String" } }, - identityClientId: { - serializedName: "identityClientId", + values: { + serializedName: "values", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EstimatedVMPrice" + } + } } } } } }; -export const PrivateEndpoint: coreClient.CompositeMapper = { +export const EstimatedVMPrice: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpoint", + className: "EstimatedVMPrice", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + retailPrice: { + serializedName: "retailPrice", + required: true, + type: { + name: "Number" + } + }, + osType: { + serializedName: "osType", + required: true, type: { name: "String" } }, - subnetArmId: { - serializedName: "subnetArmId", - readOnly: true, + vmTier: { + serializedName: "vmTier", + required: true, type: { name: "String" } @@ -283,25 +391,259 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { } }; -export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { +export const QuotaUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkServiceConnectionState", + className: "QuotaUpdateParameters", modelProperties: { - status: { - serializedName: "status", + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QuotaBaseProperties" + } + } + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const QuotaBaseProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QuotaBaseProperties", + modelProperties: { + id: { + serializedName: "id", type: { name: "String" } }, - description: { - serializedName: "description", + type: { + serializedName: "type", type: { name: "String" } }, - actionsRequired: { - serializedName: "actionsRequired", + limit: { + serializedName: "limit", + type: { + name: "Number" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + } + } + } +}; + +export const UpdateWorkspaceQuotasResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateWorkspaceQuotasResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpdateWorkspaceQuotas" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const UpdateWorkspaceQuotas: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateWorkspaceQuotas", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + limit: { + serializedName: "limit", + type: { + name: "Number" + } + }, + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + } + } + } +}; + +export const ListWorkspaceQuotas: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListWorkspaceQuotas", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceQuota" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ResourceQuota: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceQuota", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + amlWorkspaceLocation: { + serializedName: "amlWorkspaceLocation", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "Composite", + className: "ResourceName" + } + }, + limit: { + serializedName: "limit", + readOnly: true, + type: { + name: "Number" + } + }, + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ResourceName: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceName", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "String" + } + }, + localizedValue: { + serializedName: "localizedValue", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PaginatedComputeResourcesList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PaginatedComputeResourcesList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -495,196 +837,250 @@ export const SystemData: coreClient.CompositeMapper = { } }; -export const SharedPrivateLinkResource: coreClient.CompositeMapper = { +export const ComputeResourceSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedPrivateLinkResource", + className: "ComputeResourceSchema", modelProperties: { - name: { - serializedName: "name", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "Compute" } - }, - privateLinkResourceId: { - serializedName: "properties.privateLinkResourceId", + } + } + } +}; + +export const Compute: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Compute", + uberParent: "Compute", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, + modelProperties: { + computeType: { + serializedName: "computeType", + required: true, type: { name: "String" } }, - groupId: { - serializedName: "properties.groupId", + computeLocation: { + serializedName: "computeLocation", type: { name: "String" } }, - requestMessage: { - serializedName: "properties.requestMessage", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } }, - status: { - serializedName: "properties.status", + description: { + serializedName: "description", + nullable: true, type: { name: "String" } - } - } - } -}; - -export const NotebookResourceInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NotebookResourceInfo", - modelProperties: { - fqdn: { - serializedName: "fqdn", + }, + createdOn: { + serializedName: "createdOn", + readOnly: true, type: { - name: "String" + name: "DateTime" + } + }, + modifiedOn: { + serializedName: "modifiedOn", + readOnly: true, + type: { + name: "DateTime" } }, resourceId: { serializedName: "resourceId", + nullable: true, type: { name: "String" } }, - notebookPreparationError: { - serializedName: "notebookPreparationError", + provisioningErrors: { + serializedName: "provisioningErrors", + readOnly: true, + nullable: true, type: { - name: "Composite", - className: "NotebookPreparationError" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponse" + } + } } - } - } - } -}; - -export const NotebookPreparationError: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NotebookPreparationError", - modelProperties: { - errorMessage: { - serializedName: "errorMessage", + }, + isAttachedCompute: { + serializedName: "isAttachedCompute", + readOnly: true, type: { - name: "String" + name: "Boolean" } }, - statusCode: { - serializedName: "statusCode", + disableLocalAuth: { + serializedName: "disableLocalAuth", type: { - name: "Number" + name: "Boolean" } } } } }; -export const ServiceManagedResourcesSettings: coreClient.CompositeMapper = { +export const ClusterUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceManagedResourcesSettings", + className: "ClusterUpdateParameters", modelProperties: { - cosmosDb: { - serializedName: "cosmosDb", + properties: { + serializedName: "properties.properties", type: { name: "Composite", - className: "CosmosDbSettings" + className: "ScaleSettingsInformation" } } } } }; -export const CosmosDbSettings: coreClient.CompositeMapper = { +export const ScaleSettingsInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CosmosDbSettings", + className: "ScaleSettingsInformation", modelProperties: { - collectionsThroughput: { - serializedName: "collectionsThroughput", + scaleSettings: { + serializedName: "scaleSettings", type: { - name: "Number" + name: "Composite", + className: "ScaleSettings" } } } } }; -export const WorkspaceUpdateParameters: coreClient.CompositeMapper = { +export const ScaleSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceUpdateParameters", + className: "ScaleSettings", modelProperties: { - tags: { - serializedName: "tags", + maxNodeCount: { + serializedName: "maxNodeCount", + required: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Number" } }, - sku: { - serializedName: "sku", + minNodeCount: { + defaultValue: 0, + serializedName: "minNodeCount", type: { - name: "Composite", - className: "Sku" + name: "Number" } }, - identity: { - serializedName: "identity", + nodeIdleTimeBeforeScaleDown: { + serializedName: "nodeIdleTimeBeforeScaleDown", type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "TimeSpan" } - }, - description: { - serializedName: "properties.description", + } + } + } +}; + +export const CustomService: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomService", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - friendlyName: { - serializedName: "properties.friendlyName", + image: { + serializedName: "image", type: { - name: "String" + name: "Composite", + className: "Image" } }, - imageBuildCompute: { - serializedName: "properties.imageBuildCompute", + environmentVariables: { + serializedName: "environmentVariables", type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Composite", className: "EnvironmentVariable" } + } } }, - serviceManagedResourcesSettings: { - serializedName: "properties.serviceManagedResourcesSettings", + docker: { + serializedName: "docker", type: { name: "Composite", - className: "ServiceManagedResourcesSettings" + className: "Docker" } }, - primaryUserAssignedIdentity: { - serializedName: "properties.primaryUserAssignedIdentity", + endpoints: { + serializedName: "endpoints", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Endpoint" + } + } } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + volumes: { + serializedName: "volumes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VolumeDefinition" + } + } } - }, - applicationInsights: { - serializedName: "properties.applicationInsights", + } + } + } +}; + +export const Image: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Image", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + type: { + defaultValue: "docker", + serializedName: "type", type: { name: "String" } }, - containerRegistry: { - serializedName: "properties.containerRegistry", + reference: { + serializedName: "reference", type: { name: "String" } @@ -693,25 +1089,21 @@ export const WorkspaceUpdateParameters: coreClient.CompositeMapper = { } }; -export const WorkspaceListResult: coreClient.CompositeMapper = { +export const EnvironmentVariable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceListResult", + className: "EnvironmentVariable", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - value: { - serializedName: "value", + type: { + defaultValue: "local", + serializedName: "type", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Workspace" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + value: { + serializedName: "value", type: { name: "String" } @@ -720,266 +1112,209 @@ export const WorkspaceListResult: coreClient.CompositeMapper = { } }; -export const DiagnoseWorkspaceParameters: coreClient.CompositeMapper = { +export const Docker: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiagnoseWorkspaceParameters", + className: "Docker", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - value: { - serializedName: "value", + privileged: { + serializedName: "privileged", + nullable: true, type: { - name: "Composite", - className: "DiagnoseRequestProperties" + name: "Boolean" } } } } }; -export const DiagnoseRequestProperties: coreClient.CompositeMapper = { +export const Endpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiagnoseRequestProperties", + className: "Endpoint", modelProperties: { - udr: { - serializedName: "udr", + protocol: { + defaultValue: "tcp", + serializedName: "protocol", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } }, - nsg: { - serializedName: "nsg", + name: { + serializedName: "name", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } }, - resourceLock: { - serializedName: "resourceLock", - type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } - } - }, - dnsResolution: { - serializedName: "dnsResolution", - type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } - } - }, - storageAccount: { - serializedName: "storageAccount", - type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } - } - }, - keyVault: { - serializedName: "keyVault", - type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } - } - }, - containerRegistry: { - serializedName: "containerRegistry", + target: { + serializedName: "target", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "Number" } }, - applicationInsights: { - serializedName: "applicationInsights", + published: { + serializedName: "published", + nullable: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "Number" } }, - others: { - serializedName: "others", + hostIp: { + serializedName: "hostIp", + nullable: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } } } } }; -export const DiagnoseResponseResult: coreClient.CompositeMapper = { +export const VolumeDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiagnoseResponseResult", + className: "VolumeDefinition", modelProperties: { - value: { - serializedName: "value", + type: { + defaultValue: "bind", + serializedName: "type", type: { - name: "Composite", - className: "DiagnoseResponseResultValue" + name: "String" } - } - } - } -}; - -export const DiagnoseResponseResultValue: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiagnoseResponseResultValue", - modelProperties: { - userDefinedRouteResults: { - serializedName: "userDefinedRouteResults", + }, + readOnly: { + serializedName: "readOnly", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "Boolean" } }, - networkSecurityRuleResults: { - serializedName: "networkSecurityRuleResults", + source: { + serializedName: "source", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "String" } }, - resourceLockResults: { - serializedName: "resourceLockResults", + target: { + serializedName: "target", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "String" } }, - dnsResolutionResults: { - serializedName: "dnsResolutionResults", + consistency: { + serializedName: "consistency", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "String" } }, - storageAccountResults: { - serializedName: "storageAccountResults", + bind: { + serializedName: "bind", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "Composite", + className: "BindOptions" } }, - keyVaultResults: { - serializedName: "keyVaultResults", + volume: { + serializedName: "volume", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "Composite", + className: "VolumeOptions" } }, - containerRegistryResults: { - serializedName: "containerRegistryResults", + tmpfs: { + serializedName: "tmpfs", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "Composite", + className: "TmpfsOptions" + } + } + } + } +}; + +export const BindOptions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BindOptions", + modelProperties: { + propagation: { + serializedName: "propagation", + nullable: true, + type: { + name: "String" } }, - applicationInsightsResults: { - serializedName: "applicationInsightsResults", + createHostPath: { + serializedName: "createHostPath", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "Boolean" } }, - otherResults: { - serializedName: "otherResults", + selinux: { + serializedName: "selinux", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "String" } } } } }; -export const DiagnoseResult: coreClient.CompositeMapper = { +export const VolumeOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiagnoseResult", + className: "VolumeOptions", modelProperties: { - code: { - serializedName: "code", - readOnly: true, + nocopy: { + serializedName: "nocopy", + nullable: true, type: { - name: "String" + name: "Boolean" } - }, - level: { - serializedName: "level", + } + } + } +}; + +export const TmpfsOptions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TmpfsOptions", + modelProperties: { + size: { + serializedName: "size", + type: { + name: "Number" + } + } + } + } +}; + +export const AmlComputeNodesInformation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlComputeNodesInformation", + modelProperties: { + nodes: { + serializedName: "nodes", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AmlComputeNodeInformation" + } + } } }, - message: { - serializedName: "message", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -989,152 +1324,211 @@ export const DiagnoseResult: coreClient.CompositeMapper = { } }; -export const ListWorkspaceKeysResult: coreClient.CompositeMapper = { +export const AmlComputeNodeInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListWorkspaceKeysResult", + className: "AmlComputeNodeInformation", modelProperties: { - userStorageKey: { - serializedName: "userStorageKey", + nodeId: { + serializedName: "nodeId", readOnly: true, type: { name: "String" } }, - userStorageResourceId: { - serializedName: "userStorageResourceId", + privateIpAddress: { + serializedName: "privateIpAddress", readOnly: true, + nullable: true, type: { name: "String" } }, - appInsightsInstrumentationKey: { - serializedName: "appInsightsInstrumentationKey", + publicIpAddress: { + serializedName: "publicIpAddress", readOnly: true, + nullable: true, type: { name: "String" } }, - containerRegistryCredentials: { - serializedName: "containerRegistryCredentials", + port: { + serializedName: "port", + readOnly: true, type: { - name: "Composite", - className: "RegistryListCredentialsResult" + name: "Number" } }, - notebookAccessKeys: { - serializedName: "notebookAccessKeys", + nodeState: { + serializedName: "nodeState", + readOnly: true, type: { - name: "Composite", - className: "ListNotebookKeysResult" + name: "String" + } + }, + runId: { + serializedName: "runId", + readOnly: true, + nullable: true, + type: { + name: "String" } } } } }; -export const RegistryListCredentialsResult: coreClient.CompositeMapper = { +export const ComputeSecrets: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegistryListCredentialsResult", + className: "ComputeSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, modelProperties: { - location: { - serializedName: "location", - readOnly: true, + computeType: { + serializedName: "computeType", + required: true, type: { name: "String" } - }, - username: { - serializedName: "username", - readOnly: true, + } + } + } +}; + +export const IdleShutdownSetting: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IdleShutdownSetting", + modelProperties: { + idleTimeBeforeShutdown: { + serializedName: "idleTimeBeforeShutdown", type: { name: "String" } - }, - passwords: { - serializedName: "passwords", + } + } + } +}; + +export const ResizeSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResizeSchema", + modelProperties: { + targetVMSize: { + serializedName: "targetVMSize", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Password" - } - } + name: "String" } } } } }; -export const Password: coreClient.CompositeMapper = { +export const CodeContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Password", + className: "CodeContainerResourceArmPaginatedResult", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, value: { serializedName: "value", - readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CodeContainer" + } + } } } } } }; -export const ListNotebookKeysResult: coreClient.CompositeMapper = { +export const ResourceBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListNotebookKeysResult", + className: "ResourceBase", modelProperties: { - primaryAccessKey: { - serializedName: "primaryAccessKey", - readOnly: true, + description: { + serializedName: "description", + nullable: true, type: { name: "String" } }, - secondaryAccessKey: { - serializedName: "secondaryAccessKey", - readOnly: true, + properties: { + serializedName: "properties", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + tags: { + serializedName: "tags", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const ListUsagesResult: coreClient.CompositeMapper = { +export const CodeVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListUsagesResult", + className: "CodeVersionResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Usage" + className: "CodeVersion" } } } + } + } + } +}; + +export const AutoDeleteSetting: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutoDeleteSetting", + modelProperties: { + condition: { + serializedName: "condition", + type: { + name: "String" + } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + value: { + serializedName: "value", + nullable: true, type: { name: "String" } @@ -1143,92 +1537,146 @@ export const ListUsagesResult: coreClient.CompositeMapper = { } }; -export const Usage: coreClient.CompositeMapper = { +export const PendingUploadRequestDto: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Usage", + className: "PendingUploadRequestDto", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + pendingUploadId: { + serializedName: "pendingUploadId", + nullable: true, type: { name: "String" } }, - amlWorkspaceLocation: { - serializedName: "amlWorkspaceLocation", - readOnly: true, + pendingUploadType: { + serializedName: "pendingUploadType", type: { name: "String" } + } + } + } +}; + +export const PendingUploadResponseDto: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PendingUploadResponseDto", + modelProperties: { + blobReferenceForConsumption: { + serializedName: "blobReferenceForConsumption", + type: { + name: "Composite", + className: "BlobReferenceForConsumptionDto" + } }, - type: { - serializedName: "type", - readOnly: true, + pendingUploadId: { + serializedName: "pendingUploadId", + nullable: true, type: { name: "String" } }, - unit: { - serializedName: "unit", - readOnly: true, + pendingUploadType: { + serializedName: "pendingUploadType", type: { name: "String" } - }, - currentValue: { - serializedName: "currentValue", - readOnly: true, + } + } + } +}; + +export const BlobReferenceForConsumptionDto: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BlobReferenceForConsumptionDto", + modelProperties: { + blobUri: { + serializedName: "blobUri", + nullable: true, type: { - name: "Number" + name: "String" } }, - limit: { - serializedName: "limit", - readOnly: true, + credential: { + serializedName: "credential", type: { - name: "Number" + name: "Composite", + className: "PendingUploadCredentialDto" } }, - name: { - serializedName: "name", + storageAccountArmId: { + serializedName: "storageAccountArmId", + nullable: true, type: { - name: "Composite", - className: "UsageName" + name: "String" } } } } }; -export const UsageName: coreClient.CompositeMapper = { +export const PendingUploadCredentialDto: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsageName", + className: "PendingUploadCredentialDto", + uberParent: "PendingUploadCredentialDto", + polymorphicDiscriminator: { + serializedName: "credentialType", + clientName: "credentialType" + }, modelProperties: { - value: { - serializedName: "value", - readOnly: true, + credentialType: { + serializedName: "credentialType", + required: true, type: { name: "String" } - }, - localizedValue: { - serializedName: "localizedValue", - readOnly: true, + } + } + } +}; + +export const ComponentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentContainerResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", type: { name: "String" } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComponentContainer" + } + } + } } } } }; -export const VirtualMachineSizeListResult: coreClient.CompositeMapper = { +export const ComponentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSizeListResult", + className: "ComponentVersionResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "value", type: { @@ -1236,7 +1684,7 @@ export const VirtualMachineSizeListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineSize" + className: "ComponentVersion" } } } @@ -1245,88 +1693,25 @@ export const VirtualMachineSizeListResult: coreClient.CompositeMapper = { } }; -export const VirtualMachineSize: coreClient.CompositeMapper = { +export const DataContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSize", + className: "DataContainerResourceArmPaginatedResult", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - family: { - serializedName: "family", - readOnly: true, - type: { - name: "String" - } - }, - vCPUs: { - serializedName: "vCPUs", - readOnly: true, - type: { - name: "Number" - } - }, - gpus: { - serializedName: "gpus", - readOnly: true, - type: { - name: "Number" - } - }, - osVhdSizeMB: { - serializedName: "osVhdSizeMB", - readOnly: true, - type: { - name: "Number" - } - }, - maxResourceVolumeMB: { - serializedName: "maxResourceVolumeMB", - readOnly: true, - type: { - name: "Number" - } - }, - memoryGB: { - serializedName: "memoryGB", - readOnly: true, - type: { - name: "Number" - } - }, - lowPriorityCapable: { - serializedName: "lowPriorityCapable", - readOnly: true, - type: { - name: "Boolean" - } - }, - premiumIO: { - serializedName: "premiumIO", - readOnly: true, - type: { - name: "Boolean" - } - }, - estimatedVMPrices: { - serializedName: "estimatedVMPrices", - type: { - name: "Composite", - className: "EstimatedVMPrices" - } - }, - supportedComputeTypes: { - serializedName: "supportedComputeTypes", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "DataContainer" } } } @@ -1335,34 +1720,25 @@ export const VirtualMachineSize: coreClient.CompositeMapper = { } }; -export const EstimatedVMPrices: coreClient.CompositeMapper = { +export const DataVersionBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EstimatedVMPrices", + className: "DataVersionBaseResourceArmPaginatedResult", modelProperties: { - billingCurrency: { - serializedName: "billingCurrency", - required: true, - type: { - name: "String" - } - }, - unitOfMeasure: { - serializedName: "unitOfMeasure", - required: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - values: { - serializedName: "values", - required: true, + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "EstimatedVMPrice" + className: "DataVersionBase" } } } @@ -1371,27 +1747,23 @@ export const EstimatedVMPrices: coreClient.CompositeMapper = { } }; -export const EstimatedVMPrice: coreClient.CompositeMapper = { +export const IntellectualProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EstimatedVMPrice", + className: "IntellectualProperty", modelProperties: { - retailPrice: { - serializedName: "retailPrice", - required: true, - type: { - name: "Number" - } - }, - osType: { - serializedName: "osType", - required: true, + protectionLevel: { + serializedName: "protectionLevel", type: { name: "String" } }, - vmTier: { - serializedName: "vmTier", + publisher: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "publisher", required: true, type: { name: "String" @@ -1401,11 +1773,17 @@ export const EstimatedVMPrice: coreClient.CompositeMapper = { } }; -export const QuotaUpdateParameters: coreClient.CompositeMapper = { +export const EnvironmentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QuotaUpdateParameters", + className: "EnvironmentContainerResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "value", type: { @@ -1413,75 +1791,61 @@ export const QuotaUpdateParameters: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QuotaBaseProperties" + className: "EnvironmentContainer" } } } - }, - location: { - serializedName: "location", - type: { - name: "String" - } } } } }; -export const QuotaBaseProperties: coreClient.CompositeMapper = { +export const EnvironmentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QuotaBaseProperties", + className: "EnvironmentVersionResourceArmPaginatedResult", modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - type: { - serializedName: "type", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - limit: { - serializedName: "limit", - type: { - name: "Number" - } - }, - unit: { - serializedName: "unit", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentVersion" + } + } } } } } }; -export const UpdateWorkspaceQuotasResult: coreClient.CompositeMapper = { +export const BuildContext: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateWorkspaceQuotasResult", + className: "BuildContext", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + contextUri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "contextUri", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UpdateWorkspaceQuotas" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + dockerfilePath: { + defaultValue: "Dockerfile", + serializedName: "dockerfilePath", type: { name: "String" } @@ -1490,120 +1854,204 @@ export const UpdateWorkspaceQuotasResult: coreClient.CompositeMapper = { } }; -export const UpdateWorkspaceQuotas: coreClient.CompositeMapper = { +export const InferenceContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateWorkspaceQuotas", + className: "InferenceContainerProperties", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + livenessRoute: { + serializedName: "livenessRoute", type: { - name: "String" + name: "Composite", + className: "Route" } }, - type: { - serializedName: "type", - readOnly: true, + readinessRoute: { + serializedName: "readinessRoute", type: { - name: "String" + name: "Composite", + className: "Route" } }, - limit: { - serializedName: "limit", + scoringRoute: { + serializedName: "scoringRoute", type: { - name: "Number" + name: "Composite", + className: "Route" } - }, - unit: { - serializedName: "unit", - readOnly: true, + } + } + } +}; + +export const Route: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Route", + modelProperties: { + path: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "path", + required: true, type: { name: "String" } }, - status: { - serializedName: "status", + port: { + serializedName: "port", + required: true, type: { - name: "String" + name: "Number" } } } } }; -export const ListWorkspaceQuotas: coreClient.CompositeMapper = { +export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListWorkspaceQuotas", + className: "ModelContainerResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResourceQuota" + className: "ModelContainer" } } } - }, + } + } + } +}; + +export const ModelVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelVersionResourceArmPaginatedResult", + modelProperties: { nextLink: { serializedName: "nextLink", - readOnly: true, type: { name: "String" } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ModelVersion" + } + } + } } } } }; -export const ResourceQuota: coreClient.CompositeMapper = { +export const FlavorData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceQuota", + className: "FlavorData", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + data: { + serializedName: "data", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const PackageRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PackageRequest", + modelProperties: { + baseEnvironmentSource: { + serializedName: "baseEnvironmentSource", + type: { + name: "Composite", + className: "BaseEnvironmentSource" } }, - amlWorkspaceLocation: { - serializedName: "amlWorkspaceLocation", - readOnly: true, + environmentVariables: { + serializedName: "environmentVariables", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - type: { - serializedName: "type", - readOnly: true, + inferencingServer: { + serializedName: "inferencingServer", type: { - name: "String" + name: "Composite", + className: "InferencingServer" } }, - name: { - serializedName: "name", + inputs: { + serializedName: "inputs", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ModelPackageInput" + } + } + } + }, + modelConfiguration: { + serializedName: "modelConfiguration", type: { name: "Composite", - className: "ResourceName" + className: "ModelConfiguration" } }, - limit: { - serializedName: "limit", - readOnly: true, + properties: { + serializedName: "properties", + nullable: true, type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "String" } } } }, - unit: { - serializedName: "unit", - readOnly: true, + tags: { + serializedName: "tags", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + targetEnvironmentId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "targetEnvironmentId", + required: true, type: { name: "String" } @@ -1612,21 +2060,40 @@ export const ResourceQuota: coreClient.CompositeMapper = { } }; -export const ResourceName: coreClient.CompositeMapper = { +export const BaseEnvironmentSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceName", + className: "BaseEnvironmentSource", + uberParent: "BaseEnvironmentSource", + polymorphicDiscriminator: { + serializedName: "baseEnvironmentSourceType", + clientName: "baseEnvironmentSourceType" + }, modelProperties: { - value: { - serializedName: "value", - readOnly: true, + baseEnvironmentSourceType: { + serializedName: "baseEnvironmentSourceType", + required: true, type: { name: "String" } - }, - localizedValue: { - serializedName: "localizedValue", - readOnly: true, + } + } + } +}; + +export const InferencingServer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InferencingServer", + uberParent: "InferencingServer", + polymorphicDiscriminator: { + serializedName: "serverType", + clientName: "serverType" + }, + modelProperties: { + serverType: { + serializedName: "serverType", + required: true, type: { name: "String" } @@ -1635,109 +2102,130 @@ export const ResourceName: coreClient.CompositeMapper = { } }; -export const PaginatedComputeResourcesList: coreClient.CompositeMapper = { +export const ModelPackageInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PaginatedComputeResourcesList", + className: "ModelPackageInput", modelProperties: { - value: { - serializedName: "value", + inputType: { + serializedName: "inputType", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeResource" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + mode: { + serializedName: "mode", + type: { + name: "String" + } + }, + mountPath: { + serializedName: "mountPath", + nullable: true, type: { name: "String" } + }, + path: { + serializedName: "path", + type: { + name: "Composite", + className: "PackageInputPathBase" + } } } } }; -export const ComputeResourceSchema: coreClient.CompositeMapper = { +export const PackageInputPathBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeResourceSchema", + className: "PackageInputPathBase", + uberParent: "PackageInputPathBase", + polymorphicDiscriminator: { + serializedName: "inputPathType", + clientName: "inputPathType" + }, modelProperties: { - properties: { - serializedName: "properties", + inputPathType: { + serializedName: "inputPathType", + required: true, type: { - name: "Composite", - className: "Compute" + name: "String" } } } } }; -export const Compute: coreClient.CompositeMapper = { +export const ModelConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Compute", - uberParent: "Compute", - polymorphicDiscriminator: { - serializedName: "computeType", - clientName: "computeType" - }, + className: "ModelConfiguration", modelProperties: { - computeType: { - serializedName: "computeType", - required: true, + mode: { + serializedName: "mode", type: { name: "String" } }, - computeLocation: { - serializedName: "computeLocation", + mountPath: { + serializedName: "mountPath", + nullable: true, type: { name: "String" } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + } + } + } +}; + +export const PackageResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PackageResponse", + modelProperties: { + baseEnvironmentSource: { + serializedName: "baseEnvironmentSource", type: { - name: "String" + name: "Composite", + className: "BaseEnvironmentSource" } }, - description: { - serializedName: "description", + buildId: { + serializedName: "buildId", + readOnly: true, nullable: true, type: { name: "String" } }, - createdOn: { - serializedName: "createdOn", + buildState: { + serializedName: "buildState", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - modifiedOn: { - serializedName: "modifiedOn", + environmentVariables: { + serializedName: "environmentVariables", readOnly: true, + nullable: true, type: { - name: "DateTime" + name: "Dictionary", + value: { type: { name: "String" } } } }, - resourceId: { - serializedName: "resourceId", - nullable: true, + inferencingServer: { + serializedName: "inferencingServer", type: { - name: "String" + name: "Composite", + className: "InferencingServer" } }, - provisioningErrors: { - serializedName: "provisioningErrors", + inputs: { + serializedName: "inputs", readOnly: true, nullable: true, type: { @@ -1745,110 +2233,91 @@ export const Compute: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorResponse" + className: "ModelPackageInput" } } } }, - isAttachedCompute: { - serializedName: "isAttachedCompute", + logUrl: { + serializedName: "logUrl", readOnly: true, + nullable: true, type: { - name: "Boolean" + name: "String" } }, - disableLocalAuth: { - serializedName: "disableLocalAuth", + modelConfiguration: { + serializedName: "modelConfiguration", type: { - name: "Boolean" + name: "Composite", + className: "ModelConfiguration" + } + }, + properties: { + serializedName: "properties", + readOnly: true, + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + tags: { + serializedName: "tags", + readOnly: true, + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + targetEnvironmentId: { + serializedName: "targetEnvironmentId", + readOnly: true, + nullable: true, + type: { + name: "String" } } } } }; -export const ClusterUpdateParameters: coreClient.CompositeMapper = { +export const BatchEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterUpdateParameters", - modelProperties: { - properties: { - serializedName: "properties.properties", - type: { - name: "Composite", - className: "ScaleSettingsInformation" - } - } - } - } -}; - -export const ScaleSettingsInformation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScaleSettingsInformation", - modelProperties: { - scaleSettings: { - serializedName: "scaleSettings", - type: { - name: "Composite", - className: "ScaleSettings" - } - } - } - } -}; - -export const ScaleSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScaleSettings", + className: "BatchEndpointTrackedResourceArmPaginatedResult", modelProperties: { - maxNodeCount: { - serializedName: "maxNodeCount", - required: true, - type: { - name: "Number" - } - }, - minNodeCount: { - defaultValue: 0, - serializedName: "minNodeCount", + nextLink: { + serializedName: "nextLink", type: { - name: "Number" + name: "String" } }, - nodeIdleTimeBeforeScaleDown: { - serializedName: "nodeIdleTimeBeforeScaleDown", + value: { + serializedName: "value", type: { - name: "TimeSpan" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BatchEndpoint" + } + } } } } } }; -export const AmlComputeNodesInformation: coreClient.CompositeMapper = { +export const BatchEndpointDefaults: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeNodesInformation", + className: "BatchEndpointDefaults", modelProperties: { - nodes: { - serializedName: "nodes", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AmlComputeNodeInformation" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + deploymentName: { + serializedName: "deploymentName", + nullable: true, type: { name: "String" } @@ -1857,50 +2326,50 @@ export const AmlComputeNodesInformation: coreClient.CompositeMapper = { } }; -export const AmlComputeNodeInformation: coreClient.CompositeMapper = { +export const EndpointPropertiesBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeNodeInformation", + className: "EndpointPropertiesBase", modelProperties: { - nodeId: { - serializedName: "nodeId", - readOnly: true, + authMode: { + serializedName: "authMode", + required: true, type: { name: "String" } }, - privateIpAddress: { - serializedName: "privateIpAddress", - readOnly: true, + description: { + serializedName: "description", nullable: true, type: { name: "String" } }, - publicIpAddress: { - serializedName: "publicIpAddress", - readOnly: true, - nullable: true, + keys: { + serializedName: "keys", type: { - name: "String" + name: "Composite", + className: "EndpointAuthKeys" } }, - port: { - serializedName: "port", - readOnly: true, + properties: { + serializedName: "properties", + nullable: true, type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "String" } } } }, - nodeState: { - serializedName: "nodeState", + scoringUri: { + serializedName: "scoringUri", readOnly: true, + nullable: true, type: { name: "String" } }, - runId: { - serializedName: "runId", + swaggerUri: { + serializedName: "swaggerUri", readOnly: true, nullable: true, type: { @@ -1911,63 +2380,21 @@ export const AmlComputeNodeInformation: coreClient.CompositeMapper = { } }; -export const NotebookAccessTokenResult: coreClient.CompositeMapper = { +export const EndpointAuthKeys: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotebookAccessTokenResult", + className: "EndpointAuthKeys", 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, + primaryKey: { + serializedName: "primaryKey", + nullable: true, type: { name: "String" } }, - scope: { - serializedName: "scope", - readOnly: true, + secondaryKey: { + serializedName: "secondaryKey", + nullable: true, type: { name: "String" } @@ -1976,53 +2403,57 @@ export const NotebookAccessTokenResult: coreClient.CompositeMapper = { } }; -export const ComputeSecrets: coreClient.CompositeMapper = { +export const PartialManagedServiceIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeSecrets", - uberParent: "ComputeSecrets", - polymorphicDiscriminator: { - serializedName: "computeType", - clientName: "computeType" - }, + className: "PartialManagedServiceIdentity", modelProperties: { - computeType: { - serializedName: "computeType", - required: true, + type: { + serializedName: "type", type: { name: "String" } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } } } } }; -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { +export const PartialMinimalTrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "PartialMinimalTrackedResource", modelProperties: { - value: { - serializedName: "value", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { +export const BatchDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResourceListResult", + className: "BatchDeploymentTrackedResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "value", type: { @@ -2030,7 +2461,7 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" + className: "BatchDeployment" } } } @@ -2039,14 +2470,19 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { } }; -export const ListStorageAccountKeysResult: coreClient.CompositeMapper = { +export const BatchDeploymentConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListStorageAccountKeysResult", + className: "BatchDeploymentConfiguration", + uberParent: "BatchDeploymentConfiguration", + polymorphicDiscriminator: { + serializedName: "deploymentConfigurationType", + clientName: "deploymentConfigurationType" + }, modelProperties: { - userStorageKey: { - serializedName: "userStorageKey", - readOnly: true, + deploymentConfigurationType: { + serializedName: "deploymentConfigurationType", + required: true, type: { name: "String" } @@ -2055,162 +2491,234 @@ export const ListStorageAccountKeysResult: coreClient.CompositeMapper = { } }; -export const WorkspaceConnectionPropertiesV2: coreClient.CompositeMapper = { +export const AssetReferenceBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionPropertiesV2", - uberParent: "WorkspaceConnectionPropertiesV2", + className: "AssetReferenceBase", + uberParent: "AssetReferenceBase", polymorphicDiscriminator: { - serializedName: "authType", - clientName: "authType" + serializedName: "referenceType", + clientName: "referenceType" }, modelProperties: { - authType: { - serializedName: "authType", + referenceType: { + serializedName: "referenceType", required: true, type: { name: "String" } + } + } + } +}; + +export const ResourceConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceConfiguration", + modelProperties: { + instanceCount: { + defaultValue: 1, + serializedName: "instanceCount", + type: { + name: "Number" + } }, - category: { - serializedName: "category", + instanceType: { + serializedName: "instanceType", + nullable: true, type: { name: "String" } }, - target: { - serializedName: "target", + locations: { + serializedName: "locations", + nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - value: { - serializedName: "value", + maxInstanceCount: { + serializedName: "maxInstanceCount", + nullable: true, type: { - name: "String" + name: "Number" } }, - valueFormat: { - serializedName: "valueFormat", + properties: { + serializedName: "properties", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } } } } }; -export const WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const BatchRetrySettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult", + className: "BatchRetrySettings", modelProperties: { - value: { - serializedName: "value", + maxRetries: { + defaultValue: 3, + serializedName: "maxRetries", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WorkspaceConnectionPropertiesV2BasicResource" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + timeout: { + defaultValue: "PT30S", + serializedName: "timeout", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const EndpointDeploymentPropertiesBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointDeploymentPropertiesBase", + modelProperties: { + codeConfiguration: { + serializedName: "codeConfiguration", + type: { + name: "Composite", + className: "CodeConfiguration" + } + }, + description: { + serializedName: "description", + nullable: true, + type: { + name: "String" + } + }, + environmentId: { + serializedName: "environmentId", + nullable: true, type: { name: "String" } + }, + environmentVariables: { + serializedName: "environmentVariables", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + properties: { + serializedName: "properties", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } }; -export const ExternalFqdnResponse: coreClient.CompositeMapper = { +export const CodeConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExternalFqdnResponse", + className: "CodeConfiguration", modelProperties: { - value: { - serializedName: "value", + codeId: { + serializedName: "codeId", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FqdnEndpoints" - } - } + name: "String" + } + }, + scoringScript: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "scoringScript", + required: true, + type: { + name: "String" } } } } }; -export const FqdnEndpoints: coreClient.CompositeMapper = { +export const PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FqdnEndpoints", + className: + "PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties", modelProperties: { properties: { serializedName: "properties", type: { name: "Composite", - className: "FqdnEndpointsProperties" + className: "PartialBatchDeployment" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const FqdnEndpointsProperties: coreClient.CompositeMapper = { +export const PartialBatchDeployment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FqdnEndpointsProperties", + className: "PartialBatchDeployment", modelProperties: { - category: { - serializedName: "category", + description: { + serializedName: "description", + nullable: true, type: { name: "String" } - }, - endpoints: { - serializedName: "endpoints", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FqdnEndpoint" - } - } - } } } } }; -export const FqdnEndpoint: coreClient.CompositeMapper = { +export const DatastoreResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FqdnEndpoint", + className: "DatastoreResourceArmPaginatedResult", modelProperties: { - domainName: { - serializedName: "domainName", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - endpointDetails: { - serializedName: "endpointDetails", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "FqdnEndpointDetail" + className: "Datastore" } } } @@ -2219,25 +2727,52 @@ export const FqdnEndpoint: coreClient.CompositeMapper = { } }; -export const FqdnEndpointDetail: coreClient.CompositeMapper = { +export const DatastoreCredentials: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FqdnEndpointDetail", + className: "DatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: { + serializedName: "credentialsType", + clientName: "credentialsType" + }, modelProperties: { - port: { - serializedName: "port", + credentialsType: { + serializedName: "credentialsType", + required: true, type: { - name: "Number" + name: "String" } } } } }; -export const BatchEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const DatastoreSecrets: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchEndpointTrackedResourceArmPaginatedResult", + className: "DatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: { + serializedName: "secretsType", + clientName: "secretsType" + }, + modelProperties: { + secretsType: { + serializedName: "secretsType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const FeaturesetContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturesetContainerResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -2252,7 +2787,7 @@ export const BatchEndpointTrackedResourceArmPaginatedResult: coreClient.Composit element: { type: { name: "Composite", - className: "BatchEndpoint" + className: "FeaturesetContainer" } } } @@ -2261,68 +2796,96 @@ export const BatchEndpointTrackedResourceArmPaginatedResult: coreClient.Composit } }; -export const BatchEndpointDefaults: coreClient.CompositeMapper = { +export const FeatureResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchEndpointDefaults", + className: "FeatureResourceArmPaginatedResult", modelProperties: { - deploymentName: { - serializedName: "deploymentName", - nullable: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Feature" + } + } + } } } } }; -export const EndpointPropertiesBase: coreClient.CompositeMapper = { +export const FeaturesetVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointPropertiesBase", + className: "FeaturesetVersionResourceArmPaginatedResult", modelProperties: { - authMode: { - serializedName: "authMode", - required: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - description: { - serializedName: "description", - nullable: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FeaturesetVersion" + } + } + } + } + } + } +}; + +export const MaterializationSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MaterializationSettings", + modelProperties: { + notification: { + serializedName: "notification", + type: { + name: "Composite", + className: "NotificationSetting" } }, - keys: { - serializedName: "keys", + resource: { + serializedName: "resource", type: { name: "Composite", - className: "EndpointAuthKeys" + className: "MaterializationComputeResource" } }, - properties: { - serializedName: "properties", - nullable: true, + schedule: { + serializedName: "schedule", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "RecurrenceTrigger" } }, - scoringUri: { - serializedName: "scoringUri", - readOnly: true, + sparkConfiguration: { + serializedName: "sparkConfiguration", nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - swaggerUri: { - serializedName: "swaggerUri", - readOnly: true, - nullable: true, + storeType: { + serializedName: "storeType", type: { name: "String" } @@ -2331,88 +2894,140 @@ export const EndpointPropertiesBase: coreClient.CompositeMapper = { } }; -export const EndpointAuthKeys: coreClient.CompositeMapper = { +export const NotificationSetting: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointAuthKeys", + className: "NotificationSetting", modelProperties: { - primaryKey: { - serializedName: "primaryKey", + emailOn: { + serializedName: "emailOn", nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - secondaryKey: { - serializedName: "secondaryKey", + emails: { + serializedName: "emails", nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + webhooks: { + serializedName: "webhooks", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "Webhook" } } } } } } }; -export const PartialManagedServiceIdentity: coreClient.CompositeMapper = { +export const Webhook: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartialManagedServiceIdentity", + className: "Webhook", + uberParent: "Webhook", + polymorphicDiscriminator: { + serializedName: "webhookType", + clientName: "webhookType" + }, modelProperties: { - type: { - serializedName: "type", + eventType: { + serializedName: "eventType", + nullable: true, type: { name: "String" } }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + webhookType: { + serializedName: "webhookType", + required: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } } } } }; -export const PartialMinimalTrackedResource: coreClient.CompositeMapper = { +export const MaterializationComputeResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartialMinimalTrackedResource", + className: "MaterializationComputeResource", modelProperties: { - tags: { - serializedName: "tags", + instanceType: { + serializedName: "instanceType", + nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } } } } }; -export const BatchDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const RecurrenceSchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchDeploymentTrackedResourceArmPaginatedResult", + className: "RecurrenceSchedule", modelProperties: { - nextLink: { - serializedName: "nextLink", + hours: { + serializedName: "hours", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Number" + } + } } }, - value: { - serializedName: "value", + minutes: { + serializedName: "minutes", + required: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "BatchDeployment" + name: "Number" + } + } + } + }, + monthDays: { + serializedName: "monthDays", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Number" + } + } + } + }, + weekDays: { + serializedName: "weekDays", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" } } } @@ -2421,167 +3036,124 @@ export const BatchDeploymentTrackedResourceArmPaginatedResult: coreClient.Compos } }; -export const AssetReferenceBase: coreClient.CompositeMapper = { +export const TriggerBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssetReferenceBase", - uberParent: "AssetReferenceBase", + className: "TriggerBase", + uberParent: "TriggerBase", polymorphicDiscriminator: { - serializedName: "referenceType", - clientName: "referenceType" + serializedName: "triggerType", + clientName: "triggerType" }, modelProperties: { - referenceType: { - serializedName: "referenceType", - required: true, + endTime: { + serializedName: "endTime", + nullable: true, type: { name: "String" } - } - } - } -}; - -export const ResourceConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceConfiguration", - modelProperties: { - instanceCount: { - defaultValue: 1, - serializedName: "instanceCount", + }, + startTime: { + serializedName: "startTime", + nullable: true, type: { - name: "Number" + name: "String" } }, - instanceType: { - serializedName: "instanceType", - nullable: true, + timeZone: { + defaultValue: "UTC", + serializedName: "timeZone", type: { name: "String" } }, - properties: { - serializedName: "properties", - nullable: true, + triggerType: { + serializedName: "triggerType", + required: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } } } } }; -export const BatchRetrySettings: coreClient.CompositeMapper = { +export const FeaturesetSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchRetrySettings", + className: "FeaturesetSpecification", modelProperties: { - maxRetries: { - defaultValue: 3, - serializedName: "maxRetries", - type: { - name: "Number" - } - }, - timeout: { - defaultValue: "PT30S", - serializedName: "timeout", + path: { + serializedName: "path", + nullable: true, type: { - name: "TimeSpan" + name: "String" } } } } }; -export const EndpointDeploymentPropertiesBase: coreClient.CompositeMapper = { +export const FeaturesetVersionBackfillRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointDeploymentPropertiesBase", + className: "FeaturesetVersionBackfillRequest", modelProperties: { - codeConfiguration: { - serializedName: "codeConfiguration", + dataAvailabilityStatus: { + serializedName: "dataAvailabilityStatus", type: { - name: "Composite", - className: "CodeConfiguration" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, description: { serializedName: "description", - nullable: true, type: { name: "String" } }, - environmentId: { - serializedName: "environmentId", - nullable: true, + displayName: { + serializedName: "displayName", type: { name: "String" } }, - environmentVariables: { - serializedName: "environmentVariables", - nullable: true, + featureWindow: { + serializedName: "featureWindow", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "FeatureWindow" + } + }, + jobId: { + serializedName: "jobId", + type: { + name: "String" } }, properties: { serializedName: "properties", - nullable: true, type: { name: "Dictionary", value: { type: { name: "String" } } } - } - } - } -}; - -export const CodeConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CodeConfiguration", - modelProperties: { - codeId: { - serializedName: "codeId", - nullable: true, - type: { - name: "String" - } }, - scoringScript: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]"), - MinLength: 1 - }, - serializedName: "scoringScript", - required: true, + resource: { + serializedName: "resource", type: { - name: "String" + name: "Composite", + className: "MaterializationComputeResource" } - } - } - } -}; - -export const PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: - "PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties", - modelProperties: { - properties: { - serializedName: "properties", + }, + sparkConfiguration: { + serializedName: "sparkConfiguration", type: { - name: "Composite", - className: "PartialBatchDeployment" + name: "Dictionary", + value: { type: { name: "String" } } } }, tags: { @@ -2595,41 +3167,42 @@ export const PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties: } }; -export const PartialBatchDeployment: coreClient.CompositeMapper = { +export const FeatureWindow: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartialBatchDeployment", + className: "FeatureWindow", modelProperties: { - description: { - serializedName: "description", + featureWindowEnd: { + serializedName: "featureWindowEnd", nullable: true, type: { - name: "String" + name: "DateTime" + } + }, + featureWindowStart: { + serializedName: "featureWindowStart", + nullable: true, + type: { + name: "DateTime" } } } } }; -export const CodeContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const FeaturesetVersionBackfillResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeContainerResourceArmPaginatedResult", + className: "FeaturesetVersionBackfillResponse", modelProperties: { - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - }, - value: { - serializedName: "value", + jobIds: { + serializedName: "jobIds", + nullable: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "CodeContainer" + name: "String" } } } @@ -2638,42 +3211,37 @@ export const CodeContainerResourceArmPaginatedResult: coreClient.CompositeMapper } }; -export const ResourceBase: coreClient.CompositeMapper = { +export const FeaturestoreEntityContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceBase", + className: "FeaturestoreEntityContainerResourceArmPaginatedResult", modelProperties: { - description: { - serializedName: "description", - nullable: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - properties: { - serializedName: "properties", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - tags: { - serializedName: "tags", - nullable: true, + value: { + serializedName: "value", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FeaturestoreEntityContainer" + } + } } } } } }; -export const CodeVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const FeaturestoreEntityVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeVersionResourceArmPaginatedResult", + className: "FeaturestoreEntityVersionResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -2688,7 +3256,7 @@ export const CodeVersionResourceArmPaginatedResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "CodeVersion" + className: "FeaturestoreEntityVersion" } } } @@ -2697,37 +3265,32 @@ export const CodeVersionResourceArmPaginatedResult: coreClient.CompositeMapper = } }; -export const ComponentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const IndexColumn: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentContainerResourceArmPaginatedResult", + className: "IndexColumn", modelProperties: { - nextLink: { - serializedName: "nextLink", + columnName: { + serializedName: "columnName", + nullable: true, type: { name: "String" } }, - value: { - serializedName: "value", + dataType: { + serializedName: "dataType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComponentContainer" - } - } + name: "String" } } } } }; -export const ComponentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const JobBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentVersionResourceArmPaginatedResult", + className: "JobBaseResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -2742,7 +3305,7 @@ export const ComponentVersionResourceArmPaginatedResult: coreClient.CompositeMap element: { type: { name: "Composite", - className: "ComponentVersion" + className: "JobBase" } } } @@ -2751,99 +3314,123 @@ export const ComponentVersionResourceArmPaginatedResult: coreClient.CompositeMap } }; -export const DataContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const IdentityConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataContainerResourceArmPaginatedResult", + className: "IdentityConfiguration", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: { + serializedName: "identityType", + clientName: "identityType" + }, modelProperties: { - nextLink: { - serializedName: "nextLink", + identityType: { + serializedName: "identityType", + required: true, type: { name: "String" } - }, - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataContainer" - } - } - } } } } }; -export const DataVersionBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const SecretConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataVersionBaseResourceArmPaginatedResult", + className: "SecretConfiguration", modelProperties: { - nextLink: { - serializedName: "nextLink", + uri: { + serializedName: "uri", + nullable: true, type: { name: "String" } }, - value: { - serializedName: "value", + workspaceSecretName: { + serializedName: "workspaceSecretName", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataVersionBase" - } - } + name: "String" } } } } }; -export const DatastoreResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const JobService: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatastoreResourceArmPaginatedResult", + className: "JobService", modelProperties: { - nextLink: { - serializedName: "nextLink", + endpoint: { + serializedName: "endpoint", + nullable: true, type: { name: "String" } }, - value: { - serializedName: "value", + errorMessage: { + serializedName: "errorMessage", + readOnly: true, + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Datastore" - } - } + name: "String" + } + }, + jobServiceType: { + serializedName: "jobServiceType", + nullable: true, + type: { + name: "String" + } + }, + nodes: { + serializedName: "nodes", + type: { + name: "Composite", + className: "Nodes" + } + }, + port: { + serializedName: "port", + nullable: true, + type: { + name: "Number" + } + }, + properties: { + serializedName: "properties", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + status: { + serializedName: "status", + readOnly: true, + nullable: true, + type: { + name: "String" } } } } }; -export const DatastoreCredentials: coreClient.CompositeMapper = { +export const Nodes: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatastoreCredentials", - uberParent: "DatastoreCredentials", + className: "Nodes", + uberParent: "Nodes", polymorphicDiscriminator: { - serializedName: "credentialsType", - clientName: "credentialsType" + serializedName: "nodesValueType", + clientName: "nodesValueType" }, modelProperties: { - credentialsType: { - serializedName: "credentialsType", + nodesValueType: { + serializedName: "nodesValueType", required: true, type: { name: "String" @@ -2853,63 +3440,64 @@ export const DatastoreCredentials: coreClient.CompositeMapper = { } }; -export const DatastoreSecrets: coreClient.CompositeMapper = { +export const PartialJobBasePartialResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatastoreSecrets", - uberParent: "DatastoreSecrets", - polymorphicDiscriminator: { - serializedName: "secretsType", - clientName: "secretsType" - }, + className: "PartialJobBasePartialResource", modelProperties: { - secretsType: { - serializedName: "secretsType", - required: true, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "PartialJobBase" } } } } }; -export const EnvironmentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const PartialJobBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentContainerResourceArmPaginatedResult", + className: "PartialJobBase", modelProperties: { - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - }, - value: { - serializedName: "value", + notificationSetting: { + serializedName: "notificationSetting", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EnvironmentContainer" - } - } + name: "Composite", + className: "PartialNotificationSetting" } } } } }; -export const EnvironmentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const PartialNotificationSetting: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentVersionResourceArmPaginatedResult", + className: "PartialNotificationSetting", modelProperties: { - nextLink: { - serializedName: "nextLink", + webhooks: { + serializedName: "webhooks", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "Composite", className: "Webhook" } } + } + } + } + } +}; + +export const LabelingJobResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelingJobResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" } }, value: { @@ -2919,7 +3507,7 @@ export const EnvironmentVersionResourceArmPaginatedResult: coreClient.CompositeM element: { type: { name: "Composite", - className: "EnvironmentVersion" + className: "LabelingJob" } } } @@ -2928,24 +3516,20 @@ export const EnvironmentVersionResourceArmPaginatedResult: coreClient.CompositeM } }; -export const BuildContext: coreClient.CompositeMapper = { +export const LabelingDataConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildContext", + className: "LabelingDataConfiguration", modelProperties: { - contextUri: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "contextUri", - required: true, + dataId: { + serializedName: "dataId", + nullable: true, type: { name: "String" } }, - dockerfilePath: { - defaultValue: "Dockerfile", - serializedName: "dockerfilePath", + incrementalDataRefresh: { + serializedName: "incrementalDataRefresh", type: { name: "String" } @@ -2954,101 +3538,109 @@ export const BuildContext: coreClient.CompositeMapper = { } }; -export const InferenceContainerProperties: coreClient.CompositeMapper = { +export const LabelingJobInstructions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InferenceContainerProperties", + className: "LabelingJobInstructions", modelProperties: { - livenessRoute: { - serializedName: "livenessRoute", + uri: { + serializedName: "uri", + nullable: true, type: { - name: "Composite", - className: "Route" + name: "String" + } + } + } + } +}; + +export const LabelCategory: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelCategory", + modelProperties: { + classes: { + serializedName: "classes", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "LabelClass" } } } }, - readinessRoute: { - serializedName: "readinessRoute", + displayName: { + serializedName: "displayName", + nullable: true, type: { - name: "Composite", - className: "Route" + name: "String" } }, - scoringRoute: { - serializedName: "scoringRoute", + multiSelect: { + serializedName: "multiSelect", type: { - name: "Composite", - className: "Route" + name: "String" } } } } }; -export const Route: coreClient.CompositeMapper = { +export const LabelClass: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Route", + className: "LabelClass", modelProperties: { - path: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "path", - required: true, + displayName: { + serializedName: "displayName", + nullable: true, type: { name: "String" } }, - port: { - serializedName: "port", - required: true, + subclasses: { + serializedName: "subclasses", + nullable: true, type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "Composite", className: "LabelClass" } } } } } } }; -export const JobBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const LabelingJobMediaProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobBaseResourceArmPaginatedResult", + className: "LabelingJobMediaProperties", + uberParent: "LabelingJobMediaProperties", + polymorphicDiscriminator: { + serializedName: "mediaType", + clientName: "mediaType" + }, modelProperties: { - nextLink: { - serializedName: "nextLink", + mediaType: { + serializedName: "mediaType", + required: true, type: { name: "String" } - }, - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobBase" - } - } - } } } } }; -export const IdentityConfiguration: coreClient.CompositeMapper = { +export const MLAssistConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IdentityConfiguration", - uberParent: "IdentityConfiguration", + className: "MLAssistConfiguration", + uberParent: "MLAssistConfiguration", polymorphicDiscriminator: { - serializedName: "identityType", - clientName: "identityType" + serializedName: "mlAssist", + clientName: "mlAssist" }, modelProperties: { - identityType: { - serializedName: "identityType", + mlAssist: { + serializedName: "mlAssist", required: true, type: { name: "String" @@ -3058,64 +3650,144 @@ export const IdentityConfiguration: coreClient.CompositeMapper = { } }; -export const JobService: coreClient.CompositeMapper = { +export const ProgressMetrics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobService", + className: "ProgressMetrics", modelProperties: { - endpoint: { - serializedName: "endpoint", + 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" } }, - errorMessage: { - serializedName: "errorMessage", + createdDateTime: { + serializedName: "createdDateTime", readOnly: true, nullable: true, + type: { + name: "DateTime" + } + }, + level: { + serializedName: "level", + readOnly: true, type: { name: "String" } }, - jobServiceType: { - serializedName: "jobServiceType", + 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" + } }, - port: { - serializedName: "port", + exportedRowCount: { + serializedName: "exportedRowCount", + readOnly: true, nullable: true, type: { name: "Number" } }, - properties: { - serializedName: "properties", - nullable: true, + format: { + serializedName: "format", + required: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - status: { - serializedName: "status", + 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 = { +export const OnlineEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelContainerResourceArmPaginatedResult", + className: "OnlineEndpointTrackedResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -3130,7 +3802,7 @@ export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMappe element: { type: { name: "Composite", - className: "ModelContainer" + className: "OnlineEndpoint" } } } @@ -3139,10 +3811,10 @@ export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMappe } }; -export const ModelVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const OnlineDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelVersionResourceArmPaginatedResult", + className: "OnlineDeploymentTrackedResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -3157,7 +3829,7 @@ export const ModelVersionResourceArmPaginatedResult: coreClient.CompositeMapper element: { type: { name: "Composite", - className: "ModelVersion" + className: "OnlineDeployment" } } } @@ -3166,69 +3838,85 @@ export const ModelVersionResourceArmPaginatedResult: coreClient.CompositeMapper } }; -export const FlavorData: coreClient.CompositeMapper = { +export const DataCollector: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FlavorData", + className: "DataCollector", modelProperties: { - data: { - serializedName: "data", - nullable: true, + collections: { + serializedName: "collections", + required: true, type: { name: "Dictionary", - value: { type: { name: "String" } } + value: { type: { name: "Composite", className: "Collection" } } + } + }, + requestLogging: { + serializedName: "requestLogging", + type: { + name: "Composite", + className: "RequestLogging" + } + }, + rollingRate: { + serializedName: "rollingRate", + type: { + name: "String" } } } } }; -export const OnlineEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const Collection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointTrackedResourceArmPaginatedResult", + className: "Collection", modelProperties: { - nextLink: { - serializedName: "nextLink", + clientId: { + serializedName: "clientId", + nullable: true, type: { name: "String" } }, - value: { - serializedName: "value", + dataCollectionMode: { + serializedName: "dataCollectionMode", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OnlineEndpoint" - } - } + name: "String" + } + }, + dataId: { + serializedName: "dataId", + nullable: true, + type: { + name: "String" + } + }, + samplingRate: { + defaultValue: 1, + serializedName: "samplingRate", + type: { + name: "Number" } } } } }; -export const OnlineDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const RequestLogging: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineDeploymentTrackedResourceArmPaginatedResult", + className: "RequestLogging", modelProperties: { - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - }, - value: { - serializedName: "value", + captureHeaders: { + serializedName: "captureHeaders", + nullable: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "OnlineDeployment" + name: "String" } } } @@ -3511,7 +4199,8 @@ export const SkuSetting: coreClient.CompositeMapper = { modelProperties: { name: { constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 }, serializedName: "name", required: true, @@ -3638,96 +4327,56 @@ export const ScheduleActionBase: coreClient.CompositeMapper = { } }; -export const TriggerBase: coreClient.CompositeMapper = { +export const ServerlessEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TriggerBase", - uberParent: "TriggerBase", - polymorphicDiscriminator: { - serializedName: "triggerType", - clientName: "triggerType" - }, + className: "ServerlessEndpointTrackedResourceArmPaginatedResult", modelProperties: { - endTime: { - serializedName: "endTime", - nullable: true, - type: { - name: "String" - } - }, - startTime: { - serializedName: "startTime", - nullable: true, - type: { - name: "String" - } - }, - timeZone: { - defaultValue: "UTC", - serializedName: "timeZone", + nextLink: { + serializedName: "nextLink", 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: { name: "Sequence", element: { type: { name: "Composite", - className: "AmlUserFeature" + className: "ServerlessEndpoint" } } } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } } } } }; -export const AmlUserFeature: coreClient.CompositeMapper = { +export const ServerlessEndpointProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlUserFeature", + className: "ServerlessEndpointProperties", modelProperties: { - id: { - serializedName: "id", + inferenceUri: { + serializedName: "inferenceUri", + readOnly: true, + nullable: true, type: { name: "String" } }, - displayName: { - serializedName: "displayName", + modelProfile: { + serializedName: "modelProfile", type: { - name: "String" + name: "Composite", + className: "ModelProfile" } }, - description: { - serializedName: "description", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } @@ -3736,13 +4385,17 @@ export const AmlUserFeature: coreClient.CompositeMapper = { } }; -export const ResourceId: coreClient.CompositeMapper = { +export const ModelProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceId", + className: "ModelProfile", modelProperties: { - id: { - serializedName: "id", + modelUri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "modelUri", required: true, type: { name: "String" @@ -3752,96 +4405,113 @@ export const ResourceId: coreClient.CompositeMapper = { } }; -export const AKSSchema: coreClient.CompositeMapper = { +export const RegistryTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AKSSchema", + className: "RegistryTrackedResourceArmPaginatedResult", modelProperties: { - properties: { - serializedName: "properties", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "AKSSchemaProperties" + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Registry" + } + } } } } } }; -export const AKSSchemaProperties: coreClient.CompositeMapper = { +export const ArmResourceId: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AKSSchemaProperties", + className: "ArmResourceId", modelProperties: { - clusterFqdn: { - serializedName: "clusterFqdn", + resourceId: { + serializedName: "resourceId", nullable: true, type: { name: "String" } - }, - systemServices: { - serializedName: "systemServices", - readOnly: true, - nullable: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SystemService" - } - } - } - }, - agentCount: { - constraints: { - InclusiveMinimum: 0 - }, - serializedName: "agentCount", + } + } + } +}; + +export const RegistryPrivateEndpointConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryPrivateEndpointConnection", + modelProperties: { + id: { + serializedName: "id", nullable: true, type: { - name: "Number" + name: "String" } }, - agentVmSize: { - serializedName: "agentVmSize", + location: { + serializedName: "location", nullable: true, type: { name: "String" } }, - clusterPurpose: { - defaultValue: "FastProd", - serializedName: "clusterPurpose", + groupIds: { + serializedName: "properties.groupIds", + nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - sslConfiguration: { - serializedName: "sslConfiguration", + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "SslConfiguration" + className: "PrivateEndpointResource" } }, - aksNetworkingConfiguration: { - serializedName: "aksNetworkingConfiguration", + registryPrivateLinkServiceConnectionState: { + serializedName: "properties.registryPrivateLinkServiceConnectionState", type: { name: "Composite", - className: "AksNetworkingConfiguration" + className: "RegistryPrivateLinkServiceConnectionState" } }, - loadBalancerType: { - defaultValue: "PublicIp", - serializedName: "loadBalancerType", + provisioningState: { + serializedName: "properties.provisioningState", + nullable: true, type: { name: "String" } - }, - loadBalancerSubnet: { - serializedName: "loadBalancerSubnet", - nullable: true, + } + } + } +}; + +export const PrivateEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpoint", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } @@ -3850,28 +4520,27 @@ export const AKSSchemaProperties: coreClient.CompositeMapper = { } }; -export const SystemService: coreClient.CompositeMapper = { +export const RegistryPrivateLinkServiceConnectionState: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemService", + className: "RegistryPrivateLinkServiceConnectionState", modelProperties: { - systemServiceType: { - serializedName: "systemServiceType", - readOnly: true, + actionsRequired: { + serializedName: "actionsRequired", + nullable: true, type: { name: "String" } }, - publicIpAddress: { - serializedName: "publicIpAddress", - readOnly: true, + description: { + serializedName: "description", + nullable: true, type: { name: "String" } }, - version: { - serializedName: "version", - readOnly: true, + status: { + serializedName: "status", type: { name: "String" } @@ -3880,374 +4549,454 @@ export const SystemService: coreClient.CompositeMapper = { } }; -export const SslConfiguration: coreClient.CompositeMapper = { +export const RegistryRegionArmDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SslConfiguration", + className: "RegistryRegionArmDetails", modelProperties: { - status: { - serializedName: "status", - type: { - name: "String" - } - }, - cert: { - serializedName: "cert", + acrDetails: { + serializedName: "acrDetails", nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AcrDetails" + } + } } }, - key: { - serializedName: "key", + location: { + serializedName: "location", nullable: true, type: { name: "String" } }, - cname: { - serializedName: "cname", + storageAccountDetails: { + serializedName: "storageAccountDetails", nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageAccountDetails" + } + } } - }, - leafDomainLabel: { - serializedName: "leafDomainLabel", - nullable: true, + } + } + } +}; + +export const AcrDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AcrDetails", + modelProperties: { + systemCreatedAcrAccount: { + serializedName: "systemCreatedAcrAccount", type: { - name: "String" + name: "Composite", + className: "SystemCreatedAcrAccount" } }, - overwriteExistingDomain: { - serializedName: "overwriteExistingDomain", + userCreatedAcrAccount: { + serializedName: "userCreatedAcrAccount", type: { - name: "Boolean" + name: "Composite", + className: "UserCreatedAcrAccount" } } } } }; -export const AksNetworkingConfiguration: coreClient.CompositeMapper = { +export const SystemCreatedAcrAccount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AksNetworkingConfiguration", + className: "SystemCreatedAcrAccount", modelProperties: { - subnetId: { - serializedName: "subnetId", + acrAccountName: { + serializedName: "acrAccountName", + nullable: true, type: { name: "String" } }, - serviceCidr: { - constraints: { - Pattern: new RegExp( - "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$" - ) - }, - serializedName: "serviceCidr", - type: { - name: "String" - } - }, - dnsServiceIP: { - constraints: { - Pattern: new RegExp( - "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$" - ) - }, - serializedName: "dnsServiceIP", + acrAccountSku: { + serializedName: "acrAccountSku", + nullable: true, type: { name: "String" } }, - dockerBridgeCidr: { - constraints: { - Pattern: new RegExp( - "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$" - ) - }, - serializedName: "dockerBridgeCidr", + armResourceId: { + serializedName: "armResourceId", type: { - name: "String" + name: "Composite", + className: "ArmResourceId" } } } } }; -export const KubernetesSchema: coreClient.CompositeMapper = { +export const UserCreatedAcrAccount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KubernetesSchema", + className: "UserCreatedAcrAccount", modelProperties: { - properties: { - serializedName: "properties", + armResourceId: { + serializedName: "armResourceId", type: { name: "Composite", - className: "KubernetesProperties" + className: "ArmResourceId" } } } } }; -export const KubernetesProperties: coreClient.CompositeMapper = { +export const StorageAccountDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KubernetesProperties", + className: "StorageAccountDetails", modelProperties: { - relayConnectionString: { - serializedName: "relayConnectionString", - nullable: true, + systemCreatedStorageAccount: { + serializedName: "systemCreatedStorageAccount", type: { - name: "String" + name: "Composite", + className: "SystemCreatedStorageAccount" } }, - serviceBusConnectionString: { - serializedName: "serviceBusConnectionString", - nullable: true, + userCreatedStorageAccount: { + serializedName: "userCreatedStorageAccount", type: { - name: "String" + name: "Composite", + className: "UserCreatedStorageAccount" } - }, - extensionPrincipalId: { - serializedName: "extensionPrincipalId", - nullable: true, + } + } + } +}; + +export const SystemCreatedStorageAccount: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SystemCreatedStorageAccount", + modelProperties: { + allowBlobPublicAccess: { + serializedName: "allowBlobPublicAccess", type: { - name: "String" + name: "Boolean" } }, - extensionInstanceReleaseTrain: { - serializedName: "extensionInstanceReleaseTrain", + armResourceId: { + serializedName: "armResourceId", type: { - name: "String" + name: "Composite", + className: "ArmResourceId" } }, - vcName: { - serializedName: "vcName", + storageAccountHnsEnabled: { + serializedName: "storageAccountHnsEnabled", type: { - name: "String" + name: "Boolean" } }, - namespace: { - defaultValue: "default", - serializedName: "namespace", + storageAccountName: { + serializedName: "storageAccountName", + nullable: true, type: { name: "String" } }, - defaultInstanceType: { - serializedName: "defaultInstanceType", + storageAccountType: { + serializedName: "storageAccountType", + nullable: true, type: { name: "String" } - }, - instanceTypes: { - serializedName: "instanceTypes", + } + } + } +}; + +export const UserCreatedStorageAccount: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserCreatedStorageAccount", + modelProperties: { + armResourceId: { + serializedName: "armResourceId", type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "InstanceTypeSchema" } - } + name: "Composite", + className: "ArmResourceId" } } } } }; -export const InstanceTypeSchema: coreClient.CompositeMapper = { +export const PartialRegistryPartialTrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceTypeSchema", + className: "PartialRegistryPartialTrackedResource", modelProperties: { - nodeSelector: { - serializedName: "nodeSelector", - nullable: true, + identity: { + serializedName: "identity", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "RegistryPartialManagedServiceIdentity" } }, - resources: { - serializedName: "resources", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "InstanceTypeSchemaResources" + className: "PartialSku" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const InstanceTypeSchemaResources: coreClient.CompositeMapper = { +export const ListAmlUserFeatureResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceTypeSchemaResources", + className: "ListAmlUserFeatureResult", modelProperties: { - requests: { - serializedName: "requests", + value: { + serializedName: "value", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AmlUserFeature" + } + } } }, - limits: { - serializedName: "limits", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } } } } }; -export const AmlComputeProperties: coreClient.CompositeMapper = { +export const AmlUserFeature: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeProperties", + className: "AmlUserFeature", modelProperties: { - osType: { - defaultValue: "Linux", - serializedName: "osType", + id: { + serializedName: "id", type: { name: "String" } }, - vmSize: { - serializedName: "vmSize", + displayName: { + serializedName: "displayName", type: { name: "String" } }, - vmPriority: { - serializedName: "vmPriority", + description: { + serializedName: "description", type: { name: "String" } - }, - virtualMachineImage: { - serializedName: "virtualMachineImage", + } + } + } +}; + +export const AmlOperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlOperationListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "Composite", - className: "VirtualMachineImage" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AmlOperation" + } + } } - }, - isolatedNetwork: { - serializedName: "isolatedNetwork", + } + } + } +}; + +export const AmlOperation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlOperation", + modelProperties: { + display: { + serializedName: "display", type: { - name: "Boolean" + name: "Composite", + className: "OperationDisplay" } }, - scaleSettings: { - serializedName: "scaleSettings", + isDataAction: { + serializedName: "isDataAction", type: { - name: "Composite", - className: "ScaleSettings" + name: "Boolean" } }, - userAccountCredentials: { - serializedName: "userAccountCredentials", + name: { + serializedName: "name", type: { - name: "Composite", - className: "UserAccountCredentials" + name: "String" } }, - subnet: { - serializedName: "subnet", + origin: { + serializedName: "origin", type: { - name: "Composite", - className: "ResourceId" + name: "String" } - }, - remoteLoginPortPublicAccess: { - defaultValue: "NotSpecified", - serializedName: "remoteLoginPortPublicAccess", + } + } + } +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + description: { + serializedName: "description", type: { name: "String" } }, - allocationState: { - serializedName: "allocationState", - readOnly: true, + operation: { + serializedName: "operation", type: { name: "String" } }, - allocationStateTransitionTime: { - serializedName: "allocationStateTransitionTime", - readOnly: true, + provider: { + serializedName: "provider", type: { - name: "DateTime" + name: "String" } }, - errors: { - serializedName: "errors", - readOnly: true, - nullable: true, + resource: { + serializedName: "resource", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorResponse" - } - } + name: "String" + } + } + } + } +}; + +export const WorkspaceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceListResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" } }, - currentNodeCount: { - serializedName: "currentNodeCount", - readOnly: true, - nullable: true, + value: { + serializedName: "value", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Workspace" + } + } + } + } + } + } +}; + +export const EncryptionProperty: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EncryptionProperty", + modelProperties: { + cosmosDbResourceId: { + serializedName: "cosmosDbResourceId", + type: { + name: "String" } }, - targetNodeCount: { - serializedName: "targetNodeCount", - readOnly: true, - nullable: true, + identity: { + serializedName: "identity", type: { - name: "Number" + name: "Composite", + className: "IdentityForCmk" } }, - nodeStateCounts: { - serializedName: "nodeStateCounts", + keyVaultProperties: { + serializedName: "keyVaultProperties", type: { name: "Composite", - className: "NodeStateCounts" + className: "KeyVaultProperties" } }, - enableNodePublicIp: { - defaultValue: true, - serializedName: "enableNodePublicIp", - nullable: true, + searchAccountResourceId: { + serializedName: "searchAccountResourceId", type: { - name: "Boolean" + name: "String" } }, - propertyBag: { - serializedName: "propertyBag", - nullable: true, + status: { + serializedName: "status", + required: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" + } + }, + storageAccountResourceId: { + serializedName: "storageAccountResourceId", + type: { + name: "String" } } } } }; -export const VirtualMachineImage: coreClient.CompositeMapper = { +export const IdentityForCmk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineImage", + className: "IdentityForCmk", modelProperties: { - id: { - serializedName: "id", - required: true, + userAssignedIdentity: { + serializedName: "userAssignedIdentity", type: { name: "String" } @@ -4256,26 +5005,35 @@ export const VirtualMachineImage: coreClient.CompositeMapper = { } }; -export const UserAccountCredentials: coreClient.CompositeMapper = { +export const KeyVaultProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserAccountCredentials", + className: "KeyVaultProperties", modelProperties: { - adminUserName: { - serializedName: "adminUserName", - required: true, + identityClientId: { + serializedName: "identityClientId", type: { name: "String" } }, - adminUserSshPublicKey: { - serializedName: "adminUserSshPublicKey", + keyIdentifier: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "keyIdentifier", + required: true, type: { name: "String" } }, - adminUserPassword: { - serializedName: "adminUserPassword", + keyVaultArmId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "keyVaultArmId", + required: true, type: { name: "String" } @@ -4284,300 +5042,210 @@ export const UserAccountCredentials: coreClient.CompositeMapper = { } }; -export const NodeStateCounts: coreClient.CompositeMapper = { +export const FeatureStoreSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NodeStateCounts", + className: "FeatureStoreSettings", modelProperties: { - idleNodeCount: { - serializedName: "idleNodeCount", - readOnly: true, - type: { - name: "Number" - } - }, - runningNodeCount: { - serializedName: "runningNodeCount", - readOnly: true, - type: { - name: "Number" - } - }, - preparingNodeCount: { - serializedName: "preparingNodeCount", - readOnly: true, + computeRuntime: { + serializedName: "computeRuntime", type: { - name: "Number" - } - }, - unusableNodeCount: { - serializedName: "unusableNodeCount", - readOnly: true, - type: { - name: "Number" + name: "Composite", + className: "ComputeRuntimeDto" } }, - leavingNodeCount: { - serializedName: "leavingNodeCount", - readOnly: true, + offlineStoreConnectionName: { + serializedName: "offlineStoreConnectionName", type: { - name: "Number" + name: "String" } }, - preemptedNodeCount: { - serializedName: "preemptedNodeCount", - readOnly: true, + onlineStoreConnectionName: { + serializedName: "onlineStoreConnectionName", type: { - name: "Number" + name: "String" } } } } }; -export const AmlComputeSchema: coreClient.CompositeMapper = { +export const ComputeRuntimeDto: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeSchema", + className: "ComputeRuntimeDto", modelProperties: { - properties: { - serializedName: "properties", + sparkRuntimeVersion: { + serializedName: "sparkRuntimeVersion", type: { - name: "Composite", - className: "AmlComputeProperties" + name: "String" } } } } }; -export const ComputeInstanceProperties: coreClient.CompositeMapper = { +export const ManagedNetworkSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceProperties", + className: "ManagedNetworkSettings", modelProperties: { - vmSize: { - serializedName: "vmSize", + isolationMode: { + serializedName: "isolationMode", type: { name: "String" } }, - subnet: { - serializedName: "subnet", + networkId: { + serializedName: "networkId", + readOnly: true, type: { - name: "Composite", - className: "ResourceId" + name: "String" } }, - applicationSharingPolicy: { - defaultValue: "Shared", - serializedName: "applicationSharingPolicy", + outboundRules: { + serializedName: "outboundRules", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "Composite", className: "OutboundRule" } } } }, - sshSettings: { - serializedName: "sshSettings", + status: { + serializedName: "status", type: { name: "Composite", - className: "ComputeInstanceSshSettings" + className: "ManagedNetworkProvisionStatus" } - }, - connectivityEndpoints: { - serializedName: "connectivityEndpoints", + } + } + } +}; + +export const OutboundRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OutboundRule", + uberParent: "OutboundRule", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + modelProperties: { + category: { + serializedName: "category", type: { - name: "Composite", - className: "ComputeInstanceConnectivityEndpoints" + name: "String" } }, - applications: { - serializedName: "applications", - readOnly: true, + status: { + serializedName: "status", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeInstanceApplication" - } - } + name: "String" } }, - createdBy: { - serializedName: "createdBy", + type: { + serializedName: "type", + required: true, type: { - name: "Composite", - className: "ComputeInstanceCreatedBy" + name: "String" } - }, - errors: { - serializedName: "errors", - readOnly: true, + } + } + } +}; + +export const ManagedNetworkProvisionStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedNetworkProvisionStatus", + modelProperties: { + sparkReady: { + serializedName: "sparkReady", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorResponse" - } - } + name: "Boolean" } }, - state: { - serializedName: "state", - readOnly: true, + status: { + serializedName: "status", type: { name: "String" } - }, - computeInstanceAuthorizationType: { - defaultValue: "personal", - serializedName: "computeInstanceAuthorizationType", - nullable: true, + } + } + } +}; + +export const NotebookResourceInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NotebookResourceInfo", + modelProperties: { + fqdn: { + serializedName: "fqdn", type: { name: "String" } }, - personalComputeInstanceSettings: { - serializedName: "personalComputeInstanceSettings", - type: { - name: "Composite", - className: "PersonalComputeInstanceSettings" - } - }, - setupScripts: { - serializedName: "setupScripts", - type: { - name: "Composite", - className: "SetupScripts" - } - }, - lastOperation: { - serializedName: "lastOperation", - type: { - name: "Composite", - className: "ComputeInstanceLastOperation" - } - }, - schedules: { - serializedName: "schedules", - type: { - name: "Composite", - className: "ComputeSchedules" - } - }, - enableNodePublicIp: { - serializedName: "enableNodePublicIp", + isPrivateLinkEnabled: { + serializedName: "isPrivateLinkEnabled", type: { name: "Boolean" } }, - containers: { - serializedName: "containers", - readOnly: true, - nullable: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeInstanceContainer" - } - } - } - }, - dataDisks: { - serializedName: "dataDisks", - readOnly: true, - nullable: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeInstanceDataDisk" - } - } - } - }, - dataMounts: { - serializedName: "dataMounts", - readOnly: true, - nullable: true, + notebookPreparationError: { + serializedName: "notebookPreparationError", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeInstanceDataMount" - } - } + name: "Composite", + className: "NotebookPreparationError" } }, - versions: { - serializedName: "versions", + resourceId: { + serializedName: "resourceId", type: { - name: "Composite", - className: "ComputeInstanceVersion" + name: "String" } } } } }; -export const ComputeInstanceSshSettings: coreClient.CompositeMapper = { +export const NotebookPreparationError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceSshSettings", + className: "NotebookPreparationError", modelProperties: { - sshPublicAccess: { - defaultValue: "Disabled", - serializedName: "sshPublicAccess", - type: { - name: "String" - } - }, - adminUserName: { - serializedName: "adminUserName", - readOnly: true, + errorMessage: { + serializedName: "errorMessage", type: { name: "String" } }, - sshPort: { - serializedName: "sshPort", - readOnly: true, + statusCode: { + serializedName: "statusCode", type: { name: "Number" } - }, - adminPublicKey: { - serializedName: "adminPublicKey", - type: { - name: "String" - } } } } }; -export const ComputeInstanceConnectivityEndpoints: coreClient.CompositeMapper = { +export const WorkspacePrivateEndpointResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceConnectivityEndpoints", + className: "WorkspacePrivateEndpointResource", modelProperties: { - publicIpAddress: { - serializedName: "publicIpAddress", + id: { + serializedName: "id", readOnly: true, - nullable: true, type: { name: "String" } }, - privateIpAddress: { - serializedName: "privateIpAddress", + subnetArmId: { + serializedName: "subnetArmId", readOnly: true, - nullable: true, type: { name: "String" } @@ -4586,19 +5254,25 @@ export const ComputeInstanceConnectivityEndpoints: coreClient.CompositeMapper = } }; -export const ComputeInstanceApplication: coreClient.CompositeMapper = { +export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceApplication", + className: "PrivateLinkServiceConnectionState", modelProperties: { - displayName: { - serializedName: "displayName", + actionsRequired: { + serializedName: "actionsRequired", type: { name: "String" } }, - endpointUri: { - serializedName: "endpointUri", + description: { + serializedName: "description", + type: { + name: "String" + } + }, + status: { + serializedName: "status", type: { name: "String" } @@ -4607,641 +5281,588 @@ export const ComputeInstanceApplication: coreClient.CompositeMapper = { } }; -export const ComputeInstanceCreatedBy: coreClient.CompositeMapper = { +export const ServiceManagedResourcesSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceCreatedBy", + className: "ServiceManagedResourcesSettings", modelProperties: { - userName: { - serializedName: "userName", - readOnly: true, - nullable: true, - type: { - name: "String" - } - }, - userOrgId: { - serializedName: "userOrgId", - readOnly: true, - type: { - name: "String" - } - }, - userId: { - serializedName: "userId", - readOnly: true, - nullable: true, + cosmosDb: { + serializedName: "cosmosDb", type: { - name: "String" + name: "Composite", + className: "CosmosDbSettings" } } } } }; -export const PersonalComputeInstanceSettings: coreClient.CompositeMapper = { +export const CosmosDbSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PersonalComputeInstanceSettings", + className: "CosmosDbSettings", modelProperties: { - assignedUser: { - serializedName: "assignedUser", + collectionsThroughput: { + serializedName: "collectionsThroughput", type: { - name: "Composite", - className: "AssignedUser" + name: "Number" } } } } }; -export const AssignedUser: coreClient.CompositeMapper = { +export const SharedPrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssignedUser", + className: "SharedPrivateLinkResource", modelProperties: { - objectId: { - serializedName: "objectId", - required: true, + name: { + serializedName: "name", type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", - required: true, + groupId: { + serializedName: "properties.groupId", type: { name: "String" } - } - } - } -}; - -export const SetupScripts: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SetupScripts", - modelProperties: { - scripts: { - serializedName: "scripts", + }, + privateLinkResourceId: { + serializedName: "properties.privateLinkResourceId", type: { - name: "Composite", - className: "ScriptsToExecute" + name: "String" + } + }, + requestMessage: { + serializedName: "properties.requestMessage", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + type: { + name: "String" } } } } }; -export const ScriptsToExecute: coreClient.CompositeMapper = { +export const WorkspaceHubConfig: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScriptsToExecute", + className: "WorkspaceHubConfig", modelProperties: { - startupScript: { - serializedName: "startupScript", + additionalWorkspaceStorageAccounts: { + serializedName: "additionalWorkspaceStorageAccounts", type: { - name: "Composite", - className: "ScriptReference" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - creationScript: { - serializedName: "creationScript", + defaultWorkspaceResourceGroup: { + serializedName: "defaultWorkspaceResourceGroup", type: { - name: "Composite", - className: "ScriptReference" + name: "String" } } } } }; -export const ScriptReference: coreClient.CompositeMapper = { +export const WorkspaceUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScriptReference", + className: "WorkspaceUpdateParameters", modelProperties: { - scriptSource: { - serializedName: "scriptSource", + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "ManagedServiceIdentity" } }, - scriptData: { - serializedName: "scriptData", + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - scriptArguments: { - serializedName: "scriptArguments", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - timeout: { - serializedName: "timeout", + applicationInsights: { + serializedName: "properties.applicationInsights", type: { name: "String" } - } - } - } -}; - -export const ComputeInstanceLastOperation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeInstanceLastOperation", - modelProperties: { - operationName: { - serializedName: "operationName", + }, + containerRegistry: { + serializedName: "properties.containerRegistry", type: { name: "String" } }, - operationTime: { - serializedName: "operationTime", + description: { + serializedName: "properties.description", type: { - name: "DateTime" + name: "String" } }, - operationStatus: { - serializedName: "operationStatus", + enableDataIsolation: { + serializedName: "properties.enableDataIsolation", type: { - name: "String" + name: "Boolean" } }, - operationTrigger: { - serializedName: "operationTrigger", + encryption: { + serializedName: "properties.encryption", type: { - name: "String" + name: "Composite", + className: "EncryptionUpdateProperties" } - } - } - } -}; - -export const ComputeSchedules: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeSchedules", - modelProperties: { - computeStartStop: { - serializedName: "computeStartStop", + }, + featureStoreSettings: { + serializedName: "properties.featureStoreSettings", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeStartStopSchedule" - } - } + name: "Composite", + className: "FeatureStoreSettings" } - } - } - } -}; - -export const ComputeStartStopSchedule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeStartStopSchedule", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - nullable: true, + }, + friendlyName: { + serializedName: "properties.friendlyName", type: { name: "String" } }, - provisioningStatus: { - serializedName: "provisioningStatus", - readOnly: true, + imageBuildCompute: { + serializedName: "properties.imageBuildCompute", type: { name: "String" } }, - status: { - serializedName: "status", + managedNetwork: { + serializedName: "properties.managedNetwork", type: { - name: "String" + name: "Composite", + className: "ManagedNetworkSettings" } }, - action: { - serializedName: "action", + primaryUserAssignedIdentity: { + serializedName: "properties.primaryUserAssignedIdentity", type: { name: "String" } }, - triggerType: { - serializedName: "triggerType", + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { name: "String" } }, - recurrence: { - serializedName: "recurrence", + serviceManagedResourcesSettings: { + serializedName: "properties.serviceManagedResourcesSettings", type: { name: "Composite", - className: "RecurrenceTrigger" + className: "ServiceManagedResourcesSettings" } }, - cron: { - serializedName: "cron", + softDeleteRetentionInDays: { + serializedName: "properties.softDeleteRetentionInDays", type: { - name: "Composite", - className: "CronTrigger" + name: "Number" } }, - schedule: { - serializedName: "schedule", + v1LegacyMode: { + serializedName: "properties.v1LegacyMode", type: { - name: "Composite", - className: "ScheduleBase" + name: "Boolean" } } } } }; -export const RecurrenceSchedule: coreClient.CompositeMapper = { +export const EncryptionUpdateProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecurrenceSchedule", + className: "EncryptionUpdateProperties", 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" - } - } - } - }, - monthDays: { - serializedName: "monthDays", - nullable: true, - type: { - name: "Sequence", - element: { - type: { - name: "Number" - } - } - } - }, - weekDays: { - serializedName: "weekDays", - nullable: true, + keyVaultProperties: { + serializedName: "keyVaultProperties", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "EncryptionKeyVaultUpdateProperties" } } } } }; -export const ScheduleBase: coreClient.CompositeMapper = { +export const EncryptionKeyVaultUpdateProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScheduleBase", + className: "EncryptionKeyVaultUpdateProperties", modelProperties: { - id: { - serializedName: "id", - nullable: true, + keyIdentifier: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "keyIdentifier", + required: true, type: { name: "String" } - }, - provisioningStatus: { - serializedName: "provisioningStatus", + } + } + } +}; + +export const WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - status: { - serializedName: "status", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceConnectionPropertiesV2BasicResource" + } + } } } } } }; -export const ComputeInstanceContainer: coreClient.CompositeMapper = { +export const WorkspaceConnectionPropertiesV2: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceContainer", + className: "WorkspaceConnectionPropertiesV2", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: { + serializedName: "authType", + clientName: "authType" + }, modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - autosave: { - serializedName: "autosave", + authType: { + serializedName: "authType", + required: true, type: { name: "String" } }, - gpu: { - serializedName: "gpu", + category: { + serializedName: "category", type: { name: "String" } }, - network: { - serializedName: "network", + expiryTime: { + serializedName: "expiryTime", type: { - name: "String" + name: "DateTime" } }, - environment: { - serializedName: "environment", + metadata: { + serializedName: "metadata", type: { - name: "Composite", - className: "ComputeInstanceEnvironmentInfo" + name: "Dictionary", + value: { type: { name: "any" } } } }, - services: { - serializedName: "services", - readOnly: true, + target: { + serializedName: "target", type: { - name: "Sequence", - element: { - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } + name: "String" } } } } }; -export const ComputeInstanceEnvironmentInfo: coreClient.CompositeMapper = { +export const WorkspaceConnectionUpdateParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceEnvironmentInfo", + className: "WorkspaceConnectionUpdateParameter", modelProperties: { - name: { - serializedName: "name", + properties: { + serializedName: "properties", type: { - name: "String" - } - }, - version: { - serializedName: "version", - type: { - name: "String" + name: "Composite", + className: "WorkspaceConnectionPropertiesV2" } } } } }; -export const ComputeInstanceDataDisk: coreClient.CompositeMapper = { +export const DiagnoseWorkspaceParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceDataDisk", + className: "DiagnoseWorkspaceParameters", modelProperties: { - caching: { - serializedName: "caching", - type: { - name: "String" - } - }, - diskSizeGB: { - serializedName: "diskSizeGB", - type: { - name: "Number" - } - }, - lun: { - serializedName: "lun", - type: { - name: "Number" - } - }, - storageAccountType: { - defaultValue: "Standard_LRS", - serializedName: "storageAccountType", + value: { + serializedName: "value", type: { - name: "String" + name: "Composite", + className: "DiagnoseRequestProperties" } } } } }; -export const ComputeInstanceDataMount: coreClient.CompositeMapper = { +export const DiagnoseRequestProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceDataMount", + className: "DiagnoseRequestProperties", modelProperties: { - source: { - serializedName: "source", + applicationInsights: { + serializedName: "applicationInsights", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - sourceType: { - serializedName: "sourceType", + containerRegistry: { + serializedName: "containerRegistry", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - mountName: { - serializedName: "mountName", + dnsResolution: { + serializedName: "dnsResolution", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - mountAction: { - serializedName: "mountAction", + keyVault: { + serializedName: "keyVault", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - createdBy: { - serializedName: "createdBy", + nsg: { + serializedName: "nsg", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - mountPath: { - serializedName: "mountPath", + others: { + serializedName: "others", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - mountState: { - serializedName: "mountState", + resourceLock: { + serializedName: "resourceLock", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - mountedOn: { - serializedName: "mountedOn", + storageAccount: { + serializedName: "storageAccount", type: { - name: "DateTime" + name: "Dictionary", + value: { type: { name: "any" } } } }, - error: { - serializedName: "error", + udr: { + serializedName: "udr", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const ComputeInstanceVersion: coreClient.CompositeMapper = { +export const DiagnoseResponseResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceVersion", + className: "DiagnoseResponseResult", modelProperties: { - runtime: { - serializedName: "runtime", - nullable: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Composite", + className: "DiagnoseResponseResultValue" } } } } }; -export const ComputeInstanceSchema: coreClient.CompositeMapper = { +export const DiagnoseResponseResultValue: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceSchema", + className: "DiagnoseResponseResultValue", modelProperties: { - properties: { - serializedName: "properties", + userDefinedRouteResults: { + serializedName: "userDefinedRouteResults", type: { - name: "Composite", - className: "ComputeInstanceProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } - } - } - } -}; - -export const VirtualMachineSchema: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineSchema", - modelProperties: { - properties: { - serializedName: "properties", + }, + networkSecurityRuleResults: { + serializedName: "networkSecurityRuleResults", type: { - name: "Composite", - className: "VirtualMachineSchemaProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } - } - } - } -}; - -export const VirtualMachineSchemaProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineSchemaProperties", - modelProperties: { - virtualMachineSize: { - serializedName: "virtualMachineSize", + }, + resourceLockResults: { + serializedName: "resourceLockResults", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - sshPort: { - serializedName: "sshPort", + dnsResolutionResults: { + serializedName: "dnsResolutionResults", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - notebookServerPort: { - serializedName: "notebookServerPort", + storageAccountResults: { + serializedName: "storageAccountResults", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - address: { - serializedName: "address", + keyVaultResults: { + serializedName: "keyVaultResults", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - administratorAccount: { - serializedName: "administratorAccount", + containerRegistryResults: { + serializedName: "containerRegistryResults", type: { - name: "Composite", - className: "VirtualMachineSshCredentials" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - isNotebookInstanceCompute: { - serializedName: "isNotebookInstanceCompute", + applicationInsightsResults: { + serializedName: "applicationInsightsResults", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } + } + }, + otherResults: { + serializedName: "otherResults", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } } } } }; -export const VirtualMachineSshCredentials: coreClient.CompositeMapper = { +export const DiagnoseResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSshCredentials", + className: "DiagnoseResult", modelProperties: { - username: { - serializedName: "username", - type: { - name: "String" - } - }, - password: { - serializedName: "password", + code: { + serializedName: "code", + readOnly: true, type: { name: "String" } }, - publicKeyData: { - serializedName: "publicKeyData", + level: { + serializedName: "level", + readOnly: true, type: { name: "String" } }, - privateKeyData: { - serializedName: "privateKeyData", + message: { + serializedName: "message", + readOnly: true, type: { name: "String" } @@ -5250,63 +5871,77 @@ export const VirtualMachineSshCredentials: coreClient.CompositeMapper = { } }; -export const HDInsightProperties: coreClient.CompositeMapper = { +export const ListWorkspaceKeysResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HDInsightProperties", + className: "ListWorkspaceKeysResult", modelProperties: { - sshPort: { - serializedName: "sshPort", + appInsightsInstrumentationKey: { + serializedName: "appInsightsInstrumentationKey", + readOnly: true, type: { - name: "Number" + name: "String" } }, - address: { - serializedName: "address", + containerRegistryCredentials: { + serializedName: "containerRegistryCredentials", type: { - name: "String" + name: "Composite", + className: "RegistryListCredentialsResult" } }, - administratorAccount: { - serializedName: "administratorAccount", + notebookAccessKeys: { + serializedName: "notebookAccessKeys", type: { name: "Composite", - className: "VirtualMachineSshCredentials" + className: "ListNotebookKeysResult" } - } - } - } -}; - -export const HDInsightSchema: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "HDInsightSchema", - modelProperties: { - properties: { - serializedName: "properties", + }, + userStorageArmId: { + serializedName: "userStorageArmId", + readOnly: true, type: { - name: "Composite", - className: "HDInsightProperties" + name: "String" + } + }, + userStorageKey: { + serializedName: "userStorageKey", + readOnly: true, + type: { + name: "String" } } } } }; -export const DatabricksProperties: coreClient.CompositeMapper = { +export const RegistryListCredentialsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabricksProperties", + className: "RegistryListCredentialsResult", modelProperties: { - databricksAccessToken: { - serializedName: "databricksAccessToken", + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, - workspaceUrl: { - serializedName: "workspaceUrl", + passwords: { + serializedName: "passwords", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Password" + } + } + } + }, + username: { + serializedName: "username", + readOnly: true, type: { name: "String" } @@ -5315,45 +5950,44 @@ export const DatabricksProperties: coreClient.CompositeMapper = { } }; -export const DatabricksSchema: coreClient.CompositeMapper = { +export const Password: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabricksSchema", + className: "Password", modelProperties: { - properties: { - serializedName: "properties", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Composite", - className: "DatabricksProperties" + name: "String" } - } - } - } -}; - -export const DataLakeAnalyticsSchema: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataLakeAnalyticsSchema", - modelProperties: { - properties: { - serializedName: "properties", + }, + value: { + serializedName: "value", + readOnly: true, type: { - name: "Composite", - className: "DataLakeAnalyticsSchemaProperties" + name: "String" } } } } }; -export const DataLakeAnalyticsSchemaProperties: coreClient.CompositeMapper = { +export const ListNotebookKeysResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataLakeAnalyticsSchemaProperties", + className: "ListNotebookKeysResult", modelProperties: { - dataLakeStoreAccountName: { - serializedName: "dataLakeStoreAccountName", + primaryAccessKey: { + serializedName: "primaryAccessKey", + readOnly: true, + type: { + name: "String" + } + }, + secondaryAccessKey: { + serializedName: "secondaryAccessKey", + readOnly: true, type: { name: "String" } @@ -5362,69 +5996,63 @@ export const DataLakeAnalyticsSchemaProperties: coreClient.CompositeMapper = { } }; -export const SynapseSparkProperties: coreClient.CompositeMapper = { +export const NotebookAccessTokenResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SynapseSparkProperties", + className: "NotebookAccessTokenResult", modelProperties: { - autoScaleProperties: { - serializedName: "autoScaleProperties", - type: { - name: "Composite", - className: "AutoScaleProperties" - } - }, - autoPauseProperties: { - serializedName: "autoPauseProperties", - type: { - name: "Composite", - className: "AutoPauseProperties" - } - }, - sparkVersion: { - serializedName: "sparkVersion", + accessToken: { + serializedName: "accessToken", + readOnly: true, type: { name: "String" } }, - nodeCount: { - serializedName: "nodeCount", + expiresIn: { + serializedName: "expiresIn", + readOnly: true, type: { name: "Number" } }, - nodeSize: { - serializedName: "nodeSize", + hostName: { + serializedName: "hostName", + readOnly: true, type: { name: "String" } }, - nodeSizeFamily: { - serializedName: "nodeSizeFamily", + notebookResourceId: { + serializedName: "notebookResourceId", + readOnly: true, type: { name: "String" } }, - subscriptionId: { - serializedName: "subscriptionId", + publicDns: { + serializedName: "publicDns", + readOnly: true, type: { name: "String" } }, - resourceGroup: { - serializedName: "resourceGroup", + refreshToken: { + serializedName: "refreshToken", + readOnly: true, type: { name: "String" } }, - workspaceName: { - serializedName: "workspaceName", + scope: { + serializedName: "scope", + readOnly: true, type: { name: "String" } }, - poolName: { - serializedName: "poolName", + tokenType: { + serializedName: "tokenType", + readOnly: true, type: { name: "String" } @@ -5433,244 +6061,219 @@ export const SynapseSparkProperties: coreClient.CompositeMapper = { } }; -export const AutoScaleProperties: coreClient.CompositeMapper = { +export const ListStorageAccountKeysResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoScaleProperties", + className: "ListStorageAccountKeysResult", modelProperties: { - minNodeCount: { - serializedName: "minNodeCount", - type: { - name: "Number" - } - }, - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - }, - maxNodeCount: { - serializedName: "maxNodeCount", + userStorageKey: { + serializedName: "userStorageKey", + readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const AutoPauseProperties: coreClient.CompositeMapper = { +export const ExternalFqdnResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoPauseProperties", + className: "ExternalFqdnResponse", modelProperties: { - delayInMinutes: { - serializedName: "delayInMinutes", - type: { - name: "Number" - } - }, - enabled: { - serializedName: "enabled", + value: { + serializedName: "value", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FqdnEndpointsPropertyBag" + } + } } } } } }; -export const AksComputeSecretsProperties: coreClient.CompositeMapper = { +export const FqdnEndpointsPropertyBag: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AksComputeSecretsProperties", + className: "FqdnEndpointsPropertyBag", modelProperties: { - userKubeConfig: { - serializedName: "userKubeConfig", + properties: { + serializedName: "properties", type: { - name: "String" - } - }, - adminKubeConfig: { - serializedName: "adminKubeConfig", - type: { - name: "String" - } - }, - imagePullSecretName: { - serializedName: "imagePullSecretName", - nullable: true, - type: { - name: "String" + name: "Composite", + className: "FqdnEndpoints" } } } } }; -export const VirtualMachineSecretsSchema: coreClient.CompositeMapper = { +export const FqdnEndpoints: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSecretsSchema", + className: "FqdnEndpoints", modelProperties: { - administratorAccount: { - serializedName: "administratorAccount", + category: { + serializedName: "category", type: { - name: "Composite", - className: "VirtualMachineSshCredentials" + name: "String" } - } - } - } -}; - -export const DatabricksComputeSecretsProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabricksComputeSecretsProperties", - modelProperties: { - databricksAccessToken: { - serializedName: "databricksAccessToken", + }, + endpoints: { + serializedName: "endpoints", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FqdnEndpoint" + } + } } } } } }; -export const WorkspaceConnectionUsernamePassword: coreClient.CompositeMapper = { +export const FqdnEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionUsernamePassword", + className: "FqdnEndpoint", modelProperties: { - username: { - serializedName: "username", + domainName: { + serializedName: "domainName", type: { name: "String" } }, - password: { - serializedName: "password", + endpointDetails: { + serializedName: "endpointDetails", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FqdnEndpointDetail" + } + } } } } } }; -export const WorkspaceConnectionPersonalAccessToken: coreClient.CompositeMapper = { +export const FqdnEndpointDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionPersonalAccessToken", + className: "FqdnEndpointDetail", modelProperties: { - pat: { - serializedName: "pat", + port: { + serializedName: "port", type: { - name: "String" + name: "Number" } } } } }; -export const WorkspaceConnectionSharedAccessSignature: coreClient.CompositeMapper = { +export const OutboundRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionSharedAccessSignature", + className: "OutboundRuleListResult", modelProperties: { - sas: { - serializedName: "sas", + nextLink: { + serializedName: "nextLink", type: { name: "String" } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutboundRuleBasicResource" + } + } + } } } } }; -export const WorkspaceConnectionManagedIdentity: coreClient.CompositeMapper = { +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionManagedIdentity", + className: "PrivateEndpointConnectionListResult", modelProperties: { - resourceId: { - serializedName: "resourceId", - type: { - name: "String" - } - }, - clientId: { - serializedName: "clientId", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } } } } } }; -export const AssetJobInput: coreClient.CompositeMapper = { +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssetJobInput", + className: "PrivateLinkResourceListResult", modelProperties: { - mode: { - serializedName: "mode", - type: { - name: "String" - } - }, - uri: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "uri", - required: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } } } } } }; -export const AssetJobOutput: coreClient.CompositeMapper = { +export const ManagedNetworkProvisionOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssetJobOutput", + className: "ManagedNetworkProvisionOptions", modelProperties: { - mode: { - serializedName: "mode", - type: { - name: "String" - } - }, - uri: { - serializedName: "uri", - nullable: true, + includeSpark: { + serializedName: "includeSpark", type: { - name: "String" + name: "Boolean" } } } } }; -export const ForecastHorizon: coreClient.CompositeMapper = { +export const ResourceId: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ForecastHorizon", - uberParent: "ForecastHorizon", - polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode" - }, + className: "ResourceId", modelProperties: { - mode: { - serializedName: "mode", + id: { + serializedName: "id", required: true, type: { name: "String" @@ -5680,137 +6283,96 @@ export const ForecastHorizon: coreClient.CompositeMapper = { } }; -export const JobOutput: coreClient.CompositeMapper = { +export const AKSSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobOutput", - uberParent: "JobOutput", - polymorphicDiscriminator: { - serializedName: "jobOutputType", - clientName: "jobOutputType" - }, + className: "AKSSchema", modelProperties: { - description: { - serializedName: "description", - nullable: true, - type: { - name: "String" - } - }, - jobOutputType: { - serializedName: "jobOutputType", - required: true, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "AKSSchemaProperties" } } } } }; -export const AutoMLVertical: coreClient.CompositeMapper = { +export const AKSSchemaProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoMLVertical", - uberParent: "AutoMLVertical", - polymorphicDiscriminator: { - serializedName: "taskType", - clientName: "taskType" - }, + className: "AKSSchemaProperties", modelProperties: { - logVerbosity: { - serializedName: "logVerbosity", + clusterFqdn: { + serializedName: "clusterFqdn", + nullable: true, type: { name: "String" } }, - targetColumnName: { - serializedName: "targetColumnName", + systemServices: { + serializedName: "systemServices", + readOnly: true, nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SystemService" + } + } } }, - taskType: { - serializedName: "taskType", - required: true, + agentCount: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "agentCount", + nullable: true, type: { - name: "String" + name: "Number" } }, - trainingData: { - serializedName: "trainingData", - type: { - name: "Composite", - className: "MLTableJobInput" - } - } - } - } -}; - -export const JobInput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobInput", - uberParent: "JobInput", - polymorphicDiscriminator: { - serializedName: "jobInputType", - clientName: "jobInputType" - }, - modelProperties: { - description: { - serializedName: "description", + agentVmSize: { + serializedName: "agentVmSize", nullable: true, type: { name: "String" } }, - jobInputType: { - serializedName: "jobInputType", - required: true, - type: { + clusterPurpose: { + defaultValue: "FastProd", + serializedName: "clusterPurpose", + type: { name: "String" } - } - } - } -}; - -export const NCrossValidations: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NCrossValidations", - uberParent: "NCrossValidations", - polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode" - }, - modelProperties: { - mode: { - serializedName: "mode", - required: true, + }, + sslConfiguration: { + serializedName: "sslConfiguration", + type: { + name: "Composite", + className: "SslConfiguration" + } + }, + aksNetworkingConfiguration: { + serializedName: "aksNetworkingConfiguration", + type: { + name: "Composite", + className: "AksNetworkingConfiguration" + } + }, + loadBalancerType: { + defaultValue: "PublicIp", + serializedName: "loadBalancerType", type: { name: "String" } - } - } - } -}; - -export const Seasonality: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Seasonality", - uberParent: "Seasonality", - polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode" - }, - modelProperties: { - mode: { - serializedName: "mode", - required: true, + }, + loadBalancerSubnet: { + serializedName: "loadBalancerSubnet", + nullable: true, type: { name: "String" } @@ -5819,19 +6381,28 @@ export const Seasonality: coreClient.CompositeMapper = { } }; -export const TargetLags: coreClient.CompositeMapper = { +export const SystemService: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TargetLags", - uberParent: "TargetLags", - polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode" - }, + className: "SystemService", modelProperties: { - mode: { - serializedName: "mode", - required: true, + systemServiceType: { + serializedName: "systemServiceType", + readOnly: true, + type: { + name: "String" + } + }, + publicIpAddress: { + serializedName: "publicIpAddress", + readOnly: true, + type: { + name: "String" + } + }, + version: { + serializedName: "version", + readOnly: true, type: { name: "String" } @@ -5840,54 +6411,95 @@ export const TargetLags: coreClient.CompositeMapper = { } }; -export const TargetRollingWindowSize: coreClient.CompositeMapper = { +export const SslConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TargetRollingWindowSize", - uberParent: "TargetRollingWindowSize", - polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode" - }, + className: "SslConfiguration", modelProperties: { - mode: { - serializedName: "mode", - required: true, + status: { + serializedName: "status", + type: { + name: "String" + } + }, + cert: { + serializedName: "cert", + nullable: true, + type: { + name: "String" + } + }, + key: { + serializedName: "key", + nullable: true, + type: { + name: "String" + } + }, + cname: { + serializedName: "cname", + nullable: true, + type: { + name: "String" + } + }, + leafDomainLabel: { + serializedName: "leafDomainLabel", + nullable: true, type: { name: "String" } + }, + overwriteExistingDomain: { + serializedName: "overwriteExistingDomain", + type: { + name: "Boolean" + } } } } }; -export const EarlyTerminationPolicy: coreClient.CompositeMapper = { +export const AksNetworkingConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EarlyTerminationPolicy", - uberParent: "EarlyTerminationPolicy", - polymorphicDiscriminator: { - serializedName: "policyType", - clientName: "policyType" - }, + className: "AksNetworkingConfiguration", modelProperties: { - delayEvaluation: { - defaultValue: 0, - serializedName: "delayEvaluation", + subnetId: { + serializedName: "subnetId", type: { - name: "Number" + name: "String" } }, - evaluationInterval: { - defaultValue: 0, - serializedName: "evaluationInterval", + serviceCidr: { + constraints: { + Pattern: new RegExp( + "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$" + ) + }, + serializedName: "serviceCidr", type: { - name: "Number" + name: "String" } }, - policyType: { - serializedName: "policyType", - required: true, + dnsServiceIP: { + constraints: { + Pattern: new RegExp( + "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$" + ) + }, + serializedName: "dnsServiceIP", + type: { + name: "String" + } + }, + dockerBridgeCidr: { + constraints: { + Pattern: new RegExp( + "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$" + ) + }, + serializedName: "dockerBridgeCidr", type: { name: "String" } @@ -5896,211 +6508,259 @@ export const EarlyTerminationPolicy: coreClient.CompositeMapper = { } }; -export const SamplingAlgorithm: coreClient.CompositeMapper = { +export const KubernetesSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SamplingAlgorithm", - uberParent: "SamplingAlgorithm", - polymorphicDiscriminator: { - serializedName: "samplingAlgorithmType", - clientName: "samplingAlgorithmType" - }, + className: "KubernetesSchema", modelProperties: { - samplingAlgorithmType: { - serializedName: "samplingAlgorithmType", - required: true, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "KubernetesProperties" } } } } }; -export const TrainingSettings: coreClient.CompositeMapper = { +export const KubernetesProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrainingSettings", + className: "KubernetesProperties", modelProperties: { - enableDnnTraining: { - defaultValue: false, - serializedName: "enableDnnTraining", + relayConnectionString: { + serializedName: "relayConnectionString", + nullable: true, type: { - name: "Boolean" + name: "String" } }, - enableModelExplainability: { - defaultValue: true, - serializedName: "enableModelExplainability", + serviceBusConnectionString: { + serializedName: "serviceBusConnectionString", + nullable: true, type: { - name: "Boolean" + name: "String" } }, - enableOnnxCompatibleModels: { - defaultValue: false, - serializedName: "enableOnnxCompatibleModels", + extensionPrincipalId: { + serializedName: "extensionPrincipalId", + nullable: true, type: { - name: "Boolean" + name: "String" } }, - enableStackEnsemble: { - defaultValue: true, - serializedName: "enableStackEnsemble", + extensionInstanceReleaseTrain: { + serializedName: "extensionInstanceReleaseTrain", type: { - name: "Boolean" + name: "String" } }, - enableVoteEnsemble: { - defaultValue: true, - serializedName: "enableVoteEnsemble", + vcName: { + serializedName: "vcName", type: { - name: "Boolean" + name: "String" } }, - ensembleModelDownloadTimeout: { - defaultValue: "PT5M", - serializedName: "ensembleModelDownloadTimeout", + namespace: { + defaultValue: "default", + serializedName: "namespace", type: { - name: "TimeSpan" + name: "String" } }, - stackEnsembleSettings: { - serializedName: "stackEnsembleSettings", + defaultInstanceType: { + serializedName: "defaultInstanceType", type: { - name: "Composite", - className: "StackEnsembleSettings" + name: "String" + } + }, + instanceTypes: { + serializedName: "instanceTypes", + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "InstanceTypeSchema" } + } } } } } }; -export const StackEnsembleSettings: coreClient.CompositeMapper = { +export const InstanceTypeSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StackEnsembleSettings", + className: "InstanceTypeSchema", modelProperties: { - stackMetaLearnerKWargs: { - serializedName: "stackMetaLearnerKWargs", + nodeSelector: { + serializedName: "nodeSelector", nullable: true, type: { name: "Dictionary", - value: { type: { name: "any" } } + value: { type: { name: "String" } } } }, - stackMetaLearnerTrainPercentage: { - defaultValue: 0.2, - serializedName: "stackMetaLearnerTrainPercentage", + resources: { + serializedName: "resources", type: { - name: "Number" + name: "Composite", + className: "InstanceTypeSchemaResources" + } + } + } + } +}; + +export const InstanceTypeSchemaResources: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceTypeSchemaResources", + modelProperties: { + requests: { + serializedName: "requests", + type: { + name: "Dictionary", + value: { type: { name: "String" } } } }, - stackMetaLearnerType: { - serializedName: "stackMetaLearnerType", + limits: { + serializedName: "limits", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const TableVertical: coreClient.CompositeMapper = { +export const AmlComputeProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TableVertical", + className: "AmlComputeProperties", modelProperties: { - cvSplitColumnNames: { - serializedName: "cvSplitColumnNames", - nullable: true, + osType: { + defaultValue: "Linux", + serializedName: "osType", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - featurizationSettings: { - serializedName: "featurizationSettings", + vmSize: { + serializedName: "vmSize", type: { - name: "Composite", - className: "TableVerticalFeaturizationSettings" + name: "String" } }, - limitSettings: { - serializedName: "limitSettings", + vmPriority: { + serializedName: "vmPriority", type: { - name: "Composite", - className: "TableVerticalLimitSettings" + name: "String" } }, - nCrossValidations: { - serializedName: "nCrossValidations", + virtualMachineImage: { + serializedName: "virtualMachineImage", type: { name: "Composite", - className: "NCrossValidations" + className: "VirtualMachineImage" } }, - testData: { - serializedName: "testData", + isolatedNetwork: { + serializedName: "isolatedNetwork", + type: { + name: "Boolean" + } + }, + scaleSettings: { + serializedName: "scaleSettings", type: { name: "Composite", - className: "MLTableJobInput" + className: "ScaleSettings" } }, - testDataSize: { - serializedName: "testDataSize", - nullable: true, + userAccountCredentials: { + serializedName: "userAccountCredentials", type: { - name: "Number" + name: "Composite", + className: "UserAccountCredentials" } }, - validationData: { - serializedName: "validationData", + subnet: { + serializedName: "subnet", type: { name: "Composite", - className: "MLTableJobInput" + className: "ResourceId" } }, - validationDataSize: { - serializedName: "validationDataSize", - nullable: true, + remoteLoginPortPublicAccess: { + defaultValue: "NotSpecified", + serializedName: "remoteLoginPortPublicAccess", type: { - name: "Number" + name: "String" } }, - weightColumnName: { - serializedName: "weightColumnName", - nullable: true, + allocationState: { + serializedName: "allocationState", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ColumnTransformer: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ColumnTransformer", - modelProperties: { - fields: { - serializedName: "fields", + }, + allocationStateTransitionTime: { + serializedName: "allocationStateTransitionTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + errors: { + serializedName: "errors", + readOnly: true, nullable: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ErrorResponse" } } } }, - parameters: { - serializedName: "parameters", + currentNodeCount: { + serializedName: "currentNodeCount", + readOnly: true, + nullable: true, + type: { + name: "Number" + } + }, + targetNodeCount: { + serializedName: "targetNodeCount", + readOnly: true, + nullable: true, + type: { + name: "Number" + } + }, + nodeStateCounts: { + serializedName: "nodeStateCounts", + type: { + name: "Composite", + className: "NodeStateCounts" + } + }, + enableNodePublicIp: { + defaultValue: true, + serializedName: "enableNodePublicIp", + nullable: true, + type: { + name: "Boolean" + } + }, + propertyBag: { + serializedName: "propertyBag", nullable: true, type: { name: "Dictionary", @@ -6111,14 +6771,14 @@ export const ColumnTransformer: coreClient.CompositeMapper = { } }; -export const FeaturizationSettings: coreClient.CompositeMapper = { +export const VirtualMachineImage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FeaturizationSettings", + className: "VirtualMachineImage", modelProperties: { - datasetLanguage: { - serializedName: "datasetLanguage", - nullable: true, + id: { + serializedName: "id", + required: true, type: { name: "String" } @@ -6127,785 +6787,841 @@ export const FeaturizationSettings: coreClient.CompositeMapper = { } }; -export const TableVerticalLimitSettings: coreClient.CompositeMapper = { +export const UserAccountCredentials: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TableVerticalLimitSettings", + className: "UserAccountCredentials", modelProperties: { - enableEarlyTermination: { - defaultValue: true, - serializedName: "enableEarlyTermination", + adminUserName: { + serializedName: "adminUserName", + required: true, type: { - name: "Boolean" + name: "String" } }, - exitScore: { - serializedName: "exitScore", - nullable: true, + adminUserSshPublicKey: { + serializedName: "adminUserSshPublicKey", type: { - name: "Number" + name: "String" } }, - maxConcurrentTrials: { - defaultValue: 1, - serializedName: "maxConcurrentTrials", + adminUserPassword: { + serializedName: "adminUserPassword", + type: { + name: "String" + } + } + } + } +}; + +export const NodeStateCounts: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NodeStateCounts", + modelProperties: { + idleNodeCount: { + serializedName: "idleNodeCount", + readOnly: true, type: { name: "Number" } }, - maxCoresPerTrial: { - defaultValue: -1, - serializedName: "maxCoresPerTrial", + runningNodeCount: { + serializedName: "runningNodeCount", + readOnly: true, type: { name: "Number" } }, - maxTrials: { - defaultValue: 1000, - serializedName: "maxTrials", + preparingNodeCount: { + serializedName: "preparingNodeCount", + readOnly: true, type: { name: "Number" } }, - timeout: { - defaultValue: "PT6H", - serializedName: "timeout", + unusableNodeCount: { + serializedName: "unusableNodeCount", + readOnly: true, type: { - name: "TimeSpan" + name: "Number" } }, - trialTimeout: { - defaultValue: "PT30M", - serializedName: "trialTimeout", - type: { - name: "TimeSpan" - } - } - } - } -}; - -export const DistributionConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DistributionConfiguration", - uberParent: "DistributionConfiguration", - polymorphicDiscriminator: { - serializedName: "distributionType", - clientName: "distributionType" - }, - modelProperties: { - distributionType: { - serializedName: "distributionType", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const JobLimits: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobLimits", - uberParent: "JobLimits", - polymorphicDiscriminator: { - serializedName: "jobLimitsType", - clientName: "jobLimitsType" - }, - modelProperties: { - jobLimitsType: { - serializedName: "jobLimitsType", - required: true, + leavingNodeCount: { + serializedName: "leavingNodeCount", + readOnly: true, type: { - name: "String" + name: "Number" } }, - timeout: { - serializedName: "timeout", - nullable: true, + preemptedNodeCount: { + serializedName: "preemptedNodeCount", + readOnly: true, type: { - name: "TimeSpan" + name: "Number" } } } } }; -export const ContainerResourceRequirements: coreClient.CompositeMapper = { +export const AmlComputeSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContainerResourceRequirements", + className: "AmlComputeSchema", modelProperties: { - containerResourceLimits: { - serializedName: "containerResourceLimits", - type: { - name: "Composite", - className: "ContainerResourceSettings" - } - }, - containerResourceRequests: { - serializedName: "containerResourceRequests", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "ContainerResourceSettings" + className: "AmlComputeProperties" } } } } }; -export const ContainerResourceSettings: coreClient.CompositeMapper = { +export const ComputeInstanceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContainerResourceSettings", + className: "ComputeInstanceProperties", modelProperties: { - cpu: { - serializedName: "cpu", - nullable: true, + vmSize: { + serializedName: "vmSize", type: { name: "String" } }, - gpu: { - serializedName: "gpu", - nullable: true, + subnet: { + serializedName: "subnet", type: { - name: "String" + name: "Composite", + className: "ResourceId" } }, - memory: { - serializedName: "memory", - nullable: true, - type: { - name: "String" - } - } - } - } -}; - -export const ForecastingSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ForecastingSettings", - modelProperties: { - countryOrRegionForHolidays: { - serializedName: "countryOrRegionForHolidays", - nullable: true, + applicationSharingPolicy: { + defaultValue: "Shared", + serializedName: "applicationSharingPolicy", type: { name: "String" } }, - cvStepSize: { - serializedName: "cvStepSize", - nullable: true, - type: { - name: "Number" - } - }, - featureLags: { - serializedName: "featureLags", + autologgerSettings: { + serializedName: "autologgerSettings", type: { - name: "String" + name: "Composite", + className: "ComputeInstanceAutologgerSettings" } }, - forecastHorizon: { - serializedName: "forecastHorizon", + sshSettings: { + serializedName: "sshSettings", type: { name: "Composite", - className: "ForecastHorizon" + className: "ComputeInstanceSshSettings" } }, - frequency: { - serializedName: "frequency", + customServices: { + serializedName: "customServices", nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CustomService" + } + } } }, - seasonality: { - serializedName: "seasonality", + osImageMetadata: { + serializedName: "osImageMetadata", type: { name: "Composite", - className: "Seasonality" - } - }, - shortSeriesHandlingConfig: { - serializedName: "shortSeriesHandlingConfig", - type: { - name: "String" - } - }, - targetAggregateFunction: { - serializedName: "targetAggregateFunction", - type: { - name: "String" + className: "ImageMetadata" } }, - targetLags: { - serializedName: "targetLags", + connectivityEndpoints: { + serializedName: "connectivityEndpoints", type: { name: "Composite", - className: "TargetLags" + className: "ComputeInstanceConnectivityEndpoints" } }, - targetRollingWindowSize: { - serializedName: "targetRollingWindowSize", + applications: { + serializedName: "applications", + readOnly: true, type: { - name: "Composite", - className: "TargetRollingWindowSize" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeInstanceApplication" + } + } } }, - timeColumnName: { - serializedName: "timeColumnName", - nullable: true, + createdBy: { + serializedName: "createdBy", type: { - name: "String" + name: "Composite", + className: "ComputeInstanceCreatedBy" } }, - timeSeriesIdColumnNames: { - serializedName: "timeSeriesIdColumnNames", - nullable: true, + errors: { + serializedName: "errors", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ErrorResponse" } } } }, - useStl: { - serializedName: "useStl", + state: { + serializedName: "state", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ImageModelSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImageModelSettings", - modelProperties: { - advancedSettings: { - serializedName: "advancedSettings", + }, + computeInstanceAuthorizationType: { + defaultValue: "personal", + serializedName: "computeInstanceAuthorizationType", nullable: true, type: { name: "String" } }, - amsGradient: { - serializedName: "amsGradient", + enableOSPatching: { + defaultValue: false, + serializedName: "enableOSPatching", nullable: true, type: { name: "Boolean" } }, - augmentations: { - serializedName: "augmentations", + releaseQuotaOnStop: { + defaultValue: false, + serializedName: "releaseQuotaOnStop", nullable: true, type: { - name: "String" + name: "Boolean" } }, - beta1: { - serializedName: "beta1", - nullable: true, + personalComputeInstanceSettings: { + serializedName: "personalComputeInstanceSettings", type: { - name: "Number" + name: "Composite", + className: "PersonalComputeInstanceSettings" } }, - beta2: { - serializedName: "beta2", - nullable: true, + setupScripts: { + serializedName: "setupScripts", type: { - name: "Number" + name: "Composite", + className: "SetupScripts" } }, - checkpointFrequency: { - serializedName: "checkpointFrequency", - nullable: true, + lastOperation: { + serializedName: "lastOperation", type: { - name: "Number" + name: "Composite", + className: "ComputeInstanceLastOperation" } }, - checkpointModel: { - serializedName: "checkpointModel", - type: { + schedules: { + serializedName: "schedules", + type: { name: "Composite", - className: "MLFlowModelJobInput" + className: "ComputeSchedules" } }, - checkpointRunId: { - serializedName: "checkpointRunId", - nullable: true, + idleTimeBeforeShutdown: { + serializedName: "idleTimeBeforeShutdown", type: { name: "String" } }, - distributed: { - serializedName: "distributed", + enableNodePublicIp: { + defaultValue: true, + serializedName: "enableNodePublicIp", nullable: true, type: { name: "Boolean" } }, - earlyStopping: { - serializedName: "earlyStopping", + containers: { + serializedName: "containers", + readOnly: true, nullable: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeInstanceContainer" + } + } } }, - earlyStoppingDelay: { - serializedName: "earlyStoppingDelay", + dataDisks: { + serializedName: "dataDisks", + readOnly: true, nullable: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeInstanceDataDisk" + } + } } }, - earlyStoppingPatience: { - serializedName: "earlyStoppingPatience", + dataMounts: { + serializedName: "dataMounts", + readOnly: true, nullable: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeInstanceDataMount" + } + } } }, - enableOnnxNormalization: { - serializedName: "enableOnnxNormalization", - nullable: true, + versions: { + serializedName: "versions", type: { - name: "Boolean" + name: "Composite", + className: "ComputeInstanceVersion" } - }, - evaluationFrequency: { - serializedName: "evaluationFrequency", - nullable: true, + } + } + } +}; + +export const ComputeInstanceAutologgerSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceAutologgerSettings", + modelProperties: { + mlflowAutologger: { + serializedName: "mlflowAutologger", type: { - name: "Number" + name: "String" } - }, - gradientAccumulationStep: { - serializedName: "gradientAccumulationStep", - nullable: true, + } + } + } +}; + +export const ComputeInstanceSshSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceSshSettings", + modelProperties: { + sshPublicAccess: { + defaultValue: "Disabled", + serializedName: "sshPublicAccess", type: { - name: "Number" + name: "String" } }, - layersToFreeze: { - serializedName: "layersToFreeze", - nullable: true, + adminUserName: { + serializedName: "adminUserName", + readOnly: true, type: { - name: "Number" + name: "String" } }, - learningRate: { - serializedName: "learningRate", - nullable: true, + sshPort: { + serializedName: "sshPort", + readOnly: true, type: { name: "Number" } }, - learningRateScheduler: { - serializedName: "learningRateScheduler", + adminPublicKey: { + serializedName: "adminPublicKey", type: { name: "String" } - }, - modelName: { - serializedName: "modelName", - nullable: true, + } + } + } +}; + +export const ImageMetadata: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageMetadata", + modelProperties: { + currentImageVersion: { + serializedName: "currentImageVersion", type: { name: "String" } }, - momentum: { - serializedName: "momentum", - nullable: true, + latestImageVersion: { + serializedName: "latestImageVersion", type: { - name: "Number" + name: "String" } }, - nesterov: { - serializedName: "nesterov", - nullable: true, + isLatestOsImageVersion: { + serializedName: "isLatestOsImageVersion", type: { name: "Boolean" } }, - numberOfEpochs: { - serializedName: "numberOfEpochs", - nullable: true, - type: { - name: "Number" - } - }, - numberOfWorkers: { - serializedName: "numberOfWorkers", - nullable: true, + osPatchingStatus: { + serializedName: "osPatchingStatus", type: { - name: "Number" + name: "Composite", + className: "OsPatchingStatus" } - }, - optimizer: { - serializedName: "optimizer", + } + } + } +}; + +export const OsPatchingStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OsPatchingStatus", + modelProperties: { + patchStatus: { + serializedName: "patchStatus", 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, + latestPatchTime: { + serializedName: "latestPatchTime", type: { - name: "Number" + name: "String" } }, - validationBatchSize: { - serializedName: "validationBatchSize", - nullable: true, + rebootPending: { + serializedName: "rebootPending", type: { - name: "Number" + name: "Boolean" } }, - warmupCosineLRCycles: { - serializedName: "warmupCosineLRCycles", - nullable: true, + scheduledRebootTime: { + serializedName: "scheduledRebootTime", type: { - name: "Number" + name: "String" } - }, - warmupCosineLRWarmupEpochs: { - serializedName: "warmupCosineLRWarmupEpochs", + } + } + } +}; + +export const ComputeInstanceConnectivityEndpoints: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceConnectivityEndpoints", + modelProperties: { + publicIpAddress: { + serializedName: "publicIpAddress", + readOnly: true, nullable: true, type: { - name: "Number" + name: "String" } }, - weightDecay: { - serializedName: "weightDecay", + privateIpAddress: { + serializedName: "privateIpAddress", + readOnly: true, nullable: true, type: { - name: "Number" + name: "String" } } } } }; -export const ImageModelDistributionSettings: coreClient.CompositeMapper = { +export const ComputeInstanceApplication: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageModelDistributionSettings", + className: "ComputeInstanceApplication", modelProperties: { - amsGradient: { - serializedName: "amsGradient", - nullable: true, + displayName: { + serializedName: "displayName", type: { name: "String" } }, - augmentations: { - serializedName: "augmentations", - nullable: true, + endpointUri: { + serializedName: "endpointUri", type: { name: "String" } - }, - beta1: { - serializedName: "beta1", + } + } + } +}; + +export const ComputeInstanceCreatedBy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceCreatedBy", + modelProperties: { + userName: { + serializedName: "userName", + readOnly: true, nullable: true, type: { name: "String" } }, - beta2: { - serializedName: "beta2", - nullable: true, + userOrgId: { + serializedName: "userOrgId", + readOnly: true, type: { name: "String" } }, - distributed: { - serializedName: "distributed", + userId: { + serializedName: "userId", + readOnly: true, nullable: true, type: { name: "String" } - }, - earlyStopping: { - serializedName: "earlyStopping", - nullable: true, + } + } + } +}; + +export const PersonalComputeInstanceSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PersonalComputeInstanceSettings", + modelProperties: { + assignedUser: { + serializedName: "assignedUser", type: { - name: "String" + name: "Composite", + className: "AssignedUser" } - }, - earlyStoppingDelay: { - serializedName: "earlyStoppingDelay", - nullable: true, + } + } + } +}; + +export const AssignedUser: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssignedUser", + modelProperties: { + objectId: { + serializedName: "objectId", + required: true, type: { name: "String" } }, - earlyStoppingPatience: { - serializedName: "earlyStoppingPatience", - nullable: true, + tenantId: { + serializedName: "tenantId", + required: true, type: { name: "String" } - }, - enableOnnxNormalization: { - serializedName: "enableOnnxNormalization", - nullable: true, + } + } + } +}; + +export const SetupScripts: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SetupScripts", + modelProperties: { + scripts: { + serializedName: "scripts", type: { - name: "String" + name: "Composite", + className: "ScriptsToExecute" } - }, - evaluationFrequency: { - serializedName: "evaluationFrequency", - nullable: true, + } + } + } +}; + +export const ScriptsToExecute: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScriptsToExecute", + modelProperties: { + startupScript: { + serializedName: "startupScript", type: { - name: "String" + name: "Composite", + className: "ScriptReference" } }, - gradientAccumulationStep: { - serializedName: "gradientAccumulationStep", - nullable: true, + creationScript: { + serializedName: "creationScript", type: { - name: "String" + name: "Composite", + className: "ScriptReference" } - }, - layersToFreeze: { - serializedName: "layersToFreeze", - nullable: true, + } + } + } +}; + +export const ScriptReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScriptReference", + modelProperties: { + scriptSource: { + serializedName: "scriptSource", type: { name: "String" } }, - learningRate: { - serializedName: "learningRate", - nullable: true, + scriptData: { + serializedName: "scriptData", type: { name: "String" } }, - learningRateScheduler: { - serializedName: "learningRateScheduler", - nullable: true, + scriptArguments: { + serializedName: "scriptArguments", type: { name: "String" } }, - modelName: { - serializedName: "modelName", - nullable: true, + timeout: { + serializedName: "timeout", type: { name: "String" } - }, - momentum: { - serializedName: "momentum", - nullable: true, + } + } + } +}; + +export const ComputeInstanceLastOperation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceLastOperation", + modelProperties: { + operationName: { + serializedName: "operationName", type: { name: "String" } }, - nesterov: { - serializedName: "nesterov", - nullable: true, + operationTime: { + serializedName: "operationTime", type: { - name: "String" + name: "DateTime" } }, - numberOfEpochs: { - serializedName: "numberOfEpochs", - nullable: true, + operationStatus: { + serializedName: "operationStatus", type: { name: "String" } }, - numberOfWorkers: { - serializedName: "numberOfWorkers", - nullable: true, + operationTrigger: { + serializedName: "operationTrigger", type: { name: "String" } - }, - optimizer: { - serializedName: "optimizer", - nullable: true, + } + } + } +}; + +export const ComputeSchedules: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeSchedules", + modelProperties: { + computeStartStop: { + serializedName: "computeStartStop", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeStartStopSchedule" + } + } } - }, - randomSeed: { - serializedName: "randomSeed", + } + } + } +}; + +export const ComputeStartStopSchedule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeStartStopSchedule", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, nullable: true, type: { name: "String" } }, - stepLRGamma: { - serializedName: "stepLRGamma", - nullable: true, + provisioningStatus: { + serializedName: "provisioningStatus", + readOnly: true, type: { name: "String" } }, - stepLRStepSize: { - serializedName: "stepLRStepSize", - nullable: true, + status: { + serializedName: "status", type: { name: "String" } }, - trainingBatchSize: { - serializedName: "trainingBatchSize", - nullable: true, + action: { + serializedName: "action", type: { name: "String" } }, - validationBatchSize: { - serializedName: "validationBatchSize", - nullable: true, + triggerType: { + serializedName: "triggerType", type: { name: "String" } }, - warmupCosineLRCycles: { - serializedName: "warmupCosineLRCycles", - nullable: true, + recurrence: { + serializedName: "recurrence", type: { - name: "String" + name: "Composite", + className: "Recurrence" } }, - warmupCosineLRWarmupEpochs: { - serializedName: "warmupCosineLRWarmupEpochs", - nullable: true, + cron: { + serializedName: "cron", type: { - name: "String" + name: "Composite", + className: "Cron" } }, - weightDecay: { - serializedName: "weightDecay", - nullable: true, + schedule: { + serializedName: "schedule", type: { - name: "String" + name: "Composite", + className: "ScheduleBase" } } } } }; -export const ImageVertical: coreClient.CompositeMapper = { +export const Recurrence: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageVertical", + className: "Recurrence", modelProperties: { - limitSettings: { - serializedName: "limitSettings", + frequency: { + serializedName: "frequency", type: { - name: "Composite", - className: "ImageLimitSettings" + name: "String" } }, - sweepSettings: { - serializedName: "sweepSettings", + interval: { + serializedName: "interval", type: { - name: "Composite", - className: "ImageSweepSettings" + name: "Number" } }, - validationData: { - serializedName: "validationData", + startTime: { + serializedName: "startTime", + nullable: true, type: { - name: "Composite", - className: "MLTableJobInput" + name: "String" } }, - validationDataSize: { - serializedName: "validationDataSize", - nullable: true, + timeZone: { + defaultValue: "UTC", + serializedName: "timeZone", type: { - name: "Number" + name: "String" + } + }, + schedule: { + serializedName: "schedule", + type: { + name: "Composite", + className: "RecurrenceSchedule" } } } } }; -export const ImageLimitSettings: coreClient.CompositeMapper = { +export const Cron: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageLimitSettings", + className: "Cron", modelProperties: { - maxConcurrentTrials: { - defaultValue: 1, - serializedName: "maxConcurrentTrials", + startTime: { + serializedName: "startTime", + nullable: true, type: { - name: "Number" + name: "String" } }, - maxTrials: { - defaultValue: 1, - serializedName: "maxTrials", + timeZone: { + defaultValue: "UTC", + serializedName: "timeZone", type: { - name: "Number" + name: "String" } }, - timeout: { - defaultValue: "P7D", - serializedName: "timeout", + expression: { + serializedName: "expression", type: { - name: "TimeSpan" + name: "String" } } } } }; -export const ImageSweepSettings: coreClient.CompositeMapper = { +export const ScheduleBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageSweepSettings", + className: "ScheduleBase", modelProperties: { - earlyTermination: { - serializedName: "earlyTermination", + id: { + serializedName: "id", + nullable: true, type: { - name: "Composite", - className: "EarlyTerminationPolicy" + name: "String" } }, - samplingAlgorithm: { - serializedName: "samplingAlgorithm", - required: true, + provisioningStatus: { + serializedName: "provisioningStatus", + type: { + name: "String" + } + }, + status: { + serializedName: "status", type: { name: "String" } @@ -6914,83 +7630,72 @@ export const ImageSweepSettings: coreClient.CompositeMapper = { } }; -export const NlpVertical: coreClient.CompositeMapper = { +export const ComputeInstanceContainer: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NlpVertical", + className: "ComputeInstanceContainer", modelProperties: { - featurizationSettings: { - serializedName: "featurizationSettings", + name: { + serializedName: "name", type: { - name: "Composite", - className: "NlpVerticalFeaturizationSettings" + name: "String" } }, - limitSettings: { - serializedName: "limitSettings", + autosave: { + serializedName: "autosave", type: { - name: "Composite", - className: "NlpVerticalLimitSettings" + name: "String" } }, - validationData: { - serializedName: "validationData", + gpu: { + serializedName: "gpu", type: { - name: "Composite", - className: "MLTableJobInput" + name: "String" } - } - } - } -}; - -export const NlpVerticalLimitSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NlpVerticalLimitSettings", - modelProperties: { - maxConcurrentTrials: { - defaultValue: 1, - serializedName: "maxConcurrentTrials", + }, + network: { + serializedName: "network", type: { - name: "Number" + name: "String" } }, - maxTrials: { - defaultValue: 1, - serializedName: "maxTrials", + environment: { + serializedName: "environment", type: { - name: "Number" + name: "Composite", + className: "ComputeInstanceEnvironmentInfo" } }, - timeout: { - serializedName: "timeout", + services: { + serializedName: "services", + readOnly: true, type: { - name: "TimeSpan" + name: "Sequence", + element: { + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } } } } } }; -export const Objective: coreClient.CompositeMapper = { +export const ComputeInstanceEnvironmentInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Objective", + className: "ComputeInstanceEnvironmentInfo", modelProperties: { - goal: { - serializedName: "goal", - required: true, + name: { + serializedName: "name", type: { name: "String" } }, - primaryMetric: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "primaryMetric", - required: true, + version: { + serializedName: "version", type: { name: "String" } @@ -6999,115 +7704,95 @@ export const Objective: coreClient.CompositeMapper = { } }; -export const TrialComponent: coreClient.CompositeMapper = { +export const ComputeInstanceDataDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrialComponent", + className: "ComputeInstanceDataDisk", modelProperties: { - codeId: { - serializedName: "codeId", - nullable: true, + caching: { + serializedName: "caching", type: { name: "String" } }, - command: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]"), - MinLength: 1 - }, - serializedName: "command", - required: true, + diskSizeGB: { + serializedName: "diskSizeGB", type: { - name: "String" + name: "Number" } }, - distribution: { - serializedName: "distribution", + lun: { + serializedName: "lun", type: { - name: "Composite", - className: "DistributionConfiguration" + name: "Number" } }, - environmentId: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "environmentId", - required: true, + storageAccountType: { + defaultValue: "Standard_LRS", + serializedName: "storageAccountType", 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 = { +export const ComputeInstanceDataMount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "ComputeInstanceDataMount", modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "identity", + source: { + serializedName: "source", type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "String" } }, - location: { - serializedName: "location", + sourceType: { + serializedName: "sourceType", type: { name: "String" } }, - tags: { - serializedName: "tags", + mountName: { + serializedName: "mountName", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - sku: { - serializedName: "sku", + mountAction: { + serializedName: "mountAction", type: { - name: "Composite", - className: "Sku" + name: "String" } }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + createdBy: { + serializedName: "createdBy", type: { - name: "Composite", - className: "PrivateEndpoint" + name: "String" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + mountPath: { + serializedName: "mountPath", type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + mountState: { + serializedName: "mountState", + type: { + name: "String" + } + }, + mountedOn: { + serializedName: "mountedOn", + type: { + name: "DateTime" + } + }, + error: { + serializedName: "error", type: { name: "String" } @@ -7116,889 +7801,1060 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { } }; -export const Workspace: coreClient.CompositeMapper = { +export const ComputeInstanceVersion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Workspace", + className: "ComputeInstanceVersion", modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - }, - location: { - serializedName: "location", + runtime: { + serializedName: "runtime", + nullable: true, type: { name: "String" } - }, - tags: { - serializedName: "tags", + } + } + } +}; + +export const ComputeInstanceSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceSchema", + modelProperties: { + properties: { + serializedName: "properties", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "ComputeInstanceProperties" } - }, - sku: { - serializedName: "sku", + } + } + } +}; + +export const VirtualMachineSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineSchema", + modelProperties: { + properties: { + serializedName: "properties", type: { name: "Composite", - className: "Sku" + className: "VirtualMachineSchemaProperties" } - }, - workspaceId: { - serializedName: "properties.workspaceId", - readOnly: true, + } + } + } +}; + +export const VirtualMachineSchemaProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineSchemaProperties", + modelProperties: { + virtualMachineSize: { + serializedName: "virtualMachineSize", type: { name: "String" } }, - description: { - serializedName: "properties.description", + sshPort: { + serializedName: "sshPort", type: { - name: "String" + name: "Number" } }, - friendlyName: { - serializedName: "properties.friendlyName", + notebookServerPort: { + serializedName: "notebookServerPort", type: { - name: "String" + name: "Number" } }, - keyVault: { - serializedName: "properties.keyVault", + address: { + serializedName: "address", type: { name: "String" } }, - applicationInsights: { - serializedName: "properties.applicationInsights", + administratorAccount: { + serializedName: "administratorAccount", type: { - name: "String" + name: "Composite", + className: "VirtualMachineSshCredentials" } }, - containerRegistry: { - serializedName: "properties.containerRegistry", - nullable: true, + isNotebookInstanceCompute: { + serializedName: "isNotebookInstanceCompute", type: { - name: "String" + name: "Boolean" } - }, - storageAccount: { - serializedName: "properties.storageAccount", + } + } + } +}; + +export const VirtualMachineSshCredentials: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineSshCredentials", + modelProperties: { + username: { + serializedName: "username", type: { name: "String" } }, - discoveryUrl: { - serializedName: "properties.discoveryUrl", + password: { + serializedName: "password", type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + publicKeyData: { + serializedName: "publicKeyData", 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, + privateKeyData: { + serializedName: "privateKeyData", type: { name: "String" } - }, - privateLinkCount: { - serializedName: "properties.privateLinkCount", - readOnly: true, + } + } + } +}; + +export const HDInsightProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HDInsightProperties", + modelProperties: { + sshPort: { + serializedName: "sshPort", type: { name: "Number" } }, - imageBuildCompute: { - serializedName: "properties.imageBuildCompute", + address: { + serializedName: "address", type: { name: "String" } }, - allowPublicAccessWhenBehindVnet: { - defaultValue: false, - serializedName: "properties.allowPublicAccessWhenBehindVnet", + administratorAccount: { + serializedName: "administratorAccount", type: { - name: "Boolean" + name: "Composite", + className: "VirtualMachineSshCredentials" } - }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + } + } + } +}; + +export const HDInsightSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HDInsightSchema", + modelProperties: { + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "HDInsightProperties" } - }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - readOnly: true, + } + } + } +}; + +export const DatabricksProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabricksProperties", + modelProperties: { + databricksAccessToken: { + serializedName: "databricksAccessToken", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } + name: "String" } }, - sharedPrivateLinkResources: { - serializedName: "properties.sharedPrivateLinkResources", + workspaceUrl: { + serializedName: "workspaceUrl", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharedPrivateLinkResource" - } - } + name: "String" } - }, - notebookInfo: { - serializedName: "properties.notebookInfo", + } + } + } +}; + +export const DatabricksSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabricksSchema", + modelProperties: { + properties: { + serializedName: "properties", type: { name: "Composite", - className: "NotebookResourceInfo" + className: "DatabricksProperties" } - }, - serviceManagedResourcesSettings: { - serializedName: "properties.serviceManagedResourcesSettings", + } + } + } +}; + +export const DataLakeAnalyticsSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataLakeAnalyticsSchema", + modelProperties: { + properties: { + serializedName: "properties", 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" + className: "DataLakeAnalyticsSchemaProperties" } - }, - mlFlowTrackingUri: { - serializedName: "properties.mlFlowTrackingUri", - readOnly: true, + } + } + } +}; + +export const DataLakeAnalyticsSchemaProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataLakeAnalyticsSchemaProperties", + modelProperties: { + dataLakeStoreAccountName: { + serializedName: "dataLakeStoreAccountName", type: { name: "String" } - }, - v1LegacyMode: { - defaultValue: false, - serializedName: "properties.v1LegacyMode", - type: { - name: "Boolean" - } } } } }; -export const ComputeResource: coreClient.CompositeMapper = { +export const SynapseSparkProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeResource", + className: "SynapseSparkProperties", modelProperties: { - ...Resource.type.modelProperties, - ...ComputeResourceSchema.type.modelProperties, - identity: { - serializedName: "identity", + autoScaleProperties: { + serializedName: "autoScaleProperties", type: { name: "Composite", - className: "ManagedServiceIdentity" + className: "AutoScaleProperties" } }, - location: { - serializedName: "location", + autoPauseProperties: { + serializedName: "autoPauseProperties", type: { - name: "String" + name: "Composite", + className: "AutoPauseProperties" } }, - tags: { - serializedName: "tags", - nullable: true, + sparkVersion: { + serializedName: "sparkVersion", type: { - name: "Dictionary", - value: { type: { name: "String" } } + 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", + nodeCount: { + serializedName: "nodeCount", type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "Number" } }, - location: { - serializedName: "location", + nodeSize: { + serializedName: "nodeSize", type: { name: "String" } }, - tags: { - serializedName: "tags", + nodeSizeFamily: { + serializedName: "nodeSizeFamily", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - sku: { - serializedName: "sku", + subscriptionId: { + serializedName: "subscriptionId", type: { - name: "Composite", - className: "Sku" + name: "String" } }, - groupId: { - serializedName: "properties.groupId", - readOnly: true, + resourceGroup: { + serializedName: "resourceGroup", type: { name: "String" } }, - requiredMembers: { - serializedName: "properties.requiredMembers", - readOnly: true, + workspaceName: { + serializedName: "workspaceName", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", + poolName: { + serializedName: "poolName", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const WorkspaceConnectionPropertiesV2BasicResource: coreClient.CompositeMapper = { +export const AutoScaleProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionPropertiesV2BasicResource", + className: "AutoScaleProperties", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + minNodeCount: { + serializedName: "minNodeCount", type: { - name: "Composite", - className: "WorkspaceConnectionPropertiesV2" + name: "Number" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + maxNodeCount: { + serializedName: "maxNodeCount", + type: { + name: "Number" } } } } }; -export const TrackedResource: coreClient.CompositeMapper = { +export const AutoPauseProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrackedResource", + className: "AutoPauseProperties", modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", + delayInMinutes: { + serializedName: "delayInMinutes", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Number" } }, - location: { - serializedName: "location", - required: true, + enabled: { + serializedName: "enabled", type: { - name: "String" + name: "Boolean" } } } } }; -export const CodeContainer: coreClient.CompositeMapper = { +export const AksComputeSecretsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeContainer", + className: "AksComputeSecretsProperties", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + userKubeConfig: { + serializedName: "userKubeConfig", type: { - name: "Composite", - className: "CodeContainerProperties" + name: "String" + } + }, + adminKubeConfig: { + serializedName: "adminKubeConfig", + type: { + name: "String" + } + }, + imagePullSecretName: { + serializedName: "imagePullSecretName", + nullable: true, + type: { + name: "String" } } } } }; -export const CodeVersion: coreClient.CompositeMapper = { +export const VirtualMachineSecretsSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeVersion", + className: "VirtualMachineSecretsSchema", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + administratorAccount: { + serializedName: "administratorAccount", type: { name: "Composite", - className: "CodeVersionProperties" + className: "VirtualMachineSshCredentials" } } } } }; -export const ComponentContainer: coreClient.CompositeMapper = { +export const DatabricksComputeSecretsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentContainer", + className: "DatabricksComputeSecretsProperties", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + databricksAccessToken: { + serializedName: "databricksAccessToken", type: { - name: "Composite", - className: "ComponentContainerProperties" + name: "String" } } } } }; -export const ComponentVersion: coreClient.CompositeMapper = { +export const MonitoringFeatureFilterBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentVersion", + className: "MonitoringFeatureFilterBase", + uberParent: "MonitoringFeatureFilterBase", + polymorphicDiscriminator: { + serializedName: "filterType", + clientName: "filterType" + }, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + filterType: { + serializedName: "filterType", + required: true, type: { - name: "Composite", - className: "ComponentVersionProperties" + name: "String" } } } } }; -export const DataContainer: coreClient.CompositeMapper = { +export const MonitorComputeIdentityBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataContainer", + className: "MonitorComputeIdentityBase", + uberParent: "MonitorComputeIdentityBase", + polymorphicDiscriminator: { + serializedName: "computeIdentityType", + clientName: "computeIdentityType" + }, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + computeIdentityType: { + serializedName: "computeIdentityType", + required: true, type: { - name: "Composite", - className: "DataContainerProperties" + name: "String" } } } } }; -export const DataVersionBase: coreClient.CompositeMapper = { +export const AssetJobInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataVersionBase", + className: "AssetJobInput", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + mode: { + serializedName: "mode", type: { - name: "Composite", - className: "DataVersionBaseProperties" + name: "String" + } + }, + uri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "uri", + required: true, + type: { + name: "String" } } } } }; -export const Datastore: coreClient.CompositeMapper = { +export const AssetJobOutput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Datastore", + className: "AssetJobOutput", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + assetName: { + serializedName: "assetName", + nullable: true, + type: { + name: "String" + } + }, + assetVersion: { + serializedName: "assetVersion", + nullable: true, + type: { + name: "String" + } + }, + autoDeleteSetting: { + serializedName: "autoDeleteSetting", type: { name: "Composite", - className: "DatastoreProperties" + className: "AutoDeleteSetting" + } + }, + mode: { + serializedName: "mode", + type: { + name: "String" + } + }, + uri: { + serializedName: "uri", + nullable: true, + type: { + name: "String" } } } } }; -export const EnvironmentContainer: coreClient.CompositeMapper = { +export const ForecastHorizon: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentContainer", + className: "ForecastHorizon", + uberParent: "ForecastHorizon", + polymorphicDiscriminator: { + serializedName: "mode", + clientName: "mode" + }, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + mode: { + serializedName: "mode", + required: true, type: { - name: "Composite", - className: "EnvironmentContainerProperties" + name: "String" } } } } }; -export const EnvironmentVersion: coreClient.CompositeMapper = { +export const JobOutput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentVersion", + className: "JobOutput", + uberParent: "JobOutput", + polymorphicDiscriminator: { + serializedName: "jobOutputType", + clientName: "jobOutputType" + }, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + description: { + serializedName: "description", + nullable: true, type: { - name: "Composite", - className: "EnvironmentVersionProperties" + name: "String" + } + }, + jobOutputType: { + serializedName: "jobOutputType", + required: true, + type: { + name: "String" } } } } }; -export const JobBase: coreClient.CompositeMapper = { +export const QueueSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobBase", + className: "QueueSettings", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + jobTier: { + serializedName: "jobTier", type: { - name: "Composite", - className: "JobBaseProperties" + name: "String" + } + }, + priority: { + serializedName: "priority", + nullable: true, + type: { + name: "Number" } } } } }; -export const ModelContainer: coreClient.CompositeMapper = { +export const AutoMLVertical: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelContainer", + className: "AutoMLVertical", + uberParent: "AutoMLVertical", + polymorphicDiscriminator: { + serializedName: "taskType", + clientName: "taskType" + }, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + 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: "ModelContainerProperties" + className: "MLTableJobInput" } } } } }; -export const ModelVersion: coreClient.CompositeMapper = { +export const JobInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelVersion", + className: "JobInput", + uberParent: "JobInput", + polymorphicDiscriminator: { + serializedName: "jobInputType", + clientName: "jobInputType" + }, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + description: { + serializedName: "description", + nullable: true, type: { - name: "Composite", - className: "ModelVersionProperties" + name: "String" + } + }, + jobInputType: { + serializedName: "jobInputType", + required: true, + type: { + name: "String" } } } } }; -export const Schedule: coreClient.CompositeMapper = { +export const NCrossValidations: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Schedule", + className: "NCrossValidations", + uberParent: "NCrossValidations", + polymorphicDiscriminator: { + serializedName: "mode", + clientName: "mode" + }, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + mode: { + serializedName: "mode", + required: true, type: { - name: "Composite", - className: "ScheduleProperties" + name: "String" } } } } }; -export const Aks: coreClient.CompositeMapper = { - serializedName: "AKS", +export const Seasonality: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Aks", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "Seasonality", + uberParent: "Seasonality", + polymorphicDiscriminator: { + serializedName: "mode", + clientName: "mode" + }, modelProperties: { - ...Compute.type.modelProperties, - ...AKSSchema.type.modelProperties + mode: { + serializedName: "mode", + required: true, + type: { + name: "String" + } + } } } }; -export const Kubernetes: coreClient.CompositeMapper = { - serializedName: "Kubernetes", +export const TargetLags: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Kubernetes", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "TargetLags", + uberParent: "TargetLags", + polymorphicDiscriminator: { + serializedName: "mode", + clientName: "mode" + }, modelProperties: { - ...Compute.type.modelProperties, - ...KubernetesSchema.type.modelProperties + mode: { + serializedName: "mode", + required: true, + type: { + name: "String" + } + } } } }; -export const AmlCompute: coreClient.CompositeMapper = { - serializedName: "AmlCompute", +export const TargetRollingWindowSize: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlCompute", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "TargetRollingWindowSize", + uberParent: "TargetRollingWindowSize", + polymorphicDiscriminator: { + serializedName: "mode", + clientName: "mode" + }, modelProperties: { - ...Compute.type.modelProperties, - ...AmlComputeSchema.type.modelProperties + mode: { + serializedName: "mode", + required: true, + type: { + name: "String" + } + } } } }; -export const ComputeInstance: coreClient.CompositeMapper = { - serializedName: "ComputeInstance", +export const AutologgerSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstance", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "AutologgerSettings", 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 + mlflowAutologger: { + serializedName: "mlflowAutologger", + required: true, + type: { + name: "String" + } + } } } }; -export const HDInsight: coreClient.CompositeMapper = { - serializedName: "HDInsight", +export const MonitoringAlertNotificationSettingsBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HDInsight", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "MonitoringAlertNotificationSettingsBase", + uberParent: "MonitoringAlertNotificationSettingsBase", + polymorphicDiscriminator: { + serializedName: "alertNotificationType", + clientName: "alertNotificationType" + }, modelProperties: { - ...Compute.type.modelProperties, - ...HDInsightSchema.type.modelProperties + alertNotificationType: { + serializedName: "alertNotificationType", + required: true, + type: { + name: "String" + } + } } } }; -export const DataFactory: coreClient.CompositeMapper = { - serializedName: "DataFactory", +export const AzureDatastore: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataFactory", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "AzureDatastore", modelProperties: { - ...Compute.type.modelProperties + resourceGroup: { + serializedName: "resourceGroup", + nullable: true, + type: { + name: "String" + } + }, + subscriptionId: { + serializedName: "subscriptionId", + nullable: true, + type: { + name: "String" + } + } } } }; -export const Databricks: coreClient.CompositeMapper = { - serializedName: "Databricks", +export const EarlyTerminationPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Databricks", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "EarlyTerminationPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: { + serializedName: "policyType", + clientName: "policyType" + }, modelProperties: { - ...Compute.type.modelProperties, - ...DatabricksSchema.type.modelProperties + delayEvaluation: { + defaultValue: 0, + serializedName: "delayEvaluation", + type: { + name: "Number" + } + }, + evaluationInterval: { + defaultValue: 0, + serializedName: "evaluationInterval", + type: { + name: "Number" + } + }, + policyType: { + serializedName: "policyType", + required: true, + type: { + name: "String" + } + } } } }; -export const DataLakeAnalytics: coreClient.CompositeMapper = { - serializedName: "DataLakeAnalytics", +export const SamplingAlgorithm: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataLakeAnalytics", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "SamplingAlgorithm", + uberParent: "SamplingAlgorithm", + polymorphicDiscriminator: { + serializedName: "samplingAlgorithmType", + clientName: "samplingAlgorithmType" + }, modelProperties: { - ...Compute.type.modelProperties, - ...DataLakeAnalyticsSchema.type.modelProperties + samplingAlgorithmType: { + serializedName: "samplingAlgorithmType", + required: true, + type: { + name: "String" + } + } } } }; -export const SynapseSpark: coreClient.CompositeMapper = { - serializedName: "SynapseSpark", +export const DataDriftMetricThresholdBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SynapseSpark", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "DataDriftMetricThresholdBase", + uberParent: "DataDriftMetricThresholdBase", + polymorphicDiscriminator: { + serializedName: "dataType", + clientName: "dataType" + }, modelProperties: { - ...Compute.type.modelProperties, - properties: { - serializedName: "properties", + dataType: { + serializedName: "dataType", + required: true, + type: { + name: "String" + } + }, + threshold: { + serializedName: "threshold", type: { name: "Composite", - className: "SynapseSparkProperties" + className: "MonitoringThreshold" } } } } }; -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", +export const MonitoringThreshold: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PATAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + className: "MonitoringThreshold", modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", + value: { + serializedName: "value", + nullable: true, type: { - name: "Composite", - className: "WorkspaceConnectionPersonalAccessToken" + name: "Number" } } } } }; -export const SASAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "SAS", +export const DataQualityMetricThresholdBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SASAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + className: "DataQualityMetricThresholdBase", + uberParent: "DataQualityMetricThresholdBase", + polymorphicDiscriminator: { + serializedName: "dataType", + clientName: "dataType" + }, modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", + dataType: { + serializedName: "dataType", + required: true, + type: { + name: "String" + } + }, + threshold: { + serializedName: "threshold", type: { name: "Composite", - className: "WorkspaceConnectionSharedAccessSignature" + className: "MonitoringThreshold" } } } } }; -export const UsernamePasswordAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "UsernamePassword", +export const PredictionDriftMetricThresholdBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsernamePasswordAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + className: "PredictionDriftMetricThresholdBase", + uberParent: "PredictionDriftMetricThresholdBase", + polymorphicDiscriminator: { + serializedName: "dataType", + clientName: "dataType" + }, modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", + dataType: { + serializedName: "dataType", + required: true, + type: { + name: "String" + } + }, + threshold: { + serializedName: "threshold", type: { name: "Composite", - className: "WorkspaceConnectionUsernamePassword" + className: "MonitoringThreshold" } } } } }; -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", +export const TrainingSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedIdentityAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + className: "TrainingSettings", modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", - type: { + enableDnnTraining: { + defaultValue: false, + serializedName: "enableDnnTraining", + type: { + name: "Boolean" + } + }, + enableModelExplainability: { + defaultValue: true, + serializedName: "enableModelExplainability", + type: { + name: "Boolean" + } + }, + enableOnnxCompatibleModels: { + defaultValue: false, + serializedName: "enableOnnxCompatibleModels", + type: { + name: "Boolean" + } + }, + enableStackEnsemble: { + defaultValue: true, + serializedName: "enableStackEnsemble", + type: { + name: "Boolean" + } + }, + enableVoteEnsemble: { + defaultValue: true, + serializedName: "enableVoteEnsemble", + type: { + name: "Boolean" + } + }, + ensembleModelDownloadTimeout: { + defaultValue: "PT5M", + serializedName: "ensembleModelDownloadTimeout", + type: { + name: "TimeSpan" + } + }, + stackEnsembleSettings: { + serializedName: "stackEnsembleSettings", + type: { name: "Composite", - className: "WorkspaceConnectionManagedIdentity" + className: "StackEnsembleSettings" + } + }, + trainingMode: { + serializedName: "trainingMode", + type: { + name: "String" } } } } }; -export const BatchEndpointProperties: coreClient.CompositeMapper = { +export const StackEnsembleSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchEndpointProperties", + className: "StackEnsembleSettings", modelProperties: { - ...EndpointPropertiesBase.type.modelProperties, - defaults: { - serializedName: "defaults", + stackMetaLearnerKWargs: { + serializedName: "stackMetaLearnerKWargs", + nullable: true, type: { - name: "Composite", - className: "BatchEndpointDefaults" + name: "Dictionary", + value: { type: { name: "any" } } } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + stackMetaLearnerTrainPercentage: { + defaultValue: 0.2, + serializedName: "stackMetaLearnerTrainPercentage", + type: { + name: "Number" + } + }, + stackMetaLearnerType: { + serializedName: "stackMetaLearnerType", type: { name: "String" } @@ -8007,120 +8863,147 @@ export const BatchEndpointProperties: coreClient.CompositeMapper = { } }; -export const OnlineEndpointProperties: coreClient.CompositeMapper = { +export const TableVertical: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointProperties", + className: "TableVertical", modelProperties: { - ...EndpointPropertiesBase.type.modelProperties, - compute: { - serializedName: "compute", + cvSplitColumnNames: { + serializedName: "cvSplitColumnNames", nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + featurizationSettings: { + serializedName: "featurizationSettings", type: { - name: "String" + name: "Composite", + className: "TableVerticalFeaturizationSettings" } }, - publicNetworkAccess: { - serializedName: "publicNetworkAccess", + fixedParameters: { + serializedName: "fixedParameters", type: { - name: "String" + name: "Composite", + className: "TableFixedParameters" } }, - traffic: { - serializedName: "traffic", + limitSettings: { + serializedName: "limitSettings", + type: { + name: "Composite", + className: "TableVerticalLimitSettings" + } + }, + nCrossValidations: { + serializedName: "nCrossValidations", + type: { + name: "Composite", + className: "NCrossValidations" + } + }, + searchSpace: { + serializedName: "searchSpace", nullable: true, type: { - name: "Dictionary", - value: { type: { name: "Number" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TableParameterSubspace" + } + } } - } - } - } -}; - -export const PartialMinimalTrackedResourceWithIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PartialMinimalTrackedResourceWithIdentity", - modelProperties: { - ...PartialMinimalTrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + }, + sweepSettings: { + serializedName: "sweepSettings", type: { name: "Composite", - className: "PartialManagedServiceIdentity" + className: "TableSweepSettings" } - } - } - } -}; - -export const PartialMinimalTrackedResourceWithSku: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PartialMinimalTrackedResourceWithSku", - modelProperties: { - ...PartialMinimalTrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + }, + testData: { + serializedName: "testData", type: { name: "Composite", - className: "PartialSku" + className: "MLTableJobInput" + } + }, + testDataSize: { + serializedName: "testDataSize", + nullable: true, + type: { + name: "Number" + } + }, + validationData: { + serializedName: "validationData", + type: { + name: "Composite", + className: "MLTableJobInput" + } + }, + validationDataSize: { + serializedName: "validationDataSize", + nullable: true, + type: { + name: "Number" + } + }, + weightColumnName: { + serializedName: "weightColumnName", + nullable: true, + type: { + name: "String" } } } } }; -export const DataPathAssetReference: coreClient.CompositeMapper = { - serializedName: "DataPath", +export const ColumnTransformer: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataPathAssetReference", - uberParent: "AssetReferenceBase", - polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + className: "ColumnTransformer", modelProperties: { - ...AssetReferenceBase.type.modelProperties, - datastoreId: { - serializedName: "datastoreId", + fields: { + serializedName: "fields", nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - path: { - serializedName: "path", + parameters: { + serializedName: "parameters", nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const IdAssetReference: coreClient.CompositeMapper = { - serializedName: "Id", +export const FeaturizationSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IdAssetReference", - uberParent: "AssetReferenceBase", - polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + className: "FeaturizationSettings", modelProperties: { - ...AssetReferenceBase.type.modelProperties, - assetId: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "assetId", - required: true, + datasetLanguage: { + serializedName: "datasetLanguage", + nullable: true, type: { name: "String" } @@ -8129,537 +9012,446 @@ export const IdAssetReference: coreClient.CompositeMapper = { } }; -export const OutputPathAssetReference: coreClient.CompositeMapper = { - serializedName: "OutputPath", +export const TableFixedParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutputPathAssetReference", - uberParent: "AssetReferenceBase", - polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + className: "TableFixedParameters", modelProperties: { - ...AssetReferenceBase.type.modelProperties, - jobId: { - serializedName: "jobId", + booster: { + serializedName: "booster", nullable: true, type: { name: "String" } }, - path: { - serializedName: "path", + boostingType: { + serializedName: "boostingType", 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", + }, + growPolicy: { + serializedName: "growPolicy", nullable: true, type: { name: "String" } }, - shmSize: { - defaultValue: "2g", - constraints: { - Pattern: new RegExp("\\d+[bBkKmMgG]") - }, - serializedName: "shmSize", + learningRate: { + serializedName: "learningRate", + nullable: true, type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const BatchDeploymentProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BatchDeploymentProperties", - modelProperties: { - ...EndpointDeploymentPropertiesBase.type.modelProperties, - compute: { - serializedName: "compute", + }, + maxBin: { + serializedName: "maxBin", nullable: true, type: { - name: "String" + name: "Number" } }, - errorThreshold: { - defaultValue: -1, - serializedName: "errorThreshold", + maxDepth: { + serializedName: "maxDepth", + nullable: true, type: { name: "Number" } }, - loggingLevel: { - serializedName: "loggingLevel", + maxLeaves: { + serializedName: "maxLeaves", + nullable: true, type: { - name: "String" + name: "Number" } }, - maxConcurrencyPerInstance: { - defaultValue: 1, - serializedName: "maxConcurrencyPerInstance", + minDataInLeaf: { + serializedName: "minDataInLeaf", + nullable: true, type: { name: "Number" } }, - miniBatchSize: { - defaultValue: 10, - serializedName: "miniBatchSize", + minSplitGain: { + serializedName: "minSplitGain", + nullable: true, type: { name: "Number" } }, - model: { - serializedName: "model", + modelName: { + serializedName: "modelName", + nullable: true, type: { - name: "Composite", - className: "AssetReferenceBase" + name: "String" } }, - outputAction: { - serializedName: "outputAction", + nEstimators: { + serializedName: "nEstimators", + nullable: true, type: { - name: "String" + name: "Number" } }, - outputFileName: { - defaultValue: "predictions.csv", - serializedName: "outputFileName", + numLeaves: { + serializedName: "numLeaves", + nullable: true, + type: { + name: "Number" + } + }, + preprocessorName: { + serializedName: "preprocessorName", + nullable: true, type: { name: "String" } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + regAlpha: { + serializedName: "regAlpha", + nullable: true, + type: { + name: "Number" + } + }, + regLambda: { + serializedName: "regLambda", + nullable: true, + type: { + name: "Number" + } + }, + subsample: { + serializedName: "subsample", + nullable: true, + type: { + name: "Number" + } + }, + subsampleFreq: { + serializedName: "subsampleFreq", + nullable: true, + type: { + name: "Number" + } + }, + treeMethod: { + serializedName: "treeMethod", + nullable: true, type: { name: "String" } }, - resources: { - serializedName: "resources", + withMean: { + defaultValue: false, + serializedName: "withMean", type: { - name: "Composite", - className: "DeploymentResourceConfiguration" + name: "Boolean" } }, - retrySettings: { - serializedName: "retrySettings", + withStd: { + defaultValue: false, + serializedName: "withStd", type: { - name: "Composite", - className: "BatchRetrySettings" + name: "Boolean" } } } } }; -export const OnlineDeploymentProperties: coreClient.CompositeMapper = { - serializedName: "OnlineDeploymentProperties", +export const TableVerticalLimitSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineDeploymentProperties", - uberParent: "EndpointDeploymentPropertiesBase", - polymorphicDiscriminator: { - serializedName: "endpointComputeType", - clientName: "endpointComputeType" - }, + className: "TableVerticalLimitSettings", modelProperties: { - ...EndpointDeploymentPropertiesBase.type.modelProperties, - appInsightsEnabled: { - defaultValue: false, - serializedName: "appInsightsEnabled", + enableEarlyTermination: { + defaultValue: true, + serializedName: "enableEarlyTermination", type: { name: "Boolean" } }, - egressPublicNetworkAccess: { - serializedName: "egressPublicNetworkAccess", - type: { - name: "String" - } - }, - endpointComputeType: { - serializedName: "endpointComputeType", - required: true, + exitScore: { + serializedName: "exitScore", + nullable: true, type: { - name: "String" + name: "Number" } }, - instanceType: { - serializedName: "instanceType", - nullable: true, + maxConcurrentTrials: { + defaultValue: 1, + serializedName: "maxConcurrentTrials", type: { - name: "String" + name: "Number" } }, - livenessProbe: { - serializedName: "livenessProbe", + maxCoresPerTrial: { + defaultValue: -1, + serializedName: "maxCoresPerTrial", type: { - name: "Composite", - className: "ProbeSettings" + name: "Number" } }, - model: { - serializedName: "model", - nullable: true, + maxNodes: { + defaultValue: 1, + serializedName: "maxNodes", type: { - name: "String" + name: "Number" } }, - modelMountPath: { - serializedName: "modelMountPath", - nullable: true, + maxTrials: { + defaultValue: 1000, + serializedName: "maxTrials", type: { - name: "String" + name: "Number" } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + sweepConcurrentTrials: { + defaultValue: 0, + serializedName: "sweepConcurrentTrials", type: { - name: "String" + name: "Number" } }, - readinessProbe: { - serializedName: "readinessProbe", + sweepTrials: { + defaultValue: 0, + serializedName: "sweepTrials", type: { - name: "Composite", - className: "ProbeSettings" + name: "Number" } }, - requestSettings: { - serializedName: "requestSettings", + timeout: { + defaultValue: "PT6H", + serializedName: "timeout", type: { - name: "Composite", - className: "OnlineRequestSettings" + name: "TimeSpan" } }, - scaleSettings: { - serializedName: "scaleSettings", + trialTimeout: { + defaultValue: "PT30M", + serializedName: "trialTimeout", type: { - name: "Composite", - className: "OnlineScaleSettings" + name: "TimeSpan" } } } } }; -export const AssetContainer: coreClient.CompositeMapper = { +export const TableParameterSubspace: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssetContainer", + className: "TableParameterSubspace", modelProperties: { - ...ResourceBase.type.modelProperties, - isArchived: { - defaultValue: false, - serializedName: "isArchived", + booster: { + serializedName: "booster", + nullable: true, type: { - name: "Boolean" + name: "String" } }, - latestVersion: { - serializedName: "latestVersion", - readOnly: true, + boostingType: { + serializedName: "boostingType", nullable: true, type: { name: "String" } }, - nextVersion: { - serializedName: "nextVersion", - readOnly: true, + growPolicy: { + serializedName: "growPolicy", nullable: true, type: { name: "String" } - } - } - } -}; - -export const AssetBase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AssetBase", - modelProperties: { - ...ResourceBase.type.modelProperties, - isAnonymous: { - defaultValue: false, - serializedName: "isAnonymous", + }, + learningRate: { + serializedName: "learningRate", + nullable: true, type: { - name: "Boolean" + name: "String" } }, - isArchived: { - defaultValue: false, - serializedName: "isArchived", + maxBin: { + serializedName: "maxBin", + nullable: true, type: { - name: "Boolean" - } - } - } - } -}; - -export const DatastoreProperties: coreClient.CompositeMapper = { - serializedName: "DatastoreProperties", - type: { - name: "Composite", - className: "DatastoreProperties", - uberParent: "ResourceBase", - polymorphicDiscriminator: { - serializedName: "datastoreType", - clientName: "datastoreType" - }, - modelProperties: { - ...ResourceBase.type.modelProperties, - credentials: { - serializedName: "credentials", - type: { - name: "Composite", - className: "DatastoreCredentials" + name: "String" } }, - datastoreType: { - serializedName: "datastoreType", - required: true, + maxDepth: { + serializedName: "maxDepth", + nullable: true, type: { name: "String" } }, - isDefault: { - serializedName: "isDefault", - readOnly: true, - type: { - name: "Boolean" - } - } - } - } -}; - -export const JobBaseProperties: coreClient.CompositeMapper = { - serializedName: "JobBaseProperties", - type: { - name: "Composite", - className: "JobBaseProperties", - uberParent: "ResourceBase", - polymorphicDiscriminator: { - serializedName: "jobType", - clientName: "jobType" - }, - modelProperties: { - ...ResourceBase.type.modelProperties, - componentId: { - serializedName: "componentId", + maxLeaves: { + serializedName: "maxLeaves", nullable: true, type: { name: "String" } }, - computeId: { - serializedName: "computeId", + minDataInLeaf: { + serializedName: "minDataInLeaf", nullable: true, type: { name: "String" } }, - displayName: { - serializedName: "displayName", + minSplitGain: { + serializedName: "minSplitGain", nullable: true, type: { name: "String" } }, - experimentName: { - defaultValue: "Default", - serializedName: "experimentName", + modelName: { + serializedName: "modelName", + nullable: true, type: { name: "String" } }, - identity: { - serializedName: "identity", + nEstimators: { + serializedName: "nEstimators", + nullable: true, type: { - name: "Composite", - className: "IdentityConfiguration" + name: "String" } }, - isArchived: { - defaultValue: false, - serializedName: "isArchived", + numLeaves: { + serializedName: "numLeaves", + nullable: true, type: { - name: "Boolean" + name: "String" } }, - jobType: { - serializedName: "jobType", - required: true, + preprocessorName: { + serializedName: "preprocessorName", + nullable: true, type: { name: "String" } }, - services: { - serializedName: "services", + regAlpha: { + serializedName: "regAlpha", nullable: true, type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobService" } } + name: "String" } }, - status: { - serializedName: "status", - readOnly: true, + regLambda: { + serializedName: "regLambda", + nullable: true, type: { name: "String" } - } - } - } -}; - -export const ScheduleProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScheduleProperties", - modelProperties: { - ...ResourceBase.type.modelProperties, - action: { - serializedName: "action", + }, + subsample: { + serializedName: "subsample", + nullable: true, type: { - name: "Composite", - className: "ScheduleActionBase" + name: "String" } }, - displayName: { - serializedName: "displayName", + subsampleFreq: { + serializedName: "subsampleFreq", nullable: true, type: { name: "String" } }, - isEnabled: { - defaultValue: true, - serializedName: "isEnabled", + treeMethod: { + serializedName: "treeMethod", + nullable: true, type: { - name: "Boolean" + name: "String" } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + withMean: { + serializedName: "withMean", + nullable: true, type: { name: "String" } }, - trigger: { - serializedName: "trigger", + withStd: { + serializedName: "withStd", + nullable: true, type: { - name: "Composite", - className: "TriggerBase" + name: "String" } } } } }; -export const AccountKeyDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "AccountKey", +export const TableSweepSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccountKeyDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "TableSweepSettings", modelProperties: { - ...DatastoreCredentials.type.modelProperties, - secrets: { - serializedName: "secrets", + earlyTermination: { + serializedName: "earlyTermination", type: { name: "Composite", - className: "AccountKeyDatastoreSecrets" + className: "EarlyTerminationPolicy" + } + }, + samplingAlgorithm: { + serializedName: "samplingAlgorithm", + required: true, + type: { + name: "String" } } } } }; -export const CertificateDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "Certificate", +export const ModelPerformanceMetricThresholdBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CertificateDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "ModelPerformanceMetricThresholdBase", + uberParent: "ModelPerformanceMetricThresholdBase", + polymorphicDiscriminator: { + serializedName: "modelType", + clientName: "modelType" + }, modelProperties: { - ...DatastoreCredentials.type.modelProperties, - authorityUrl: { - serializedName: "authorityUrl", - nullable: true, - type: { - name: "String" - } - }, - clientId: { - serializedName: "clientId", + modelType: { + serializedName: "modelType", required: true, - type: { - name: "Uuid" - } - }, - resourceUrl: { - serializedName: "resourceUrl", - nullable: true, type: { name: "String" } }, - secrets: { - serializedName: "secrets", + threshold: { + serializedName: "threshold", type: { name: "Composite", - className: "CertificateDatastoreSecrets" - } - }, - tenantId: { - serializedName: "tenantId", - required: true, - type: { - name: "Uuid" + className: "MonitoringThreshold" } - }, - thumbprint: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "thumbprint", + } + } + } +}; + +export const DistributionConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DistributionConfiguration", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: { + serializedName: "distributionType", + clientName: "distributionType" + }, + modelProperties: { + distributionType: { + serializedName: "distributionType", required: true, type: { name: "String" @@ -8669,102 +9461,140 @@ export const CertificateDatastoreCredentials: coreClient.CompositeMapper = { } }; -export const NoneDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "None", +export const JobLimits: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NoneDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "JobLimits", + uberParent: "JobLimits", + polymorphicDiscriminator: { + serializedName: "jobLimitsType", + clientName: "jobLimitsType" + }, modelProperties: { - ...DatastoreCredentials.type.modelProperties + jobLimitsType: { + serializedName: "jobLimitsType", + required: true, + type: { + name: "String" + } + }, + timeout: { + serializedName: "timeout", + nullable: true, + type: { + name: "TimeSpan" + } + } } } }; -export const SasDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "Sas", +export const ContainerResourceRequirements: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SasDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "ContainerResourceRequirements", modelProperties: { - ...DatastoreCredentials.type.modelProperties, - secrets: { - serializedName: "secrets", + containerResourceLimits: { + serializedName: "containerResourceLimits", type: { name: "Composite", - className: "SasDatastoreSecrets" + className: "ContainerResourceSettings" + } + }, + containerResourceRequests: { + serializedName: "containerResourceRequests", + type: { + name: "Composite", + className: "ContainerResourceSettings" } } } } }; -export const ServicePrincipalDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "ServicePrincipal", +export const ContainerResourceSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServicePrincipalDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "ContainerResourceSettings", modelProperties: { - ...DatastoreCredentials.type.modelProperties, - authorityUrl: { - serializedName: "authorityUrl", + cpu: { + serializedName: "cpu", nullable: true, type: { name: "String" } }, - clientId: { - serializedName: "clientId", - required: true, + gpu: { + serializedName: "gpu", + nullable: true, type: { - name: "Uuid" + name: "String" } }, - resourceUrl: { - serializedName: "resourceUrl", + memory: { + serializedName: "memory", nullable: true, type: { name: "String" } + } + } + } +}; + +export const MonitorDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MonitorDefinition", + modelProperties: { + alertNotificationSetting: { + serializedName: "alertNotificationSetting", + type: { + name: "Composite", + className: "MonitoringAlertNotificationSettingsBase" + } }, - secrets: { - serializedName: "secrets", + computeConfiguration: { + serializedName: "computeConfiguration", type: { name: "Composite", - className: "ServicePrincipalDatastoreSecrets" + className: "MonitorComputeConfigurationBase" } }, - tenantId: { - serializedName: "tenantId", + monitoringTarget: { + serializedName: "monitoringTarget", + type: { + name: "Composite", + className: "MonitoringTarget" + } + }, + signals: { + serializedName: "signals", required: true, type: { - name: "Uuid" + name: "Dictionary", + value: { + type: { name: "Composite", className: "MonitoringSignalBase" } + } } } } } }; -export const AccountKeyDatastoreSecrets: coreClient.CompositeMapper = { - serializedName: "AccountKey", +export const MonitorComputeConfigurationBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccountKeyDatastoreSecrets", - uberParent: "DatastoreSecrets", - polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + className: "MonitorComputeConfigurationBase", + uberParent: "MonitorComputeConfigurationBase", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, modelProperties: { - ...DatastoreSecrets.type.modelProperties, - key: { - serializedName: "key", - nullable: true, + computeType: { + serializedName: "computeType", + required: true, type: { name: "String" } @@ -8773,38 +9603,63 @@ export const AccountKeyDatastoreSecrets: coreClient.CompositeMapper = { } }; -export const CertificateDatastoreSecrets: coreClient.CompositeMapper = { - serializedName: "Certificate", +export const MonitoringTarget: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CertificateDatastoreSecrets", - uberParent: "DatastoreSecrets", - polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + className: "MonitoringTarget", modelProperties: { - ...DatastoreSecrets.type.modelProperties, - certificate: { - serializedName: "certificate", + deploymentId: { + serializedName: "deploymentId", + nullable: true, + type: { + name: "String" + } + }, + modelId: { + serializedName: "modelId", nullable: true, type: { name: "String" } + }, + taskType: { + serializedName: "taskType", + required: true, + type: { + name: "String" + } } } } }; -export const SasDatastoreSecrets: coreClient.CompositeMapper = { - serializedName: "Sas", +export const MonitoringSignalBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SasDatastoreSecrets", - uberParent: "DatastoreSecrets", - polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + className: "MonitoringSignalBase", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: { + serializedName: "signalType", + clientName: "signalType" + }, modelProperties: { - ...DatastoreSecrets.type.modelProperties, - sasToken: { - serializedName: "sasToken", + mode: { + serializedName: "mode", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + signalType: { + serializedName: "signalType", + required: true, type: { name: "String" } @@ -8813,67 +9668,124 @@ export const SasDatastoreSecrets: coreClient.CompositeMapper = { } }; -export const ServicePrincipalDatastoreSecrets: coreClient.CompositeMapper = { - serializedName: "ServicePrincipal", +export const OnlineInferenceConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServicePrincipalDatastoreSecrets", - uberParent: "DatastoreSecrets", - polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + className: "OnlineInferenceConfiguration", modelProperties: { - ...DatastoreSecrets.type.modelProperties, - clientSecret: { - serializedName: "clientSecret", + configurations: { + serializedName: "configurations", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + entryScript: { + serializedName: "entryScript", nullable: true, type: { name: "String" } + }, + livenessRoute: { + serializedName: "livenessRoute", + type: { + name: "Composite", + className: "Route" + } + }, + readinessRoute: { + serializedName: "readinessRoute", + type: { + name: "Composite", + className: "Route" + } + }, + scoringRoute: { + serializedName: "scoringRoute", + type: { + name: "Composite", + className: "Route" + } } } } }; -export const AmlToken: coreClient.CompositeMapper = { - serializedName: "AMLToken", +export const CustomMetricThreshold: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlToken", - uberParent: "IdentityConfiguration", - polymorphicDiscriminator: - IdentityConfiguration.type.polymorphicDiscriminator, + className: "CustomMetricThreshold", modelProperties: { - ...IdentityConfiguration.type.modelProperties + metric: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "metric", + required: true, + type: { + name: "String" + } + }, + threshold: { + serializedName: "threshold", + type: { + name: "Composite", + className: "MonitoringThreshold" + } + } } } }; -export const ManagedIdentity: coreClient.CompositeMapper = { - serializedName: "Managed", +export const MonitoringInputDataBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedIdentity", - uberParent: "IdentityConfiguration", - polymorphicDiscriminator: - IdentityConfiguration.type.polymorphicDiscriminator, + className: "MonitoringInputDataBase", + uberParent: "MonitoringInputDataBase", + polymorphicDiscriminator: { + serializedName: "inputDataType", + clientName: "inputDataType" + }, modelProperties: { - ...IdentityConfiguration.type.modelProperties, - clientId: { - serializedName: "clientId", + columns: { + serializedName: "columns", nullable: true, type: { - name: "Uuid" + name: "Dictionary", + value: { type: { name: "String" } } } }, - objectId: { - serializedName: "objectId", + dataContext: { + serializedName: "dataContext", nullable: true, type: { - name: "Uuid" + name: "String" } }, - resourceId: { - serializedName: "resourceId", - nullable: true, + inputDataType: { + serializedName: "inputDataType", + required: true, + type: { + name: "String" + } + }, + jobInputType: { + serializedName: "jobInputType", + required: true, + type: { + name: "String" + } + }, + uri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "uri", + required: true, type: { name: "String" } @@ -8882,535 +9794,7379 @@ export const ManagedIdentity: coreClient.CompositeMapper = { } }; -export const UserIdentity: coreClient.CompositeMapper = { - serializedName: "UserIdentity", +export const MonitoringWorkspaceConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserIdentity", - uberParent: "IdentityConfiguration", - polymorphicDiscriminator: - IdentityConfiguration.type.polymorphicDiscriminator, + className: "MonitoringWorkspaceConnection", modelProperties: { - ...IdentityConfiguration.type.modelProperties + environmentVariables: { + serializedName: "environmentVariables", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + secrets: { + serializedName: "secrets", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } } } }; -export const DefaultScaleSettings: coreClient.CompositeMapper = { - serializedName: "Default", +export const MonitoringDataSegment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefaultScaleSettings", - uberParent: "OnlineScaleSettings", - polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, + className: "MonitoringDataSegment", modelProperties: { - ...OnlineScaleSettings.type.modelProperties + feature: { + serializedName: "feature", + nullable: true, + type: { + name: "String" + } + }, + values: { + serializedName: "values", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } }; -export const TargetUtilizationScaleSettings: coreClient.CompositeMapper = { - serializedName: "TargetUtilization", +export const DataImportSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TargetUtilizationScaleSettings", - uberParent: "OnlineScaleSettings", - polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, + className: "DataImportSource", + uberParent: "DataImportSource", + polymorphicDiscriminator: { + serializedName: "sourceType", + clientName: "sourceType" + }, modelProperties: { - ...OnlineScaleSettings.type.modelProperties, - maxInstances: { - defaultValue: 1, - serializedName: "maxInstances", + connection: { + serializedName: "connection", + nullable: true, type: { - name: "Number" + name: "String" } }, - minInstances: { - defaultValue: 1, - serializedName: "minInstances", + sourceType: { + serializedName: "sourceType", + required: true, type: { - name: "Number" - } - }, - pollingInterval: { - defaultValue: "PT1S", - serializedName: "pollingInterval", - type: { - name: "TimeSpan" - } - }, - targetUtilizationPercentage: { - defaultValue: 70, - serializedName: "targetUtilizationPercentage", - type: { - name: "Number" + name: "String" } } } } }; -export const EndpointScheduleAction: coreClient.CompositeMapper = { - serializedName: "InvokeBatchEndpoint", +export const FeatureAttributionMetricThreshold: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointScheduleAction", - uberParent: "ScheduleActionBase", - polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, + className: "FeatureAttributionMetricThreshold", modelProperties: { - ...ScheduleActionBase.type.modelProperties, - endpointInvocationDefinition: { - serializedName: "endpointInvocationDefinition", + metric: { + serializedName: "metric", required: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } - } - } - } -}; - -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", + }, + threshold: { + serializedName: "threshold", type: { name: "Composite", - className: "JobBaseProperties" + className: "MonitoringThreshold" } } } } }; -export const RecurrenceTrigger: coreClient.CompositeMapper = { - serializedName: "Recurrence", +export const ForecastingSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecurrenceTrigger", - uberParent: "TriggerBase", - polymorphicDiscriminator: TriggerBase.type.polymorphicDiscriminator, + className: "ForecastingSettings", modelProperties: { - ...TriggerBase.type.modelProperties, + countryOrRegionForHolidays: { + serializedName: "countryOrRegionForHolidays", + nullable: true, + type: { + name: "String" + } + }, + cvStepSize: { + serializedName: "cvStepSize", + nullable: true, + type: { + name: "Number" + } + }, + featureLags: { + serializedName: "featureLags", + type: { + name: "String" + } + }, + featuresUnknownAtForecastTime: { + serializedName: "featuresUnknownAtForecastTime", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + forecastHorizon: { + serializedName: "forecastHorizon", + type: { + name: "Composite", + className: "ForecastHorizon" + } + }, frequency: { serializedName: "frequency", - required: true, + nullable: true, type: { name: "String" } }, - interval: { - serializedName: "interval", - required: true, + seasonality: { + serializedName: "seasonality", type: { - name: "Number" + name: "Composite", + className: "Seasonality" } }, - schedule: { - serializedName: "schedule", + shortSeriesHandlingConfig: { + serializedName: "shortSeriesHandlingConfig", + type: { + name: "String" + } + }, + targetAggregateFunction: { + serializedName: "targetAggregateFunction", + type: { + name: "String" + } + }, + targetLags: { + serializedName: "targetLags", type: { name: "Composite", - className: "RecurrenceSchedule" + className: "TargetLags" + } + }, + targetRollingWindowSize: { + serializedName: "targetRollingWindowSize", + type: { + name: "Composite", + className: "TargetRollingWindowSize" + } + }, + timeColumnName: { + serializedName: "timeColumnName", + nullable: true, + type: { + name: "String" + } + }, + timeSeriesIdColumnNames: { + serializedName: "timeSeriesIdColumnNames", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + useStl: { + serializedName: "useStl", + type: { + name: "String" } } } } }; -export const CronTrigger: coreClient.CompositeMapper = { - serializedName: "Cron", +export const GenerationSafetyQualityMetricThreshold: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CronTrigger", - uberParent: "TriggerBase", - polymorphicDiscriminator: TriggerBase.type.polymorphicDiscriminator, + className: "GenerationSafetyQualityMetricThreshold", modelProperties: { - ...TriggerBase.type.modelProperties, - expression: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "expression", + metric: { + serializedName: "metric", required: true, type: { name: "String" } + }, + threshold: { + serializedName: "threshold", + type: { + name: "Composite", + className: "MonitoringThreshold" + } } } } }; -export const MLTableJobInput: coreClient.CompositeMapper = { - serializedName: "mltable", - type: { - name: "Composite", - className: "MLTableJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, - modelProperties: { - ...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", +export const GenerationTokenStatisticsMetricThreshold: coreClient.CompositeMapper = { 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, + className: "GenerationTokenStatisticsMetricThreshold", modelProperties: { - ...AssetJobInput.type.modelProperties, - ...JobInput.type.modelProperties + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + }, + threshold: { + serializedName: "threshold", + type: { + name: "Composite", + className: "MonitoringThreshold" + } + } } } }; -export const UriFolderJobInput: coreClient.CompositeMapper = { - serializedName: "uri_folder", +export const ImageModelSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UriFolderJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + className: "ImageModelSettings", 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, + advancedSettings: { + serializedName: "advancedSettings", + nullable: true, + type: { + name: "String" + } + }, + amsGradient: { + serializedName: "amsGradient", + nullable: true, + type: { + name: "Boolean" + } + }, + augmentations: { + serializedName: "augmentations", + nullable: true, + type: { + name: "String" + } + }, + beta1: { + serializedName: "beta1", + nullable: true, + type: { + name: "Number" + } + }, + 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" + } + }, + samplingAlgorithm: { + serializedName: "samplingAlgorithm", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const KerberosCredentials: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KerberosCredentials", + modelProperties: { + kerberosKdcAddress: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "kerberosKdcAddress", + required: true, + type: { + name: "String" + } + }, + kerberosPrincipal: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "kerberosPrincipal", + required: true, + type: { + name: "String" + } + }, + kerberosRealm: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "kerberosRealm", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const OneLakeArtifact: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OneLakeArtifact", + uberParent: "OneLakeArtifact", + polymorphicDiscriminator: { + serializedName: "artifactType", + clientName: "artifactType" + }, + modelProperties: { + artifactName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "artifactName", + required: true, + type: { + name: "String" + } + }, + artifactType: { + serializedName: "artifactType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const NlpFixedParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NlpFixedParameters", + modelProperties: { + gradientAccumulationSteps: { + serializedName: "gradientAccumulationSteps", + 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" + } + }, + numberOfEpochs: { + serializedName: "numberOfEpochs", + nullable: true, + type: { + name: "Number" + } + }, + trainingBatchSize: { + serializedName: "trainingBatchSize", + nullable: true, + type: { + name: "Number" + } + }, + validationBatchSize: { + serializedName: "validationBatchSize", + nullable: true, + type: { + name: "Number" + } + }, + warmupRatio: { + serializedName: "warmupRatio", + nullable: true, + type: { + name: "Number" + } + }, + weightDecay: { + serializedName: "weightDecay", + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +export const NlpParameterSubspace: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NlpParameterSubspace", + modelProperties: { + gradientAccumulationSteps: { + serializedName: "gradientAccumulationSteps", + 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" + } + }, + numberOfEpochs: { + serializedName: "numberOfEpochs", + nullable: true, + type: { + name: "String" + } + }, + trainingBatchSize: { + serializedName: "trainingBatchSize", + nullable: true, + type: { + name: "String" + } + }, + validationBatchSize: { + serializedName: "validationBatchSize", + nullable: true, + type: { + name: "String" + } + }, + warmupRatio: { + serializedName: "warmupRatio", + nullable: true, + type: { + name: "String" + } + }, + weightDecay: { + serializedName: "weightDecay", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const NlpSweepSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NlpSweepSettings", + modelProperties: { + earlyTermination: { + serializedName: "earlyTermination", + type: { + name: "Composite", + className: "EarlyTerminationPolicy" + } + }, + samplingAlgorithm: { + serializedName: "samplingAlgorithm", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const NlpVertical: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NlpVertical", + modelProperties: { + featurizationSettings: { + serializedName: "featurizationSettings", + type: { + name: "Composite", + className: "NlpVerticalFeaturizationSettings" + } + }, + fixedParameters: { + serializedName: "fixedParameters", + type: { + name: "Composite", + className: "NlpFixedParameters" + } + }, + limitSettings: { + serializedName: "limitSettings", + type: { + name: "Composite", + className: "NlpVerticalLimitSettings" + } + }, + searchSpace: { + serializedName: "searchSpace", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NlpParameterSubspace" + } + } + } + }, + sweepSettings: { + serializedName: "sweepSettings", + type: { + name: "Composite", + className: "NlpSweepSettings" + } + }, + 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" + } + }, + maxNodes: { + defaultValue: 1, + serializedName: "maxNodes", + type: { + name: "Number" + } + }, + maxTrials: { + defaultValue: 1, + serializedName: "maxTrials", + type: { + name: "Number" + } + }, + timeout: { + defaultValue: "P7D", + serializedName: "timeout", + type: { + name: "TimeSpan" + } + }, + trialTimeout: { + serializedName: "trialTimeout", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const Objective: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Objective", + modelProperties: { + goal: { + serializedName: "goal", + required: true, + type: { + name: "String" + } + }, + primaryMetric: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "primaryMetric", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const 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_]"), + MinLength: 1 + }, + serializedName: "environmentId", + required: true, + type: { + name: "String" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "JobResourceConfiguration" + } + } + } + } +}; + +export const WorkspaceConnectionAccessKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionAccessKey", + modelProperties: { + accessKeyId: { + serializedName: "accessKeyId", + type: { + name: "String" + } + }, + secretAccessKey: { + serializedName: "secretAccessKey", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceConnectionApiKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionApiKey", + modelProperties: { + key: { + serializedName: "key", + type: { + name: "String" + } + } + } + } +}; + +export const CustomKeys: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomKeys", + modelProperties: { + keys: { + serializedName: "keys", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const WorkspaceConnectionManagedIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionManagedIdentity", + modelProperties: { + clientId: { + serializedName: "clientId", + type: { + name: "String" + } + }, + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceConnectionPersonalAccessToken: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionPersonalAccessToken", + modelProperties: { + pat: { + serializedName: "pat", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointDestination: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointDestination", + modelProperties: { + serviceResourceId: { + serializedName: "serviceResourceId", + type: { + name: "String" + } + }, + sparkEnabled: { + serializedName: "sparkEnabled", + type: { + name: "Boolean" + } + }, + sparkStatus: { + serializedName: "sparkStatus", + type: { + name: "String" + } + }, + subresourceTarget: { + serializedName: "subresourceTarget", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceConnectionSharedAccessSignature: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionSharedAccessSignature", + modelProperties: { + sas: { + serializedName: "sas", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceConnectionServicePrincipal: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionServicePrincipal", + modelProperties: { + clientId: { + serializedName: "clientId", + type: { + name: "String" + } + }, + clientSecret: { + serializedName: "clientSecret", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + type: { + name: "String" + } + } + } + } +}; + +export const ServiceTagDestination: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceTagDestination", + modelProperties: { + action: { + serializedName: "action", + type: { + name: "String" + } + }, + addressPrefixes: { + serializedName: "addressPrefixes", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + portRanges: { + serializedName: "portRanges", + type: { + name: "String" + } + }, + protocol: { + serializedName: "protocol", + type: { + name: "String" + } + }, + serviceTag: { + serializedName: "serviceTag", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceConnectionUsernamePassword: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionUsernamePassword", + modelProperties: { + password: { + serializedName: "password", + type: { + name: "String" + } + }, + username: { + serializedName: "username", + type: { + name: "String" + } + } + } + } +}; + +export const RegistryPartialManagedServiceIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryPartialManagedServiceIdentity", + modelProperties: { + ...ManagedServiceIdentity.type.modelProperties + } + } +}; + +export const ComputeResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeResource", + modelProperties: { + ...Resource.type.modelProperties, + ...ComputeResourceSchema.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "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 CodeContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CodeContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CodeContainerProperties" + } + } + } + } +}; + +export const CodeVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CodeVersion", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CodeVersionProperties" + } + } + } + } +}; + +export const ComponentContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ComponentContainerProperties" + } + } + } + } +}; + +export const ComponentVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentVersion", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ComponentVersionProperties" + } + } + } + } +}; + +export const DataContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataContainerProperties" + } + } + } + } +}; + +export const DataVersionBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataVersionBase", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataVersionBaseProperties" + } + } + } + } +}; + +export const EnvironmentContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "EnvironmentContainerProperties" + } + } + } + } +}; + +export const EnvironmentVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentVersion", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "EnvironmentVersionProperties" + } + } + } + } +}; + +export const ModelContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ModelContainerProperties" + } + } + } + } +}; + +export const ModelVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelVersion", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ModelVersionProperties" + } + } + } + } +}; + +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + location: { + serializedName: "location", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const Datastore: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Datastore", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DatastoreProperties" + } + } + } + } +}; + +export const FeaturesetContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturesetContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "FeaturesetContainerProperties" + } + } + } + } +}; + +export const Feature: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Feature", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "FeatureProperties" + } + } + } + } +}; + +export const FeaturesetVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturesetVersion", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "FeaturesetVersionProperties" + } + } + } + } +}; + +export const FeaturestoreEntityContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturestoreEntityContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "FeaturestoreEntityContainerProperties" + } + } + } + } +}; + +export const FeaturestoreEntityVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturestoreEntityVersion", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "FeaturestoreEntityVersionProperties" + } + } + } + } +}; + +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 Schedule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Schedule", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ScheduleProperties" + } + } + } + } +}; + +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" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "WorkspacePrivateEndpointResource" + } + }, + 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" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + allowPublicAccessWhenBehindVnet: { + serializedName: "properties.allowPublicAccessWhenBehindVnet", + type: { + name: "Boolean" + } + }, + applicationInsights: { + serializedName: "properties.applicationInsights", + type: { + name: "String" + } + }, + associatedWorkspaces: { + serializedName: "properties.associatedWorkspaces", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + containerRegistries: { + serializedName: "properties.containerRegistries", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + containerRegistry: { + serializedName: "properties.containerRegistry", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + discoveryUrl: { + serializedName: "properties.discoveryUrl", + type: { + name: "String" + } + }, + enableDataIsolation: { + serializedName: "properties.enableDataIsolation", + type: { + name: "Boolean" + } + }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "EncryptionProperty" + } + }, + existingWorkspaces: { + serializedName: "properties.existingWorkspaces", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + featureStoreSettings: { + serializedName: "properties.featureStoreSettings", + type: { + name: "Composite", + className: "FeatureStoreSettings" + } + }, + friendlyName: { + serializedName: "properties.friendlyName", + type: { + name: "String" + } + }, + hbiWorkspace: { + serializedName: "properties.hbiWorkspace", + type: { + name: "Boolean" + } + }, + hubResourceId: { + serializedName: "properties.hubResourceId", + type: { + name: "String" + } + }, + imageBuildCompute: { + serializedName: "properties.imageBuildCompute", + type: { + name: "String" + } + }, + keyVault: { + serializedName: "properties.keyVault", + type: { + name: "String" + } + }, + keyVaults: { + serializedName: "properties.keyVaults", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + managedNetwork: { + serializedName: "properties.managedNetwork", + type: { + name: "Composite", + className: "ManagedNetworkSettings" + } + }, + mlFlowTrackingUri: { + serializedName: "properties.mlFlowTrackingUri", + readOnly: true, + type: { + name: "String" + } + }, + notebookInfo: { + serializedName: "properties.notebookInfo", + type: { + name: "Composite", + className: "NotebookResourceInfo" + } + }, + primaryUserAssignedIdentity: { + serializedName: "properties.primaryUserAssignedIdentity", + type: { + name: "String" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + privateLinkCount: { + serializedName: "properties.privateLinkCount", + readOnly: true, + type: { + name: "Number" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + serviceManagedResourcesSettings: { + serializedName: "properties.serviceManagedResourcesSettings", + type: { + name: "Composite", + className: "ServiceManagedResourcesSettings" + } + }, + serviceProvisionedResourceGroup: { + serializedName: "properties.serviceProvisionedResourceGroup", + readOnly: true, + type: { + name: "String" + } + }, + sharedPrivateLinkResources: { + serializedName: "properties.sharedPrivateLinkResources", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedPrivateLinkResource" + } + } + } + }, + softDeleteRetentionInDays: { + serializedName: "properties.softDeleteRetentionInDays", + type: { + name: "Number" + } + }, + storageAccount: { + serializedName: "properties.storageAccount", + type: { + name: "String" + } + }, + storageAccounts: { + serializedName: "properties.storageAccounts", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + storageHnsEnabled: { + serializedName: "properties.storageHnsEnabled", + readOnly: true, + type: { + name: "Boolean" + } + }, + systemDatastoresAuthMode: { + serializedName: "properties.systemDatastoresAuthMode", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "properties.tenantId", + readOnly: true, + type: { + name: "String" + } + }, + v1LegacyMode: { + serializedName: "properties.v1LegacyMode", + type: { + name: "Boolean" + } + }, + workspaceHubConfig: { + serializedName: "properties.workspaceHubConfig", + type: { + name: "Composite", + className: "WorkspaceHubConfig" + } + }, + workspaceId: { + serializedName: "properties.workspaceId", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceConnectionPropertiesV2BasicResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionPropertiesV2BasicResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "WorkspaceConnectionPropertiesV2" + } + } + } + } +}; + +export const OutboundRuleBasicResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OutboundRuleBasicResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OutboundRule" + } + } + } + } +}; + +export const 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" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + groupId: { + serializedName: "properties.groupId", + type: { + name: "String" + } + }, + requiredMembers: { + serializedName: "properties.requiredMembers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const Aks: coreClient.CompositeMapper = { + serializedName: "AKS", + type: { + name: "Composite", + className: "Aks", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...AKSSchema.type.modelProperties + } + } +}; + +export const Kubernetes: coreClient.CompositeMapper = { + serializedName: "Kubernetes", + type: { + name: "Composite", + className: "Kubernetes", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...KubernetesSchema.type.modelProperties + } + } +}; + +export const AmlCompute: coreClient.CompositeMapper = { + serializedName: "AmlCompute", + type: { + name: "Composite", + className: "AmlCompute", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...AmlComputeSchema.type.modelProperties + } + } +}; + +export const ComputeInstance: coreClient.CompositeMapper = { + serializedName: "ComputeInstance", + type: { + name: "Composite", + className: "ComputeInstance", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...ComputeInstanceSchema.type.modelProperties + } + } +}; + +export const VirtualMachine: coreClient.CompositeMapper = { + serializedName: "VirtualMachine", + type: { + name: "Composite", + className: "VirtualMachine", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...VirtualMachineSchema.type.modelProperties + } + } +}; + +export const HDInsight: coreClient.CompositeMapper = { + serializedName: "HDInsight", + type: { + name: "Composite", + className: "HDInsight", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...HDInsightSchema.type.modelProperties + } + } +}; + +export const DataFactory: coreClient.CompositeMapper = { + serializedName: "DataFactory", + type: { + name: "Composite", + className: "DataFactory", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties + } + } +}; + +export const Databricks: coreClient.CompositeMapper = { + serializedName: "Databricks", + type: { + name: "Composite", + className: "Databricks", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...DatabricksSchema.type.modelProperties + } + } +}; + +export const DataLakeAnalytics: coreClient.CompositeMapper = { + serializedName: "DataLakeAnalytics", + type: { + name: "Composite", + className: "DataLakeAnalytics", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...DataLakeAnalyticsSchema.type.modelProperties + } + } +}; + +export const SynapseSpark: coreClient.CompositeMapper = { + serializedName: "SynapseSpark", + type: { + name: "Composite", + className: "SynapseSpark", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "SynapseSparkProperties" + } + } + } + } +}; + +export const AksComputeSecrets: coreClient.CompositeMapper = { + serializedName: "AKS", + type: { + name: "Composite", + className: "AksComputeSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...ComputeSecrets.type.modelProperties, + ...AksComputeSecretsProperties.type.modelProperties + } + } +}; + +export const VirtualMachineSecrets: coreClient.CompositeMapper = { + serializedName: "VirtualMachine", + type: { + name: "Composite", + className: "VirtualMachineSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...ComputeSecrets.type.modelProperties, + ...VirtualMachineSecretsSchema.type.modelProperties + } + } +}; + +export const DatabricksComputeSecrets: coreClient.CompositeMapper = { + serializedName: "Databricks", + type: { + name: "Composite", + className: "DatabricksComputeSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...ComputeSecrets.type.modelProperties, + ...DatabricksComputeSecretsProperties.type.modelProperties + } + } +}; + +export const AssetContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssetContainer", + modelProperties: { + ...ResourceBase.type.modelProperties, + isArchived: { + defaultValue: false, + serializedName: "isArchived", + type: { + name: "Boolean" + } + }, + latestVersion: { + serializedName: "latestVersion", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + nextVersion: { + serializedName: "nextVersion", + readOnly: true, + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const AssetBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssetBase", + modelProperties: { + ...ResourceBase.type.modelProperties, + autoDeleteSetting: { + serializedName: "autoDeleteSetting", + type: { + name: "Composite", + className: "AutoDeleteSetting" + } + }, + isAnonymous: { + defaultValue: false, + serializedName: "isAnonymous", + type: { + name: "Boolean" + } + }, + isArchived: { + defaultValue: false, + serializedName: "isArchived", + type: { + name: "Boolean" + } + } + } + } +}; + +export const DatastoreProperties: coreClient.CompositeMapper = { + serializedName: "DatastoreProperties", + type: { + name: "Composite", + className: "DatastoreProperties", + uberParent: "ResourceBase", + polymorphicDiscriminator: { + serializedName: "datastoreType", + clientName: "datastoreType" + }, + modelProperties: { + ...ResourceBase.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "DatastoreCredentials" + } + }, + datastoreType: { + serializedName: "datastoreType", + required: true, + type: { + name: "String" + } + }, + intellectualProperty: { + serializedName: "intellectualProperty", + type: { + name: "Composite", + className: "IntellectualProperty" + } + }, + isDefault: { + serializedName: "isDefault", + readOnly: true, + type: { + name: "Boolean" + } + } + } + } +}; + +export const FeatureProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeatureProperties", + modelProperties: { + ...ResourceBase.type.modelProperties, + dataType: { + serializedName: "dataType", + type: { + name: "String" + } + }, + featureName: { + serializedName: "featureName", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const JobBaseProperties: coreClient.CompositeMapper = { + serializedName: "JobBaseProperties", + type: { + name: "Composite", + className: "JobBaseProperties", + uberParent: "ResourceBase", + polymorphicDiscriminator: { + serializedName: "jobType", + clientName: "jobType" + }, + modelProperties: { + ...ResourceBase.type.modelProperties, + componentId: { + serializedName: "componentId", + nullable: true, + type: { + name: "String" + } + }, + computeId: { + serializedName: "computeId", + nullable: true, + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + nullable: true, + type: { + name: "String" + } + }, + experimentName: { + defaultValue: "Default", + serializedName: "experimentName", + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityConfiguration" + } + }, + isArchived: { + defaultValue: false, + serializedName: "isArchived", + type: { + name: "Boolean" + } + }, + jobType: { + serializedName: "jobType", + required: true, + type: { + name: "String" + } + }, + notificationSetting: { + serializedName: "notificationSetting", + type: { + name: "Composite", + className: "NotificationSetting" + } + }, + secretsConfiguration: { + serializedName: "secretsConfiguration", + nullable: true, + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "SecretConfiguration" } + } + } + }, + services: { + serializedName: "services", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobService" } } + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ScheduleProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScheduleProperties", + modelProperties: { + ...ResourceBase.type.modelProperties, + action: { + serializedName: "action", + type: { + name: "Composite", + className: "ScheduleActionBase" + } + }, + displayName: { + serializedName: "displayName", + nullable: true, + type: { + name: "String" + } + }, + isEnabled: { + defaultValue: true, + serializedName: "isEnabled", + type: { + name: "Boolean" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + trigger: { + serializedName: "trigger", + type: { + name: "Composite", + className: "TriggerBase" + } + } + } + } +}; + +export const SASCredentialDto: coreClient.CompositeMapper = { + serializedName: "SAS", + type: { + name: "Composite", + className: "SASCredentialDto", + uberParent: "PendingUploadCredentialDto", + polymorphicDiscriminator: + PendingUploadCredentialDto.type.polymorphicDiscriminator, + modelProperties: { + ...PendingUploadCredentialDto.type.modelProperties, + sasUri: { + serializedName: "sasUri", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const BaseEnvironmentId: coreClient.CompositeMapper = { + serializedName: "EnvironmentAsset", + type: { + name: "Composite", + className: "BaseEnvironmentId", + uberParent: "BaseEnvironmentSource", + polymorphicDiscriminator: + BaseEnvironmentSource.type.polymorphicDiscriminator, + modelProperties: { + ...BaseEnvironmentSource.type.modelProperties, + resourceId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "resourceId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const AzureMLBatchInferencingServer: coreClient.CompositeMapper = { + serializedName: "AzureMLBatch", + type: { + name: "Composite", + className: "AzureMLBatchInferencingServer", + uberParent: "InferencingServer", + polymorphicDiscriminator: InferencingServer.type.polymorphicDiscriminator, + modelProperties: { + ...InferencingServer.type.modelProperties, + codeConfiguration: { + serializedName: "codeConfiguration", + type: { + name: "Composite", + className: "CodeConfiguration" + } + } + } + } +}; + +export const AzureMLOnlineInferencingServer: coreClient.CompositeMapper = { + serializedName: "AzureMLOnline", + type: { + name: "Composite", + className: "AzureMLOnlineInferencingServer", + uberParent: "InferencingServer", + polymorphicDiscriminator: InferencingServer.type.polymorphicDiscriminator, + modelProperties: { + ...InferencingServer.type.modelProperties, + codeConfiguration: { + serializedName: "codeConfiguration", + type: { + name: "Composite", + className: "CodeConfiguration" + } + } + } + } +}; + +export const CustomInferencingServer: coreClient.CompositeMapper = { + serializedName: "Custom", + type: { + name: "Composite", + className: "CustomInferencingServer", + uberParent: "InferencingServer", + polymorphicDiscriminator: InferencingServer.type.polymorphicDiscriminator, + modelProperties: { + ...InferencingServer.type.modelProperties, + inferenceConfiguration: { + serializedName: "inferenceConfiguration", + type: { + name: "Composite", + className: "OnlineInferenceConfiguration" + } + } + } + } +}; + +export const TritonInferencingServer: coreClient.CompositeMapper = { + serializedName: "Triton", + type: { + name: "Composite", + className: "TritonInferencingServer", + uberParent: "InferencingServer", + polymorphicDiscriminator: InferencingServer.type.polymorphicDiscriminator, + modelProperties: { + ...InferencingServer.type.modelProperties, + inferenceConfiguration: { + serializedName: "inferenceConfiguration", + type: { + name: "Composite", + className: "OnlineInferenceConfiguration" + } + } + } + } +}; + +export const PackageInputPathId: coreClient.CompositeMapper = { + serializedName: "PathId", + type: { + name: "Composite", + className: "PackageInputPathId", + uberParent: "PackageInputPathBase", + polymorphicDiscriminator: + PackageInputPathBase.type.polymorphicDiscriminator, + modelProperties: { + ...PackageInputPathBase.type.modelProperties, + resourceId: { + serializedName: "resourceId", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const PackageInputPathUrl: coreClient.CompositeMapper = { + serializedName: "Url", + type: { + name: "Composite", + className: "PackageInputPathUrl", + uberParent: "PackageInputPathBase", + polymorphicDiscriminator: + PackageInputPathBase.type.polymorphicDiscriminator, + modelProperties: { + ...PackageInputPathBase.type.modelProperties, + url: { + serializedName: "url", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const PackageInputPathVersion: coreClient.CompositeMapper = { + serializedName: "PathVersion", + type: { + name: "Composite", + className: "PackageInputPathVersion", + uberParent: "PackageInputPathBase", + polymorphicDiscriminator: + PackageInputPathBase.type.polymorphicDiscriminator, + modelProperties: { + ...PackageInputPathBase.type.modelProperties, + resourceName: { + serializedName: "resourceName", + nullable: true, + type: { + name: "String" + } + }, + resourceVersion: { + serializedName: "resourceVersion", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const BatchEndpointProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchEndpointProperties", + modelProperties: { + ...EndpointPropertiesBase.type.modelProperties, + defaults: { + serializedName: "defaults", + type: { + name: "Composite", + className: "BatchEndpointDefaults" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const OnlineEndpointProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineEndpointProperties", + modelProperties: { + ...EndpointPropertiesBase.type.modelProperties, + compute: { + serializedName: "compute", + nullable: true, + type: { + name: "String" + } + }, + mirrorTraffic: { + serializedName: "mirrorTraffic", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Number" } } + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + publicNetworkAccess: { + serializedName: "publicNetworkAccess", + type: { + name: "String" + } + }, + traffic: { + serializedName: "traffic", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Number" } } + } + } + } + } +}; + +export const PartialMinimalTrackedResourceWithIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialMinimalTrackedResourceWithIdentity", + modelProperties: { + ...PartialMinimalTrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "PartialManagedServiceIdentity" + } + } + } + } +}; + +export const PartialMinimalTrackedResourceWithSku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialMinimalTrackedResourceWithSku", + modelProperties: { + ...PartialMinimalTrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "PartialSku" + } + } + } + } +}; + +export const PartialMinimalTrackedResourceWithSkuAndIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialMinimalTrackedResourceWithSkuAndIdentity", + modelProperties: { + ...PartialMinimalTrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "PartialManagedServiceIdentity" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "PartialSku" + } + } + } + } +}; + +export const BatchPipelineComponentDeploymentConfiguration: coreClient.CompositeMapper = { + serializedName: "PipelineComponent", + type: { + name: "Composite", + className: "BatchPipelineComponentDeploymentConfiguration", + uberParent: "BatchDeploymentConfiguration", + polymorphicDiscriminator: + BatchDeploymentConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...BatchDeploymentConfiguration.type.modelProperties, + componentId: { + serializedName: "componentId", + type: { + name: "Composite", + className: "IdAssetReference" + } + }, + description: { + serializedName: "description", + nullable: true, + type: { + name: "String" + } + }, + settings: { + serializedName: "settings", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + tags: { + serializedName: "tags", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const IdAssetReference: coreClient.CompositeMapper = { + serializedName: "Id", + type: { + name: "Composite", + className: "IdAssetReference", + uberParent: "AssetReferenceBase", + polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + modelProperties: { + ...AssetReferenceBase.type.modelProperties, + assetId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "assetId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const 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 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" + } + }, + deploymentConfiguration: { + serializedName: "deploymentConfiguration", + type: { + name: "Composite", + className: "BatchDeploymentConfiguration" + } + }, + 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" + } + }, + dataCollector: { + serializedName: "dataCollector", + type: { + name: "Composite", + className: "DataCollector" + } + }, + egressPublicNetworkAccess: { + serializedName: "egressPublicNetworkAccess", + type: { + name: "String" + } + }, + endpointComputeType: { + serializedName: "endpointComputeType", + required: true, + type: { + name: "String" + } + }, + instanceType: { + serializedName: "instanceType", + nullable: true, + type: { + name: "String" + } + }, + livenessProbe: { + serializedName: "livenessProbe", + type: { + name: "Composite", + className: "ProbeSettings" + } + }, + model: { + serializedName: "model", + nullable: true, + 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: "ProbeSettings" + } + }, + requestSettings: { + serializedName: "requestSettings", + type: { + name: "Composite", + className: "OnlineRequestSettings" + } + }, + scaleSettings: { + serializedName: "scaleSettings", + type: { + name: "Composite", + className: "OnlineScaleSettings" + } + } + } + } +}; + +export const AccountKeyDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "AccountKey", + type: { + name: "Composite", + className: "AccountKeyDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "AccountKeyDatastoreSecrets" + } + } + } + } +}; + +export const CertificateDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "Certificate", + type: { + name: "Composite", + className: "CertificateDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + authorityUrl: { + serializedName: "authorityUrl", + 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: "CertificateDatastoreSecrets" + } + }, + tenantId: { + serializedName: "tenantId", + required: true, + type: { + name: "Uuid" + } + }, + thumbprint: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "thumbprint", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const KerberosKeytabCredentials: coreClient.CompositeMapper = { + serializedName: "KerberosKeytab", + type: { + name: "Composite", + className: "KerberosKeytabCredentials", + uberParent: "KerberosCredentials", + polymorphicDiscriminator: KerberosCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...KerberosCredentials.type.modelProperties, + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "KerberosKeytabSecrets" + } + } + } + } +}; + +export const KerberosPasswordCredentials: coreClient.CompositeMapper = { + serializedName: "KerberosPassword", + type: { + name: "Composite", + className: "KerberosPasswordCredentials", + uberParent: "KerberosCredentials", + polymorphicDiscriminator: KerberosCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...KerberosCredentials.type.modelProperties, + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "KerberosPasswordSecrets" + } + } + } + } +}; + +export const NoneDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "None", + type: { + name: "Composite", + className: "NoneDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreCredentials.type.modelProperties + } + } +}; + +export const SasDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "Sas", + type: { + name: "Composite", + className: "SasDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "SasDatastoreSecrets" + } + } + } + } +}; + +export const ServicePrincipalDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "ServicePrincipal", + type: { + name: "Composite", + className: "ServicePrincipalDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + authorityUrl: { + serializedName: "authorityUrl", + 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: "ServicePrincipalDatastoreSecrets" + } + }, + tenantId: { + serializedName: "tenantId", + required: true, + type: { + name: "Uuid" + } + } + } + } +}; + +export const AccountKeyDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "AccountKey", + type: { + name: "Composite", + className: "AccountKeyDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + key: { + serializedName: "key", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const CertificateDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "Certificate", + type: { + name: "Composite", + className: "CertificateDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + certificate: { + serializedName: "certificate", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const KerberosKeytabSecrets: coreClient.CompositeMapper = { + serializedName: "KerberosKeytab", + type: { + name: "Composite", + className: "KerberosKeytabSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + kerberosKeytab: { + serializedName: "kerberosKeytab", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const KerberosPasswordSecrets: coreClient.CompositeMapper = { + serializedName: "KerberosPassword", + type: { + name: "Composite", + className: "KerberosPasswordSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + kerberosPassword: { + serializedName: "kerberosPassword", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const SasDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "Sas", + type: { + name: "Composite", + className: "SasDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + sasToken: { + serializedName: "sasToken", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServicePrincipalDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "ServicePrincipal", + type: { + name: "Composite", + className: "ServicePrincipalDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + clientSecret: { + serializedName: "clientSecret", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const AzureDevOpsWebhook: coreClient.CompositeMapper = { + serializedName: "AzureDevOps", + type: { + name: "Composite", + className: "AzureDevOpsWebhook", + uberParent: "Webhook", + polymorphicDiscriminator: Webhook.type.polymorphicDiscriminator, + modelProperties: { + ...Webhook.type.modelProperties + } + } +}; + +export const RecurrenceTrigger: coreClient.CompositeMapper = { + serializedName: "Recurrence", + type: { + name: "Composite", + className: "RecurrenceTrigger", + uberParent: "TriggerBase", + polymorphicDiscriminator: TriggerBase.type.polymorphicDiscriminator, + modelProperties: { + ...TriggerBase.type.modelProperties, + frequency: { + serializedName: "frequency", + required: true, + type: { + name: "String" + } + }, + interval: { + serializedName: "interval", + required: true, + type: { + name: "Number" + } + }, + schedule: { + serializedName: "schedule", + type: { + name: "Composite", + className: "RecurrenceSchedule" + } + } + } + } +}; + +export const CronTrigger: coreClient.CompositeMapper = { + serializedName: "Cron", + type: { + name: "Composite", + className: "CronTrigger", + uberParent: "TriggerBase", + polymorphicDiscriminator: TriggerBase.type.polymorphicDiscriminator, + modelProperties: { + ...TriggerBase.type.modelProperties, + expression: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "expression", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const AmlToken: coreClient.CompositeMapper = { + serializedName: "AMLToken", + type: { + name: "Composite", + className: "AmlToken", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: + IdentityConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...IdentityConfiguration.type.modelProperties + } + } +}; + +export const ManagedIdentity: coreClient.CompositeMapper = { + serializedName: "Managed", + type: { + name: "Composite", + className: "ManagedIdentity", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: + IdentityConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...IdentityConfiguration.type.modelProperties, + clientId: { + serializedName: "clientId", + nullable: true, + type: { + name: "Uuid" + } + }, + objectId: { + serializedName: "objectId", + nullable: true, + type: { + name: "Uuid" + } + }, + resourceId: { + serializedName: "resourceId", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const UserIdentity: coreClient.CompositeMapper = { + serializedName: "UserIdentity", + type: { + name: "Composite", + className: "UserIdentity", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: + IdentityConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...IdentityConfiguration.type.modelProperties + } + } +}; + +export const AllNodes: coreClient.CompositeMapper = { + serializedName: "All", + type: { + name: "Composite", + className: "AllNodes", + uberParent: "Nodes", + polymorphicDiscriminator: Nodes.type.polymorphicDiscriminator, + modelProperties: { + ...Nodes.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: "LabelingJobTextProperties", + uberParent: "LabelingJobMediaProperties", + polymorphicDiscriminator: + LabelingJobMediaProperties.type.polymorphicDiscriminator, + modelProperties: { + ...LabelingJobMediaProperties.type.modelProperties, + annotationType: { + serializedName: "annotationType", + type: { + name: "String" + } + } + } + } +}; + +export const MLAssistConfigurationDisabled: coreClient.CompositeMapper = { + serializedName: "Disabled", + type: { + name: "Composite", + className: "MLAssistConfigurationDisabled", + uberParent: "MLAssistConfiguration", + polymorphicDiscriminator: + MLAssistConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...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_]"), + MinLength: 1 + }, + serializedName: "inferencingComputeBinding", + required: true, + type: { + name: "String" + } + }, + trainingComputeBinding: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "trainingComputeBinding", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const CocoExportSummary: coreClient.CompositeMapper = { + serializedName: "Coco", + type: { + name: "Composite", + className: "CocoExportSummary", + uberParent: "ExportSummary", + polymorphicDiscriminator: ExportSummary.type.polymorphicDiscriminator, + modelProperties: { + ...ExportSummary.type.modelProperties, + containerName: { + serializedName: "containerName", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + snapshotPath: { + serializedName: "snapshotPath", + readOnly: true, + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const CsvExportSummary: coreClient.CompositeMapper = { + serializedName: "CSV", + type: { + name: "Composite", + className: "CsvExportSummary", + uberParent: "ExportSummary", + polymorphicDiscriminator: ExportSummary.type.polymorphicDiscriminator, + modelProperties: { + ...ExportSummary.type.modelProperties, + containerName: { + serializedName: "containerName", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + snapshotPath: { + serializedName: "snapshotPath", + readOnly: true, + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const DatasetExportSummary: coreClient.CompositeMapper = { + serializedName: "Dataset", + type: { + name: "Composite", + className: "DatasetExportSummary", + uberParent: "ExportSummary", + polymorphicDiscriminator: ExportSummary.type.polymorphicDiscriminator, + modelProperties: { + ...ExportSummary.type.modelProperties, + labeledAssetName: { + serializedName: "labeledAssetName", + readOnly: true, + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +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: "Number" + } + }, + minInstances: { + defaultValue: 1, + serializedName: "minInstances", + type: { + name: "Number" + } + }, + pollingInterval: { + defaultValue: "PT1S", + serializedName: "pollingInterval", + type: { + name: "TimeSpan" + } + }, + targetUtilizationPercentage: { + defaultValue: 70, + serializedName: "targetUtilizationPercentage", + type: { + name: "Number" + } + } + } + } +}; + +export const CreateMonitorAction: coreClient.CompositeMapper = { + serializedName: "CreateMonitor", + type: { + name: "Composite", + className: "CreateMonitorAction", + uberParent: "ScheduleActionBase", + polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, + modelProperties: { + ...ScheduleActionBase.type.modelProperties, + monitorDefinition: { + serializedName: "monitorDefinition", + type: { + name: "Composite", + className: "MonitorDefinition" + } + } + } + } +}; + +export const EndpointScheduleAction: coreClient.CompositeMapper = { + serializedName: "InvokeBatchEndpoint", + type: { + name: "Composite", + className: "EndpointScheduleAction", + uberParent: "ScheduleActionBase", + polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, + modelProperties: { + ...ScheduleActionBase.type.modelProperties, + endpointInvocationDefinition: { + serializedName: "endpointInvocationDefinition", + required: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } + } +}; + +export const ImportDataAction: coreClient.CompositeMapper = { + serializedName: "ImportData", + type: { + name: "Composite", + className: "ImportDataAction", + uberParent: "ScheduleActionBase", + polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, + modelProperties: { + ...ScheduleActionBase.type.modelProperties, + dataImportDefinition: { + serializedName: "dataImportDefinition", + type: { + name: "Composite", + className: "DataImport" + } + } + } + } +}; + +export const JobScheduleAction: coreClient.CompositeMapper = { + serializedName: "CreateJob", + type: { + name: "Composite", + className: "JobScheduleAction", + uberParent: "ScheduleActionBase", + polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, + modelProperties: { + ...ScheduleActionBase.type.modelProperties, + jobDefinition: { + serializedName: "jobDefinition", + type: { + name: "Composite", + className: "JobBaseProperties" + } + } + } + } +}; + +export const PrivateEndpointResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointResource", + modelProperties: { + ...PrivateEndpoint.type.modelProperties, + subnetArmId: { + serializedName: "subnetArmId", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const FqdnOutboundRule: coreClient.CompositeMapper = { + serializedName: "FQDN", + type: { + name: "Composite", + className: "FqdnOutboundRule", + uberParent: "OutboundRule", + polymorphicDiscriminator: OutboundRule.type.polymorphicDiscriminator, + modelProperties: { + ...OutboundRule.type.modelProperties, + destination: { + serializedName: "destination", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointOutboundRule: coreClient.CompositeMapper = { + serializedName: "PrivateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpointOutboundRule", + uberParent: "OutboundRule", + polymorphicDiscriminator: OutboundRule.type.polymorphicDiscriminator, + modelProperties: { + ...OutboundRule.type.modelProperties, + destination: { + serializedName: "destination", + type: { + name: "Composite", + className: "PrivateEndpointDestination" + } + } + } + } +}; + +export const ServiceTagOutboundRule: coreClient.CompositeMapper = { + serializedName: "ServiceTag", + type: { + name: "Composite", + className: "ServiceTagOutboundRule", + uberParent: "OutboundRule", + polymorphicDiscriminator: OutboundRule.type.polymorphicDiscriminator, + modelProperties: { + ...OutboundRule.type.modelProperties, + destination: { + serializedName: "destination", + type: { + name: "Composite", + className: "ServiceTagDestination" + } + } + } + } +}; + +export const AccessKeyAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "AccessKey", + type: { + name: "Composite", + className: "AccessKeyAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "WorkspaceConnectionAccessKey" + } + } + } + } +}; + +export const ApiKeyAuthWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "ApiKey", + type: { + name: "Composite", + className: "ApiKeyAuthWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "WorkspaceConnectionApiKey" + } + } + } + } +}; + +export const CustomKeysWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "CustomKeys", + type: { + name: "Composite", + className: "CustomKeysWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "CustomKeys" + } + } + } + } +}; + +export const 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 NoneAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "None", + type: { + name: "Composite", + className: "NoneAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.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 ServicePrincipalAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "ServicePrincipal", + type: { + name: "Composite", + className: "ServicePrincipalAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "WorkspaceConnectionServicePrincipal" + } + } + } + } +}; + +export const 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 AllFeatures: coreClient.CompositeMapper = { + serializedName: "AllFeatures", + type: { + name: "Composite", + className: "AllFeatures", + uberParent: "MonitoringFeatureFilterBase", + polymorphicDiscriminator: + MonitoringFeatureFilterBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringFeatureFilterBase.type.modelProperties + } + } +}; + +export const FeatureSubset: coreClient.CompositeMapper = { + serializedName: "FeatureSubset", + type: { + name: "Composite", + className: "FeatureSubset", + uberParent: "MonitoringFeatureFilterBase", + polymorphicDiscriminator: + MonitoringFeatureFilterBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringFeatureFilterBase.type.modelProperties, + features: { + serializedName: "features", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const TopNFeaturesByAttribution: coreClient.CompositeMapper = { + serializedName: "TopNByAttribution", + type: { + name: "Composite", + className: "TopNFeaturesByAttribution", + uberParent: "MonitoringFeatureFilterBase", + polymorphicDiscriminator: + MonitoringFeatureFilterBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringFeatureFilterBase.type.modelProperties, + top: { + defaultValue: 10, + serializedName: "top", + type: { + name: "Number" + } + } + } + } +}; + +export const AmlTokenComputeIdentity: coreClient.CompositeMapper = { + serializedName: "AmlToken", + type: { + name: "Composite", + className: "AmlTokenComputeIdentity", + uberParent: "MonitorComputeIdentityBase", + polymorphicDiscriminator: + MonitorComputeIdentityBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitorComputeIdentityBase.type.modelProperties + } + } +}; + +export const ManagedComputeIdentity: coreClient.CompositeMapper = { + serializedName: "ManagedIdentity", + type: { + name: "Composite", + className: "ManagedComputeIdentity", + uberParent: "MonitorComputeIdentityBase", + polymorphicDiscriminator: + MonitorComputeIdentityBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitorComputeIdentityBase.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + } + } + } +}; + +export const MLTableJobInput: coreClient.CompositeMapper = { + serializedName: "mltable", + type: { + name: "Composite", + className: "MLTableJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + modelProperties: { + ...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: "Number" + } + } + } + } +}; + +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" + } + }, + primaryMetric: { + serializedName: "primaryMetric", + type: { + name: "String" + } + }, + trainingSettings: { + serializedName: "trainingSettings", + type: { + name: "Composite", + className: "ClassificationTrainingSettings" + } + } + } + } +}; + +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: "Composite", + className: "ForecastingSettings" + } + }, + primaryMetric: { + serializedName: "primaryMetric", + type: { + name: "String" + } + }, + trainingSettings: { + serializedName: "trainingSettings", + type: { + name: "Composite", + className: "ForecastingTrainingSettings" + } + } + } + } +}; + +export const ImageClassificationBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageClassificationBase", + modelProperties: { + ...ImageVertical.type.modelProperties, + modelSettings: { + serializedName: "modelSettings", + type: { + name: "Composite", + className: "ImageModelSettingsClassification" + } + }, + searchSpace: { + serializedName: "searchSpace", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageModelDistributionSettingsClassification" + } + } + } + } + } + } +}; + +export const ImageClassification: coreClient.CompositeMapper = { + serializedName: "ImageClassification", + type: { + name: "Composite", + className: "ImageClassification", + uberParent: "ImageClassificationBase", + modelProperties: { + ...ImageClassificationBase.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", + type: { + name: "String" + } + } + } + } +}; +ImageClassificationBase.type.polymorphicDiscriminator = + ImageClassificationBase.type.polymorphicDiscriminator; + +export const ImageClassificationMultilabel: coreClient.CompositeMapper = { + serializedName: "ImageClassificationMultilabel", + type: { + name: "Composite", + className: "ImageClassificationMultilabel", + uberParent: "ImageClassificationBase", + polymorphicDiscriminator: + ImageClassificationBase.type.polymorphicDiscriminator, + modelProperties: { + ...ImageClassificationBase.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", + type: { + name: "String" + } + } + } + } +}; + +export const ImageObjectDetectionBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageObjectDetectionBase", + modelProperties: { + ...ImageVertical.type.modelProperties, + modelSettings: { + serializedName: "modelSettings", + type: { + name: "Composite", + className: "ImageModelSettingsObjectDetection" + } + }, + searchSpace: { + serializedName: "searchSpace", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageModelDistributionSettingsObjectDetection" + } + } + } + } + } + } +}; + +export const ImageInstanceSegmentation: coreClient.CompositeMapper = { + serializedName: "ImageInstanceSegmentation", + type: { + name: "Composite", + className: "ImageInstanceSegmentation", + uberParent: "ImageObjectDetectionBase", + polymorphicDiscriminator: + ImageObjectDetectionBase.type.polymorphicDiscriminator, + modelProperties: { + ...ImageObjectDetectionBase.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", + type: { + name: "String" + } + } + } + } +}; + +export const ImageObjectDetection: coreClient.CompositeMapper = { + serializedName: "ImageObjectDetection", + type: { + name: "Composite", + className: "ImageObjectDetection", + uberParent: "ImageObjectDetectionBase", + modelProperties: { + ...ImageObjectDetectionBase.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", + type: { + name: "String" + } + } + } + } +}; +ImageObjectDetectionBase.type.polymorphicDiscriminator = + ImageObjectDetectionBase.type.polymorphicDiscriminator; + +export const Regression: coreClient.CompositeMapper = { + serializedName: "Regression", + type: { + name: "Composite", + className: "Regression", + uberParent: "TableVertical", + polymorphicDiscriminator: TableVertical.type.polymorphicDiscriminator, + modelProperties: { + ...TableVertical.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", + type: { + name: "String" + } + }, + trainingSettings: { + serializedName: "trainingSettings", + type: { + name: "Composite", + className: "RegressionTrainingSettings" + } + } + } + } +}; + +export const TextClassification: coreClient.CompositeMapper = { + serializedName: "TextClassification", + type: { + name: "Composite", + className: "TextClassification", + uberParent: "NlpVertical", + polymorphicDiscriminator: NlpVertical.type.polymorphicDiscriminator, + modelProperties: { + ...NlpVertical.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", + type: { + name: "String" + } + } + } + } +}; + +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: "String" + } + } + } + } +}; + +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" + } + } + } + } +}; + +export const LiteralJobInput: coreClient.CompositeMapper = { + serializedName: "literal", + type: { + name: "Composite", + className: "LiteralJobInput", + uberParent: "JobInput", + polymorphicDiscriminator: JobInput.type.polymorphicDiscriminator, + modelProperties: { + ...JobInput.type.modelProperties, + value: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "value", + required: true, + type: { + name: "String" + } + } + } + } +}; + +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: "Number" + } + } + } + } +}; + +export const AutoSeasonality: coreClient.CompositeMapper = { + serializedName: "Auto", + type: { + name: "Composite", + className: "AutoSeasonality", + uberParent: "Seasonality", + polymorphicDiscriminator: Seasonality.type.polymorphicDiscriminator, + modelProperties: { + ...Seasonality.type.modelProperties + } + } +}; + +export const CustomSeasonality: coreClient.CompositeMapper = { + serializedName: "Custom", + type: { + name: "Composite", + className: "CustomSeasonality", + uberParent: "Seasonality", + polymorphicDiscriminator: Seasonality.type.polymorphicDiscriminator, + modelProperties: { + ...Seasonality.type.modelProperties, + value: { + serializedName: "value", + required: true, + type: { + name: "Number" + } + } + } + } +}; + +export const AutoTargetLags: coreClient.CompositeMapper = { + serializedName: "Auto", + type: { + name: "Composite", + className: "AutoTargetLags", + uberParent: "TargetLags", + polymorphicDiscriminator: TargetLags.type.polymorphicDiscriminator, + modelProperties: { + ...TargetLags.type.modelProperties + } + } +}; + +export const CustomTargetLags: coreClient.CompositeMapper = { + serializedName: "Custom", + type: { + name: "Composite", + className: "CustomTargetLags", + uberParent: "TargetLags", + polymorphicDiscriminator: TargetLags.type.polymorphicDiscriminator, + modelProperties: { + ...TargetLags.type.modelProperties, + values: { + serializedName: "values", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Number" + } + } + } + } + } + } +}; + +export const AutoTargetRollingWindowSize: coreClient.CompositeMapper = { + serializedName: "Auto", + type: { + name: "Composite", + className: "AutoTargetRollingWindowSize", + uberParent: "TargetRollingWindowSize", + polymorphicDiscriminator: + TargetRollingWindowSize.type.polymorphicDiscriminator, + modelProperties: { + ...TargetRollingWindowSize.type.modelProperties + } + } +}; + +export const CustomTargetRollingWindowSize: coreClient.CompositeMapper = { + serializedName: "Custom", + type: { + name: "Composite", + className: "CustomTargetRollingWindowSize", + uberParent: "TargetRollingWindowSize", + polymorphicDiscriminator: + TargetRollingWindowSize.type.polymorphicDiscriminator, + modelProperties: { + ...TargetRollingWindowSize.type.modelProperties, + value: { + serializedName: "value", + required: true, + type: { + name: "Number" + } + } + } + } +}; + +export const AzMonMonitoringAlertNotificationSettings: coreClient.CompositeMapper = { + serializedName: "AzureMonitor", + type: { + name: "Composite", + className: "AzMonMonitoringAlertNotificationSettings", + uberParent: "MonitoringAlertNotificationSettingsBase", + polymorphicDiscriminator: + MonitoringAlertNotificationSettingsBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringAlertNotificationSettingsBase.type.modelProperties + } + } +}; + +export const EmailMonitoringAlertNotificationSettings: coreClient.CompositeMapper = { + serializedName: "Email", + type: { + name: "Composite", + className: "EmailMonitoringAlertNotificationSettings", + uberParent: "MonitoringAlertNotificationSettingsBase", + polymorphicDiscriminator: + MonitoringAlertNotificationSettingsBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringAlertNotificationSettingsBase.type.modelProperties, + emailNotificationSetting: { + serializedName: "emailNotificationSetting", + type: { + name: "Composite", + className: "NotificationSetting" + } + } + } + } +}; + +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: "String" + } + }, + containerName: { + serializedName: "containerName", + nullable: true, + type: { + name: "String" + } + }, + endpoint: { + serializedName: "endpoint", + nullable: true, + type: { + name: "String" + } + }, + protocol: { + serializedName: "protocol", + nullable: true, + type: { + name: "String" + } + }, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", + type: { + name: "String" + } + } + } + } +}; + +export const AzureDataLakeGen1Datastore: coreClient.CompositeMapper = { + serializedName: "AzureDataLakeGen1", + type: { + name: "Composite", + className: "AzureDataLakeGen1Datastore", + uberParent: "AzureDatastore", + polymorphicDiscriminator: AzureDatastore.type.polymorphicDiscriminator, + modelProperties: { + ...AzureDatastore.type.modelProperties, + ...DatastoreProperties.type.modelProperties, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", + type: { + name: "String" + } + }, + storeName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "storeName", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const AzureDataLakeGen2Datastore: coreClient.CompositeMapper = { + serializedName: "AzureDataLakeGen2", + type: { + name: "Composite", + className: "AzureDataLakeGen2Datastore", + uberParent: "AzureDatastore", + polymorphicDiscriminator: AzureDatastore.type.polymorphicDiscriminator, + modelProperties: { + ...AzureDatastore.type.modelProperties, + ...DatastoreProperties.type.modelProperties, + accountName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "accountName", + required: true, + type: { + name: "String" + } + }, + endpoint: { + serializedName: "endpoint", + nullable: true, + type: { + name: "String" + } + }, + filesystem: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "filesystem", + required: true, + type: { + name: "String" + } + }, + protocol: { + serializedName: "protocol", + nullable: true, + type: { + name: "String" + } + }, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", + type: { + name: "String" + } + } + } + } +}; + +export const AzureFileDatastore: coreClient.CompositeMapper = { + serializedName: "AzureFile", + type: { + name: "Composite", + className: "AzureFileDatastore", + uberParent: "AzureDatastore", + polymorphicDiscriminator: AzureDatastore.type.polymorphicDiscriminator, + modelProperties: { + ...AzureDatastore.type.modelProperties, + ...DatastoreProperties.type.modelProperties, + accountName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "accountName", + required: true, + type: { + name: "String" + } + }, + endpoint: { + serializedName: "endpoint", + nullable: true, + type: { + name: "String" + } + }, + fileShareName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "fileShareName", + required: true, + type: { + name: "String" + } + }, + protocol: { + serializedName: "protocol", + nullable: true, + type: { + name: "String" + } + }, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", + type: { + name: "String" + } + } + } + } +}; + +export const 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" + } + }, + slackFactor: { + defaultValue: 0, + serializedName: "slackFactor", + type: { + name: "Number" + } + } + } + } +}; + +export const MedianStoppingPolicy: coreClient.CompositeMapper = { + serializedName: "MedianStopping", + type: { + name: "Composite", + className: "MedianStoppingPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: + EarlyTerminationPolicy.type.polymorphicDiscriminator, + modelProperties: { + ...EarlyTerminationPolicy.type.modelProperties + } + } +}; + +export const TruncationSelectionPolicy: coreClient.CompositeMapper = { + serializedName: "TruncationSelection", + type: { + name: "Composite", + className: "TruncationSelectionPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: + EarlyTerminationPolicy.type.polymorphicDiscriminator, + modelProperties: { + ...EarlyTerminationPolicy.type.modelProperties, + truncationPercentage: { + defaultValue: 0, + serializedName: "truncationPercentage", + type: { + name: "Number" + } + } + } + } +}; + +export const BayesianSamplingAlgorithm: coreClient.CompositeMapper = { + serializedName: "Bayesian", + type: { + name: "Composite", + className: "BayesianSamplingAlgorithm", + uberParent: "SamplingAlgorithm", + polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, + modelProperties: { + ...SamplingAlgorithm.type.modelProperties + } + } +}; + +export const GridSamplingAlgorithm: coreClient.CompositeMapper = { + serializedName: "Grid", + type: { + name: "Composite", + className: "GridSamplingAlgorithm", + uberParent: "SamplingAlgorithm", + polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, + modelProperties: { + ...SamplingAlgorithm.type.modelProperties + } + } +}; + +export const RandomSamplingAlgorithm: coreClient.CompositeMapper = { + serializedName: "Random", + type: { + name: "Composite", + className: "RandomSamplingAlgorithm", + uberParent: "SamplingAlgorithm", + polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, + modelProperties: { + ...SamplingAlgorithm.type.modelProperties, + logbase: { + serializedName: "logbase", + nullable: true, + type: { + name: "String" + } + }, + rule: { + serializedName: "rule", + type: { + name: "String" + } + }, + seed: { + serializedName: "seed", + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +export const CategoricalDataDriftMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Categorical", + type: { + name: "Composite", + className: "CategoricalDataDriftMetricThreshold", + uberParent: "DataDriftMetricThresholdBase", + polymorphicDiscriminator: + DataDriftMetricThresholdBase.type.polymorphicDiscriminator, + modelProperties: { + ...DataDriftMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const NumericalDataDriftMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Numerical", + type: { + name: "Composite", + className: "NumericalDataDriftMetricThreshold", + uberParent: "DataDriftMetricThresholdBase", + polymorphicDiscriminator: + DataDriftMetricThresholdBase.type.polymorphicDiscriminator, + modelProperties: { + ...DataDriftMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const CategoricalDataQualityMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Categorical", + type: { + name: "Composite", + className: "CategoricalDataQualityMetricThreshold", + uberParent: "DataQualityMetricThresholdBase", + polymorphicDiscriminator: + DataQualityMetricThresholdBase.type.polymorphicDiscriminator, + modelProperties: { + ...DataQualityMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const NumericalDataQualityMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Numerical", + type: { + name: "Composite", + className: "NumericalDataQualityMetricThreshold", + uberParent: "DataQualityMetricThresholdBase", + polymorphicDiscriminator: + DataQualityMetricThresholdBase.type.polymorphicDiscriminator, + modelProperties: { + ...DataQualityMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const CategoricalPredictionDriftMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Categorical", + type: { + name: "Composite", + className: "CategoricalPredictionDriftMetricThreshold", + uberParent: "PredictionDriftMetricThresholdBase", + polymorphicDiscriminator: + PredictionDriftMetricThresholdBase.type.polymorphicDiscriminator, + modelProperties: { + ...PredictionDriftMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const NumericalPredictionDriftMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Numerical", + type: { + name: "Composite", + className: "NumericalPredictionDriftMetricThreshold", + uberParent: "PredictionDriftMetricThresholdBase", + polymorphicDiscriminator: + PredictionDriftMetricThresholdBase.type.polymorphicDiscriminator, + modelProperties: { + ...PredictionDriftMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ClassificationTrainingSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClassificationTrainingSettings", + 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 ForecastingTrainingSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ForecastingTrainingSettings", + 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 RegressionTrainingSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegressionTrainingSettings", + 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 TableVerticalFeaturizationSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TableVerticalFeaturizationSettings", + 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 NlpVerticalFeaturizationSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NlpVerticalFeaturizationSettings", + modelProperties: { + ...FeaturizationSettings.type.modelProperties + } + } +}; + +export const ClassificationModelPerformanceMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Classification", + type: { + name: "Composite", + className: "ClassificationModelPerformanceMetricThreshold", + uberParent: "ModelPerformanceMetricThresholdBase", + polymorphicDiscriminator: + ModelPerformanceMetricThresholdBase.type.polymorphicDiscriminator, + modelProperties: { + ...ModelPerformanceMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const RegressionModelPerformanceMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Regression", + type: { + name: "Composite", + className: "RegressionModelPerformanceMetricThreshold", + uberParent: "ModelPerformanceMetricThresholdBase", + polymorphicDiscriminator: + ModelPerformanceMetricThresholdBase.type.polymorphicDiscriminator, + modelProperties: { + ...ModelPerformanceMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", + required: true, + type: { + 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", + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +export const PyTorch: coreClient.CompositeMapper = { + serializedName: "PyTorch", + type: { + name: "Composite", + className: "PyTorch", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: + DistributionConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...DistributionConfiguration.type.modelProperties, + processCountPerInstance: { + serializedName: "processCountPerInstance", + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +export const Ray: coreClient.CompositeMapper = { + serializedName: "Ray", + type: { + name: "Composite", + className: "Ray", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: + DistributionConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...DistributionConfiguration.type.modelProperties, + address: { + serializedName: "address", + nullable: true, + type: { + name: "String" + } + }, + dashboardPort: { + serializedName: "dashboardPort", + nullable: true, + type: { + name: "Number" + } + }, + headNodeAdditionalArgs: { + serializedName: "headNodeAdditionalArgs", + nullable: true, + type: { + name: "String" + } + }, + includeDashboard: { + serializedName: "includeDashboard", + nullable: true, + type: { + name: "Boolean" + } + }, + port: { + serializedName: "port", + nullable: true, + type: { + name: "Number" + } + }, + workerNodeAdditionalArgs: { + serializedName: "workerNodeAdditionalArgs", + nullable: true, + type: { + 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", + type: { + name: "Number" + } + }, + workerCount: { + serializedName: "workerCount", + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +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", + type: { + name: "Composite", + className: "SweepJobLimits", + uberParent: "JobLimits", + polymorphicDiscriminator: JobLimits.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, + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const MonitorServerlessSparkCompute: coreClient.CompositeMapper = { + serializedName: "ServerlessSpark", + type: { + name: "Composite", + className: "MonitorServerlessSparkCompute", + uberParent: "MonitorComputeConfigurationBase", + polymorphicDiscriminator: + MonitorComputeConfigurationBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitorComputeConfigurationBase.type.modelProperties, + computeIdentity: { + serializedName: "computeIdentity", + type: { + name: "Composite", + className: "MonitorComputeIdentityBase" + } + }, + instanceType: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "instanceType", + required: true, + type: { + name: "String" + } + }, + runtimeVersion: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "runtimeVersion", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const CustomMonitoringSignal: coreClient.CompositeMapper = { + serializedName: "Custom", + type: { + name: "Composite", + className: "CustomMonitoringSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringSignalBase.type.modelProperties, + componentId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "componentId", + required: true, + type: { + name: "String" + } + }, + inputAssets: { + serializedName: "inputAssets", + nullable: true, + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "MonitoringInputDataBase" } + } + } + }, + inputs: { + serializedName: "inputs", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobInput" } } + } + }, + metricThresholds: { + serializedName: "metricThresholds", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CustomMetricThreshold" + } + } + } + }, + workspaceConnection: { + serializedName: "workspaceConnection", + type: { + name: "Composite", + className: "MonitoringWorkspaceConnection" + } + } + } + } +}; + +export const DataDriftMonitoringSignal: coreClient.CompositeMapper = { + serializedName: "DataDrift", + type: { + name: "Composite", + className: "DataDriftMonitoringSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringSignalBase.type.modelProperties, + dataSegment: { + serializedName: "dataSegment", + type: { + name: "Composite", + className: "MonitoringDataSegment" + } + }, + featureDataTypeOverride: { + serializedName: "featureDataTypeOverride", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + features: { + serializedName: "features", + type: { + name: "Composite", + className: "MonitoringFeatureFilterBase" + } + }, + metricThresholds: { + serializedName: "metricThresholds", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataDriftMetricThresholdBase" + } + } + } + }, + productionData: { + serializedName: "productionData", + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + }, + referenceData: { + serializedName: "referenceData", + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + } + } + } +}; + +export const DataQualityMonitoringSignal: coreClient.CompositeMapper = { + serializedName: "DataQuality", + type: { + name: "Composite", + className: "DataQualityMonitoringSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringSignalBase.type.modelProperties, + featureDataTypeOverride: { + serializedName: "featureDataTypeOverride", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + features: { + serializedName: "features", + type: { + name: "Composite", + className: "MonitoringFeatureFilterBase" + } + }, + metricThresholds: { + serializedName: "metricThresholds", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataQualityMetricThresholdBase" + } + } + } + }, + productionData: { + serializedName: "productionData", + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + }, + referenceData: { + serializedName: "referenceData", + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + } + } + } +}; + +export const FeatureAttributionDriftMonitoringSignal: coreClient.CompositeMapper = { + serializedName: "FeatureAttributionDrift", + type: { + name: "Composite", + className: "FeatureAttributionDriftMonitoringSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringSignalBase.type.modelProperties, + metricThreshold: { + serializedName: "metricThreshold", + type: { + name: "Composite", + className: "FeatureAttributionMetricThreshold" + } + }, + productionData: { + serializedName: "productionData", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + } + } + }, + referenceData: { + serializedName: "referenceData", + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + } + } + } +}; + +export const GenerationSafetyQualityMonitoringSignal: coreClient.CompositeMapper = { + serializedName: "GenerationSafetyQuality", + type: { + name: "Composite", + className: "GenerationSafetyQualityMonitoringSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringSignalBase.type.modelProperties, + metricThresholds: { + serializedName: "metricThresholds", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GenerationSafetyQualityMetricThreshold" + } + } + } + }, + productionData: { + serializedName: "productionData", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + } + } + }, + samplingRate: { + serializedName: "samplingRate", + required: true, + type: { + name: "Number" + } + }, + workspaceConnectionId: { + serializedName: "workspaceConnectionId", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const GenerationTokenStatisticsSignal: coreClient.CompositeMapper = { + serializedName: "GenerationTokenStatistics", + type: { + name: "Composite", + className: "GenerationTokenStatisticsSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringSignalBase.type.modelProperties, + metricThresholds: { + serializedName: "metricThresholds", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GenerationTokenStatisticsMetricThreshold" + } + } + } + }, + productionData: { + serializedName: "productionData", + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + }, + samplingRate: { + serializedName: "samplingRate", + required: true, + type: { + name: "Number" + } + } + } + } +}; + +export const ModelPerformanceSignal: coreClient.CompositeMapper = { + serializedName: "ModelPerformance", + type: { + name: "Composite", + className: "ModelPerformanceSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringSignalBase.type.modelProperties, + dataSegment: { + serializedName: "dataSegment", + type: { + name: "Composite", + className: "MonitoringDataSegment" + } + }, + metricThreshold: { + serializedName: "metricThreshold", + type: { + name: "Composite", + className: "ModelPerformanceMetricThresholdBase" + } + }, + productionData: { + serializedName: "productionData", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + } + } + }, + referenceData: { + serializedName: "referenceData", + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + } + } + } +}; + +export const PredictionDriftMonitoringSignal: coreClient.CompositeMapper = { + serializedName: "PredictionDrift", + type: { + name: "Composite", + className: "PredictionDriftMonitoringSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringSignalBase.type.modelProperties, + metricThresholds: { + serializedName: "metricThresholds", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PredictionDriftMetricThresholdBase" + } + } + } + }, + modelType: { + serializedName: "modelType", + required: true, + type: { + name: "String" + } + }, + productionData: { + serializedName: "productionData", + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + }, + referenceData: { + serializedName: "referenceData", + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + } + } + } +}; + +export const FixedInputData: coreClient.CompositeMapper = { + serializedName: "Fixed", + type: { + name: "Composite", + className: "FixedInputData", + uberParent: "MonitoringInputDataBase", + polymorphicDiscriminator: + MonitoringInputDataBase.type.polymorphicDiscriminator, modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...MonitoringInputDataBase.type.modelProperties + } + } +}; + +export const StaticInputData: coreClient.CompositeMapper = { + serializedName: "Static", + type: { + name: "Composite", + className: "StaticInputData", + uberParent: "MonitoringInputDataBase", + polymorphicDiscriminator: + MonitoringInputDataBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringInputDataBase.type.modelProperties, + preprocessingComponentId: { + serializedName: "preprocessingComponentId", + nullable: true, + type: { + name: "String" + } + }, + windowEnd: { + serializedName: "windowEnd", + required: true, + type: { + name: "DateTime" + } + }, + windowStart: { + serializedName: "windowStart", + required: true, + type: { + name: "DateTime" + } + } + } + } +}; + +export const TrailingInputData: coreClient.CompositeMapper = { + serializedName: "Trailing", + type: { + name: "Composite", + className: "TrailingInputData", + uberParent: "MonitoringInputDataBase", + polymorphicDiscriminator: + MonitoringInputDataBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringInputDataBase.type.modelProperties, + preprocessingComponentId: { + serializedName: "preprocessingComponentId", + nullable: true, + type: { + name: "String" + } + }, + windowOffset: { + serializedName: "windowOffset", + required: true, + type: { + name: "TimeSpan" + } + }, + windowSize: { + serializedName: "windowSize", + required: true, + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const DatabaseSource: coreClient.CompositeMapper = { + serializedName: "database", + type: { + name: "Composite", + className: "DatabaseSource", + uberParent: "DataImportSource", + polymorphicDiscriminator: DataImportSource.type.polymorphicDiscriminator, + modelProperties: { + ...DataImportSource.type.modelProperties, + query: { + serializedName: "query", + nullable: true, + type: { + name: "String" + } + }, + storedProcedure: { + serializedName: "storedProcedure", + nullable: true, + type: { + name: "String" + } + }, + storedProcedureParams: { + serializedName: "storedProcedureParams", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + }, + tableName: { + serializedName: "tableName", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const FileSystemSource: coreClient.CompositeMapper = { + serializedName: "file_system", + type: { + name: "Composite", + className: "FileSystemSource", + uberParent: "DataImportSource", + polymorphicDiscriminator: DataImportSource.type.polymorphicDiscriminator, + modelProperties: { + ...DataImportSource.type.modelProperties, + path: { + serializedName: "path", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const ImageModelSettingsClassification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageModelSettingsClassification", + 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 ImageModelSettingsObjectDetection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageModelSettingsObjectDetection", + 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" + } + }, + logTrainingMetrics: { + serializedName: "logTrainingMetrics", + type: { + name: "String" + } + }, + logValidationLoss: { + serializedName: "logValidationLoss", + type: { + name: "String" + } + }, + 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 MLFlowModelJobOutput: coreClient.CompositeMapper = { - serializedName: "mlflow_model", +export const ImageModelDistributionSettingsClassification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MLFlowModelJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "ImageModelDistributionSettingsClassification", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...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 MLTableJobOutput: coreClient.CompositeMapper = { - serializedName: "mltable", +export const ImageModelDistributionSettingsObjectDetection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MLTableJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "ImageModelDistributionSettingsObjectDetection", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...ImageModelDistributionSettings.type.modelProperties, + boxDetectionsPerImage: { + serializedName: "boxDetectionsPerImage", + nullable: true, + type: { + name: "String" + } + }, + boxScoreThreshold: { + serializedName: "boxScoreThreshold", + nullable: true, + type: { + name: "String" + } + }, + imageSize: { + serializedName: "imageSize", + nullable: true, + type: { + name: "String" + } + }, + maxSize: { + serializedName: "maxSize", + nullable: true, + type: { + name: "String" + } + }, + minSize: { + serializedName: "minSize", + nullable: true, + type: { + name: "String" + } + }, + modelSize: { + serializedName: "modelSize", + nullable: true, + type: { + name: "String" + } + }, + multiScale: { + serializedName: "multiScale", + nullable: true, + type: { + name: "String" + } + }, + nmsIouThreshold: { + serializedName: "nmsIouThreshold", + nullable: true, + type: { + name: "String" + } + }, + tileGridSize: { + serializedName: "tileGridSize", + nullable: true, + type: { + name: "String" + } + }, + tileOverlapRatio: { + serializedName: "tileOverlapRatio", + nullable: true, + type: { + name: "String" + } + }, + tilePredictionsNmsThreshold: { + serializedName: "tilePredictionsNmsThreshold", + nullable: true, + type: { + name: "String" + } + }, + validationIouThreshold: { + serializedName: "validationIouThreshold", + nullable: true, + type: { + name: "String" + } + }, + validationMetricType: { + serializedName: "validationMetricType", + nullable: true, + type: { + name: "String" + } + } } } }; -export const TritonModelJobOutput: coreClient.CompositeMapper = { - serializedName: "triton_model", +export const LakeHouseArtifact: coreClient.CompositeMapper = { + serializedName: "LakeHouse", type: { name: "Composite", - className: "TritonModelJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "LakeHouseArtifact", + uberParent: "OneLakeArtifact", + polymorphicDiscriminator: OneLakeArtifact.type.polymorphicDiscriminator, modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...OneLakeArtifact.type.modelProperties } } }; -export const UriFileJobOutput: coreClient.CompositeMapper = { - serializedName: "uri_file", +export const SparkJobPythonEntry: coreClient.CompositeMapper = { + serializedName: "SparkJobPythonEntry", type: { name: "Composite", - className: "UriFileJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "SparkJobPythonEntry", + uberParent: "SparkJobEntry", + polymorphicDiscriminator: SparkJobEntry.type.polymorphicDiscriminator, modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...SparkJobEntry.type.modelProperties, + file: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "file", + required: true, + type: { + name: "String" + } + } } } }; -export const UriFolderJobOutput: coreClient.CompositeMapper = { - serializedName: "uri_folder", +export const SparkJobScalaEntry: coreClient.CompositeMapper = { + serializedName: "SparkJobScalaEntry", type: { name: "Composite", - className: "UriFolderJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "SparkJobScalaEntry", + uberParent: "SparkJobEntry", + polymorphicDiscriminator: SparkJobEntry.type.polymorphicDiscriminator, modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...SparkJobEntry.type.modelProperties, + className: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "className", + required: true, + type: { + name: "String" + } + } } } }; -export const AutoForecastHorizon: coreClient.CompositeMapper = { - serializedName: "Auto", +export const BatchEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoForecastHorizon", - uberParent: "ForecastHorizon", - polymorphicDiscriminator: ForecastHorizon.type.polymorphicDiscriminator, + className: "BatchEndpoint", modelProperties: { - ...ForecastHorizon.type.modelProperties + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "BatchEndpointProperties" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } } } }; -export const CustomForecastHorizon: coreClient.CompositeMapper = { - serializedName: "Custom", +export const BatchDeployment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomForecastHorizon", - uberParent: "ForecastHorizon", - polymorphicDiscriminator: ForecastHorizon.type.polymorphicDiscriminator, + className: "BatchDeployment", modelProperties: { - ...ForecastHorizon.type.modelProperties, - value: { - serializedName: "value", - required: true, + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "BatchDeploymentProperties" + } + }, + sku: { + serializedName: "sku", type: { - name: "Number" + name: "Composite", + className: "Sku" } } } } }; -export const Classification: coreClient.CompositeMapper = { - serializedName: "Classification", +export const OnlineEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Classification", - uberParent: "TableVertical", - polymorphicDiscriminator: TableVertical.type.polymorphicDiscriminator, + className: "OnlineEndpoint", modelProperties: { - ...TableVertical.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - positiveLabel: { - serializedName: "positiveLabel", - nullable: true, + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "ManagedServiceIdentity" } }, - primaryMetric: { - serializedName: "primaryMetric", + kind: { + serializedName: "kind", type: { name: "String" } }, - trainingSettings: { - serializedName: "trainingSettings", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "ClassificationTrainingSettings" + className: "OnlineEndpointProperties" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" } } } } }; -export const Forecasting: coreClient.CompositeMapper = { - serializedName: "Forecasting", +export const OnlineDeployment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Forecasting", - uberParent: "TableVertical", - polymorphicDiscriminator: TableVertical.type.polymorphicDiscriminator, + className: "OnlineDeployment", modelProperties: { - ...TableVertical.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - forecastingSettings: { - serializedName: "forecastingSettings", + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", type: { name: "Composite", - className: "ForecastingSettings" + className: "ManagedServiceIdentity" } }, - primaryMetric: { - serializedName: "primaryMetric", + kind: { + serializedName: "kind", type: { name: "String" } }, - trainingSettings: { - serializedName: "trainingSettings", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "ForecastingTrainingSettings" + className: "OnlineDeploymentProperties" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" } } } } }; -export const ImageClassificationBase: coreClient.CompositeMapper = { +export const ServerlessEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageClassificationBase", + className: "ServerlessEndpoint", modelProperties: { - ...ImageVertical.type.modelProperties, - modelSettings: { - serializedName: "modelSettings", + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", type: { name: "Composite", - className: "ImageModelSettingsClassification" + className: "ManagedServiceIdentity" } }, - searchSpace: { - serializedName: "searchSpace", - nullable: true, + kind: { + serializedName: "kind", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ImageModelDistributionSettingsClassification" - } - } + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ServerlessEndpointProperties" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" } } } } }; -export const ImageClassification: coreClient.CompositeMapper = { - serializedName: "ImageClassification", +export const Registry: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageClassification", - uberParent: "ImageClassificationBase", + className: "Registry", modelProperties: { - ...ImageClassificationBase.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + kind: { + serializedName: "kind", type: { name: "String" } - } - } - } -}; -ImageClassificationBase.type.polymorphicDiscriminator = - ImageClassificationBase.type.polymorphicDiscriminator; - -export const ImageClassificationMultilabel: coreClient.CompositeMapper = { - serializedName: "ImageClassificationMultilabel", - type: { - name: "Composite", - className: "ImageClassificationMultilabel", - uberParent: "ImageClassificationBase", - polymorphicDiscriminator: - ImageClassificationBase.type.polymorphicDiscriminator, - modelProperties: { - ...ImageClassificationBase.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + discoveryUrl: { + serializedName: "properties.discoveryUrl", + nullable: true, type: { name: "String" } - } - } - } -}; - -export const ImageObjectDetectionBase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImageObjectDetectionBase", - modelProperties: { - ...ImageVertical.type.modelProperties, - modelSettings: { - serializedName: "modelSettings", + }, + intellectualPropertyPublisher: { + serializedName: "properties.intellectualPropertyPublisher", + nullable: true, + type: { + name: "String" + } + }, + managedResourceGroup: { + serializedName: "properties.managedResourceGroup", type: { name: "Composite", - className: "ImageModelSettingsObjectDetection" + className: "ArmResourceId" } }, - searchSpace: { - serializedName: "searchSpace", + mlFlowRegistryUri: { + serializedName: "properties.mlFlowRegistryUri", + nullable: true, + type: { + name: "String" + } + }, + registryPrivateEndpointConnections: { + serializedName: "properties.registryPrivateEndpointConnections", nullable: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ImageModelDistributionSettingsObjectDetection" + className: "RegistryPrivateEndpointConnection" + } + } + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + nullable: true, + type: { + name: "String" + } + }, + regionDetails: { + serializedName: "properties.regionDetails", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegistryRegionArmDetails" } } } @@ -9419,19 +17175,15 @@ export const ImageObjectDetectionBase: coreClient.CompositeMapper = { } }; -export const ImageInstanceSegmentation: coreClient.CompositeMapper = { - serializedName: "ImageInstanceSegmentation", +export const CodeContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageInstanceSegmentation", - uberParent: "ImageObjectDetectionBase", - polymorphicDiscriminator: - ImageObjectDetectionBase.type.polymorphicDiscriminator, + className: "CodeContainerProperties", modelProperties: { - ...ImageObjectDetectionBase.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + ...AssetContainer.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } @@ -9440,17 +17192,15 @@ export const ImageInstanceSegmentation: coreClient.CompositeMapper = { } }; -export const ImageObjectDetection: coreClient.CompositeMapper = { - serializedName: "ImageObjectDetection", +export const ComponentContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageObjectDetection", - uberParent: "ImageObjectDetectionBase", + className: "ComponentContainerProperties", modelProperties: { - ...ImageObjectDetectionBase.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + ...AssetContainer.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } @@ -9458,48 +17208,50 @@ export const ImageObjectDetection: coreClient.CompositeMapper = { } } }; -ImageObjectDetectionBase.type.polymorphicDiscriminator = - ImageObjectDetectionBase.type.polymorphicDiscriminator; -export const Regression: coreClient.CompositeMapper = { - serializedName: "Regression", +export const DataContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Regression", - uberParent: "TableVertical", - polymorphicDiscriminator: TableVertical.type.polymorphicDiscriminator, + className: "DataContainerProperties", + modelProperties: { + ...AssetContainer.type.modelProperties, + dataType: { + serializedName: "dataType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const EnvironmentContainerProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentContainerProperties", modelProperties: { - ...TableVertical.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + ...AssetContainer.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } - }, - trainingSettings: { - serializedName: "trainingSettings", - type: { - name: "Composite", - className: "RegressionTrainingSettings" - } } } } }; -export const TextClassification: coreClient.CompositeMapper = { - serializedName: "TextClassification", +export const ModelContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TextClassification", - uberParent: "NlpVertical", - polymorphicDiscriminator: NlpVertical.type.polymorphicDiscriminator, + className: "ModelContainerProperties", modelProperties: { - ...NlpVertical.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + ...AssetContainer.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } @@ -9508,18 +17260,14 @@ export const TextClassification: coreClient.CompositeMapper = { } }; -export const TextClassificationMultilabel: coreClient.CompositeMapper = { - serializedName: "TextClassificationMultilabel", +export const FeaturesetContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TextClassificationMultilabel", - uberParent: "NlpVertical", - polymorphicDiscriminator: NlpVertical.type.polymorphicDiscriminator, + className: "FeaturesetContainerProperties", modelProperties: { - ...NlpVertical.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + ...AssetContainer.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { name: "String" @@ -9529,18 +17277,14 @@ export const TextClassificationMultilabel: coreClient.CompositeMapper = { } }; -export const TextNer: coreClient.CompositeMapper = { - serializedName: "TextNER", +export const FeaturestoreEntityContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TextNer", - uberParent: "NlpVertical", - polymorphicDiscriminator: NlpVertical.type.polymorphicDiscriminator, + className: "FeaturestoreEntityContainerProperties", modelProperties: { - ...NlpVertical.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + ...AssetContainer.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { name: "String" @@ -9550,21 +17294,22 @@ export const TextNer: coreClient.CompositeMapper = { } }; -export const LiteralJobInput: coreClient.CompositeMapper = { - serializedName: "literal", +export const CodeVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LiteralJobInput", - uberParent: "JobInput", - polymorphicDiscriminator: JobInput.type.polymorphicDiscriminator, + className: "CodeVersionProperties", modelProperties: { - ...JobInput.type.modelProperties, - value: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "value", - required: true, + ...AssetBase.type.modelProperties, + codeUri: { + serializedName: "codeUri", + nullable: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } @@ -9573,286 +17318,475 @@ export const LiteralJobInput: coreClient.CompositeMapper = { } }; -export const AutoNCrossValidations: coreClient.CompositeMapper = { - serializedName: "Auto", +export const ComponentVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoNCrossValidations", - uberParent: "NCrossValidations", - polymorphicDiscriminator: NCrossValidations.type.polymorphicDiscriminator, + className: "ComponentVersionProperties", modelProperties: { - ...NCrossValidations.type.modelProperties + ...AssetBase.type.modelProperties, + componentSpec: { + serializedName: "componentSpec", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + stage: { + serializedName: "stage", + nullable: true, + type: { + name: "String" + } + } } } }; -export const CustomNCrossValidations: coreClient.CompositeMapper = { - serializedName: "Custom", +export const DataVersionBaseProperties: coreClient.CompositeMapper = { + serializedName: "DataVersionBaseProperties", type: { name: "Composite", - className: "CustomNCrossValidations", - uberParent: "NCrossValidations", - polymorphicDiscriminator: NCrossValidations.type.polymorphicDiscriminator, + className: "DataVersionBaseProperties", + uberParent: "AssetBase", + polymorphicDiscriminator: { + serializedName: "dataType", + clientName: "dataType" + }, modelProperties: { - ...NCrossValidations.type.modelProperties, - value: { - serializedName: "value", + ...AssetBase.type.modelProperties, + dataType: { + serializedName: "dataType", required: true, type: { - name: "Number" + name: "String" + } + }, + dataUri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "dataUri", + required: true, + type: { + name: "String" + } + }, + intellectualProperty: { + serializedName: "intellectualProperty", + type: { + name: "Composite", + className: "IntellectualProperty" + } + }, + stage: { + serializedName: "stage", + nullable: true, + type: { + name: "String" } } } } }; -export const AutoSeasonality: coreClient.CompositeMapper = { - serializedName: "Auto", +export const EnvironmentVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoSeasonality", - uberParent: "Seasonality", - polymorphicDiscriminator: Seasonality.type.polymorphicDiscriminator, + className: "EnvironmentVersionProperties", modelProperties: { - ...Seasonality.type.modelProperties + ...AssetBase.type.modelProperties, + autoRebuild: { + serializedName: "autoRebuild", + type: { + name: "String" + } + }, + build: { + serializedName: "build", + type: { + name: "Composite", + className: "BuildContext" + } + }, + condaFile: { + serializedName: "condaFile", + type: { + name: "String" + } + }, + environmentType: { + serializedName: "environmentType", + readOnly: true, + type: { + name: "String" + } + }, + image: { + serializedName: "image", + type: { + name: "String" + } + }, + inferenceConfig: { + serializedName: "inferenceConfig", + type: { + name: "Composite", + className: "InferenceContainerProperties" + } + }, + intellectualProperty: { + serializedName: "intellectualProperty", + type: { + name: "Composite", + className: "IntellectualProperty" + } + }, + osType: { + serializedName: "osType", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + stage: { + serializedName: "stage", + nullable: true, + type: { + name: "String" + } + } } } }; -export const CustomSeasonality: coreClient.CompositeMapper = { - serializedName: "Custom", +export const ModelVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomSeasonality", - uberParent: "Seasonality", - polymorphicDiscriminator: Seasonality.type.polymorphicDiscriminator, + className: "ModelVersionProperties", modelProperties: { - ...Seasonality.type.modelProperties, - value: { - serializedName: "value", - required: true, + ...AssetBase.type.modelProperties, + flavors: { + serializedName: "flavors", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "FlavorData" } } + } + }, + intellectualProperty: { + serializedName: "intellectualProperty", + type: { + name: "Composite", + className: "IntellectualProperty" + } + }, + jobName: { + serializedName: "jobName", + nullable: true, + type: { + name: "String" + } + }, + modelType: { + serializedName: "modelType", + nullable: true, + type: { + name: "String" + } + }, + modelUri: { + serializedName: "modelUri", + nullable: true, type: { - name: "Number" + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + stage: { + serializedName: "stage", + nullable: true, + type: { + name: "String" } } } } }; -export const AutoTargetLags: coreClient.CompositeMapper = { - serializedName: "Auto", - type: { - name: "Composite", - className: "AutoTargetLags", - uberParent: "TargetLags", - polymorphicDiscriminator: TargetLags.type.polymorphicDiscriminator, - modelProperties: { - ...TargetLags.type.modelProperties - } - } -}; - -export const CustomTargetLags: coreClient.CompositeMapper = { - serializedName: "Custom", +export const FeaturesetVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomTargetLags", - uberParent: "TargetLags", - polymorphicDiscriminator: TargetLags.type.polymorphicDiscriminator, + className: "FeaturesetVersionProperties", modelProperties: { - ...TargetLags.type.modelProperties, - values: { - serializedName: "values", - required: true, + ...AssetBase.type.modelProperties, + entities: { + serializedName: "entities", + nullable: true, type: { name: "Sequence", element: { type: { - name: "Number" + name: "String" } } } + }, + materializationSettings: { + serializedName: "materializationSettings", + type: { + name: "Composite", + className: "MaterializationSettings" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + specification: { + serializedName: "specification", + type: { + name: "Composite", + className: "FeaturesetSpecification" + } + }, + stage: { + serializedName: "stage", + nullable: true, + type: { + name: "String" + } } } } }; -export const AutoTargetRollingWindowSize: coreClient.CompositeMapper = { - serializedName: "Auto", - type: { - name: "Composite", - className: "AutoTargetRollingWindowSize", - uberParent: "TargetRollingWindowSize", - polymorphicDiscriminator: - TargetRollingWindowSize.type.polymorphicDiscriminator, - modelProperties: { - ...TargetRollingWindowSize.type.modelProperties - } - } -}; - -export const CustomTargetRollingWindowSize: coreClient.CompositeMapper = { - serializedName: "Custom", +export const FeaturestoreEntityVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomTargetRollingWindowSize", - uberParent: "TargetRollingWindowSize", - polymorphicDiscriminator: - TargetRollingWindowSize.type.polymorphicDiscriminator, + className: "FeaturestoreEntityVersionProperties", modelProperties: { - ...TargetRollingWindowSize.type.modelProperties, - value: { - serializedName: "value", - required: true, + ...AssetBase.type.modelProperties, + indexColumns: { + serializedName: "indexColumns", + nullable: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IndexColumn" + } + } + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + stage: { + serializedName: "stage", + nullable: true, + type: { + name: "String" } } } } }; -export const BanditPolicy: coreClient.CompositeMapper = { - serializedName: "Bandit", +export const HdfsDatastore: coreClient.CompositeMapper = { + serializedName: "Hdfs", type: { name: "Composite", - className: "BanditPolicy", - uberParent: "EarlyTerminationPolicy", - polymorphicDiscriminator: - EarlyTerminationPolicy.type.polymorphicDiscriminator, + className: "HdfsDatastore", + uberParent: "DatastoreProperties", + polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, modelProperties: { - ...EarlyTerminationPolicy.type.modelProperties, - slackAmount: { - defaultValue: 0, - serializedName: "slackAmount", + ...DatastoreProperties.type.modelProperties, + hdfsServerCertificate: { + serializedName: "hdfsServerCertificate", + nullable: true, type: { - name: "Number" + name: "String" } }, - slackFactor: { - defaultValue: 0, - serializedName: "slackFactor", + nameNodeAddress: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "nameNodeAddress", + required: true, type: { - name: "Number" + name: "String" + } + }, + protocol: { + defaultValue: "http", + serializedName: "protocol", + type: { + name: "String" } } } } }; -export const MedianStoppingPolicy: coreClient.CompositeMapper = { - serializedName: "MedianStopping", - type: { - name: "Composite", - className: "MedianStoppingPolicy", - uberParent: "EarlyTerminationPolicy", - polymorphicDiscriminator: - EarlyTerminationPolicy.type.polymorphicDiscriminator, - modelProperties: { - ...EarlyTerminationPolicy.type.modelProperties - } - } -}; - -export const TruncationSelectionPolicy: coreClient.CompositeMapper = { - serializedName: "TruncationSelection", +export const OneLakeDatastore: coreClient.CompositeMapper = { + serializedName: "OneLake", type: { name: "Composite", - className: "TruncationSelectionPolicy", - uberParent: "EarlyTerminationPolicy", - polymorphicDiscriminator: - EarlyTerminationPolicy.type.polymorphicDiscriminator, + className: "OneLakeDatastore", + uberParent: "DatastoreProperties", + polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, modelProperties: { - ...EarlyTerminationPolicy.type.modelProperties, - truncationPercentage: { - defaultValue: 0, - serializedName: "truncationPercentage", + ...DatastoreProperties.type.modelProperties, + artifact: { + serializedName: "artifact", type: { - name: "Number" + name: "Composite", + className: "OneLakeArtifact" + } + }, + endpoint: { + serializedName: "endpoint", + nullable: true, + type: { + name: "String" + } + }, + oneLakeWorkspaceName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "oneLakeWorkspaceName", + required: true, + type: { + name: "String" + } + }, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", + type: { + name: "String" } } } } }; -export const BayesianSamplingAlgorithm: coreClient.CompositeMapper = { - serializedName: "Bayesian", - type: { - name: "Composite", - className: "BayesianSamplingAlgorithm", - uberParent: "SamplingAlgorithm", - polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, - modelProperties: { - ...SamplingAlgorithm.type.modelProperties - } - } -}; - -export const GridSamplingAlgorithm: coreClient.CompositeMapper = { - serializedName: "Grid", - type: { - name: "Composite", - className: "GridSamplingAlgorithm", - uberParent: "SamplingAlgorithm", - polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, - modelProperties: { - ...SamplingAlgorithm.type.modelProperties - } - } -}; - -export const RandomSamplingAlgorithm: coreClient.CompositeMapper = { - serializedName: "Random", +export const LabelingJobProperties: coreClient.CompositeMapper = { + serializedName: "Labeling", type: { name: "Composite", - className: "RandomSamplingAlgorithm", - uberParent: "SamplingAlgorithm", - polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, + className: "LabelingJobProperties", + uberParent: "JobBaseProperties", + polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...SamplingAlgorithm.type.modelProperties, - rule: { - serializedName: "rule", + ...JobBaseProperties.type.modelProperties, + createdDateTime: { + serializedName: "createdDateTime", + readOnly: true, + nullable: true, + type: { + name: "DateTime" + } + }, + dataConfiguration: { + serializedName: "dataConfiguration", + type: { + name: "Composite", + className: "LabelingDataConfiguration" + } + }, + jobInstructions: { + serializedName: "jobInstructions", + type: { + name: "Composite", + className: "LabelingJobInstructions" + } + }, + labelCategories: { + serializedName: "labelCategories", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "LabelCategory" } } + } + }, + labelingJobMediaProperties: { + serializedName: "labelingJobMediaProperties", + type: { + name: "Composite", + className: "LabelingJobMediaProperties" + } + }, + mlAssistConfiguration: { + serializedName: "mlAssistConfiguration", + type: { + name: "Composite", + className: "MLAssistConfiguration" + } + }, + progressMetrics: { + serializedName: "progressMetrics", type: { - name: "String" + name: "Composite", + className: "ProgressMetrics" } }, - seed: { - serializedName: "seed", - nullable: true, + projectId: { + serializedName: "projectId", + readOnly: true, type: { - name: "Number" + name: "Uuid" } - } - } - } -}; - -export const ClassificationTrainingSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClassificationTrainingSettings", - modelProperties: { - ...TrainingSettings.type.modelProperties, - allowedTrainingAlgorithms: { - serializedName: "allowedTrainingAlgorithms", - nullable: true, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - blockedTrainingAlgorithms: { - serializedName: "blockedTrainingAlgorithms", + statusMessages: { + serializedName: "statusMessages", + readOnly: true, nullable: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "StatusMessage" } } } @@ -9861,527 +17795,656 @@ export const ClassificationTrainingSettings: coreClient.CompositeMapper = { } }; -export const ForecastingTrainingSettings: coreClient.CompositeMapper = { +export const AutoMLJob: coreClient.CompositeMapper = { + serializedName: "AutoML", type: { name: "Composite", - className: "ForecastingTrainingSettings", + className: "AutoMLJob", + uberParent: "JobBaseProperties", + polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...TrainingSettings.type.modelProperties, - allowedTrainingAlgorithms: { - serializedName: "allowedTrainingAlgorithms", + ...JobBaseProperties.type.modelProperties, + environmentId: { + serializedName: "environmentId", nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - blockedTrainingAlgorithms: { - serializedName: "blockedTrainingAlgorithms", + environmentVariables: { + serializedName: "environmentVariables", nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } - } - } - } -}; - -export const RegressionTrainingSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RegressionTrainingSettings", - modelProperties: { - ...TrainingSettings.type.modelProperties, - allowedTrainingAlgorithms: { - serializedName: "allowedTrainingAlgorithms", + }, + outputs: { + serializedName: "outputs", nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Dictionary", + value: { type: { name: "Composite", className: "JobOutput" } } } }, - blockedTrainingAlgorithms: { - serializedName: "blockedTrainingAlgorithms", - nullable: true, + queueSettings: { + serializedName: "queueSettings", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "QueueSettings" + } + }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "JobResourceConfiguration" + } + }, + taskDetails: { + serializedName: "taskDetails", + type: { + name: "Composite", + className: "AutoMLVertical" } } } } }; -export const TableVerticalFeaturizationSettings: coreClient.CompositeMapper = { +export const CommandJob: coreClient.CompositeMapper = { + serializedName: "Command", type: { name: "Composite", - className: "TableVerticalFeaturizationSettings", + className: "CommandJob", + uberParent: "JobBaseProperties", + polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...FeaturizationSettings.type.modelProperties, - blockedTransformers: { - serializedName: "blockedTransformers", + ...JobBaseProperties.type.modelProperties, + autologgerSettings: { + serializedName: "autologgerSettings", + type: { + name: "Composite", + className: "AutologgerSettings" + } + }, + codeId: { + serializedName: "codeId", nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - columnNameAndTypes: { - serializedName: "columnNameAndTypes", + command: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "command", + required: true, + type: { + name: "String" + } + }, + distribution: { + serializedName: "distribution", + type: { + name: "Composite", + className: "DistributionConfiguration" + } + }, + environmentId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "environmentId", + required: true, + type: { + name: "String" + } + }, + environmentVariables: { + serializedName: "environmentVariables", nullable: true, type: { name: "Dictionary", value: { type: { name: "String" } } } }, - enableDnnFeaturization: { - defaultValue: false, - serializedName: "enableDnnFeaturization", + inputs: { + serializedName: "inputs", + nullable: true, type: { - name: "Boolean" + name: "Dictionary", + value: { type: { name: "Composite", className: "JobInput" } } } }, - mode: { - serializedName: "mode", + limits: { + serializedName: "limits", type: { - name: "String" + name: "Composite", + className: "CommandJobLimits" } }, - transformerParams: { - serializedName: "transformerParams", + outputs: { + serializedName: "outputs", nullable: true, type: { name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { - type: { name: "Composite", className: "ColumnTransformer" } - } - } - } + value: { type: { name: "Composite", className: "JobOutput" } } } - } - } - } -}; - -export const NlpVerticalFeaturizationSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NlpVerticalFeaturizationSettings", - modelProperties: { - ...FeaturizationSettings.type.modelProperties - } - } -}; - -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", + }, + parameters: { + serializedName: "parameters", + readOnly: true, nullable: true, type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "any" } } } - } - } - } -}; - -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", - nullable: true, + }, + queueSettings: { + serializedName: "queueSettings", type: { - name: "Number" + name: "Composite", + className: "QueueSettings" + } + }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "JobResourceConfiguration" } } } } }; -export const TensorFlow: coreClient.CompositeMapper = { - serializedName: "TensorFlow", +export const PipelineJob: coreClient.CompositeMapper = { + serializedName: "Pipeline", type: { name: "Composite", - className: "TensorFlow", - uberParent: "DistributionConfiguration", - polymorphicDiscriminator: - DistributionConfiguration.type.polymorphicDiscriminator, + className: "PipelineJob", + uberParent: "JobBaseProperties", + polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...DistributionConfiguration.type.modelProperties, - parameterServerCount: { - defaultValue: 0, - serializedName: "parameterServerCount", + ...JobBaseProperties.type.modelProperties, + inputs: { + serializedName: "inputs", + nullable: true, type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "Composite", className: "JobInput" } } } }, - workerCount: { - serializedName: "workerCount", + jobs: { + serializedName: "jobs", nullable: true, type: { - name: "Number" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } - } - } - } -}; - -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", - type: { - name: "Composite", - className: "SweepJobLimits", - uberParent: "JobLimits", - polymorphicDiscriminator: JobLimits.type.polymorphicDiscriminator, - modelProperties: { - ...JobLimits.type.modelProperties, - maxConcurrentTrials: { - serializedName: "maxConcurrentTrials", + }, + outputs: { + serializedName: "outputs", nullable: true, type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "Composite", className: "JobOutput" } } } }, - maxTotalTrials: { - serializedName: "maxTotalTrials", + settings: { + serializedName: "settings", nullable: true, type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "any" } } } }, - trialTimeout: { - serializedName: "trialTimeout", + sourceJobId: { + serializedName: "sourceJobId", nullable: true, type: { - name: "TimeSpan" + name: "String" } } } } }; -export const ImageModelSettingsClassification: coreClient.CompositeMapper = { +export const SparkJob: coreClient.CompositeMapper = { + serializedName: "Spark", type: { name: "Composite", - className: "ImageModelSettingsClassification", + className: "SparkJob", + uberParent: "JobBaseProperties", + polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...ImageModelSettings.type.modelProperties, - trainingCropSize: { - serializedName: "trainingCropSize", + ...JobBaseProperties.type.modelProperties, + archives: { + serializedName: "archives", nullable: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - validationCropSize: { - serializedName: "validationCropSize", + args: { + serializedName: "args", nullable: true, type: { - name: "Number" + name: "String" } }, - validationResizeSize: { - serializedName: "validationResizeSize", + codeId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "codeId", + required: true, + type: { + name: "String" + } + }, + conf: { + serializedName: "conf", nullable: true, type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "String" } } } }, - weightedLoss: { - serializedName: "weightedLoss", + entry: { + serializedName: "entry", + type: { + name: "Composite", + className: "SparkJobEntry" + } + }, + environmentId: { + serializedName: "environmentId", nullable: true, type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const ImageModelSettingsObjectDetection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImageModelSettingsObjectDetection", - modelProperties: { - ...ImageModelSettings.type.modelProperties, - boxDetectionsPerImage: { - serializedName: "boxDetectionsPerImage", + }, + files: { + serializedName: "files", nullable: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - boxScoreThreshold: { - serializedName: "boxScoreThreshold", + inputs: { + serializedName: "inputs", nullable: true, type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "Composite", className: "JobInput" } } } }, - imageSize: { - serializedName: "imageSize", + jars: { + serializedName: "jars", nullable: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - maxSize: { - serializedName: "maxSize", + outputs: { + serializedName: "outputs", nullable: true, type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "Composite", className: "JobOutput" } } } }, - minSize: { - serializedName: "minSize", + pyFiles: { + serializedName: "pyFiles", nullable: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - modelSize: { - serializedName: "modelSize", + queueSettings: { + serializedName: "queueSettings", type: { - name: "String" + name: "Composite", + className: "QueueSettings" } }, - multiScale: { - serializedName: "multiScale", - nullable: true, + resources: { + serializedName: "resources", type: { - name: "Boolean" + name: "Composite", + className: "SparkResourceConfiguration" + } + } + } + } +}; + +export const SweepJob: coreClient.CompositeMapper = { + serializedName: "Sweep", + type: { + name: "Composite", + className: "SweepJob", + uberParent: "JobBaseProperties", + polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, + modelProperties: { + ...JobBaseProperties.type.modelProperties, + earlyTermination: { + serializedName: "earlyTermination", + type: { + name: "Composite", + className: "EarlyTerminationPolicy" } }, - nmsIouThreshold: { - serializedName: "nmsIouThreshold", + inputs: { + serializedName: "inputs", nullable: true, type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "Composite", className: "JobInput" } } } }, - tileGridSize: { - serializedName: "tileGridSize", - nullable: true, + limits: { + serializedName: "limits", type: { - name: "String" + name: "Composite", + className: "SweepJobLimits" } }, - tileOverlapRatio: { - serializedName: "tileOverlapRatio", + objective: { + serializedName: "objective", + type: { + name: "Composite", + className: "Objective" + } + }, + outputs: { + serializedName: "outputs", nullable: true, type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "Composite", className: "JobOutput" } } + } + }, + queueSettings: { + serializedName: "queueSettings", + type: { + name: "Composite", + className: "QueueSettings" + } + }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "JobResourceConfiguration" } }, - tilePredictionsNmsThreshold: { - serializedName: "tilePredictionsNmsThreshold", - nullable: true, + samplingAlgorithm: { + serializedName: "samplingAlgorithm", type: { - name: "Number" + name: "Composite", + className: "SamplingAlgorithm" } }, - validationIouThreshold: { - serializedName: "validationIouThreshold", - nullable: true, + searchSpace: { + serializedName: "searchSpace", + required: true, type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "any" } } } }, - validationMetricType: { - serializedName: "validationMetricType", + trial: { + serializedName: "trial", type: { - name: "String" + name: "Composite", + className: "TrialComponent" } } } } }; -export const ImageModelDistributionSettingsClassification: coreClient.CompositeMapper = { +export const KubernetesOnlineDeployment: coreClient.CompositeMapper = { + serializedName: "Kubernetes", type: { name: "Composite", - className: "ImageModelDistributionSettingsClassification", + className: "KubernetesOnlineDeployment", + uberParent: "OnlineDeploymentProperties", + polymorphicDiscriminator: + OnlineDeploymentProperties.type.polymorphicDiscriminator, modelProperties: { - ...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, + ...OnlineDeploymentProperties.type.modelProperties, + containerResourceRequirements: { + serializedName: "containerResourceRequirements", type: { - name: "String" + name: "Composite", + className: "ContainerResourceRequirements" } } } } }; -export const ImageModelDistributionSettingsObjectDetection: coreClient.CompositeMapper = { +export const ManagedOnlineDeployment: coreClient.CompositeMapper = { + serializedName: "Managed", type: { name: "Composite", - className: "ImageModelDistributionSettingsObjectDetection", + className: "ManagedOnlineDeployment", + uberParent: "OnlineDeploymentProperties", + polymorphicDiscriminator: + OnlineDeploymentProperties.type.polymorphicDiscriminator, modelProperties: { - ...ImageModelDistributionSettings.type.modelProperties, - boxDetectionsPerImage: { - serializedName: "boxDetectionsPerImage", - nullable: true, - type: { - name: "String" - } - }, - boxScoreThreshold: { - serializedName: "boxScoreThreshold", + ...OnlineDeploymentProperties.type.modelProperties + } + } +}; + +export const DataImport: coreClient.CompositeMapper = { + serializedName: "uri_folder", + type: { + name: "Composite", + className: "DataImport", + uberParent: "DataVersionBaseProperties", + polymorphicDiscriminator: + DataVersionBaseProperties.type.polymorphicDiscriminator, + modelProperties: { + ...DataVersionBaseProperties.type.modelProperties, + assetName: { + serializedName: "assetName", nullable: true, type: { name: "String" } }, - imageSize: { - serializedName: "imageSize", - nullable: true, + source: { + serializedName: "source", type: { - name: "String" + name: "Composite", + className: "DataImportSource" } - }, - maxSize: { - serializedName: "maxSize", + } + } + } +}; + +export const MLTableData: coreClient.CompositeMapper = { + serializedName: "mltable", + type: { + name: "Composite", + className: "MLTableData", + uberParent: "DataVersionBaseProperties", + polymorphicDiscriminator: + DataVersionBaseProperties.type.polymorphicDiscriminator, + modelProperties: { + ...DataVersionBaseProperties.type.modelProperties, + referencedUris: { + serializedName: "referencedUris", nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - minSize: { - serializedName: "minSize", - nullable: true, + } + } + } +}; + +export const UriFileDataVersion: coreClient.CompositeMapper = { + serializedName: "uri_file", + type: { + name: "Composite", + className: "UriFileDataVersion", + uberParent: "DataVersionBaseProperties", + polymorphicDiscriminator: + DataVersionBaseProperties.type.polymorphicDiscriminator, + modelProperties: { + ...DataVersionBaseProperties.type.modelProperties + } + } +}; + +export const UriFolderDataVersion: coreClient.CompositeMapper = { + serializedName: "uri_folder", + type: { + name: "Composite", + className: "UriFolderDataVersion", + uberParent: "DataVersionBaseProperties", + polymorphicDiscriminator: + DataVersionBaseProperties.type.polymorphicDiscriminator, + modelProperties: { + ...DataVersionBaseProperties.type.modelProperties + } + } +}; + +export const ComputeCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } - }, - modelSize: { - serializedName: "modelSize", - nullable: true, + } + } + } +}; + +export const ComputeDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeDeleteHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } }, - multiScale: { - serializedName: "multiScale", - nullable: true, + location: { + serializedName: "location", type: { name: "String" } - }, - nmsIouThreshold: { - serializedName: "nmsIouThreshold", - nullable: true, + } + } + } +}; + +export const ComputeResizeHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeResizeHeaders", + modelProperties: { + location: { + serializedName: "location", type: { name: "String" } - }, - tileGridSize: { - serializedName: "tileGridSize", - nullable: true, + } + } + } +}; + +export const RegistryCodeContainersDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryCodeContainersDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - tileOverlapRatio: { - serializedName: "tileOverlapRatio", - nullable: true, + location: { + serializedName: "location", type: { name: "String" } }, - tilePredictionsNmsThreshold: { - serializedName: "tilePredictionsNmsThreshold", - nullable: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } - }, - validationIouThreshold: { - serializedName: "validationIouThreshold", - nullable: true, + } + } + } +}; + +export const RegistryCodeContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryCodeContainersCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - validationMetricType: { - serializedName: "validationMetricType", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -10390,218 +18453,310 @@ export const ImageModelDistributionSettingsObjectDetection: coreClient.Composite } }; -export const BatchEndpoint: coreClient.CompositeMapper = { +export const RegistryCodeVersionsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchEndpoint", + className: "RegistryCodeVersionsDeleteHeaders", modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "TimeSpan" } }, - kind: { - serializedName: "kind", + location: { + serializedName: "location", type: { name: "String" } }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "BatchEndpointProperties" - } - }, - sku: { - serializedName: "sku", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Composite", - className: "Sku" + name: "Number" } } } } }; -export const BatchDeployment: coreClient.CompositeMapper = { +export const RegistryCodeVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchDeployment", + className: "RegistryCodeVersionsCreateOrUpdateHeaders", modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "TimeSpan" } }, - kind: { - serializedName: "kind", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } + } + } + } +}; + +export const RegistryComponentContainersDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryComponentContainersDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } }, - properties: { - serializedName: "properties", + location: { + serializedName: "location", type: { - name: "Composite", - className: "BatchDeploymentProperties" + name: "String" } }, - sku: { - serializedName: "sku", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Composite", - className: "Sku" + name: "Number" } } } } }; -export const OnlineEndpoint: coreClient.CompositeMapper = { +export const RegistryComponentContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpoint", + className: "RegistryComponentContainersCreateOrUpdateHeaders", modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "TimeSpan" } }, - kind: { - serializedName: "kind", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } + } + } + } +}; + +export const RegistryComponentVersionsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryComponentVersionsDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } }, - properties: { - serializedName: "properties", + location: { + serializedName: "location", type: { - name: "Composite", - className: "OnlineEndpointProperties" + name: "String" } }, - sku: { - serializedName: "sku", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Composite", - className: "Sku" + name: "Number" } } } } }; -export const OnlineDeployment: coreClient.CompositeMapper = { +export const RegistryComponentVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineDeployment", + className: "RegistryComponentVersionsCreateOrUpdateHeaders", modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "TimeSpan" } }, - kind: { - serializedName: "kind", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } + } + } + } +}; + +export const RegistryDataContainersDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryDataContainersDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } }, - properties: { - serializedName: "properties", + location: { + serializedName: "location", type: { - name: "Composite", - className: "OnlineDeploymentProperties" + name: "String" } }, - sku: { - serializedName: "sku", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Composite", - className: "Sku" + name: "Number" } } } } }; -export const KubernetesOnlineDeployment: coreClient.CompositeMapper = { - serializedName: "Kubernetes", +export const RegistryDataContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KubernetesOnlineDeployment", - uberParent: "OnlineDeploymentProperties", - polymorphicDiscriminator: - OnlineDeploymentProperties.type.polymorphicDiscriminator, + className: "RegistryDataContainersCreateOrUpdateHeaders", modelProperties: { - ...OnlineDeploymentProperties.type.modelProperties, - containerResourceRequirements: { - serializedName: "containerResourceRequirements", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "ContainerResourceRequirements" + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" } } } } }; -export const ManagedOnlineDeployment: coreClient.CompositeMapper = { - serializedName: "Managed", +export const RegistryDataVersionsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedOnlineDeployment", - uberParent: "OnlineDeploymentProperties", - polymorphicDiscriminator: - OnlineDeploymentProperties.type.polymorphicDiscriminator, + className: "RegistryDataVersionsDeleteHeaders", modelProperties: { - ...OnlineDeploymentProperties.type.modelProperties + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } } } }; -export const CodeContainerProperties: coreClient.CompositeMapper = { +export const RegistryDataVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeContainerProperties", + className: "RegistryDataVersionsCreateOrUpdateHeaders", modelProperties: { - ...AssetContainer.type.modelProperties + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } } } }; -export const ComponentContainerProperties: coreClient.CompositeMapper = { +export const RegistryEnvironmentContainersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentContainerProperties", + className: "RegistryEnvironmentContainersDeleteHeaders", modelProperties: { - ...AssetContainer.type.modelProperties + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } } } }; -export const DataContainerProperties: coreClient.CompositeMapper = { +export const RegistryEnvironmentContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataContainerProperties", + className: "RegistryEnvironmentContainersCreateOrUpdateHeaders", modelProperties: { - ...AssetContainer.type.modelProperties, - dataType: { - serializedName: "dataType", - required: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -10610,256 +18765,262 @@ export const DataContainerProperties: coreClient.CompositeMapper = { } }; -export const EnvironmentContainerProperties: coreClient.CompositeMapper = { +export const RegistryEnvironmentVersionsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentContainerProperties", + className: "RegistryEnvironmentVersionsDeleteHeaders", modelProperties: { - ...AssetContainer.type.modelProperties + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } } } }; -export const ModelContainerProperties: coreClient.CompositeMapper = { +export const RegistryEnvironmentVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelContainerProperties", + className: "RegistryEnvironmentVersionsCreateOrUpdateHeaders", modelProperties: { - ...AssetContainer.type.modelProperties + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } } } }; -export const CodeVersionProperties: coreClient.CompositeMapper = { +export const RegistryModelContainersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeVersionProperties", + className: "RegistryModelContainersDeleteHeaders", modelProperties: { - ...AssetBase.type.modelProperties, - codeUri: { - serializedName: "codeUri", - nullable: true, + 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 ComponentVersionProperties: coreClient.CompositeMapper = { +export const RegistryModelContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentVersionProperties", + className: "RegistryModelContainersCreateOrUpdateHeaders", modelProperties: { - ...AssetBase.type.modelProperties, - componentSpec: { - serializedName: "componentSpec", - nullable: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" } } } } }; -export const DataVersionBaseProperties: coreClient.CompositeMapper = { - serializedName: "DataVersionBaseProperties", +export const RegistryModelVersionsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataVersionBaseProperties", - uberParent: "AssetBase", - polymorphicDiscriminator: { - serializedName: "dataType", - clientName: "dataType" - }, + className: "RegistryModelVersionsDeleteHeaders", modelProperties: { - ...AssetBase.type.modelProperties, - dataType: { - serializedName: "dataType", - required: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", type: { name: "String" } }, - dataUri: { + retryAfter: { constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") + InclusiveMaximum: 600, + InclusiveMinimum: 10 }, - serializedName: "dataUri", - required: true, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } } }; -export const EnvironmentVersionProperties: coreClient.CompositeMapper = { +export const RegistryModelVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentVersionProperties", + className: "RegistryModelVersionsCreateOrUpdateHeaders", modelProperties: { - ...AssetBase.type.modelProperties, - autoRebuild: { - serializedName: "autoRebuild", - type: { - name: "String" - } - }, - build: { - serializedName: "build", - type: { - name: "Composite", - className: "BuildContext" - } - }, - condaFile: { - serializedName: "condaFile", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - environmentType: { - serializedName: "environmentType", - readOnly: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } - }, - image: { - serializedName: "image", + } + } + } +}; + +export const RegistryModelVersionsPackageHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryModelVersionsPackageHeaders", + modelProperties: { + location: { + serializedName: "location", type: { name: "String" } }, - inferenceConfig: { - serializedName: "inferenceConfig", - type: { - name: "Composite", - className: "InferenceContainerProperties" - } - }, - osType: { - serializedName: "osType", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } } }; -export const ModelVersionProperties: coreClient.CompositeMapper = { +export const BatchEndpointsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelVersionProperties", + className: "BatchEndpointsDeleteHeaders", modelProperties: { - ...AssetBase.type.modelProperties, - flavors: { - serializedName: "flavors", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "FlavorData" } } - } - }, - jobName: { - serializedName: "jobName", - nullable: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - modelType: { - serializedName: "modelType", - nullable: true, + location: { + serializedName: "location", type: { name: "String" } }, - modelUri: { - serializedName: "modelUri", - nullable: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } } }; -export const AzureBlobDatastore: coreClient.CompositeMapper = { - serializedName: "AzureBlob", +export const BatchEndpointsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureBlobDatastore", - uberParent: "DatastoreProperties", - polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, + className: "BatchEndpointsUpdateHeaders", modelProperties: { - ...DatastoreProperties.type.modelProperties, - accountName: { - serializedName: "accountName", - nullable: true, - type: { - name: "String" - } - }, - containerName: { - serializedName: "containerName", - nullable: true, - type: { - name: "String" - } - }, - endpoint: { - serializedName: "endpoint", - nullable: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - protocol: { - serializedName: "protocol", - nullable: true, + location: { + serializedName: "location", type: { name: "String" } }, - serviceDataAccessAuthIdentity: { - serializedName: "serviceDataAccessAuthIdentity", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } } }; -export const AzureDataLakeGen1Datastore: coreClient.CompositeMapper = { - serializedName: "AzureDataLakeGen1", +export const BatchEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDataLakeGen1Datastore", - uberParent: "DatastoreProperties", - polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, + className: "BatchEndpointsCreateOrUpdateHeaders", modelProperties: { - ...DatastoreProperties.type.modelProperties, - serviceDataAccessAuthIdentity: { - serializedName: "serviceDataAccessAuthIdentity", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - storeName: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "storeName", - required: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -10868,104 +19029,81 @@ export const AzureDataLakeGen1Datastore: coreClient.CompositeMapper = { } }; -export const AzureDataLakeGen2Datastore: coreClient.CompositeMapper = { - serializedName: "AzureDataLakeGen2", +export const BatchDeploymentsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDataLakeGen2Datastore", - uberParent: "DatastoreProperties", - polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, + className: "BatchDeploymentsDeleteHeaders", modelProperties: { - ...DatastoreProperties.type.modelProperties, - accountName: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "accountName", - required: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - endpoint: { - serializedName: "endpoint", - nullable: true, + location: { + serializedName: "location", type: { name: "String" } }, - filesystem: { + retryAfter: { constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") + InclusiveMaximum: 600, + InclusiveMinimum: 10 }, - serializedName: "filesystem", - required: true, - type: { - name: "String" - } - }, - protocol: { - serializedName: "protocol", - nullable: true, - type: { - name: "String" - } - }, - serviceDataAccessAuthIdentity: { - serializedName: "serviceDataAccessAuthIdentity", + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } } }; -export const AzureFileDatastore: coreClient.CompositeMapper = { - serializedName: "AzureFile", +export const BatchDeploymentsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureFileDatastore", - uberParent: "DatastoreProperties", - polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, + className: "BatchDeploymentsUpdateHeaders", modelProperties: { - ...DatastoreProperties.type.modelProperties, - accountName: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "accountName", - required: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - endpoint: { - serializedName: "endpoint", - nullable: true, + location: { + serializedName: "location", type: { name: "String" } }, - fileShareName: { + retryAfter: { constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") + InclusiveMaximum: 600, + InclusiveMinimum: 10 }, - serializedName: "fileShareName", - required: true, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } - }, - protocol: { - serializedName: "protocol", - nullable: true, + } + } + } +}; + +export const BatchDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchDeploymentsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - serviceDataAccessAuthIdentity: { - serializedName: "serviceDataAccessAuthIdentity", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -10974,197 +19112,179 @@ export const AzureFileDatastore: coreClient.CompositeMapper = { } }; -export const AutoMLJob: coreClient.CompositeMapper = { - serializedName: "AutoML", +export const FeaturesetContainersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoMLJob", - uberParent: "JobBaseProperties", - polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, + className: "FeaturesetContainersDeleteHeaders", modelProperties: { - ...JobBaseProperties.type.modelProperties, - environmentId: { - serializedName: "environmentId", - nullable: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - environmentVariables: { - serializedName: "environmentVariables", - nullable: true, + location: { + serializedName: "location", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - outputs: { - serializedName: "outputs", - nullable: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobOutput" } } + name: "Number" } - }, - resources: { - serializedName: "resources", + } + } + } +}; + +export const FeaturesetContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturesetContainersCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "JobResourceConfiguration" + name: "TimeSpan" } }, - taskDetails: { - serializedName: "taskDetails", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { - name: "Composite", - className: "AutoMLVertical" + name: "String" } } } } }; -export const CommandJob: coreClient.CompositeMapper = { - serializedName: "Command", +export const FeaturesetVersionsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CommandJob", - uberParent: "JobBaseProperties", - polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, + className: "FeaturesetVersionsDeleteHeaders", modelProperties: { - ...JobBaseProperties.type.modelProperties, - codeId: { - serializedName: "codeId", - nullable: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - command: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]"), - MinLength: 1 - }, - serializedName: "command", - required: true, + location: { + serializedName: "location", type: { name: "String" } }, - distribution: { - serializedName: "distribution", - type: { - name: "Composite", - className: "DistributionConfiguration" - } - }, - environmentId: { + retryAfter: { constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") + InclusiveMaximum: 600, + InclusiveMinimum: 10 }, - serializedName: "environmentId", - required: true, - type: { - name: "String" - } - }, - environmentVariables: { - serializedName: "environmentVariables", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - inputs: { - serializedName: "inputs", - nullable: true, + serializedName: "retry-after", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobInput" } } + name: "Number" } - }, - limits: { - serializedName: "limits", + } + } + } +}; + +export const FeaturesetVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturesetVersionsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "CommandJobLimits" + name: "TimeSpan" } }, - outputs: { - serializedName: "outputs", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobOutput" } } + name: "String" } - }, - parameters: { - serializedName: "parameters", - readOnly: true, - nullable: true, + } + } + } +}; + +export const FeaturesetVersionsBackfillHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturesetVersionsBackfillHeaders", + modelProperties: { + location: { + serializedName: "location", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - resources: { - serializedName: "resources", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Composite", - className: "JobResourceConfiguration" + name: "Number" } } } } }; -export const PipelineJob: coreClient.CompositeMapper = { - serializedName: "Pipeline", +export const FeaturestoreEntityContainersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PipelineJob", - uberParent: "JobBaseProperties", - polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, + className: "FeaturestoreEntityContainersDeleteHeaders", modelProperties: { - ...JobBaseProperties.type.modelProperties, - inputs: { - serializedName: "inputs", - nullable: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobInput" } } + name: "TimeSpan" } }, - jobs: { - serializedName: "jobs", - nullable: true, + location: { + serializedName: "location", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } }, - outputs: { - serializedName: "outputs", - nullable: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobOutput" } } + name: "Number" } - }, - settings: { - serializedName: "settings", - nullable: true, + } + } + } +}; + +export const FeaturestoreEntityContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturestoreEntityContainersCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "TimeSpan" } }, - sourceJobId: { - serializedName: "sourceJobId", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -11173,136 +19293,164 @@ export const PipelineJob: coreClient.CompositeMapper = { } }; -export const SweepJob: coreClient.CompositeMapper = { - serializedName: "Sweep", +export const FeaturestoreEntityVersionsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SweepJob", - uberParent: "JobBaseProperties", - polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, + className: "FeaturestoreEntityVersionsDeleteHeaders", modelProperties: { - ...JobBaseProperties.type.modelProperties, - earlyTermination: { - serializedName: "earlyTermination", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "EarlyTerminationPolicy" + name: "TimeSpan" } }, - inputs: { - serializedName: "inputs", - nullable: true, + location: { + serializedName: "location", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobInput" } } + name: "String" } }, - limits: { - serializedName: "limits", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Composite", - className: "SweepJobLimits" + name: "Number" } - }, - objective: { - serializedName: "objective", + } + } + } +}; + +export const FeaturestoreEntityVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturestoreEntityVersionsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "Objective" + name: "TimeSpan" } }, - outputs: { - serializedName: "outputs", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobOutput" } } + name: "String" } - }, - samplingAlgorithm: { - serializedName: "samplingAlgorithm", + } + } + } +}; + +export const JobsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobsDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "SamplingAlgorithm" + name: "TimeSpan" } }, - searchSpace: { - serializedName: "searchSpace", - required: true, + location: { + serializedName: "location", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - trial: { - serializedName: "trial", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Composite", - className: "TrialComponent" + name: "Number" } } } } }; -export const MLTableData: coreClient.CompositeMapper = { - serializedName: "mltable", +export const JobsCancelHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MLTableData", - uberParent: "DataVersionBaseProperties", - polymorphicDiscriminator: - DataVersionBaseProperties.type.polymorphicDiscriminator, + className: "JobsCancelHeaders", modelProperties: { - ...DataVersionBaseProperties.type.modelProperties, - referencedUris: { - serializedName: "referencedUris", - nullable: true, + location: { + serializedName: "location", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" } } } } }; -export const UriFileDataVersion: coreClient.CompositeMapper = { - serializedName: "uri_file", +export const LabelingJobsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UriFileDataVersion", - uberParent: "DataVersionBaseProperties", - polymorphicDiscriminator: - DataVersionBaseProperties.type.polymorphicDiscriminator, + className: "LabelingJobsCreateOrUpdateHeaders", modelProperties: { - ...DataVersionBaseProperties.type.modelProperties + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } } } }; -export const UriFolderDataVersion: coreClient.CompositeMapper = { - serializedName: "uri_folder", +export const LabelingJobsExportLabelsHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UriFolderDataVersion", - uberParent: "DataVersionBaseProperties", - polymorphicDiscriminator: - DataVersionBaseProperties.type.polymorphicDiscriminator, + className: "LabelingJobsExportLabelsHeaders", modelProperties: { - ...DataVersionBaseProperties.type.modelProperties + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } } } }; -export const WorkspacesDiagnoseHeaders: coreClient.CompositeMapper = { +export const LabelingJobsResumeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspacesDiagnoseHeaders", + className: "LabelingJobsResumeHeaders", modelProperties: { location: { serializedName: "location", @@ -11324,30 +19472,40 @@ export const WorkspacesDiagnoseHeaders: coreClient.CompositeMapper = { } }; -export const ComputeCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const ModelVersionsPackageHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeCreateOrUpdateHeaders", + className: "ModelVersionsPackageHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String" } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } } } } }; -export const ComputeDeleteHeaders: coreClient.CompositeMapper = { +export const OnlineEndpointsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeDeleteHeaders", + className: "OnlineEndpointsDeleteHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, location: { @@ -11355,15 +19513,25 @@ export const ComputeDeleteHeaders: coreClient.CompositeMapper = { type: { name: "String" } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } } } } }; -export const BatchEndpointsDeleteHeaders: coreClient.CompositeMapper = { +export const OnlineEndpointsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchEndpointsDeleteHeaders", + className: "OnlineEndpointsUpdateHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11391,10 +19559,10 @@ export const BatchEndpointsDeleteHeaders: coreClient.CompositeMapper = { } }; -export const BatchEndpointsUpdateHeaders: coreClient.CompositeMapper = { +export const OnlineEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchEndpointsUpdateHeaders", + className: "OnlineEndpointsCreateOrUpdateHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11402,6 +19570,21 @@ export const BatchEndpointsUpdateHeaders: coreClient.CompositeMapper = { name: "TimeSpan" } }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const OnlineEndpointsRegenerateKeysHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineEndpointsRegenerateKeysHeaders", + modelProperties: { location: { serializedName: "location", type: { @@ -11422,10 +19605,10 @@ export const BatchEndpointsUpdateHeaders: coreClient.CompositeMapper = { } }; -export const BatchEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const OnlineDeploymentsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchEndpointsCreateOrUpdateHeaders", + className: "OnlineDeploymentsDeleteHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11433,20 +19616,30 @@ export const BatchEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { name: "TimeSpan" } }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String" } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } } } } }; -export const BatchDeploymentsDeleteHeaders: coreClient.CompositeMapper = { +export const OnlineDeploymentsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchDeploymentsDeleteHeaders", + className: "OnlineDeploymentsUpdateHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11474,10 +19667,31 @@ export const BatchDeploymentsDeleteHeaders: coreClient.CompositeMapper = { } }; -export const BatchDeploymentsUpdateHeaders: coreClient.CompositeMapper = { +export const OnlineDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchDeploymentsUpdateHeaders", + className: "OnlineDeploymentsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const SchedulesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SchedulesDeleteHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11505,10 +19719,10 @@ export const BatchDeploymentsUpdateHeaders: coreClient.CompositeMapper = { } }; -export const BatchDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const SchedulesCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchDeploymentsCreateOrUpdateHeaders", + className: "SchedulesCreateOrUpdateHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11526,10 +19740,10 @@ export const BatchDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = } }; -export const JobsDeleteHeaders: coreClient.CompositeMapper = { +export const ServerlessEndpointsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobsDeleteHeaders", + className: "ServerlessEndpointsDeleteHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11557,11 +19771,17 @@ export const JobsDeleteHeaders: coreClient.CompositeMapper = { } }; -export const JobsCancelHeaders: coreClient.CompositeMapper = { +export const ServerlessEndpointsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobsCancelHeaders", + className: "ServerlessEndpointsUpdateHeaders", modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, location: { serializedName: "location", type: { @@ -11582,10 +19802,10 @@ export const JobsCancelHeaders: coreClient.CompositeMapper = { } }; -export const OnlineEndpointsDeleteHeaders: coreClient.CompositeMapper = { +export const ServerlessEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointsDeleteHeaders", + className: "ServerlessEndpointsCreateOrUpdateHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11593,6 +19813,21 @@ export const OnlineEndpointsDeleteHeaders: coreClient.CompositeMapper = { name: "TimeSpan" } }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const ServerlessEndpointsRegenerateKeysHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerlessEndpointsRegenerateKeysHeaders", + modelProperties: { location: { serializedName: "location", type: { @@ -11613,10 +19848,10 @@ export const OnlineEndpointsDeleteHeaders: coreClient.CompositeMapper = { } }; -export const OnlineEndpointsUpdateHeaders: coreClient.CompositeMapper = { +export const RegistriesDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointsUpdateHeaders", + className: "RegistriesDeleteHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11644,10 +19879,10 @@ export const OnlineEndpointsUpdateHeaders: coreClient.CompositeMapper = { } }; -export const OnlineEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const RegistriesRemoveRegionsHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointsCreateOrUpdateHeaders", + className: "RegistriesRemoveRegionsHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11655,20 +19890,30 @@ export const OnlineEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = name: "TimeSpan" } }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String" } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } } } } }; -export const OnlineEndpointsRegenerateKeysHeaders: coreClient.CompositeMapper = { +export const WorkspacesCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointsRegenerateKeysHeaders", + className: "WorkspacesCreateOrUpdateHeaders", modelProperties: { location: { serializedName: "location", @@ -11690,17 +19935,11 @@ export const OnlineEndpointsRegenerateKeysHeaders: coreClient.CompositeMapper = } }; -export const OnlineDeploymentsDeleteHeaders: coreClient.CompositeMapper = { +export const WorkspacesDiagnoseHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineDeploymentsDeleteHeaders", + className: "WorkspacesDiagnoseHeaders", modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", - type: { - name: "TimeSpan" - } - }, location: { serializedName: "location", type: { @@ -11721,17 +19960,11 @@ export const OnlineDeploymentsDeleteHeaders: coreClient.CompositeMapper = { } }; -export const OnlineDeploymentsUpdateHeaders: coreClient.CompositeMapper = { +export const WorkspacesPrepareNotebookHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineDeploymentsUpdateHeaders", + className: "WorkspacesPrepareNotebookHeaders", modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", - type: { - name: "TimeSpan" - } - }, location: { serializedName: "location", type: { @@ -11752,38 +19985,51 @@ export const OnlineDeploymentsUpdateHeaders: coreClient.CompositeMapper = { } }; -export const OnlineDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const WorkspacesResyncKeysHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineDeploymentsCreateOrUpdateHeaders", + className: "WorkspacesResyncKeysHeaders", modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", + location: { + serializedName: "location", type: { - name: "TimeSpan" + name: "String" } }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } } }; -export const SchedulesDeleteHeaders: coreClient.CompositeMapper = { +export const ManagedNetworkSettingsRuleDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SchedulesDeleteHeaders", + className: "ManagedNetworkSettingsRuleDeleteHeaders", modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", + location: { + serializedName: "location", type: { - name: "TimeSpan" + name: "String" } - }, + } + } + } +}; + +export const ManagedNetworkSettingsRuleCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedNetworkSettingsRuleCreateOrUpdateHeaders", + modelProperties: { location: { serializedName: "location", type: { @@ -11804,21 +20050,25 @@ export const SchedulesDeleteHeaders: coreClient.CompositeMapper = { } }; -export const SchedulesCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const ManagedNetworkProvisionsProvisionManagedNetworkHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SchedulesCreateOrUpdateHeaders", + className: "ManagedNetworkProvisionsProvisionManagedNetworkHeaders", modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", + location: { + serializedName: "location", type: { - name: "TimeSpan" + name: "String" } }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } @@ -11828,14 +20078,27 @@ export const SchedulesCreateOrUpdateHeaders: coreClient.CompositeMapper = { export let discriminators = { Compute: Compute, ComputeSecrets: ComputeSecrets, - WorkspaceConnectionPropertiesV2: WorkspaceConnectionPropertiesV2, + PendingUploadCredentialDto: PendingUploadCredentialDto, + BaseEnvironmentSource: BaseEnvironmentSource, + InferencingServer: InferencingServer, + PackageInputPathBase: PackageInputPathBase, + BatchDeploymentConfiguration: BatchDeploymentConfiguration, AssetReferenceBase: AssetReferenceBase, DatastoreCredentials: DatastoreCredentials, DatastoreSecrets: DatastoreSecrets, + Webhook: Webhook, + TriggerBase: TriggerBase, IdentityConfiguration: IdentityConfiguration, + Nodes: Nodes, + LabelingJobMediaProperties: LabelingJobMediaProperties, + MLAssistConfiguration: MLAssistConfiguration, + ExportSummary: ExportSummary, OnlineScaleSettings: OnlineScaleSettings, ScheduleActionBase: ScheduleActionBase, - TriggerBase: TriggerBase, + OutboundRule: OutboundRule, + WorkspaceConnectionPropertiesV2: WorkspaceConnectionPropertiesV2, + MonitoringFeatureFilterBase: MonitoringFeatureFilterBase, + MonitorComputeIdentityBase: MonitorComputeIdentityBase, ForecastHorizon: ForecastHorizon, JobOutput: JobOutput, AutoMLVertical: AutoMLVertical, @@ -11844,10 +20107,21 @@ export let discriminators = { Seasonality: Seasonality, TargetLags: TargetLags, TargetRollingWindowSize: TargetRollingWindowSize, + MonitoringAlertNotificationSettingsBase: MonitoringAlertNotificationSettingsBase, EarlyTerminationPolicy: EarlyTerminationPolicy, SamplingAlgorithm: SamplingAlgorithm, + DataDriftMetricThresholdBase: DataDriftMetricThresholdBase, + DataQualityMetricThresholdBase: DataQualityMetricThresholdBase, + PredictionDriftMetricThresholdBase: PredictionDriftMetricThresholdBase, + ModelPerformanceMetricThresholdBase: ModelPerformanceMetricThresholdBase, DistributionConfiguration: DistributionConfiguration, JobLimits: JobLimits, + MonitorComputeConfigurationBase: MonitorComputeConfigurationBase, + MonitoringSignalBase: MonitoringSignalBase, + MonitoringInputDataBase: MonitoringInputDataBase, + DataImportSource: DataImportSource, + OneLakeArtifact: OneLakeArtifact, + SparkJobEntry: SparkJobEntry, "Compute.AKS": Aks, "Compute.Kubernetes": Kubernetes, "Compute.AmlCompute": AmlCompute, @@ -11861,35 +20135,72 @@ export let discriminators = { "ComputeSecrets.AKS": AksComputeSecrets, "ComputeSecrets.VirtualMachine": VirtualMachineSecrets, "ComputeSecrets.Databricks": DatabricksComputeSecrets, - "WorkspaceConnectionPropertiesV2.PAT": PATAuthTypeWorkspaceConnectionProperties, - "WorkspaceConnectionPropertiesV2.SAS": SASAuthTypeWorkspaceConnectionProperties, - "WorkspaceConnectionPropertiesV2.UsernamePassword": UsernamePasswordAuthTypeWorkspaceConnectionProperties, - "WorkspaceConnectionPropertiesV2.None": NoneAuthTypeWorkspaceConnectionProperties, - "WorkspaceConnectionPropertiesV2.ManagedIdentity": ManagedIdentityAuthTypeWorkspaceConnectionProperties, - "AssetReferenceBase.DataPath": DataPathAssetReference, + "ResourceBase.DatastoreProperties": DatastoreProperties, + "ResourceBase.JobBaseProperties": JobBaseProperties, + "PendingUploadCredentialDto.SAS": SASCredentialDto, + "BaseEnvironmentSource.EnvironmentAsset": BaseEnvironmentId, + "InferencingServer.AzureMLBatch": AzureMLBatchInferencingServer, + "InferencingServer.AzureMLOnline": AzureMLOnlineInferencingServer, + "InferencingServer.Custom": CustomInferencingServer, + "InferencingServer.Triton": TritonInferencingServer, + "PackageInputPathBase.PathId": PackageInputPathId, + "PackageInputPathBase.Url": PackageInputPathUrl, + "PackageInputPathBase.PathVersion": PackageInputPathVersion, + "BatchDeploymentConfiguration.PipelineComponent": BatchPipelineComponentDeploymentConfiguration, "AssetReferenceBase.Id": IdAssetReference, + "AssetReferenceBase.DataPath": DataPathAssetReference, "AssetReferenceBase.OutputPath": OutputPathAssetReference, "EndpointDeploymentPropertiesBase.OnlineDeploymentProperties": OnlineDeploymentProperties, - "ResourceBase.DatastoreProperties": DatastoreProperties, - "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, + "Webhook.AzureDevOps": AzureDevOpsWebhook, + "TriggerBase.Recurrence": RecurrenceTrigger, + "TriggerBase.Cron": CronTrigger, "IdentityConfiguration.AMLToken": AmlToken, "IdentityConfiguration.Managed": ManagedIdentity, "IdentityConfiguration.UserIdentity": UserIdentity, + "Nodes.All": AllNodes, + "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.CreateMonitor": CreateMonitorAction, "ScheduleActionBase.InvokeBatchEndpoint": EndpointScheduleAction, + "ScheduleActionBase.ImportData": ImportDataAction, "ScheduleActionBase.CreateJob": JobScheduleAction, - "TriggerBase.Recurrence": RecurrenceTrigger, - "TriggerBase.Cron": CronTrigger, + "OutboundRule.FQDN": FqdnOutboundRule, + "OutboundRule.PrivateEndpoint": PrivateEndpointOutboundRule, + "OutboundRule.ServiceTag": ServiceTagOutboundRule, + "WorkspaceConnectionPropertiesV2.AccessKey": AccessKeyAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.ApiKey": ApiKeyAuthWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.CustomKeys": CustomKeysWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.ManagedIdentity": ManagedIdentityAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.None": NoneAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.PAT": PATAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.SAS": SASAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.ServicePrincipal": ServicePrincipalAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.UsernamePassword": UsernamePasswordAuthTypeWorkspaceConnectionProperties, + "MonitoringFeatureFilterBase.AllFeatures": AllFeatures, + "MonitoringFeatureFilterBase.FeatureSubset": FeatureSubset, + "MonitoringFeatureFilterBase.TopNByAttribution": TopNFeaturesByAttribution, + "MonitorComputeIdentityBase.AmlToken": AmlTokenComputeIdentity, + "MonitorComputeIdentityBase.ManagedIdentity": ManagedComputeIdentity, "AssetJobInput.mltable": MLTableJobInput, "AssetJobInput.custom_model": CustomModelJobInput, "AssetJobInput.mlflow_model": MLFlowModelJobInput, @@ -11923,29 +20234,61 @@ export let discriminators = { "TargetLags.Custom": CustomTargetLags, "TargetRollingWindowSize.Auto": AutoTargetRollingWindowSize, "TargetRollingWindowSize.Custom": CustomTargetRollingWindowSize, + "MonitoringAlertNotificationSettingsBase.AzureMonitor": AzMonMonitoringAlertNotificationSettings, + "MonitoringAlertNotificationSettingsBase.Email": EmailMonitoringAlertNotificationSettings, + "AzureDatastore.AzureBlob": AzureBlobDatastore, + "AzureDatastore.AzureDataLakeGen1": AzureDataLakeGen1Datastore, + "AzureDatastore.AzureDataLakeGen2": AzureDataLakeGen2Datastore, + "AzureDatastore.AzureFile": AzureFileDatastore, "EarlyTerminationPolicy.Bandit": BanditPolicy, "EarlyTerminationPolicy.MedianStopping": MedianStoppingPolicy, "EarlyTerminationPolicy.TruncationSelection": TruncationSelectionPolicy, "SamplingAlgorithm.Bayesian": BayesianSamplingAlgorithm, "SamplingAlgorithm.Grid": GridSamplingAlgorithm, "SamplingAlgorithm.Random": RandomSamplingAlgorithm, + "DataDriftMetricThresholdBase.Categorical": CategoricalDataDriftMetricThreshold, + "DataDriftMetricThresholdBase.Numerical": NumericalDataDriftMetricThreshold, + "DataQualityMetricThresholdBase.Categorical": CategoricalDataQualityMetricThreshold, + "DataQualityMetricThresholdBase.Numerical": NumericalDataQualityMetricThreshold, + "PredictionDriftMetricThresholdBase.Categorical": CategoricalPredictionDriftMetricThreshold, + "PredictionDriftMetricThresholdBase.Numerical": NumericalPredictionDriftMetricThreshold, + "ModelPerformanceMetricThresholdBase.Classification": ClassificationModelPerformanceMetricThreshold, + "ModelPerformanceMetricThresholdBase.Regression": RegressionModelPerformanceMetricThreshold, "DistributionConfiguration.Mpi": Mpi, "DistributionConfiguration.PyTorch": PyTorch, + "DistributionConfiguration.Ray": Ray, "DistributionConfiguration.TensorFlow": TensorFlow, "JobLimits.Command": CommandJobLimits, "JobLimits.Sweep": SweepJobLimits, - "OnlineDeploymentProperties.Kubernetes": KubernetesOnlineDeployment, - "OnlineDeploymentProperties.Managed": ManagedOnlineDeployment, + "MonitorComputeConfigurationBase.ServerlessSpark": MonitorServerlessSparkCompute, + "MonitoringSignalBase.Custom": CustomMonitoringSignal, + "MonitoringSignalBase.DataDrift": DataDriftMonitoringSignal, + "MonitoringSignalBase.DataQuality": DataQualityMonitoringSignal, + "MonitoringSignalBase.FeatureAttributionDrift": FeatureAttributionDriftMonitoringSignal, + "MonitoringSignalBase.GenerationSafetyQuality": GenerationSafetyQualityMonitoringSignal, + "MonitoringSignalBase.GenerationTokenStatistics": GenerationTokenStatisticsSignal, + "MonitoringSignalBase.ModelPerformance": ModelPerformanceSignal, + "MonitoringSignalBase.PredictionDrift": PredictionDriftMonitoringSignal, + "MonitoringInputDataBase.Fixed": FixedInputData, + "MonitoringInputDataBase.Static": StaticInputData, + "MonitoringInputDataBase.Trailing": TrailingInputData, + "DataImportSource.database": DatabaseSource, + "DataImportSource.file_system": FileSystemSource, + "OneLakeArtifact.LakeHouse": LakeHouseArtifact, + "SparkJobEntry.SparkJobPythonEntry": SparkJobPythonEntry, + "SparkJobEntry.SparkJobScalaEntry": SparkJobScalaEntry, "AssetBase.DataVersionBaseProperties": DataVersionBaseProperties, - "DatastoreProperties.AzureBlob": AzureBlobDatastore, - "DatastoreProperties.AzureDataLakeGen1": AzureDataLakeGen1Datastore, - "DatastoreProperties.AzureDataLakeGen2": AzureDataLakeGen2Datastore, - "DatastoreProperties.AzureFile": AzureFileDatastore, + "DatastoreProperties.Hdfs": HdfsDatastore, + "DatastoreProperties.OneLake": OneLakeDatastore, + "JobBaseProperties.Labeling": LabelingJobProperties, "JobBaseProperties.AutoML": AutoMLJob, "JobBaseProperties.Command": CommandJob, "JobBaseProperties.Pipeline": PipelineJob, + "JobBaseProperties.Spark": SparkJob, "JobBaseProperties.Sweep": SweepJob, + "OnlineDeploymentProperties.Kubernetes": KubernetesOnlineDeployment, + "OnlineDeploymentProperties.Managed": ManagedOnlineDeployment, + "DataVersionBaseProperties.uri_folder": UriFolderDataVersion, "DataVersionBaseProperties.mltable": MLTableData, - "DataVersionBaseProperties.uri_file": UriFileDataVersion, - "DataVersionBaseProperties.uri_folder": UriFolderDataVersion + "DataVersionBaseProperties.uri_file": UriFileDataVersion }; diff --git a/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts b/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts index 1774bcca03b6..ee55b6314f99 100644 --- a/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts +++ b/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts @@ -12,36 +12,55 @@ import { OperationQueryParameter } from "@azure/core-client"; import { - Workspace as WorkspaceMapper, - WorkspaceUpdateParameters as WorkspaceUpdateParametersMapper, - DiagnoseWorkspaceParameters as DiagnoseWorkspaceParametersMapper, QuotaUpdateParameters as QuotaUpdateParametersMapper, ComputeResource as ComputeResourceMapper, ClusterUpdateParameters as ClusterUpdateParametersMapper, - PrivateEndpointConnection as PrivateEndpointConnectionMapper, - WorkspaceConnectionPropertiesV2BasicResource as WorkspaceConnectionPropertiesV2BasicResourceMapper, - PartialMinimalTrackedResourceWithIdentity as PartialMinimalTrackedResourceWithIdentityMapper, - BatchEndpoint as BatchEndpointMapper, - PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties as PartialBatchDeploymentPartialMinimalTrackedResourceWithPropertiesMapper, - BatchDeployment as BatchDeploymentMapper, + IdleShutdownSetting as IdleShutdownSettingMapper, + ResizeSchema as ResizeSchemaMapper, CodeContainer as CodeContainerMapper, CodeVersion as CodeVersionMapper, + PendingUploadRequestDto as PendingUploadRequestDtoMapper, ComponentContainer as ComponentContainerMapper, ComponentVersion as ComponentVersionMapper, DataContainer as DataContainerMapper, DataVersionBase as DataVersionBaseMapper, - Datastore as DatastoreMapper, EnvironmentContainer as EnvironmentContainerMapper, EnvironmentVersion as EnvironmentVersionMapper, - JobBase as JobBaseMapper, ModelContainer as ModelContainerMapper, ModelVersion as ModelVersionMapper, + PackageRequest as PackageRequestMapper, + PartialMinimalTrackedResourceWithIdentity as PartialMinimalTrackedResourceWithIdentityMapper, + BatchEndpoint as BatchEndpointMapper, + PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties as PartialBatchDeploymentPartialMinimalTrackedResourceWithPropertiesMapper, + BatchDeployment as BatchDeploymentMapper, + Datastore as DatastoreMapper, + FeaturesetContainer as FeaturesetContainerMapper, + FeaturesetVersion as FeaturesetVersionMapper, + FeaturesetVersionBackfillRequest as FeaturesetVersionBackfillRequestMapper, + FeaturestoreEntityContainer as FeaturestoreEntityContainerMapper, + FeaturestoreEntityVersion as FeaturestoreEntityVersionMapper, + PartialJobBasePartialResource as PartialJobBasePartialResourceMapper, + JobBase as JobBaseMapper, + LabelingJob as LabelingJobMapper, + ExportSummary as ExportSummaryMapper, OnlineEndpoint as OnlineEndpointMapper, RegenerateEndpointKeysRequest as RegenerateEndpointKeysRequestMapper, PartialMinimalTrackedResourceWithSku as PartialMinimalTrackedResourceWithSkuMapper, OnlineDeployment as OnlineDeploymentMapper, DeploymentLogsRequest as DeploymentLogsRequestMapper, - Schedule as ScheduleMapper + Schedule as ScheduleMapper, + PartialMinimalTrackedResourceWithSkuAndIdentity as PartialMinimalTrackedResourceWithSkuAndIdentityMapper, + ServerlessEndpoint as ServerlessEndpointMapper, + PartialRegistryPartialTrackedResource as PartialRegistryPartialTrackedResourceMapper, + Registry as RegistryMapper, + WorkspaceUpdateParameters as WorkspaceUpdateParametersMapper, + Workspace as WorkspaceMapper, + DiagnoseWorkspaceParameters as DiagnoseWorkspaceParametersMapper, + WorkspaceConnectionUpdateParameter as WorkspaceConnectionUpdateParameterMapper, + WorkspaceConnectionPropertiesV2BasicResource as WorkspaceConnectionPropertiesV2BasicResourceMapper, + OutboundRuleBasicResource as OutboundRuleBasicResourceMapper, + PrivateEndpointConnection as PrivateEndpointConnectionMapper, + ManagedNetworkProvisionOptions as ManagedNetworkProvisionOptionsMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -71,7 +90,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-10-01", + defaultValue: "2023-08-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -94,14 +113,13 @@ export const subscriptionId: OperationURLParameter = { } }; -export const resourceGroupName: OperationURLParameter = { - parameterPath: "resourceGroupName", +export const location: OperationURLParameter = { + parameterPath: "location", mapper: { constraints: { - MaxLength: 90, - MinLength: 1 + Pattern: new RegExp("^[-\\w\\._]+$") }, - serializedName: "resourceGroupName", + serializedName: "location", required: true, type: { name: "String" @@ -109,15 +127,16 @@ export const resourceGroupName: OperationURLParameter = { } }; -export const workspaceName: OperationURLParameter = { - parameterPath: "workspaceName", +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", mapper: { - serializedName: "workspaceName", + serializedName: "nextLink", required: true, type: { name: "String" } - } + }, + skipEncoding: true }; export const contentType: OperationParameter = { @@ -134,63 +153,56 @@ export const contentType: OperationParameter = { export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: WorkspaceMapper -}; - -export const parameters1: OperationParameter = { - parameterPath: "parameters", - mapper: WorkspaceUpdateParametersMapper + mapper: QuotaUpdateParametersMapper }; -export const skip: OperationQueryParameter = { - parameterPath: ["options", "skip"], +export const resourceGroupName: OperationURLParameter = { + parameterPath: "resourceGroupName", mapper: { - serializedName: "$skip", + constraints: { + MaxLength: 90, + MinLength: 1 + }, + serializedName: "resourceGroupName", + required: true, type: { name: "String" } } }; -export const parameters2: OperationParameter = { - parameterPath: ["options", "parameters"], - mapper: DiagnoseWorkspaceParametersMapper -}; - -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", +export const workspaceName: OperationURLParameter = { + parameterPath: "workspaceName", mapper: { - serializedName: "nextLink", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") + }, + serializedName: "workspaceName", required: true, type: { name: "String" } - }, - skipEncoding: true + } }; -export const location: OperationURLParameter = { - parameterPath: "location", +export const skip: OperationQueryParameter = { + parameterPath: ["options", "skip"], mapper: { - constraints: { - Pattern: new RegExp("^[-\\w\\._]+$") - }, - serializedName: "location", - required: true, + serializedName: "$skip", type: { name: "String" } } }; -export const parameters3: OperationParameter = { - parameterPath: "parameters", - mapper: QuotaUpdateParametersMapper -}; - export const computeName: OperationURLParameter = { parameterPath: "computeName", mapper: { + constraints: { + Pattern: new RegExp( + "^[a-zA-Z](?![a-zA-Z0-9-]*-\\d+$)[a-zA-Z0-9\\-]{2,23}$" + ) + }, serializedName: "computeName", required: true, type: { @@ -199,12 +211,12 @@ export const computeName: OperationURLParameter = { } }; -export const parameters4: OperationParameter = { +export const parameters1: OperationParameter = { parameterPath: "parameters", mapper: ComputeResourceMapper }; -export const parameters5: OperationParameter = { +export const parameters2: OperationParameter = { parameterPath: "parameters", mapper: ClusterUpdateParametersMapper }; @@ -220,31 +232,40 @@ export const underlyingResourceAction: OperationQueryParameter = { } }; -export const privateEndpointConnectionName: OperationURLParameter = { - parameterPath: "privateEndpointConnectionName", +export const customServices: OperationParameter = { + parameterPath: "customServices", mapper: { - serializedName: "privateEndpointConnectionName", + serializedName: "customServices", required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CustomService" + } + } } } }; -export const properties: OperationParameter = { - parameterPath: "properties", - mapper: PrivateEndpointConnectionMapper +export const parameters3: OperationParameter = { + parameterPath: "parameters", + mapper: IdleShutdownSettingMapper }; -export const parameters6: OperationParameter = { +export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: WorkspaceConnectionPropertiesV2BasicResourceMapper + mapper: ResizeSchemaMapper }; -export const connectionName: OperationURLParameter = { - parameterPath: "connectionName", +export const registryName: OperationURLParameter = { + parameterPath: "registryName", mapper: { - serializedName: "connectionName", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{2,32}$") + }, + serializedName: "registryName", required: true, type: { name: "String" @@ -252,40 +273,49 @@ export const connectionName: OperationURLParameter = { } }; -export const target: OperationQueryParameter = { - parameterPath: ["options", "target"], +export const codeName: OperationURLParameter = { + parameterPath: "codeName", mapper: { - serializedName: "target", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "codeName", + required: true, type: { name: "String" } } }; -export const category: OperationQueryParameter = { - parameterPath: ["options", "category"], +export const body: OperationParameter = { + parameterPath: "body", + mapper: CodeContainerMapper +}; + +export const orderBy: OperationQueryParameter = { + parameterPath: ["options", "orderBy"], mapper: { - serializedName: "category", + serializedName: "$orderBy", type: { name: "String" } } }; -export const count: OperationQueryParameter = { - parameterPath: ["options", "count"], +export const top: OperationQueryParameter = { + parameterPath: ["options", "top"], mapper: { - serializedName: "count", + serializedName: "$top", type: { name: "Number" } } }; -export const endpointName: OperationURLParameter = { - parameterPath: "endpointName", +export const version: OperationURLParameter = { + parameterPath: "version", mapper: { - serializedName: "endpointName", + serializedName: "version", required: true, type: { name: "String" @@ -293,18 +323,23 @@ export const endpointName: OperationURLParameter = { } }; -export const body: OperationParameter = { +export const body1: OperationParameter = { parameterPath: "body", - mapper: PartialMinimalTrackedResourceWithIdentityMapper + mapper: CodeVersionMapper }; -export const endpointName1: OperationURLParameter = { - parameterPath: "endpointName", +export const body2: OperationParameter = { + parameterPath: "body", + mapper: PendingUploadRequestDtoMapper +}; + +export const componentName: OperationURLParameter = { + parameterPath: "componentName", mapper: { constraints: { Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") }, - serializedName: "endpointName", + serializedName: "componentName", required: true, type: { name: "String" @@ -312,66 +347,36 @@ export const endpointName1: OperationURLParameter = { } }; -export const body1: OperationParameter = { +export const body3: OperationParameter = { parameterPath: "body", - mapper: BatchEndpointMapper -}; - -export const orderBy: OperationQueryParameter = { - parameterPath: ["options", "orderBy"], - mapper: { - serializedName: "$orderBy", - type: { - name: "String" - } - } -}; - -export const top: OperationQueryParameter = { - parameterPath: ["options", "top"], - mapper: { - serializedName: "$top", - type: { - name: "Number" - } - } + mapper: ComponentContainerMapper }; -export const deploymentName: OperationURLParameter = { - parameterPath: "deploymentName", +export const stage: OperationQueryParameter = { + parameterPath: ["options", "stage"], mapper: { - serializedName: "deploymentName", - required: true, + serializedName: "stage", type: { name: "String" } } }; -export const body2: OperationParameter = { +export const body4: OperationParameter = { parameterPath: "body", - mapper: PartialBatchDeploymentPartialMinimalTrackedResourceWithPropertiesMapper + mapper: ComponentVersionMapper }; -export const deploymentName1: OperationURLParameter = { - parameterPath: "deploymentName", +export const listViewType: OperationQueryParameter = { + parameterPath: ["options", "listViewType"], mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") - }, - serializedName: "deploymentName", - required: true, + serializedName: "listViewType", type: { name: "String" } } }; -export const body3: OperationParameter = { - parameterPath: "body", - mapper: BatchDeploymentMapper -}; - export const name: OperationURLParameter = { parameterPath: "name", mapper: { @@ -383,9 +388,9 @@ export const name: OperationURLParameter = { } }; -export const body4: OperationParameter = { +export const body5: OperationParameter = { parameterPath: "body", - mapper: CodeContainerMapper + mapper: DataContainerMapper }; export const name1: OperationURLParameter = { @@ -402,51 +407,53 @@ export const name1: OperationURLParameter = { } }; -export const version: OperationURLParameter = { - parameterPath: "version", +export const tags: OperationQueryParameter = { + parameterPath: ["options", "tags"], mapper: { - serializedName: "version", - required: true, + serializedName: "$tags", type: { name: "String" } } }; -export const body5: OperationParameter = { +export const body6: OperationParameter = { parameterPath: "body", - mapper: CodeVersionMapper + mapper: DataVersionBaseMapper }; -export const listViewType: OperationQueryParameter = { - parameterPath: ["options", "listViewType"], +export const environmentName: OperationURLParameter = { + parameterPath: "environmentName", mapper: { - serializedName: "listViewType", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "environmentName", + required: true, type: { name: "String" } } }; -export const body6: OperationParameter = { - parameterPath: "body", - mapper: ComponentContainerMapper -}; - export const body7: OperationParameter = { parameterPath: "body", - mapper: ComponentVersionMapper + mapper: EnvironmentContainerMapper }; export const body8: OperationParameter = { parameterPath: "body", - mapper: DataContainerMapper + mapper: EnvironmentVersionMapper }; -export const tags: OperationQueryParameter = { - parameterPath: ["options", "tags"], +export const modelName: OperationURLParameter = { + parameterPath: "modelName", mapper: { - serializedName: "$tags", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "modelName", + required: true, type: { name: "String" } @@ -455,26 +462,176 @@ export const tags: OperationQueryParameter = { export const body9: OperationParameter = { parameterPath: "body", - mapper: DataVersionBaseMapper + mapper: ModelContainerMapper }; -export const count1: OperationQueryParameter = { - parameterPath: ["options", "count"], +export const version1: OperationQueryParameter = { + parameterPath: ["options", "version"], mapper: { - defaultValue: 30, - serializedName: "count", + serializedName: "version", type: { - name: "Number" + name: "String" } } }; -export const isDefault: OperationQueryParameter = { - parameterPath: ["options", "isDefault"], +export const description: OperationQueryParameter = { + parameterPath: ["options", "description"], mapper: { - serializedName: "isDefault", + serializedName: "description", type: { - name: "Boolean" + name: "String" + } + } +}; + +export const tags1: OperationQueryParameter = { + parameterPath: ["options", "tags"], + mapper: { + serializedName: "tags", + type: { + name: "String" + } + } +}; + +export const properties: OperationQueryParameter = { + parameterPath: ["options", "properties"], + mapper: { + serializedName: "properties", + type: { + name: "String" + } + } +}; + +export const body10: OperationParameter = { + parameterPath: "body", + mapper: ModelVersionMapper +}; + +export const body11: OperationParameter = { + parameterPath: "body", + mapper: PackageRequestMapper +}; + +export const count: OperationQueryParameter = { + parameterPath: ["options", "count"], + mapper: { + serializedName: "count", + type: { + name: "Number" + } + } +}; + +export const endpointName: OperationURLParameter = { + parameterPath: "endpointName", + mapper: { + serializedName: "endpointName", + required: true, + type: { + name: "String" + } + } +}; + +export const body12: OperationParameter = { + parameterPath: "body", + mapper: PartialMinimalTrackedResourceWithIdentityMapper +}; + +export const endpointName1: OperationURLParameter = { + parameterPath: "endpointName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "endpointName", + required: true, + type: { + name: "String" + } + } +}; + +export const body13: OperationParameter = { + parameterPath: "body", + mapper: BatchEndpointMapper +}; + +export const deploymentName: OperationURLParameter = { + parameterPath: "deploymentName", + mapper: { + serializedName: "deploymentName", + required: true, + type: { + name: "String" + } + } +}; + +export const body14: OperationParameter = { + parameterPath: "body", + mapper: PartialBatchDeploymentPartialMinimalTrackedResourceWithPropertiesMapper +}; + +export const deploymentName1: OperationURLParameter = { + parameterPath: "deploymentName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "deploymentName", + required: true, + type: { + name: "String" + } + } +}; + +export const body15: OperationParameter = { + parameterPath: "body", + mapper: BatchDeploymentMapper +}; + +export const hash: OperationQueryParameter = { + parameterPath: ["options", "hash"], + mapper: { + serializedName: "hash", + type: { + name: "String" + } + } +}; + +export const hashVersion: OperationQueryParameter = { + parameterPath: ["options", "hashVersion"], + mapper: { + serializedName: "hashVersion", + type: { + name: "String" + } + } +}; + +export const count1: OperationQueryParameter = { + parameterPath: ["options", "count"], + mapper: { + defaultValue: 30, + serializedName: "count", + type: { + name: "Number" + } + } +}; + +export const isDefault: OperationQueryParameter = { + parameterPath: ["options", "isDefault"], + mapper: { + serializedName: "isDefault", + type: { + name: "Boolean" } } }; @@ -526,7 +683,7 @@ export const orderByAsc: OperationQueryParameter = { } }; -export const body10: OperationParameter = { +export const body16: OperationParameter = { parameterPath: "body", mapper: DatastoreMapper }; @@ -542,40 +699,60 @@ export const skipValidation: OperationQueryParameter = { } }; -export const body11: OperationParameter = { - parameterPath: "body", - mapper: EnvironmentContainerMapper +export const pageSize: OperationQueryParameter = { + parameterPath: ["options", "pageSize"], + mapper: { + defaultValue: 20, + serializedName: "pageSize", + type: { + name: "Number" + } + } }; -export const body12: OperationParameter = { - parameterPath: "body", - mapper: EnvironmentVersionMapper +export const name2: OperationQueryParameter = { + parameterPath: ["options", "name"], + mapper: { + serializedName: "name", + type: { + name: "String" + } + } }; -export const jobType: OperationQueryParameter = { - parameterPath: ["options", "jobType"], +export const createdBy: OperationQueryParameter = { + parameterPath: ["options", "createdBy"], mapper: { - serializedName: "jobType", + serializedName: "createdBy", type: { name: "String" } } }; -export const tag: OperationQueryParameter = { - parameterPath: ["options", "tag"], +export const body17: OperationParameter = { + parameterPath: "body", + mapper: FeaturesetContainerMapper +}; + +export const featuresetName: OperationURLParameter = { + parameterPath: "featuresetName", mapper: { - serializedName: "tag", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "featuresetName", + required: true, type: { name: "String" } } }; -export const id: OperationURLParameter = { - parameterPath: "id", +export const featuresetVersion: OperationURLParameter = { + parameterPath: "featuresetVersion", mapper: { - serializedName: "id", + serializedName: "featuresetVersion", required: true, type: { name: "String" @@ -583,18 +760,34 @@ export const id: OperationURLParameter = { } }; -export const body13: OperationParameter = { - parameterPath: "body", - mapper: JobBaseMapper +export const featureName: OperationQueryParameter = { + parameterPath: ["options", "featureName"], + mapper: { + serializedName: "featureName", + type: { + name: "String" + } + } }; -export const id1: OperationURLParameter = { - parameterPath: "id", +export const pageSize1: OperationQueryParameter = { + parameterPath: ["options", "pageSize"], + mapper: { + defaultValue: 1000, + serializedName: "pageSize", + type: { + name: "Number" + } + } +}; + +export const featureName1: OperationURLParameter = { + parameterPath: "featureName", mapper: { constraints: { Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") }, - serializedName: "id", + serializedName: "featureName", required: true, type: { name: "String" @@ -602,80 +795,145 @@ export const id1: OperationURLParameter = { } }; -export const body14: OperationParameter = { +export const versionName: OperationQueryParameter = { + parameterPath: ["options", "versionName"], + mapper: { + serializedName: "versionName", + type: { + name: "String" + } + } +}; + +export const body18: OperationParameter = { parameterPath: "body", - mapper: ModelContainerMapper + mapper: FeaturesetVersionMapper }; -export const version1: OperationQueryParameter = { - parameterPath: ["options", "version"], +export const body19: OperationParameter = { + parameterPath: "body", + mapper: FeaturesetVersionBackfillRequestMapper +}; + +export const body20: OperationParameter = { + parameterPath: "body", + mapper: FeaturestoreEntityContainerMapper +}; + +export const body21: OperationParameter = { + parameterPath: "body", + mapper: FeaturestoreEntityVersionMapper +}; + +export const jobType: OperationQueryParameter = { + parameterPath: ["options", "jobType"], mapper: { - serializedName: "version", + serializedName: "jobType", type: { name: "String" } } }; -export const description: OperationQueryParameter = { - parameterPath: ["options", "description"], +export const tag: OperationQueryParameter = { + parameterPath: ["options", "tag"], mapper: { - serializedName: "description", + serializedName: "tag", type: { name: "String" } } }; -export const offset: OperationQueryParameter = { - parameterPath: ["options", "offset"], +export const assetName: OperationQueryParameter = { + parameterPath: ["options", "assetName"], mapper: { - serializedName: "offset", + serializedName: "assetName", type: { - name: "Number" + name: "String" } } }; -export const tags1: OperationQueryParameter = { - parameterPath: ["options", "tags"], +export const scheduled: OperationQueryParameter = { + parameterPath: ["options", "scheduled"], mapper: { - serializedName: "tags", + serializedName: "scheduled", + type: { + name: "Boolean" + } + } +}; + +export const scheduleId: OperationQueryParameter = { + parameterPath: ["options", "scheduleId"], + mapper: { + serializedName: "scheduleId", type: { name: "String" } } }; -export const properties1: OperationQueryParameter = { - parameterPath: ["options", "properties"], +export const id: OperationURLParameter = { + parameterPath: "id", mapper: { - serializedName: "properties", + serializedName: "id", + required: true, type: { name: "String" } } }; -export const feed: OperationQueryParameter = { - parameterPath: ["options", "feed"], +export const body22: OperationParameter = { + parameterPath: "body", + mapper: PartialJobBasePartialResourceMapper +}; + +export const body23: OperationParameter = { + parameterPath: "body", + mapper: JobBaseMapper +}; + +export const id1: OperationURLParameter = { + parameterPath: "id", mapper: { - serializedName: "feed", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "id", + required: true, type: { name: "String" } } }; -export const body15: OperationParameter = { +export const body24: OperationParameter = { parameterPath: "body", - mapper: ModelVersionMapper + mapper: LabelingJobMapper }; -export const name2: OperationQueryParameter = { - parameterPath: ["options", "name"], +export const body25: OperationParameter = { + parameterPath: "body", + mapper: ExportSummaryMapper +}; + +export const offset: OperationQueryParameter = { + parameterPath: ["options", "offset"], mapper: { - serializedName: "name", + serializedName: "offset", + type: { + name: "Number" + } + } +}; + +export const feed: OperationQueryParameter = { + parameterPath: ["options", "feed"], + mapper: { + serializedName: "feed", type: { name: "String" } @@ -702,27 +960,27 @@ export const orderBy2: OperationQueryParameter = { } }; -export const body16: OperationParameter = { +export const body26: OperationParameter = { parameterPath: "body", mapper: OnlineEndpointMapper }; -export const body17: OperationParameter = { +export const body27: OperationParameter = { parameterPath: "body", mapper: RegenerateEndpointKeysRequestMapper }; -export const body18: OperationParameter = { +export const body28: OperationParameter = { parameterPath: "body", mapper: PartialMinimalTrackedResourceWithSkuMapper }; -export const body19: OperationParameter = { +export const body29: OperationParameter = { parameterPath: "body", mapper: OnlineDeploymentMapper }; -export const body20: OperationParameter = { +export const body30: OperationParameter = { parameterPath: "body", mapper: DeploymentLogsRequestMapper }; @@ -737,7 +995,147 @@ export const listViewType1: OperationQueryParameter = { } }; -export const body21: OperationParameter = { +export const body31: OperationParameter = { parameterPath: "body", mapper: ScheduleMapper }; + +export const body32: OperationParameter = { + parameterPath: "body", + mapper: PartialMinimalTrackedResourceWithSkuAndIdentityMapper +}; + +export const body33: OperationParameter = { + parameterPath: "body", + mapper: ServerlessEndpointMapper +}; + +export const body34: OperationParameter = { + parameterPath: "body", + mapper: PartialRegistryPartialTrackedResourceMapper +}; + +export const body35: OperationParameter = { + parameterPath: "body", + mapper: RegistryMapper +}; + +export const kind: OperationQueryParameter = { + parameterPath: ["options", "kind"], + mapper: { + serializedName: "kind", + type: { + name: "String" + } + } +}; + +export const forceToPurge: OperationQueryParameter = { + parameterPath: ["options", "forceToPurge"], + mapper: { + defaultValue: false, + serializedName: "forceToPurge", + type: { + name: "Boolean" + } + } +}; + +export const body36: OperationParameter = { + parameterPath: "body", + mapper: WorkspaceUpdateParametersMapper +}; + +export const body37: OperationParameter = { + parameterPath: "body", + mapper: WorkspaceMapper +}; + +export const body38: OperationParameter = { + parameterPath: ["options", "body"], + mapper: DiagnoseWorkspaceParametersMapper +}; + +export const target: OperationQueryParameter = { + parameterPath: ["options", "target"], + mapper: { + serializedName: "target", + type: { + name: "String" + } + } +}; + +export const category: OperationQueryParameter = { + parameterPath: ["options", "category"], + mapper: { + serializedName: "category", + type: { + name: "String" + } + } +}; + +export const connectionName: OperationURLParameter = { + parameterPath: "connectionName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") + }, + serializedName: "connectionName", + required: true, + type: { + name: "String" + } + } +}; + +export const body39: OperationParameter = { + parameterPath: ["options", "body"], + mapper: WorkspaceConnectionUpdateParameterMapper +}; + +export const body40: OperationParameter = { + parameterPath: ["options", "body"], + mapper: WorkspaceConnectionPropertiesV2BasicResourceMapper +}; + +export const ruleName: OperationURLParameter = { + parameterPath: "ruleName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") + }, + serializedName: "ruleName", + required: true, + type: { + name: "String" + } + } +}; + +export const body41: OperationParameter = { + parameterPath: "body", + mapper: OutboundRuleBasicResourceMapper +}; + +export const privateEndpointConnectionName: OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", + mapper: { + serializedName: "privateEndpointConnectionName", + required: true, + type: { + name: "String" + } + } +}; + +export const body42: OperationParameter = { + parameterPath: "body", + mapper: PrivateEndpointConnectionMapper +}; + +export const body43: OperationParameter = { + parameterPath: ["options", "body"], + mapper: ManagedNetworkProvisionOptionsMapper +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/batchDeployments.ts b/sdk/machinelearning/arm-machinelearning/src/operations/batchDeployments.ts index 1e22d4ba5c63..8a71837f6f0e 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/batchDeployments.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/batchDeployments.ts @@ -12,9 +12,13 @@ import { BatchDeployments } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { BatchDeployment, BatchDeploymentsListNextOptionalParams, @@ -34,13 +38,13 @@ import { /// /** Class containing BatchDeployments operations. */ export class BatchDeploymentsImpl implements BatchDeployments { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class BatchDeployments class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -170,14 +174,14 @@ export class BatchDeploymentsImpl implements BatchDeployments { endpointName: string, deploymentName: string, options?: BatchDeploymentsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -210,20 +214,21 @@ export class BatchDeploymentsImpl implements BatchDeployments { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, deploymentName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -298,8 +303,8 @@ export class BatchDeploymentsImpl implements BatchDeployments { body: PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties, options?: BatchDeploymentsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BatchDeploymentsUpdateResponse > > { @@ -309,7 +314,7 @@ export class BatchDeploymentsImpl implements BatchDeployments { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -342,9 +347,9 @@ export class BatchDeploymentsImpl implements BatchDeployments { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, @@ -352,10 +357,13 @@ export class BatchDeploymentsImpl implements BatchDeployments { body, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + BatchDeploymentsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -407,8 +415,8 @@ export class BatchDeploymentsImpl implements BatchDeployments { body: BatchDeployment, options?: BatchDeploymentsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BatchDeploymentsCreateOrUpdateResponse > > { @@ -418,7 +426,7 @@ export class BatchDeploymentsImpl implements BatchDeployments { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -451,9 +459,9 @@ export class BatchDeploymentsImpl implements BatchDeployments { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, @@ -461,11 +469,15 @@ export class BatchDeploymentsImpl implements BatchDeployments { body, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + BatchDeploymentsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" }); await poller.poll(); return poller; @@ -621,7 +633,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body2, + requestBody: Parameters.body14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -656,7 +668,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body3, + requestBody: Parameters.body15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -681,18 +693,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.orderBy, - Parameters.top - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.endpointName ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/batchEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operations/batchEndpoints.ts index 6517735a2a32..99a8bb29ad7b 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/batchEndpoints.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/batchEndpoints.ts @@ -12,9 +12,13 @@ import { BatchEndpoints } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { BatchEndpoint, BatchEndpointsListNextOptionalParams, @@ -36,13 +40,13 @@ import { /// /** Class containing BatchEndpoints operations. */ export class BatchEndpointsImpl implements BatchEndpoints { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class BatchEndpoints class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -151,14 +155,14 @@ export class BatchEndpointsImpl implements BatchEndpoints { workspaceName: string, endpointName: string, options?: BatchEndpointsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -191,14 +195,15 @@ export class BatchEndpointsImpl implements BatchEndpoints { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, endpointName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -260,8 +265,8 @@ export class BatchEndpointsImpl implements BatchEndpoints { body: PartialMinimalTrackedResourceWithIdentity, options?: BatchEndpointsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BatchEndpointsUpdateResponse > > { @@ -271,7 +276,7 @@ export class BatchEndpointsImpl implements BatchEndpoints { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -304,13 +309,16 @@ export class BatchEndpointsImpl implements BatchEndpoints { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, endpointName, body, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, body, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + BatchEndpointsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -357,8 +365,8 @@ export class BatchEndpointsImpl implements BatchEndpoints { body: BatchEndpoint, options?: BatchEndpointsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BatchEndpointsCreateOrUpdateResponse > > { @@ -368,7 +376,7 @@ export class BatchEndpointsImpl implements BatchEndpoints { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -401,14 +409,18 @@ export class BatchEndpointsImpl implements BatchEndpoints { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, endpointName, body, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + BatchEndpointsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" }); await poller.poll(); return poller; @@ -570,7 +582,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body, + requestBody: Parameters.body12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -604,7 +616,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body1, + requestBody: Parameters.body13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -651,13 +663,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.count], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/codeContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/codeContainers.ts index 67e964d179c1..0373c8b2c437 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/codeContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/codeContainers.ts @@ -12,7 +12,7 @@ import { CodeContainers } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { CodeContainer, CodeContainersListNextOptionalParams, @@ -29,13 +29,13 @@ import { /// /** Class containing CodeContainers operations. */ export class CodeContainersImpl implements CodeContainers { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class CodeContainers class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -295,7 +295,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body4, + requestBody: Parameters.body, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -319,13 +319,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/codeVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/codeVersions.ts index aecb1bc79fd7..f5b9a3d579ee 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/codeVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/codeVersions.ts @@ -12,7 +12,7 @@ import { CodeVersions } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { CodeVersion, CodeVersionsListNextOptionalParams, @@ -23,19 +23,22 @@ import { CodeVersionsGetResponse, CodeVersionsCreateOrUpdateOptionalParams, CodeVersionsCreateOrUpdateResponse, + PendingUploadRequestDto, + CodeVersionsCreateOrGetStartPendingUploadOptionalParams, + CodeVersionsCreateOrGetStartPendingUploadResponse, CodeVersionsListNextResponse } from "../models"; /// /** Class containing CodeVersions operations. */ export class CodeVersionsImpl implements CodeVersions { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class CodeVersions class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -216,6 +219,29 @@ export class CodeVersionsImpl implements CodeVersions { ); } + /** + * Generate a storage location and credential for the client to upload a code asset to. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Pending upload request object + * @param options The options parameters. + */ + createOrGetStartPendingUpload( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: PendingUploadRequestDto, + options?: CodeVersionsCreateOrGetStartPendingUploadOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, version, body, options }, + createOrGetStartPendingUploadOperationSpec + ); + } + /** * ListNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -256,7 +282,9 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.apiVersion, Parameters.skip, Parameters.orderBy, - Parameters.top + Parameters.top, + Parameters.hash, + Parameters.hashVersion ], urlParameters: [ Parameters.$host, @@ -285,8 +313,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept], serializer @@ -309,8 +337,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept], serializer @@ -330,15 +358,41 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body5, + requestBody: Parameters.body1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name1, - Parameters.version + Parameters.version, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrGetStartPendingUploadOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}/startPendingUpload", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PendingUploadResponseDto + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -355,18 +409,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.orderBy, - Parameters.top - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.name ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/componentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/componentContainers.ts index 26779c163b36..c33d97e21f6c 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/componentContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/componentContainers.ts @@ -12,7 +12,7 @@ import { ComponentContainers } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { ComponentContainer, ComponentContainersListNextOptionalParams, @@ -29,13 +29,13 @@ import { /// /** Class containing ComponentContainers operations. */ export class ComponentContainersImpl implements ComponentContainers { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class ComponentContainers class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -299,7 +299,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body6, + requestBody: Parameters.body3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -323,17 +323,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.listViewType - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/componentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/componentVersions.ts index 4f84d94d01f1..4495f5be59f8 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/componentVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/componentVersions.ts @@ -12,7 +12,7 @@ import { ComponentVersions } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { ComponentVersion, ComponentVersionsListNextOptionalParams, @@ -29,13 +29,13 @@ import { /// /** Class containing ComponentVersions operations. */ export class ComponentVersionsImpl implements ComponentVersions { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class ComponentVersions class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -257,6 +257,7 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.skip, Parameters.orderBy, Parameters.top, + Parameters.stage, Parameters.listViewType ], urlParameters: [ @@ -286,8 +287,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept], serializer @@ -310,8 +311,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept], serializer @@ -331,15 +332,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body7, + requestBody: Parameters.body4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name1, - Parameters.version + Parameters.version, + Parameters.name1 ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -356,19 +357,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.orderBy, - Parameters.top, - Parameters.listViewType - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.name ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts b/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts index 702e18d066aa..1009f680ae02 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts @@ -12,9 +12,13 @@ import { ComputeOperations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { ComputeResource, ComputeListNextOptionalParams, @@ -33,11 +37,20 @@ import { ComputeUpdateResponse, UnderlyingResourceAction, ComputeDeleteOptionalParams, + CustomService, + ComputeUpdateCustomServicesOptionalParams, ComputeListKeysOptionalParams, ComputeListKeysResponse, ComputeStartOptionalParams, ComputeStopOptionalParams, ComputeRestartOptionalParams, + IdleShutdownSetting, + ComputeUpdateIdleShutdownSettingOptionalParams, + ComputeGetAllowedResizeSizesOptionalParams, + ComputeGetAllowedResizeSizesResponse, + ResizeSchema, + ComputeResizeOptionalParams, + ComputeResizeResponse, ComputeListNextResponse, ComputeListNodesNextResponse } from "../models"; @@ -45,13 +58,13 @@ import { /// /** Class containing ComputeOperations operations. */ export class ComputeOperationsImpl implements ComputeOperations { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class ComputeOperations class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -278,8 +291,8 @@ export class ComputeOperationsImpl implements ComputeOperations { parameters: ComputeResource, options?: ComputeCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ComputeCreateOrUpdateResponse > > { @@ -289,7 +302,7 @@ export class ComputeOperationsImpl implements ComputeOperations { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -322,13 +335,22 @@ export class ComputeOperationsImpl implements ComputeOperations { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, computeName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + workspaceName, + computeName, + parameters, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + ComputeCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -378,7 +400,10 @@ export class ComputeOperationsImpl implements ComputeOperations { parameters: ClusterUpdateParameters, options?: ComputeUpdateOptionalParams ): Promise< - PollerLike, ComputeUpdateResponse> + SimplePollerLike< + OperationState, + ComputeUpdateResponse + > > { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -386,7 +411,7 @@ export class ComputeOperationsImpl implements ComputeOperations { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -419,13 +444,22 @@ export class ComputeOperationsImpl implements ComputeOperations { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, computeName, parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + workspaceName, + computeName, + parameters, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + ComputeUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -473,14 +507,14 @@ export class ComputeOperationsImpl implements ComputeOperations { computeName: string, underlyingResourceAction: UnderlyingResourceAction, options?: ComputeDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -513,19 +547,19 @@ export class ComputeOperationsImpl implements ComputeOperations { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, computeName, underlyingResourceAction, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -558,6 +592,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. @@ -608,14 +669,14 @@ export class ComputeOperationsImpl implements ComputeOperations { workspaceName: string, computeName: string, options?: ComputeStartOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -648,13 +709,13 @@ export class ComputeOperationsImpl implements ComputeOperations { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, computeName, options }, - startOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, computeName, options }, + spec: startOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -695,14 +756,14 @@ export class ComputeOperationsImpl implements ComputeOperations { workspaceName: string, computeName: string, options?: ComputeStopOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -735,13 +796,13 @@ export class ComputeOperationsImpl implements ComputeOperations { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, computeName, options }, - stopOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, computeName, options }, + spec: stopOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -782,14 +843,14 @@ export class ComputeOperationsImpl implements ComputeOperations { workspaceName: string, computeName: string, options?: ComputeRestartOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -822,13 +883,13 @@ export class ComputeOperationsImpl implements ComputeOperations { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, computeName, options }, - restartOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, computeName, options }, + spec: restartOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -857,6 +918,152 @@ 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 + ); + } + + /** + * Returns supported virtual machine sizes for resize + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + getAllowedResizeSizes( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeGetAllowedResizeSizesOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, computeName, options }, + getAllowedResizeSizesOperationSpec + ); + } + + /** + * Updates the size 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 VM size setting of specified Compute Instance. + * @param options The options parameters. + */ + async beginResize( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ResizeSchema, + options?: ComputeResizeOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ComputeResizeResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + workspaceName, + computeName, + parameters, + options + }, + spec: resizeOperationSpec + }); + const poller = await createHttpPoller< + ComputeResizeResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Updates the size 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 VM size setting of specified Compute Instance. + * @param options The options parameters. + */ + async beginResizeAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ResizeSchema, + options?: ComputeResizeOptionalParams + ): Promise { + const poller = await this.beginResize( + resourceGroupName, + workspaceName, + computeName, + parameters, + options + ); + return poller.pollUntilDone(); + } + /** * ListNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -966,7 +1173,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters4, + requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1000,7 +1207,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1037,6 +1244,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", @@ -1155,6 +1385,86 @@ 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.parameters3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getAllowedResizeSizesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/getAllowedVmSizesForResize", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineSizeListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const resizeOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/resize", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.ComputeResizeHeaders + }, + 201: { + headersMapper: Mappers.ComputeResizeHeaders + }, + 202: { + headersMapper: Mappers.ComputeResizeHeaders + }, + 204: { + headersMapper: Mappers.ComputeResizeHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -1166,13 +1476,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer @@ -1188,13 +1497,12 @@ const listNodesNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.computeName ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/dataContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/dataContainers.ts index 919fb4a2dcec..b8d928b05e39 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/dataContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/dataContainers.ts @@ -12,7 +12,7 @@ import { DataContainers } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { DataContainer, DataContainersListNextOptionalParams, @@ -29,13 +29,13 @@ import { /// /** Class containing DataContainers operations. */ export class DataContainersImpl implements DataContainers { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class DataContainers class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -299,7 +299,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body8, + requestBody: Parameters.body5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -323,17 +323,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.listViewType - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/dataVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/dataVersions.ts index 30559627d079..b233a23e70bd 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/dataVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/dataVersions.ts @@ -12,7 +12,7 @@ import { DataVersions } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { DataVersionBase, DataVersionsListNextOptionalParams, @@ -29,13 +29,13 @@ import { /// /** Class containing DataVersions operations. */ export class DataVersionsImpl implements DataVersions { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class DataVersions class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -257,6 +257,7 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.skip, Parameters.orderBy, Parameters.top, + Parameters.stage, Parameters.listViewType, Parameters.tags ], @@ -287,8 +288,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept], serializer @@ -311,8 +312,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept], serializer @@ -332,15 +333,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body9, + requestBody: Parameters.body6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name1, - Parameters.version + Parameters.version, + Parameters.name1 ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -357,20 +358,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.orderBy, - Parameters.top, - Parameters.listViewType, - Parameters.tags - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.name ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/datastores.ts b/sdk/machinelearning/arm-machinelearning/src/operations/datastores.ts index d7879f3d50ca..5354ba5aa50f 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/datastores.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/datastores.ts @@ -12,7 +12,7 @@ import { Datastores } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { Datastore, DatastoresListNextOptionalParams, @@ -31,13 +31,13 @@ import { /// /** Class containing Datastores operations. */ export class DatastoresImpl implements Datastores { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class Datastores class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -325,7 +325,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body10, + requestBody: Parameters.body16, queryParameters: [Parameters.apiVersion, Parameters.skipValidation], urlParameters: [ Parameters.$host, @@ -372,22 +372,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.count1, - Parameters.isDefault, - Parameters.names, - Parameters.searchText, - Parameters.orderBy1, - Parameters.orderByAsc - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/environmentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/environmentContainers.ts index 2dbf74f59490..75276510f29b 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/environmentContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/environmentContainers.ts @@ -12,7 +12,7 @@ import { EnvironmentContainers } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { EnvironmentContainer, EnvironmentContainersListNextOptionalParams, @@ -29,13 +29,13 @@ import { /// /** Class containing EnvironmentContainers operations. */ export class EnvironmentContainersImpl implements EnvironmentContainers { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class EnvironmentContainers class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -299,7 +299,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body11, + requestBody: Parameters.body7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -323,17 +323,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.listViewType - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/environmentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/environmentVersions.ts index eab18e455003..7dd0252e4ab8 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/environmentVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/environmentVersions.ts @@ -12,7 +12,7 @@ import { EnvironmentVersions } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { EnvironmentVersion, EnvironmentVersionsListNextOptionalParams, @@ -29,13 +29,13 @@ import { /// /** Class containing EnvironmentVersions operations. */ export class EnvironmentVersionsImpl implements EnvironmentVersions { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class EnvironmentVersions class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -257,6 +257,7 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.skip, Parameters.orderBy, Parameters.top, + Parameters.stage, Parameters.listViewType ], urlParameters: [ @@ -286,8 +287,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept], serializer @@ -310,8 +311,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept], serializer @@ -331,15 +332,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body12, + requestBody: Parameters.body8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name1, - Parameters.version + Parameters.version, + Parameters.name1 ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -356,19 +357,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.orderBy, - Parameters.top, - Parameters.listViewType - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.name ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/features.ts b/sdk/machinelearning/arm-machinelearning/src/operations/features.ts new file mode 100644 index 000000000000..8e46e370e913 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/features.ts @@ -0,0 +1,310 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { Features } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + Feature, + FeaturesListNextOptionalParams, + FeaturesListOptionalParams, + FeaturesListResponse, + FeaturesGetOptionalParams, + FeaturesGetResponse, + FeaturesListNextResponse +} from "../models"; + +/// +/** Class containing Features operations. */ +export class FeaturesImpl implements Features { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class Features class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List Features. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param featuresetName Featureset name. This is case-sensitive. + * @param featuresetVersion Featureset Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + featuresetName: string, + featuresetVersion: string, + options?: FeaturesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + featuresetName, + featuresetVersion, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + featuresetName, + featuresetVersion, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + featuresetName: string, + featuresetVersion: string, + options?: FeaturesListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: FeaturesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + workspaceName, + featuresetName, + featuresetVersion, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + featuresetName, + featuresetVersion, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + featuresetName: string, + featuresetVersion: string, + options?: FeaturesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + featuresetName, + featuresetVersion, + options + )) { + yield* page; + } + } + + /** + * List Features. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param featuresetName Featureset name. This is case-sensitive. + * @param featuresetVersion Featureset Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + featuresetName: string, + featuresetVersion: string, + options?: FeaturesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + featuresetName, + featuresetVersion, + options + }, + listOperationSpec + ); + } + + /** + * Get feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param featuresetName Feature set name. This is case-sensitive. + * @param featuresetVersion Feature set version identifier. This is case-sensitive. + * @param featureName Feature Name. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + featuresetName: string, + featuresetVersion: string, + featureName: string, + options?: FeaturesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + featuresetName, + featuresetVersion, + featureName, + options + }, + getOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param featuresetName Featureset name. This is case-sensitive. + * @param featuresetVersion Featureset Version identifier. This is case-sensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + featuresetName: string, + featuresetVersion: string, + nextLink: string, + options?: FeaturesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + featuresetName, + featuresetVersion, + 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}/featuresets/{featuresetName}/versions/{featuresetVersion}/features", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeatureResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.listViewType, + Parameters.description, + Parameters.tags1, + Parameters.featureName, + Parameters.pageSize1 + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.featuresetName, + Parameters.featuresetVersion + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{featuresetName}/versions/{featuresetVersion}/features/{featureName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Feature + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.featuresetName, + Parameters.featuresetVersion, + Parameters.featureName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeatureResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.featuresetName, + Parameters.featuresetVersion + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/featuresetContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/featuresetContainers.ts new file mode 100644 index 000000000000..ac981b3d8100 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/featuresetContainers.ts @@ -0,0 +1,503 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { FeaturesetContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + FeaturesetContainer, + FeaturesetContainersListNextOptionalParams, + FeaturesetContainersListOptionalParams, + FeaturesetContainersListResponse, + FeaturesetContainersDeleteOptionalParams, + FeaturesetContainersGetEntityOptionalParams, + FeaturesetContainersGetEntityResponse, + FeaturesetContainersCreateOrUpdateOptionalParams, + FeaturesetContainersCreateOrUpdateResponse, + FeaturesetContainersListNextResponse +} from "../models"; + +/// +/** Class containing FeaturesetContainers operations. */ +export class FeaturesetContainersImpl implements FeaturesetContainers { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class FeaturesetContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List featurestore entity containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: FeaturesetContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: FeaturesetContainersListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: FeaturesetContainersListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, workspaceName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: FeaturesetContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List featurestore entity containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: FeaturesetContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetContainersDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetContainersDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + name, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + getEntity( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetContainersGetEntityOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + getEntityOperationSpec + ); + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: FeaturesetContainer, + options?: FeaturesetContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FeaturesetContainersCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + FeaturesetContainersCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: FeaturesetContainer, + options?: FeaturesetContainersCreateOrUpdateOptionalParams + ): 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?: FeaturesetContainersListNextOptionalParams + ): 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}/featuresets", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturesetContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.listViewType, + Parameters.description, + Parameters.tags1, + Parameters.pageSize, + Parameters.name2, + Parameters.createdBy + ], + 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}/featuresets/{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 getEntityOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturesetContainer + }, + 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}/featuresets/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.FeaturesetContainer + }, + 201: { + bodyMapper: Mappers.FeaturesetContainer + }, + 202: { + bodyMapper: Mappers.FeaturesetContainer + }, + 204: { + bodyMapper: Mappers.FeaturesetContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body17, + 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.FeaturesetContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/featuresetVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/featuresetVersions.ts new file mode 100644 index 000000000000..64f2526c5829 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/featuresetVersions.ts @@ -0,0 +1,687 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { FeaturesetVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + FeaturesetVersion, + FeaturesetVersionsListNextOptionalParams, + FeaturesetVersionsListOptionalParams, + FeaturesetVersionsListResponse, + FeaturesetVersionsDeleteOptionalParams, + FeaturesetVersionsGetOptionalParams, + FeaturesetVersionsGetResponse, + FeaturesetVersionsCreateOrUpdateOptionalParams, + FeaturesetVersionsCreateOrUpdateResponse, + FeaturesetVersionBackfillRequest, + FeaturesetVersionsBackfillOptionalParams, + FeaturesetVersionsBackfillResponse, + FeaturesetVersionsListNextResponse +} from "../models"; + +/// +/** Class containing FeaturesetVersions operations. */ +export class FeaturesetVersionsImpl implements FeaturesetVersions { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class FeaturesetVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Featureset name. This is case-sensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + name, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + name, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetVersionsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: FeaturesetVersionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + workspaceName, + name, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + name, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + name, + options + )) { + yield* page; + } + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Featureset name. This is case-sensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturesetVersionsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, version, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturesetVersionsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + name, + version, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturesetVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, version, options }, + getOperationSpec + ); + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturesetVersion, + options?: FeaturesetVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FeaturesetVersionsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, version, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + FeaturesetVersionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturesetVersion, + options?: FeaturesetVersionsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + name, + version, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Backfill. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Feature set version backfill request entity. + * @param options The options parameters. + */ + async beginBackfill( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturesetVersionBackfillRequest, + options?: FeaturesetVersionsBackfillOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FeaturesetVersionsBackfillResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, version, body, options }, + spec: backfillOperationSpec + }); + const poller = await createHttpPoller< + FeaturesetVersionsBackfillResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Backfill. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Feature set version backfill request entity. + * @param options The options parameters. + */ + async beginBackfillAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturesetVersionBackfillRequest, + options?: FeaturesetVersionsBackfillOptionalParams + ): Promise { + const poller = await this.beginBackfill( + resourceGroupName, + workspaceName, + name, + version, + 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 name Featureset name. This is case-sensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + name: string, + nextLink: string, + options?: FeaturesetVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturesetVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.stage, + Parameters.listViewType, + Parameters.version1, + Parameters.description, + Parameters.tags1, + Parameters.pageSize, + Parameters.createdBy, + Parameters.versionName + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.version, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturesetVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.version, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.FeaturesetVersion + }, + 201: { + bodyMapper: Mappers.FeaturesetVersion + }, + 202: { + bodyMapper: Mappers.FeaturesetVersion + }, + 204: { + bodyMapper: Mappers.FeaturesetVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body18, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.version, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const backfillOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}/backfill", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.FeaturesetVersionBackfillResponse + }, + 201: { + bodyMapper: Mappers.FeaturesetVersionBackfillResponse + }, + 202: { + bodyMapper: Mappers.FeaturesetVersionBackfillResponse + }, + 204: { + bodyMapper: Mappers.FeaturesetVersionBackfillResponse + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body19, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.version, + Parameters.name + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturesetVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityContainers.ts new file mode 100644 index 000000000000..ca1691ddd05d --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityContainers.ts @@ -0,0 +1,504 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { FeaturestoreEntityContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + FeaturestoreEntityContainer, + FeaturestoreEntityContainersListNextOptionalParams, + FeaturestoreEntityContainersListOptionalParams, + FeaturestoreEntityContainersListResponse, + FeaturestoreEntityContainersDeleteOptionalParams, + FeaturestoreEntityContainersGetEntityOptionalParams, + FeaturestoreEntityContainersGetEntityResponse, + FeaturestoreEntityContainersCreateOrUpdateOptionalParams, + FeaturestoreEntityContainersCreateOrUpdateResponse, + FeaturestoreEntityContainersListNextResponse +} from "../models"; + +/// +/** Class containing FeaturestoreEntityContainers operations. */ +export class FeaturestoreEntityContainersImpl + implements FeaturestoreEntityContainers { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class FeaturestoreEntityContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List featurestore entity containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: FeaturestoreEntityContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: FeaturestoreEntityContainersListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: FeaturestoreEntityContainersListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, workspaceName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: FeaturestoreEntityContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List featurestore entity containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: FeaturestoreEntityContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityContainersDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityContainersDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + name, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + getEntity( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityContainersGetEntityOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + getEntityOperationSpec + ); + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: FeaturestoreEntityContainer, + options?: FeaturestoreEntityContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FeaturestoreEntityContainersCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + FeaturestoreEntityContainersCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: FeaturestoreEntityContainer, + options?: FeaturestoreEntityContainersCreateOrUpdateOptionalParams + ): 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?: FeaturestoreEntityContainersListNextOptionalParams + ): 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}/featurestoreEntities", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturestoreEntityContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.listViewType, + Parameters.description, + Parameters.tags1, + Parameters.pageSize, + Parameters.name2, + Parameters.createdBy + ], + 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}/featurestoreEntities/{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 getEntityOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturestoreEntityContainer + }, + 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}/featurestoreEntities/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.FeaturestoreEntityContainer + }, + 201: { + bodyMapper: Mappers.FeaturestoreEntityContainer + }, + 202: { + bodyMapper: Mappers.FeaturestoreEntityContainer + }, + 204: { + bodyMapper: Mappers.FeaturestoreEntityContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body20, + 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.FeaturestoreEntityContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityVersions.ts new file mode 100644 index 000000000000..ecec58651cdd --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityVersions.ts @@ -0,0 +1,544 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { FeaturestoreEntityVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + FeaturestoreEntityVersion, + FeaturestoreEntityVersionsListNextOptionalParams, + FeaturestoreEntityVersionsListOptionalParams, + FeaturestoreEntityVersionsListResponse, + FeaturestoreEntityVersionsDeleteOptionalParams, + FeaturestoreEntityVersionsGetOptionalParams, + FeaturestoreEntityVersionsGetResponse, + FeaturestoreEntityVersionsCreateOrUpdateOptionalParams, + FeaturestoreEntityVersionsCreateOrUpdateResponse, + FeaturestoreEntityVersionsListNextResponse +} from "../models"; + +/// +/** Class containing FeaturestoreEntityVersions operations. */ +export class FeaturestoreEntityVersionsImpl + implements FeaturestoreEntityVersions { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class FeaturestoreEntityVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Feature entity name. This is case-sensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + name, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + name, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityVersionsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: FeaturestoreEntityVersionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + workspaceName, + name, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + name, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + name, + options + )) { + yield* page; + } + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Feature entity name. This is case-sensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturestoreEntityVersionsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, version, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturestoreEntityVersionsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + name, + version, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturestoreEntityVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, version, options }, + getOperationSpec + ); + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturestoreEntityVersion, + options?: FeaturestoreEntityVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FeaturestoreEntityVersionsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, version, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + FeaturestoreEntityVersionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturestoreEntityVersion, + options?: FeaturestoreEntityVersionsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + name, + version, + 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 name Feature entity name. This is case-sensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + name: string, + nextLink: string, + options?: FeaturestoreEntityVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturestoreEntityVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.stage, + Parameters.listViewType, + Parameters.version1, + Parameters.description, + Parameters.tags1, + Parameters.pageSize, + Parameters.createdBy, + Parameters.versionName + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.version, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturestoreEntityVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.version, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.FeaturestoreEntityVersion + }, + 201: { + bodyMapper: Mappers.FeaturestoreEntityVersion + }, + 202: { + bodyMapper: Mappers.FeaturestoreEntityVersion + }, + 204: { + bodyMapper: Mappers.FeaturestoreEntityVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body21, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.version, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturestoreEntityVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/index.ts b/sdk/machinelearning/arm-machinelearning/src/operations/index.ts index 5c0eba4f45e0..ae7733626d95 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/index.ts @@ -6,15 +6,20 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./operations"; -export * from "./workspaces"; export * from "./usages"; export * from "./virtualMachineSizes"; export * from "./quotas"; export * from "./computeOperations"; -export * from "./privateEndpointConnections"; -export * from "./privateLinkResources"; -export * from "./workspaceConnections"; +export * from "./registryCodeContainers"; +export * from "./registryCodeVersions"; +export * from "./registryComponentContainers"; +export * from "./registryComponentVersions"; +export * from "./registryDataContainers"; +export * from "./registryDataVersions"; +export * from "./registryEnvironmentContainers"; +export * from "./registryEnvironmentVersions"; +export * from "./registryModelContainers"; +export * from "./registryModelVersions"; export * from "./batchEndpoints"; export * from "./batchDeployments"; export * from "./codeContainers"; @@ -26,10 +31,25 @@ export * from "./dataVersions"; export * from "./datastores"; export * from "./environmentContainers"; export * from "./environmentVersions"; +export * from "./featuresetContainers"; +export * from "./features"; +export * from "./featuresetVersions"; +export * from "./featurestoreEntityContainers"; +export * from "./featurestoreEntityVersions"; export * from "./jobs"; +export * from "./labelingJobs"; export * from "./modelContainers"; export * from "./modelVersions"; export * from "./onlineEndpoints"; export * from "./onlineDeployments"; export * from "./schedules"; +export * from "./serverlessEndpoints"; +export * from "./registries"; export * from "./workspaceFeatures"; +export * from "./operations"; +export * from "./workspaces"; +export * from "./workspaceConnections"; +export * from "./managedNetworkSettingsRule"; +export * from "./privateEndpointConnections"; +export * from "./privateLinkResources"; +export * from "./managedNetworkProvisions"; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/jobs.ts b/sdk/machinelearning/arm-machinelearning/src/operations/jobs.ts index 36387941c513..840fe286ebe4 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/jobs.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/jobs.ts @@ -12,9 +12,13 @@ import { Jobs } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { JobBase, JobsListNextOptionalParams, @@ -23,6 +27,9 @@ import { JobsDeleteOptionalParams, JobsGetOptionalParams, JobsGetResponse, + PartialJobBasePartialResource, + JobsUpdateOptionalParams, + JobsUpdateResponse, JobsCreateOrUpdateOptionalParams, JobsCreateOrUpdateResponse, JobsCancelOptionalParams, @@ -32,13 +39,13 @@ import { /// /** Class containing Jobs operations. */ export class JobsImpl implements Jobs { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class Jobs class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -147,14 +154,14 @@ export class JobsImpl implements Jobs { workspaceName: string, id: string, options?: JobsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -187,14 +194,15 @@ export class JobsImpl implements Jobs { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, id, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, id, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -241,6 +249,27 @@ export class JobsImpl implements Jobs { ); } + /** + * Updates a Job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the Job. This is case-sensitive. + * @param body Job definition to apply during the operation. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + workspaceName: string, + id: string, + body: PartialJobBasePartialResource, + options?: JobsUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, id, body, options }, + updateOperationSpec + ); + } + /** * Creates and executes a Job. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -274,14 +303,14 @@ export class JobsImpl implements Jobs { workspaceName: string, id: string, options?: JobsCancelOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -314,15 +343,15 @@ export class JobsImpl implements Jobs { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, id, options }, - cancelOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, id, options }, + spec: cancelOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -389,7 +418,10 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.skip, Parameters.listViewType, Parameters.jobType, - Parameters.tag + Parameters.tag, + Parameters.assetName, + Parameters.scheduled, + Parameters.scheduleId ], urlParameters: [ Parameters.$host, @@ -447,6 +479,31 @@ const getOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.JobBase + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body22, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", @@ -462,7 +519,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body13, + requestBody: Parameters.body23, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -510,19 +567,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.listViewType, - Parameters.jobType, - Parameters.tag - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer 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 000000000000..c05f8ae7bcd2 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/labelingJobs.ts @@ -0,0 +1,737 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { LabelingJobs } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + LabelingJob, + LabelingJobsListNextOptionalParams, + LabelingJobsListOptionalParams, + LabelingJobsListResponse, + LabelingJobsDeleteOptionalParams, + LabelingJobsGetOptionalParams, + LabelingJobsGetResponse, + LabelingJobsCreateOrUpdateOptionalParams, + LabelingJobsCreateOrUpdateResponse, + ExportSummaryUnion, + LabelingJobsExportLabelsOptionalParams, + LabelingJobsExportLabelsResponse, + LabelingJobsPauseOptionalParams, + LabelingJobsPauseResponse, + LabelingJobsResumeOptionalParams, + LabelingJobsResumeResponse, + LabelingJobsListNextResponse +} from "../models"; + +/// +/** Class containing LabelingJobs operations. */ +export class LabelingJobsImpl implements LabelingJobs { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class LabelingJobs class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + 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: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: LabelingJobsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, workspaceName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: 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< + SimplePollerLike< + OperationState, + LabelingJobsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, id, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + LabelingJobsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + 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). Using the URL in the Location header, the status + * of the job export operation can be tracked. + * @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< + SimplePollerLike< + OperationState, + LabelingJobsExportLabelsResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, id, body, options }, + spec: exportLabelsOperationSpec + }); + const poller = await createHttpPoller< + LabelingJobsExportLabelsResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Export labels from a labeling job (asynchronous). Using the URL in the Location header, the status + * of the job export operation can be tracked. + * @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< + SimplePollerLike< + OperationState, + LabelingJobsResumeResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, id, options }, + spec: resumeOperationSpec + }); + const poller = await createHttpPoller< + LabelingJobsResumeResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "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.top], + 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], + 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.body24, + 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.body25, + 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: { + bodyMapper: Mappers.LabelingJobProperties + }, + 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: { + bodyMapper: Mappers.LabelingJobProperties + }, + 201: { + bodyMapper: Mappers.LabelingJobProperties + }, + 202: { + bodyMapper: Mappers.LabelingJobProperties + }, + 204: { + bodyMapper: Mappers.LabelingJobProperties + }, + 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 + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkProvisions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkProvisions.ts new file mode 100644 index 000000000000..14abd7521300 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkProvisions.ts @@ -0,0 +1,163 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { ManagedNetworkProvisions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams, + ManagedNetworkProvisionsProvisionManagedNetworkResponse +} from "../models"; + +/** Class containing ManagedNetworkProvisions operations. */ +export class ManagedNetworkProvisionsImpl implements ManagedNetworkProvisions { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class ManagedNetworkProvisions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * Provisions the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + async beginProvisionManagedNetwork( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedNetworkProvisionsProvisionManagedNetworkResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, options }, + spec: provisionManagedNetworkOperationSpec + }); + const poller = await createHttpPoller< + ManagedNetworkProvisionsProvisionManagedNetworkResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Provisions the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + async beginProvisionManagedNetworkAndWait( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams + ): Promise { + const poller = await this.beginProvisionManagedNetwork( + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const provisionManagedNetworkOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/provisionManagedNetwork", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ManagedNetworkProvisionStatus + }, + 201: { + bodyMapper: Mappers.ManagedNetworkProvisionStatus + }, + 202: { + bodyMapper: Mappers.ManagedNetworkProvisionStatus + }, + 204: { + bodyMapper: Mappers.ManagedNetworkProvisionStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body43, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkSettingsRule.ts b/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkSettingsRule.ts new file mode 100644 index 000000000000..7282fbd29c13 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkSettingsRule.ts @@ -0,0 +1,496 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ManagedNetworkSettingsRule } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + OutboundRuleBasicResource, + ManagedNetworkSettingsRuleListNextOptionalParams, + ManagedNetworkSettingsRuleListOptionalParams, + ManagedNetworkSettingsRuleListResponse, + ManagedNetworkSettingsRuleDeleteOptionalParams, + ManagedNetworkSettingsRuleGetOptionalParams, + ManagedNetworkSettingsRuleGetResponse, + ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams, + ManagedNetworkSettingsRuleCreateOrUpdateResponse, + ManagedNetworkSettingsRuleListNextResponse +} from "../models"; + +/// +/** Class containing ManagedNetworkSettingsRule operations. */ +export class ManagedNetworkSettingsRuleImpl + implements ManagedNetworkSettingsRule { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class ManagedNetworkSettingsRule class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * Lists the managed network outbound rules for a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkSettingsRuleListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkSettingsRuleListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ManagedNetworkSettingsRuleListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, workspaceName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkSettingsRuleListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * Lists the managed network outbound rules for a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkSettingsRuleListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Deletes an outbound rule from the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param ruleName Name of the workspace managed network outbound rule + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: ManagedNetworkSettingsRuleDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, ruleName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Deletes an outbound rule from the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param ruleName Name of the workspace managed network outbound rule + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: ManagedNetworkSettingsRuleDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + ruleName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Gets an outbound rule from the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param ruleName Name of the workspace managed network outbound rule + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: ManagedNetworkSettingsRuleGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, ruleName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates an outbound rule in the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param ruleName Name of the workspace managed network outbound rule + * @param body Outbound Rule to be created or updated in the managed network of a machine learning + * workspace. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + body: OutboundRuleBasicResource, + options?: ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedNetworkSettingsRuleCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, ruleName, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + ManagedNetworkSettingsRuleCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates an outbound rule in the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param ruleName Name of the workspace managed network outbound rule + * @param body Outbound Rule to be created or updated in the managed network of a machine learning + * workspace. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + body: OutboundRuleBasicResource, + options?: ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + ruleName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: ManagedNetworkSettingsRuleListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundRuleListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.ruleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundRuleBasicResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.ruleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.OutboundRuleBasicResource + }, + 201: { + bodyMapper: Mappers.OutboundRuleBasicResource + }, + 202: { + bodyMapper: Mappers.OutboundRuleBasicResource + }, + 204: { + bodyMapper: Mappers.OutboundRuleBasicResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body41, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.ruleName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundRuleListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/modelContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/modelContainers.ts index 5500f5d4d643..aaa90fc4cbe7 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/modelContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/modelContainers.ts @@ -12,7 +12,7 @@ import { ModelContainers } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { ModelContainer, ModelContainersListNextOptionalParams, @@ -29,13 +29,13 @@ import { /// /** Class containing ModelContainers operations. */ export class ModelContainersImpl implements ModelContainers { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class ModelContainers class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -228,8 +228,8 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [ Parameters.apiVersion, Parameters.skip, - Parameters.count, - Parameters.listViewType + Parameters.listViewType, + Parameters.count ], urlParameters: [ Parameters.$host, @@ -300,7 +300,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body14, + requestBody: Parameters.body9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -324,18 +324,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.count, - Parameters.listViewType - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/modelVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/modelVersions.ts index 966c9225da40..1c62b2137f73 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/modelVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/modelVersions.ts @@ -12,7 +12,13 @@ import { ModelVersions } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { ModelVersion, ModelVersionsListNextOptionalParams, @@ -23,19 +29,22 @@ import { ModelVersionsGetResponse, ModelVersionsCreateOrUpdateOptionalParams, ModelVersionsCreateOrUpdateResponse, + PackageRequest, + ModelVersionsPackageOptionalParams, + ModelVersionsPackageResponse, ModelVersionsListNextResponse } from "../models"; /// /** Class containing ModelVersions operations. */ export class ModelVersionsImpl implements ModelVersions { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class ModelVersions class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -216,6 +225,112 @@ export class ModelVersionsImpl implements ModelVersions { ); } + /** + * Model Version Package operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Package operation request body. + * @param options The options parameters. + */ + async beginPackage( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: PackageRequest, + options?: ModelVersionsPackageOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ModelVersionsPackageResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, version, body, options }, + spec: packageOperationSpec + }); + const poller = await createHttpPoller< + ModelVersionsPackageResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Model Version Package operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Package operation request body. + * @param options The options parameters. + */ + async beginPackageAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: PackageRequest, + options?: ModelVersionsPackageOptionalParams + ): Promise { + const poller = await this.beginPackage( + resourceGroupName, + workspaceName, + name, + version, + body, + options + ); + return poller.pollUntilDone(); + } + /** * ListNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -257,12 +372,13 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.skip, Parameters.orderBy, Parameters.top, + Parameters.stage, Parameters.listViewType, Parameters.version1, Parameters.description, - Parameters.offset, Parameters.tags1, - Parameters.properties1, + Parameters.properties, + Parameters.offset, Parameters.feed ], urlParameters: [ @@ -292,8 +408,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept], serializer @@ -316,8 +432,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept], serializer @@ -337,15 +453,50 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body15, + requestBody: Parameters.body10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name1, - Parameters.version + Parameters.version, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const packageOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}/package", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PackageResponse + }, + 201: { + bodyMapper: Mappers.PackageResponse + }, + 202: { + bodyMapper: Mappers.PackageResponse + }, + 204: { + bodyMapper: Mappers.PackageResponse + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body11, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.version, + Parameters.name1 ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -362,25 +513,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.orderBy, - Parameters.top, - Parameters.listViewType, - Parameters.version1, - Parameters.description, - Parameters.offset, - Parameters.tags1, - Parameters.properties1, - Parameters.feed - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.name ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/onlineDeployments.ts b/sdk/machinelearning/arm-machinelearning/src/operations/onlineDeployments.ts index 0d71a80f4298..04f35ee9e918 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/onlineDeployments.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/onlineDeployments.ts @@ -12,9 +12,13 @@ import { OnlineDeployments } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { OnlineDeployment, OnlineDeploymentsListNextOptionalParams, @@ -42,13 +46,13 @@ import { /// /** Class containing OnlineDeployments operations. */ export class OnlineDeploymentsImpl implements OnlineDeployments { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class OnlineDeployments class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -280,14 +284,14 @@ export class OnlineDeploymentsImpl implements OnlineDeployments { endpointName: string, deploymentName: string, options?: OnlineDeploymentsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -320,20 +324,21 @@ export class OnlineDeploymentsImpl implements OnlineDeployments { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, deploymentName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -408,8 +413,8 @@ export class OnlineDeploymentsImpl implements OnlineDeployments { body: PartialMinimalTrackedResourceWithSku, options?: OnlineDeploymentsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, OnlineDeploymentsUpdateResponse > > { @@ -419,7 +424,7 @@ export class OnlineDeploymentsImpl implements OnlineDeployments { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -452,9 +457,9 @@ export class OnlineDeploymentsImpl implements OnlineDeployments { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, @@ -462,10 +467,13 @@ export class OnlineDeploymentsImpl implements OnlineDeployments { body, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + OnlineDeploymentsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -517,8 +525,8 @@ export class OnlineDeploymentsImpl implements OnlineDeployments { body: OnlineDeployment, options?: OnlineDeploymentsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, OnlineDeploymentsCreateOrUpdateResponse > > { @@ -528,7 +536,7 @@ export class OnlineDeploymentsImpl implements OnlineDeployments { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -561,9 +569,9 @@ export class OnlineDeploymentsImpl implements OnlineDeployments { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, @@ -571,11 +579,15 @@ export class OnlineDeploymentsImpl implements OnlineDeployments { body, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + OnlineDeploymentsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" }); await poller.poll(); return poller; @@ -818,7 +830,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body18, + requestBody: Parameters.body28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -853,7 +865,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body19, + requestBody: Parameters.body29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -879,7 +891,7 @@ const getLogsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body20, + requestBody: Parameters.body30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -928,18 +940,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.orderBy, - Parameters.top - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.endpointName ], headerParameters: [Parameters.accept], @@ -956,13 +962,12 @@ const listSkusNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.count], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.endpointName, Parameters.deploymentName ], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/onlineEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operations/onlineEndpoints.ts index ec5c78271803..57ada3d3c031 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/onlineEndpoints.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/onlineEndpoints.ts @@ -12,9 +12,13 @@ import { OnlineEndpoints } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { OnlineEndpoint, OnlineEndpointsListNextOptionalParams, @@ -40,13 +44,13 @@ import { /// /** Class containing OnlineEndpoints operations. */ export class OnlineEndpointsImpl implements OnlineEndpoints { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class OnlineEndpoints class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -155,14 +159,14 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { workspaceName: string, endpointName: string, options?: OnlineEndpointsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -195,14 +199,15 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, endpointName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -264,8 +269,8 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { body: PartialMinimalTrackedResourceWithIdentity, options?: OnlineEndpointsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, OnlineEndpointsUpdateResponse > > { @@ -275,7 +280,7 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -308,13 +313,16 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, endpointName, body, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, body, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + OnlineEndpointsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -361,8 +369,8 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { body: OnlineEndpoint, options?: OnlineEndpointsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, OnlineEndpointsCreateOrUpdateResponse > > { @@ -372,7 +380,7 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -405,14 +413,18 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, endpointName, body, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + OnlineEndpointsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" }); await poller.poll(); return poller; @@ -476,14 +488,14 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { endpointName: string, body: RegenerateEndpointKeysRequest, options?: OnlineEndpointsRegenerateKeysOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -516,15 +528,15 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, endpointName, body, options }, - regenerateKeysOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, body, options }, + spec: regenerateKeysOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -556,7 +568,7 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { } /** - * Retrieve a valid AAD token for an Endpoint using AMLToken-based authentication. + * Retrieve a valid AML token for an Endpoint using AMLToken-based authentication. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param endpointName Online Endpoint name. @@ -611,9 +623,9 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [ Parameters.apiVersion, Parameters.skip, - Parameters.count, Parameters.tags1, - Parameters.properties1, + Parameters.properties, + Parameters.count, Parameters.name2, Parameters.computeType, Parameters.orderBy2 @@ -695,7 +707,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body, + requestBody: Parameters.body12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -729,7 +741,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body16, + requestBody: Parameters.body26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -778,7 +790,7 @@ const regenerateKeysOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body17, + requestBody: Parameters.body27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -825,22 +837,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.count, - Parameters.tags1, - Parameters.properties1, - Parameters.name2, - Parameters.computeType, - Parameters.orderBy2 - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/operations.ts b/sdk/machinelearning/arm-machinelearning/src/operations/operations.ts index 2dc181c81bfb..b16219d21d04 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/operations.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/operations.ts @@ -11,7 +11,7 @@ import { Operations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { AmlOperation, OperationsListOptionalParams, @@ -21,18 +21,18 @@ import { /// /** Class containing Operations operations. */ export class OperationsImpl implements Operations { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class Operations class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } /** - * Lists all of the available Azure Machine Learning Workspaces REST API operations. + * Lists all of the available Azure Machine Learning Workspaces REST API operations * @param options The options parameters. */ public list( @@ -73,7 +73,7 @@ export class OperationsImpl implements Operations { } /** - * Lists all of the available Azure Machine Learning Workspaces REST API operations. + * Lists all of the available Azure Machine Learning Workspaces REST API operations * @param options The options parameters. */ private _list( diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/privateEndpointConnections.ts b/sdk/machinelearning/arm-machinelearning/src/operations/privateEndpointConnections.ts index ce71a81f37c6..c7899f18621a 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/privateEndpointConnections.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/privateEndpointConnections.ts @@ -11,34 +11,34 @@ import { PrivateEndpointConnections } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { PrivateEndpointConnection, PrivateEndpointConnectionsListOptionalParams, PrivateEndpointConnectionsListResponse, + PrivateEndpointConnectionsDeleteOptionalParams, PrivateEndpointConnectionsGetOptionalParams, PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsCreateOrUpdateOptionalParams, - PrivateEndpointConnectionsCreateOrUpdateResponse, - PrivateEndpointConnectionsDeleteOptionalParams + PrivateEndpointConnectionsCreateOrUpdateResponse } from "../models"; /// /** Class containing PrivateEndpointConnections operations. */ export class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class PrivateEndpointConnections class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } /** - * List all the private endpoint connections associated with the workspace. + * Called by end-users to get all PE connections. * @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. @@ -96,7 +96,7 @@ export class PrivateEndpointConnectionsImpl } /** - * List all the private endpoint connections associated with the workspace. + * Called by end-users to get all PE connections. * @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. @@ -113,19 +113,18 @@ export class PrivateEndpointConnectionsImpl } /** - * Gets the specified private endpoint connection associated with the workspace. + * Called by end-users to delete a PE connection. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the - * workspace + * @param privateEndpointConnectionName NRP Private Endpoint Connection Name * @param options The options parameters. */ - get( + delete( resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams - ): Promise { + options?: PrivateEndpointConnectionsDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -133,60 +132,59 @@ export class PrivateEndpointConnectionsImpl privateEndpointConnectionName, options }, - getOperationSpec + deleteOperationSpec ); } /** - * Update the state of specified private endpoint connection associated with the workspace. + * Called by end-users to get a PE connection. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the - * workspace - * @param properties The private endpoint connection properties. + * @param privateEndpointConnectionName NRP Private Endpoint Connection Name * @param options The options parameters. */ - createOrUpdate( + get( resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, - properties: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams - ): Promise { + options?: PrivateEndpointConnectionsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, privateEndpointConnectionName, - properties, options }, - createOrUpdateOperationSpec + getOperationSpec ); } /** - * Deletes the specified private endpoint connection associated with the workspace. + * Called by end-users to approve or reject a PE connection. + * This method must validate and forward the call to NRP. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the - * workspace + * @param privateEndpointConnectionName NRP Private Endpoint Connection Name + * @param body PrivateEndpointConnection object * @param options The options parameters. */ - delete( + createOrUpdate( resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams - ): Promise { + body: PrivateEndpointConnection, + options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, privateEndpointConnectionName, + body, options }, - deleteOperationSpec + createOrUpdateOperationSpec ); } } @@ -215,14 +213,13 @@ const listOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", - httpMethod: "GET", + httpMethod: "DELETE", responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnection - }, + 200: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } @@ -238,10 +235,10 @@ const getOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", - httpMethod: "PUT", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PrivateEndpointConnection @@ -250,7 +247,6 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.properties, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -259,21 +255,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.privateEndpointConnectionName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const deleteOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", - httpMethod: "DELETE", + httpMethod: "PUT", responses: { - 200: {}, - 204: {}, + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, default: { bodyMapper: Mappers.ErrorResponse } }, + requestBody: Parameters.body42, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -282,6 +279,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.privateEndpointConnectionName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/privateLinkResources.ts b/sdk/machinelearning/arm-machinelearning/src/operations/privateLinkResources.ts index efe5fab5b56b..c5de66567612 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/privateLinkResources.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/privateLinkResources.ts @@ -6,35 +6,106 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; import { PrivateLinkResources } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { + PrivateLinkResource, PrivateLinkResourcesListOptionalParams, PrivateLinkResourcesListResponse } from "../models"; +/// /** Class containing PrivateLinkResources operations. */ export class PrivateLinkResourcesImpl implements PrivateLinkResources { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class PrivateLinkResources class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } /** - * Gets the private link resources that need to be created for a workspace. + * Called by Client (Portal, CLI, etc) to get available "private link resources" for the workspace. + * Each "private link resource" is a connection endpoint (IP address) to the resource. + * Pre single connection endpoint per workspace: the Data Plane IP address, returned by DNS resolution. + * + * Other RPs, such as Azure Storage, have multiple - one for Blobs, other for Queues, etc. + * Defined in the "[NRP] Private Endpoint Design" doc, topic "GET API for GroupIds". * @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( + public list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateLinkResourcesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: PrivateLinkResourcesListOptionalParams, + _settings?: PageSettings + ): AsyncIterableIterator { + let result: PrivateLinkResourcesListResponse; + result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: PrivateLinkResourcesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * Called by Client (Portal, CLI, etc) to get available "private link resources" for the workspace. + * Each "private link resource" is a connection endpoint (IP address) to the resource. + * Pre single connection endpoint per workspace: the Data Plane IP address, returned by DNS resolution. + * + * Other RPs, such as Azure Storage, have multiple - one for Blobs, other for Queues, etc. + * Defined in the "[NRP] Private Endpoint Design" doc, topic "GET API for GroupIds". + * @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?: PrivateLinkResourcesListOptionalParams diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/quotas.ts b/sdk/machinelearning/arm-machinelearning/src/operations/quotas.ts index 8ba2d40e0eeb..597154eca957 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/quotas.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/quotas.ts @@ -12,7 +12,7 @@ import { Quotas } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { ResourceQuota, QuotasListNextOptionalParams, @@ -27,13 +27,13 @@ import { /// /** Class containing Quotas operations. */ export class QuotasImpl implements Quotas { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class Quotas class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -159,7 +159,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters3, + requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -202,12 +202,11 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink, - Parameters.location + Parameters.location, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registries.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registries.ts new file mode 100644 index 000000000000..2ea4a6217969 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registries.ts @@ -0,0 +1,758 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { Registries } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + Registry, + RegistriesListBySubscriptionNextOptionalParams, + RegistriesListBySubscriptionOptionalParams, + RegistriesListBySubscriptionResponse, + RegistriesListNextOptionalParams, + RegistriesListOptionalParams, + RegistriesListResponse, + RegistriesDeleteOptionalParams, + RegistriesGetOptionalParams, + RegistriesGetResponse, + PartialRegistryPartialTrackedResource, + RegistriesUpdateOptionalParams, + RegistriesUpdateResponse, + RegistriesCreateOrUpdateOptionalParams, + RegistriesCreateOrUpdateResponse, + RegistriesRemoveRegionsOptionalParams, + RegistriesRemoveRegionsResponse, + RegistriesListBySubscriptionNextResponse, + RegistriesListNextResponse +} from "../models"; + +/// +/** Class containing Registries operations. */ +export class RegistriesImpl implements Registries { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class Registries class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List registries by subscription + * @param options The options parameters. + */ + public listBySubscription( + options?: RegistriesListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySubscriptionPagingPage(options, settings); + } + }; + } + + private async *listBySubscriptionPagingPage( + options?: RegistriesListBySubscriptionOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistriesListBySubscriptionResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySubscription(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBySubscriptionPagingAll( + options?: RegistriesListBySubscriptionOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + + /** + * List registries + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + options?: RegistriesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(resourceGroupName, options, settings); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + options?: RegistriesListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistriesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + options?: RegistriesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(resourceGroupName, options)) { + yield* page; + } + } + + /** + * List registries by subscription + * @param options The options parameters. + */ + private _listBySubscription( + options?: RegistriesListBySubscriptionOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec + ); + } + + /** + * List registries + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + options?: RegistriesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listOperationSpec + ); + } + + /** + * Delete registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + options?: RegistriesDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + options?: RegistriesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + options?: RegistriesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, options }, + getOperationSpec + ); + } + + /** + * Update tags + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param body Details required to create the registry. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + registryName: string, + body: PartialRegistryPartialTrackedResource, + options?: RegistriesUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, body, options }, + updateOperationSpec + ); + } + + /** + * Create or update registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param body Details required to create the registry. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + body: Registry, + options?: RegistriesCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistriesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistriesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param body Details required to create the registry. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + body: Registry, + options?: RegistriesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Remove regions from registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param body Details required to create the registry. + * @param options The options parameters. + */ + async beginRemoveRegions( + resourceGroupName: string, + registryName: string, + body: Registry, + options?: RegistriesRemoveRegionsOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistriesRemoveRegionsResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, body, options }, + spec: removeRegionsOperationSpec + }); + const poller = await createHttpPoller< + RegistriesRemoveRegionsResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Remove regions from registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param body Details required to create the registry. + * @param options The options parameters. + */ + async beginRemoveRegionsAndWait( + resourceGroupName: string, + registryName: string, + body: Registry, + options?: RegistriesRemoveRegionsOptionalParams + ): Promise { + const poller = await this.beginRemoveRegions( + resourceGroupName, + registryName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: RegistriesListBySubscriptionNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + nextLink: string, + options?: RegistriesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/registries", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RegistryTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RegistryTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Registry + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.Registry + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body34, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.Registry + }, + 201: { + bodyMapper: Mappers.Registry + }, + 202: { + bodyMapper: Mappers.Registry + }, + 204: { + bodyMapper: Mappers.Registry + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body35, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const removeRegionsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/removeRegions", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.Registry + }, + 201: { + bodyMapper: Mappers.Registry + }, + 202: { + bodyMapper: Mappers.Registry + }, + 204: { + bodyMapper: Mappers.Registry + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body35, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RegistryTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RegistryTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryCodeContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryCodeContainers.ts new file mode 100644 index 000000000000..6b66d193c214 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryCodeContainers.ts @@ -0,0 +1,494 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RegistryCodeContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + CodeContainer, + RegistryCodeContainersListNextOptionalParams, + RegistryCodeContainersListOptionalParams, + RegistryCodeContainersListResponse, + RegistryCodeContainersDeleteOptionalParams, + RegistryCodeContainersGetOptionalParams, + RegistryCodeContainersGetResponse, + RegistryCodeContainersCreateOrUpdateOptionalParams, + RegistryCodeContainersCreateOrUpdateResponse, + RegistryCodeContainersListNextResponse +} from "../models"; + +/// +/** Class containing RegistryCodeContainers operations. */ +export class RegistryCodeContainersImpl implements RegistryCodeContainers { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class RegistryCodeContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + options?: RegistryCodeContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, registryName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + options?: RegistryCodeContainersListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistryCodeContainersListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, registryName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + options?: RegistryCodeContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + options + )) { + yield* page; + } + } + + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + options?: RegistryCodeContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, options }, + listOperationSpec + ); + } + + /** + * Delete Code container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeContainersDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, codeName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete Code container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeContainersDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + codeName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get Code container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeContainersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, codeName, options }, + getOperationSpec + ); + } + + /** + * Create or update Code container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + codeName: string, + body: CodeContainer, + options?: RegistryCodeContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryCodeContainersCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, codeName, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistryCodeContainersCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update Code container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + codeName: string, + body: CodeContainer, + options?: RegistryCodeContainersCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + codeName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + nextLink: string, + options?: RegistryCodeContainersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.codeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.codeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.CodeContainer + }, + 201: { + bodyMapper: Mappers.CodeContainer + }, + 202: { + bodyMapper: Mappers.CodeContainer + }, + 204: { + bodyMapper: Mappers.CodeContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.codeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryCodeVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryCodeVersions.ts new file mode 100644 index 000000000000..e30f705e089d --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryCodeVersions.ts @@ -0,0 +1,596 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RegistryCodeVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + CodeVersion, + RegistryCodeVersionsListNextOptionalParams, + RegistryCodeVersionsListOptionalParams, + RegistryCodeVersionsListResponse, + RegistryCodeVersionsDeleteOptionalParams, + RegistryCodeVersionsGetOptionalParams, + RegistryCodeVersionsGetResponse, + RegistryCodeVersionsCreateOrUpdateOptionalParams, + RegistryCodeVersionsCreateOrUpdateResponse, + PendingUploadRequestDto, + RegistryCodeVersionsCreateOrGetStartPendingUploadOptionalParams, + RegistryCodeVersionsCreateOrGetStartPendingUploadResponse, + RegistryCodeVersionsListNextResponse +} from "../models"; + +/// +/** Class containing RegistryCodeVersions operations. */ +export class RegistryCodeVersionsImpl implements RegistryCodeVersions { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class RegistryCodeVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + registryName, + codeName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + codeName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeVersionsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistryCodeVersionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + registryName, + codeName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + codeName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + codeName, + options + )) { + yield* page; + } + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, codeName, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + options?: RegistryCodeVersionsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, codeName, version, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + options?: RegistryCodeVersionsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + codeName, + version, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + options?: RegistryCodeVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, codeName, version, options }, + getOperationSpec + ); + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + body: CodeVersion, + options?: RegistryCodeVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryCodeVersionsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + codeName, + version, + body, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistryCodeVersionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + body: CodeVersion, + options?: RegistryCodeVersionsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + codeName, + version, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Generate a storage location and credential for the client to upload a code asset to. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Pending upload name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Pending upload request object + * @param options The options parameters. + */ + createOrGetStartPendingUpload( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + body: PendingUploadRequestDto, + options?: RegistryCodeVersionsCreateOrGetStartPendingUploadOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, codeName, version, body, options }, + createOrGetStartPendingUploadOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + codeName: string, + nextLink: string, + options?: RegistryCodeVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, codeName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.codeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.codeName, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.codeName, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.CodeVersion + }, + 201: { + bodyMapper: Mappers.CodeVersion + }, + 202: { + bodyMapper: Mappers.CodeVersion + }, + 204: { + bodyMapper: Mappers.CodeVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.codeName, + Parameters.version + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrGetStartPendingUploadOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}/startPendingUpload", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PendingUploadResponseDto + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.codeName, + Parameters.version + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.codeName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryComponentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryComponentContainers.ts new file mode 100644 index 000000000000..f35bb83e84f9 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryComponentContainers.ts @@ -0,0 +1,495 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RegistryComponentContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ComponentContainer, + RegistryComponentContainersListNextOptionalParams, + RegistryComponentContainersListOptionalParams, + RegistryComponentContainersListResponse, + RegistryComponentContainersDeleteOptionalParams, + RegistryComponentContainersGetOptionalParams, + RegistryComponentContainersGetResponse, + RegistryComponentContainersCreateOrUpdateOptionalParams, + RegistryComponentContainersCreateOrUpdateResponse, + RegistryComponentContainersListNextResponse +} from "../models"; + +/// +/** Class containing RegistryComponentContainers operations. */ +export class RegistryComponentContainersImpl + implements RegistryComponentContainers { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class RegistryComponentContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + options?: RegistryComponentContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, registryName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + options?: RegistryComponentContainersListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistryComponentContainersListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, registryName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + options?: RegistryComponentContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + options + )) { + yield* page; + } + } + + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + options?: RegistryComponentContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, options }, + listOperationSpec + ); + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentContainersDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, componentName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentContainersDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + componentName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentContainersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, componentName, options }, + getOperationSpec + ); + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + componentName: string, + body: ComponentContainer, + options?: RegistryComponentContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryComponentContainersCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, componentName, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistryComponentContainersCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + componentName: string, + body: ComponentContainer, + options?: RegistryComponentContainersCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + componentName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + nextLink: string, + options?: RegistryComponentContainersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ComponentContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.componentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ComponentContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.componentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ComponentContainer + }, + 201: { + bodyMapper: Mappers.ComponentContainer + }, + 202: { + bodyMapper: Mappers.ComponentContainer + }, + 204: { + bodyMapper: Mappers.ComponentContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.componentName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ComponentContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryComponentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryComponentVersions.ts new file mode 100644 index 000000000000..f44d6aa9d00a --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryComponentVersions.ts @@ -0,0 +1,552 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RegistryComponentVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ComponentVersion, + RegistryComponentVersionsListNextOptionalParams, + RegistryComponentVersionsListOptionalParams, + RegistryComponentVersionsListResponse, + RegistryComponentVersionsDeleteOptionalParams, + RegistryComponentVersionsGetOptionalParams, + RegistryComponentVersionsGetResponse, + RegistryComponentVersionsCreateOrUpdateOptionalParams, + RegistryComponentVersionsCreateOrUpdateResponse, + RegistryComponentVersionsListNextResponse +} from "../models"; + +/// +/** Class containing RegistryComponentVersions operations. */ +export class RegistryComponentVersionsImpl + implements RegistryComponentVersions { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class RegistryComponentVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + registryName, + componentName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + componentName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentVersionsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistryComponentVersionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + registryName, + componentName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + componentName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + componentName, + options + )) { + yield* page; + } + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, componentName, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + componentName: string, + version: string, + options?: RegistryComponentVersionsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + componentName, + version, + options + }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + componentName: string, + version: string, + options?: RegistryComponentVersionsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + componentName, + version, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + componentName: string, + version: string, + options?: RegistryComponentVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, componentName, version, options }, + getOperationSpec + ); + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + componentName: string, + version: string, + body: ComponentVersion, + options?: RegistryComponentVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryComponentVersionsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + componentName, + version, + body, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistryComponentVersionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + componentName: string, + version: string, + body: ComponentVersion, + options?: RegistryComponentVersionsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + componentName, + version, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + componentName: string, + nextLink: string, + options?: RegistryComponentVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, componentName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ComponentVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top, + Parameters.stage + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.componentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.componentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ComponentVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.componentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ComponentVersion + }, + 201: { + bodyMapper: Mappers.ComponentVersion + }, + 202: { + bodyMapper: Mappers.ComponentVersion + }, + 204: { + bodyMapper: Mappers.ComponentVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.componentName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ComponentVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.componentName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryDataContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryDataContainers.ts new file mode 100644 index 000000000000..acf9251a8b00 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryDataContainers.ts @@ -0,0 +1,498 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RegistryDataContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + DataContainer, + RegistryDataContainersListNextOptionalParams, + RegistryDataContainersListOptionalParams, + RegistryDataContainersListResponse, + RegistryDataContainersDeleteOptionalParams, + RegistryDataContainersGetOptionalParams, + RegistryDataContainersGetResponse, + RegistryDataContainersCreateOrUpdateOptionalParams, + RegistryDataContainersCreateOrUpdateResponse, + RegistryDataContainersListNextResponse +} from "../models"; + +/// +/** Class containing RegistryDataContainers operations. */ +export class RegistryDataContainersImpl implements RegistryDataContainers { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class RegistryDataContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List Data containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + options?: RegistryDataContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, registryName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + options?: RegistryDataContainersListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistryDataContainersListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, registryName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + options?: RegistryDataContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + options + )) { + yield* page; + } + } + + /** + * List Data containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + options?: RegistryDataContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, options }, + listOperationSpec + ); + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataContainersDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, name, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataContainersDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + name, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataContainersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, name, options }, + getOperationSpec + ); + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + name: string, + body: DataContainer, + options?: RegistryDataContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryDataContainersCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, name, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistryDataContainersCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + name: string, + body: DataContainer, + options?: RegistryDataContainersCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + name, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + nextLink: string, + options?: RegistryDataContainersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.listViewType + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DataContainer + }, + 201: { + bodyMapper: Mappers.DataContainer + }, + 202: { + bodyMapper: Mappers.DataContainer + }, + 204: { + bodyMapper: Mappers.DataContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryDataVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryDataVersions.ts new file mode 100644 index 000000000000..e0b22ce958e7 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryDataVersions.ts @@ -0,0 +1,586 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RegistryDataVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + DataVersionBase, + RegistryDataVersionsListNextOptionalParams, + RegistryDataVersionsListOptionalParams, + RegistryDataVersionsListResponse, + RegistryDataVersionsDeleteOptionalParams, + RegistryDataVersionsGetOptionalParams, + RegistryDataVersionsGetResponse, + RegistryDataVersionsCreateOrUpdateOptionalParams, + RegistryDataVersionsCreateOrUpdateResponse, + PendingUploadRequestDto, + RegistryDataVersionsCreateOrGetStartPendingUploadOptionalParams, + RegistryDataVersionsCreateOrGetStartPendingUploadResponse, + RegistryDataVersionsListNextResponse +} from "../models"; + +/// +/** Class containing RegistryDataVersions operations. */ +export class RegistryDataVersionsImpl implements RegistryDataVersions { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class RegistryDataVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List data versions in the data container + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Data container's name + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + registryName, + name, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + name, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataVersionsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistryDataVersionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, registryName, name, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + name, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + name, + options + )) { + yield* page; + } + } + + /** + * List data versions in the data container + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Data container's name + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, name, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + options?: RegistryDataVersionsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, name, version, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + options?: RegistryDataVersionsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + name, + version, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + options?: RegistryDataVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, name, version, options }, + getOperationSpec + ); + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + body: DataVersionBase, + options?: RegistryDataVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryDataVersionsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, name, version, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistryDataVersionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + body: DataVersionBase, + options?: RegistryDataVersionsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + name, + version, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Generate a storage location and credential for the client to upload a data asset to. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Data asset name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Pending upload request object + * @param options The options parameters. + */ + createOrGetStartPendingUpload( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + body: PendingUploadRequestDto, + options?: RegistryDataVersionsCreateOrGetStartPendingUploadOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, name, version, body, options }, + createOrGetStartPendingUploadOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Data container's name + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + name: string, + nextLink: string, + options?: RegistryDataVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, name, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataVersionBaseResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top, + Parameters.listViewType, + Parameters.tags + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataVersionBase + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DataVersionBase + }, + 201: { + bodyMapper: Mappers.DataVersionBase + }, + 202: { + bodyMapper: Mappers.DataVersionBase + }, + 204: { + bodyMapper: Mappers.DataVersionBase + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body6, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrGetStartPendingUploadOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}/startPendingUpload", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PendingUploadResponseDto + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.name + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataVersionBaseResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentContainers.ts new file mode 100644 index 000000000000..c7cd20dd41e4 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentContainers.ts @@ -0,0 +1,499 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RegistryEnvironmentContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + EnvironmentContainer, + RegistryEnvironmentContainersListNextOptionalParams, + RegistryEnvironmentContainersListOptionalParams, + RegistryEnvironmentContainersListResponse, + RegistryEnvironmentContainersDeleteOptionalParams, + RegistryEnvironmentContainersGetOptionalParams, + RegistryEnvironmentContainersGetResponse, + RegistryEnvironmentContainersCreateOrUpdateOptionalParams, + RegistryEnvironmentContainersCreateOrUpdateResponse, + RegistryEnvironmentContainersListNextResponse +} from "../models"; + +/// +/** Class containing RegistryEnvironmentContainers operations. */ +export class RegistryEnvironmentContainersImpl + implements RegistryEnvironmentContainers { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class RegistryEnvironmentContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List environment containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + options?: RegistryEnvironmentContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, registryName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + options?: RegistryEnvironmentContainersListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistryEnvironmentContainersListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, registryName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + options?: RegistryEnvironmentContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + options + )) { + yield* page; + } + } + + /** + * List environment containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + options?: RegistryEnvironmentContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, options }, + listOperationSpec + ); + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentContainersDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, environmentName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentContainersDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + environmentName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentContainersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, environmentName, options }, + getOperationSpec + ); + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + environmentName: string, + body: EnvironmentContainer, + options?: RegistryEnvironmentContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryEnvironmentContainersCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, environmentName, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistryEnvironmentContainersCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + environmentName: string, + body: EnvironmentContainer, + options?: RegistryEnvironmentContainersCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + environmentName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + nextLink: string, + options?: RegistryEnvironmentContainersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.listViewType + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.environmentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.environmentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainer + }, + 201: { + bodyMapper: Mappers.EnvironmentContainer + }, + 202: { + bodyMapper: Mappers.EnvironmentContainer + }, + 204: { + bodyMapper: Mappers.EnvironmentContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.environmentName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentVersions.ts new file mode 100644 index 000000000000..ebaeda5399d1 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentVersions.ts @@ -0,0 +1,553 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RegistryEnvironmentVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + EnvironmentVersion, + RegistryEnvironmentVersionsListNextOptionalParams, + RegistryEnvironmentVersionsListOptionalParams, + RegistryEnvironmentVersionsListResponse, + RegistryEnvironmentVersionsDeleteOptionalParams, + RegistryEnvironmentVersionsGetOptionalParams, + RegistryEnvironmentVersionsGetResponse, + RegistryEnvironmentVersionsCreateOrUpdateOptionalParams, + RegistryEnvironmentVersionsCreateOrUpdateResponse, + RegistryEnvironmentVersionsListNextResponse +} from "../models"; + +/// +/** Class containing RegistryEnvironmentVersions operations. */ +export class RegistryEnvironmentVersionsImpl + implements RegistryEnvironmentVersions { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class RegistryEnvironmentVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. This is case-sensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + registryName, + environmentName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + environmentName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentVersionsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistryEnvironmentVersionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + registryName, + environmentName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + environmentName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + environmentName, + options + )) { + yield* page; + } + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. This is case-sensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, environmentName, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + environmentName: string, + version: string, + options?: RegistryEnvironmentVersionsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + environmentName, + version, + options + }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + environmentName: string, + version: string, + options?: RegistryEnvironmentVersionsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + environmentName, + version, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + environmentName: string, + version: string, + options?: RegistryEnvironmentVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, environmentName, version, options }, + getOperationSpec + ); + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + environmentName: string, + version: string, + body: EnvironmentVersion, + options?: RegistryEnvironmentVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryEnvironmentVersionsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + environmentName, + version, + body, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistryEnvironmentVersionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + environmentName: string, + version: string, + body: EnvironmentVersion, + options?: RegistryEnvironmentVersionsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + environmentName, + version, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. This is case-sensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + environmentName: string, + nextLink: string, + options?: RegistryEnvironmentVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, environmentName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top, + Parameters.stage, + Parameters.listViewType + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.environmentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.environmentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.environmentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentVersion + }, + 201: { + bodyMapper: Mappers.EnvironmentVersion + }, + 202: { + bodyMapper: Mappers.EnvironmentVersion + }, + 204: { + bodyMapper: Mappers.EnvironmentVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body8, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.environmentName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.environmentName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryModelContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryModelContainers.ts new file mode 100644 index 000000000000..08bcd5a1d5a3 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryModelContainers.ts @@ -0,0 +1,498 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RegistryModelContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ModelContainer, + RegistryModelContainersListNextOptionalParams, + RegistryModelContainersListOptionalParams, + RegistryModelContainersListResponse, + RegistryModelContainersDeleteOptionalParams, + RegistryModelContainersGetOptionalParams, + RegistryModelContainersGetResponse, + RegistryModelContainersCreateOrUpdateOptionalParams, + RegistryModelContainersCreateOrUpdateResponse, + RegistryModelContainersListNextResponse +} from "../models"; + +/// +/** Class containing RegistryModelContainers operations. */ +export class RegistryModelContainersImpl implements RegistryModelContainers { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class RegistryModelContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List model containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + options?: RegistryModelContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, registryName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + options?: RegistryModelContainersListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistryModelContainersListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, registryName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + options?: RegistryModelContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + options + )) { + yield* page; + } + } + + /** + * List model containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + options?: RegistryModelContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, options }, + listOperationSpec + ); + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelContainersDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, modelName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelContainersDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + modelName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelContainersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, modelName, options }, + getOperationSpec + ); + } + + /** + * Create or update model container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + modelName: string, + body: ModelContainer, + options?: RegistryModelContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryModelContainersCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, modelName, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistryModelContainersCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update model container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + modelName: string, + body: ModelContainer, + options?: RegistryModelContainersCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + modelName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + nextLink: string, + options?: RegistryModelContainersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.listViewType + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.modelName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.modelName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ModelContainer + }, + 201: { + bodyMapper: Mappers.ModelContainer + }, + 202: { + bodyMapper: Mappers.ModelContainer + }, + 204: { + bodyMapper: Mappers.ModelContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body9, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.modelName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryModelVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryModelVersions.ts new file mode 100644 index 000000000000..42dbe758e1b1 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryModelVersions.ts @@ -0,0 +1,752 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RegistryModelVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ModelVersion, + RegistryModelVersionsListNextOptionalParams, + RegistryModelVersionsListOptionalParams, + RegistryModelVersionsListResponse, + RegistryModelVersionsDeleteOptionalParams, + RegistryModelVersionsGetOptionalParams, + RegistryModelVersionsGetResponse, + RegistryModelVersionsCreateOrUpdateOptionalParams, + RegistryModelVersionsCreateOrUpdateResponse, + PackageRequest, + RegistryModelVersionsPackageOptionalParams, + RegistryModelVersionsPackageResponse, + PendingUploadRequestDto, + RegistryModelVersionsCreateOrGetStartPendingUploadOptionalParams, + RegistryModelVersionsCreateOrGetStartPendingUploadResponse, + RegistryModelVersionsListNextResponse +} from "../models"; + +/// +/** Class containing RegistryModelVersions operations. */ +export class RegistryModelVersionsImpl implements RegistryModelVersions { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class RegistryModelVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + registryName, + modelName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + modelName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelVersionsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistryModelVersionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + registryName, + modelName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + modelName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + modelName, + options + )) { + yield* page; + } + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, modelName, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + options?: RegistryModelVersionsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, modelName, version, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + options?: RegistryModelVersionsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + modelName, + version, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + options?: RegistryModelVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, modelName, version, options }, + getOperationSpec + ); + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + body: ModelVersion, + options?: RegistryModelVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryModelVersionsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + modelName, + version, + body, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistryModelVersionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + body: ModelVersion, + options?: RegistryModelVersionsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + modelName, + version, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Model Version Package operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Package operation request body. + * @param options The options parameters. + */ + async beginPackage( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + body: PackageRequest, + options?: RegistryModelVersionsPackageOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryModelVersionsPackageResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + modelName, + version, + body, + options + }, + spec: packageOperationSpec + }); + const poller = await createHttpPoller< + RegistryModelVersionsPackageResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Model Version Package operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Package operation request body. + * @param options The options parameters. + */ + async beginPackageAndWait( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + body: PackageRequest, + options?: RegistryModelVersionsPackageOptionalParams + ): Promise { + const poller = await this.beginPackage( + resourceGroupName, + registryName, + modelName, + version, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Generate a storage location and credential for the client to upload a model asset to. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Model name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Pending upload request object + * @param options The options parameters. + */ + createOrGetStartPendingUpload( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + body: PendingUploadRequestDto, + options?: RegistryModelVersionsCreateOrGetStartPendingUploadOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, modelName, version, body, options }, + createOrGetStartPendingUploadOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + modelName: string, + nextLink: string, + options?: RegistryModelVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, modelName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top, + Parameters.listViewType, + Parameters.version1, + Parameters.description, + Parameters.tags1, + Parameters.properties + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.modelName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.modelName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.modelName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ModelVersion + }, + 201: { + bodyMapper: Mappers.ModelVersion + }, + 202: { + bodyMapper: Mappers.ModelVersion + }, + 204: { + bodyMapper: Mappers.ModelVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body10, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.modelName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const packageOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}/package", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PackageResponse + }, + 201: { + bodyMapper: Mappers.PackageResponse + }, + 202: { + bodyMapper: Mappers.PackageResponse + }, + 204: { + bodyMapper: Mappers.PackageResponse + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body11, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.modelName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrGetStartPendingUploadOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}/startPendingUpload", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PendingUploadResponseDto + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.modelName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.modelName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/schedules.ts b/sdk/machinelearning/arm-machinelearning/src/operations/schedules.ts index e50c9ecb7227..fb2b2cf1b011 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/schedules.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/schedules.ts @@ -12,9 +12,13 @@ import { Schedules } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { Schedule, SchedulesListNextOptionalParams, @@ -31,13 +35,13 @@ import { /// /** Class containing Schedules operations. */ export class SchedulesImpl implements Schedules { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class Schedules class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -146,14 +150,14 @@ export class SchedulesImpl implements Schedules { workspaceName: string, name: string, options?: SchedulesDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -186,14 +190,15 @@ export class SchedulesImpl implements Schedules { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, name, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -255,8 +260,8 @@ export class SchedulesImpl implements Schedules { body: Schedule, options?: SchedulesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SchedulesCreateOrUpdateResponse > > { @@ -266,7 +271,7 @@ export class SchedulesImpl implements Schedules { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -299,14 +304,18 @@ export class SchedulesImpl implements Schedules { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, name, body, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + SchedulesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" }); await poller.poll(); return poller; @@ -453,7 +462,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body21, + requestBody: Parameters.body31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -477,17 +486,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.listViewType1 - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/serverlessEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operations/serverlessEndpoints.ts new file mode 100644 index 000000000000..afb7784b5e28 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/serverlessEndpoints.ts @@ -0,0 +1,813 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ServerlessEndpoints } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ServerlessEndpoint, + ServerlessEndpointsListNextOptionalParams, + ServerlessEndpointsListOptionalParams, + ServerlessEndpointsListResponse, + ServerlessEndpointsDeleteOptionalParams, + ServerlessEndpointsGetOptionalParams, + ServerlessEndpointsGetResponse, + PartialMinimalTrackedResourceWithSkuAndIdentity, + ServerlessEndpointsUpdateOptionalParams, + ServerlessEndpointsUpdateResponse, + ServerlessEndpointsCreateOrUpdateOptionalParams, + ServerlessEndpointsCreateOrUpdateResponse, + ServerlessEndpointsListKeysOptionalParams, + ServerlessEndpointsListKeysResponse, + RegenerateEndpointKeysRequest, + ServerlessEndpointsRegenerateKeysOptionalParams, + ServerlessEndpointsRegenerateKeysResponse, + ServerlessEndpointsListNextResponse +} from "../models"; + +/// +/** Class containing ServerlessEndpoints operations. */ +export class ServerlessEndpointsImpl implements ServerlessEndpoints { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class ServerlessEndpoints class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List Serverless Endpoints. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: ServerlessEndpointsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: ServerlessEndpointsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ServerlessEndpointsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, workspaceName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: ServerlessEndpointsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List Serverless Endpoints. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: ServerlessEndpointsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ServerlessEndpointsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ServerlessEndpointsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + name, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get Serverless Endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ServerlessEndpointsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + getOperationSpec + ); + } + + /** + * Update Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body Serverless Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: PartialMinimalTrackedResourceWithSkuAndIdentity, + options?: ServerlessEndpointsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ServerlessEndpointsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, body, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + ServerlessEndpointsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Update Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body Serverless Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: PartialMinimalTrackedResourceWithSkuAndIdentity, + options?: ServerlessEndpointsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + name, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Create or update Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body Serverless Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: ServerlessEndpoint, + options?: ServerlessEndpointsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ServerlessEndpointsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + ServerlessEndpointsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body Serverless Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: ServerlessEndpoint, + options?: ServerlessEndpointsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + name, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * List EndpointAuthKeys for an Endpoint using Key-based authentication. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param options The options parameters. + */ + listKeys( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ServerlessEndpointsListKeysOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + listKeysOperationSpec + ); + } + + /** + * Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body RegenerateKeys request . + * @param options The options parameters. + */ + async beginRegenerateKeys( + resourceGroupName: string, + workspaceName: string, + name: string, + body: RegenerateEndpointKeysRequest, + options?: ServerlessEndpointsRegenerateKeysOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ServerlessEndpointsRegenerateKeysResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, body, options }, + spec: regenerateKeysOperationSpec + }); + const poller = await createHttpPoller< + ServerlessEndpointsRegenerateKeysResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body RegenerateKeys request . + * @param options The options parameters. + */ + async beginRegenerateKeysAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: RegenerateEndpointKeysRequest, + options?: ServerlessEndpointsRegenerateKeysOptionalParams + ): Promise { + const poller = await this.beginRegenerateKeys( + 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?: ServerlessEndpointsListNextOptionalParams + ): 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}/serverlessEndpoints", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerlessEndpointTrackedResourceArmPaginatedResult + }, + 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}/serverlessEndpoints/{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.name1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/serverlessEndpoints/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerlessEndpoint + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/serverlessEndpoints/{name}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ServerlessEndpoint + }, + 201: { + bodyMapper: Mappers.ServerlessEndpoint + }, + 202: { + bodyMapper: Mappers.ServerlessEndpoint + }, + 204: { + bodyMapper: Mappers.ServerlessEndpoint + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body32, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/serverlessEndpoints/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ServerlessEndpoint + }, + 201: { + bodyMapper: Mappers.ServerlessEndpoint + }, + 202: { + bodyMapper: Mappers.ServerlessEndpoint + }, + 204: { + bodyMapper: Mappers.ServerlessEndpoint + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body33, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/serverlessEndpoints/{name}/listKeys", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.EndpointAuthKeys + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const regenerateKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/serverlessEndpoints/{name}/regenerateKeys", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.EndpointAuthKeys + }, + 201: { + bodyMapper: Mappers.EndpointAuthKeys + }, + 202: { + bodyMapper: Mappers.EndpointAuthKeys + }, + 204: { + bodyMapper: Mappers.EndpointAuthKeys + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body27, + 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.ServerlessEndpointTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/usages.ts b/sdk/machinelearning/arm-machinelearning/src/operations/usages.ts index d3abf9d81047..966358d4df2a 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/usages.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/usages.ts @@ -12,7 +12,7 @@ import { Usages } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { Usage, UsagesListNextOptionalParams, @@ -24,13 +24,13 @@ import { /// /** Class containing Usages operations. */ export class UsagesImpl implements Usages { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class Usages class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -161,12 +161,11 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink, - Parameters.location + Parameters.location, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/virtualMachineSizes.ts b/sdk/machinelearning/arm-machinelearning/src/operations/virtualMachineSizes.ts index 1b937ab98879..c393dc0a01e7 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/virtualMachineSizes.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/virtualMachineSizes.ts @@ -10,7 +10,7 @@ import { VirtualMachineSizes } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { VirtualMachineSizesListOptionalParams, VirtualMachineSizesListResponse @@ -18,13 +18,13 @@ import { /** Class containing VirtualMachineSizes operations. */ export class VirtualMachineSizesImpl implements VirtualMachineSizes { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class VirtualMachineSizes class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts b/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts index ec30dfa77d23..c61861fb4148 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts @@ -12,34 +12,39 @@ import { WorkspaceConnections } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { WorkspaceConnectionPropertiesV2BasicResource, WorkspaceConnectionsListNextOptionalParams, WorkspaceConnectionsListOptionalParams, WorkspaceConnectionsListResponse, - WorkspaceConnectionsCreateOptionalParams, - WorkspaceConnectionsCreateResponse, + WorkspaceConnectionsDeleteOptionalParams, WorkspaceConnectionsGetOptionalParams, WorkspaceConnectionsGetResponse, - WorkspaceConnectionsDeleteOptionalParams, + WorkspaceConnectionsUpdateOptionalParams, + WorkspaceConnectionsUpdateResponse, + WorkspaceConnectionsCreateOptionalParams, + WorkspaceConnectionsCreateResponse, + WorkspaceConnectionsListSecretsOptionalParams, + WorkspaceConnectionsListSecretsResponse, WorkspaceConnectionsListNextResponse } from "../models"; /// /** Class containing WorkspaceConnections operations. */ export class WorkspaceConnectionsImpl implements WorkspaceConnections { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class WorkspaceConnections class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } /** + * Lists all the available machine learning workspaces connections under the specified workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. @@ -115,26 +120,43 @@ export class WorkspaceConnectionsImpl implements WorkspaceConnections { } /** + * Lists all the available machine learning workspaces connections under the specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceConnectionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete machine learning workspaces connections by name. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param connectionName Friendly name of the workspace connection - * @param parameters The object for creating or updating a new workspace connection * @param options The options parameters. */ - create( + delete( resourceGroupName: string, workspaceName: string, connectionName: string, - parameters: WorkspaceConnectionPropertiesV2BasicResource, - options?: WorkspaceConnectionsCreateOptionalParams - ): Promise { + options?: WorkspaceConnectionsDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, connectionName, parameters, options }, - createOperationSpec + { resourceGroupName, workspaceName, connectionName, options }, + deleteOperationSpec ); } /** + * Lists machine learning workspaces connections by name. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param connectionName Friendly name of the workspace connection @@ -153,36 +175,59 @@ export class WorkspaceConnectionsImpl implements WorkspaceConnections { } /** + * Update machine learning workspaces connections under the specified workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param connectionName Friendly name of the workspace connection * @param options The options parameters. */ - delete( + update( resourceGroupName: string, workspaceName: string, connectionName: string, - options?: WorkspaceConnectionsDeleteOptionalParams - ): Promise { + options?: WorkspaceConnectionsUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, connectionName, options }, - deleteOperationSpec + updateOperationSpec ); } /** + * Create or update machine learning workspaces connections under the specified workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection * @param options The options parameters. */ - private _list( + create( resourceGroupName: string, workspaceName: string, - options?: WorkspaceConnectionsListOptionalParams - ): Promise { + connectionName: string, + options?: WorkspaceConnectionsCreateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, options }, - listOperationSpec + { resourceGroupName, workspaceName, connectionName, options }, + createOperationSpec + ); + } + + /** + * List all the secrets of a machine learning workspaces connections. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param options The options parameters. + */ + listSecrets( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsListSecretsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, connectionName, options }, + listSecretsOperationSpec ); } @@ -208,19 +253,44 @@ export class WorkspaceConnectionsImpl implements WorkspaceConnections { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const createOperationSpec: coreClient.OperationSpec = { +const listOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", - httpMethod: "PUT", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkspaceConnectionPropertiesV2BasicResource + bodyMapper: + Mappers.WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters6, + queryParameters: [ + Parameters.apiVersion, + Parameters.target, + Parameters.category + ], + 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}/connections/{connectionName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -229,8 +299,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.connectionName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; const getOperationSpec: coreClient.OperationSpec = { @@ -256,17 +325,19 @@ const getOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const deleteOperationSpec: coreClient.OperationSpec = { +const updateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", - httpMethod: "DELETE", + httpMethod: "PATCH", responses: { - 200: {}, - 204: {}, + 200: { + bodyMapper: Mappers.WorkspaceConnectionPropertiesV2BasicResource + }, default: { bodyMapper: Mappers.ErrorResponse } }, + requestBody: Parameters.body39, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -275,32 +346,54 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.connectionName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; -const listOperationSpec: coreClient.OperationSpec = { +const createOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: - Mappers.WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult + bodyMapper: Mappers.WorkspaceConnectionPropertiesV2BasicResource }, default: { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.target, - Parameters.category + requestBody: Parameters.body40, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.connectionName ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listSecretsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}/listsecrets", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceConnectionPropertiesV2BasicResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, + Parameters.connectionName ], headerParameters: [Parameters.accept], serializer @@ -317,17 +410,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.target, - Parameters.category - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/workspaceFeatures.ts b/sdk/machinelearning/arm-machinelearning/src/operations/workspaceFeatures.ts index 2dfb2a4b8794..3ebcce7e15ca 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/workspaceFeatures.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/workspaceFeatures.ts @@ -12,7 +12,7 @@ import { WorkspaceFeatures } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { AmlUserFeature, WorkspaceFeaturesListNextOptionalParams, @@ -24,13 +24,13 @@ import { /// /** Class containing WorkspaceFeatures operations. */ export class WorkspaceFeaturesImpl implements WorkspaceFeatures { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class WorkspaceFeatures class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -182,13 +182,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/workspaces.ts b/sdk/machinelearning/arm-machinelearning/src/operations/workspaces.ts index c9cbd5890ede..6b79f3372dd7 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/workspaces.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/workspaces.ts @@ -12,67 +12,69 @@ import { Workspaces } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { Workspace, - WorkspacesListByResourceGroupNextOptionalParams, - WorkspacesListByResourceGroupOptionalParams, - WorkspacesListByResourceGroupResponse, WorkspacesListBySubscriptionNextOptionalParams, WorkspacesListBySubscriptionOptionalParams, WorkspacesListBySubscriptionResponse, + WorkspacesListByResourceGroupNextOptionalParams, + WorkspacesListByResourceGroupOptionalParams, + WorkspacesListByResourceGroupResponse, + WorkspacesDeleteOptionalParams, WorkspacesGetOptionalParams, WorkspacesGetResponse, - WorkspacesCreateOrUpdateOptionalParams, - WorkspacesCreateOrUpdateResponse, - WorkspacesDeleteOptionalParams, WorkspaceUpdateParameters, WorkspacesUpdateOptionalParams, WorkspacesUpdateResponse, + WorkspacesCreateOrUpdateOptionalParams, + WorkspacesCreateOrUpdateResponse, WorkspacesDiagnoseOptionalParams, WorkspacesDiagnoseResponse, WorkspacesListKeysOptionalParams, WorkspacesListKeysResponse, - WorkspacesResyncKeysOptionalParams, WorkspacesListNotebookAccessTokenOptionalParams, WorkspacesListNotebookAccessTokenResponse, - WorkspacesPrepareNotebookOptionalParams, - WorkspacesPrepareNotebookResponse, - WorkspacesListStorageAccountKeysOptionalParams, - WorkspacesListStorageAccountKeysResponse, WorkspacesListNotebookKeysOptionalParams, WorkspacesListNotebookKeysResponse, + WorkspacesListStorageAccountKeysOptionalParams, + WorkspacesListStorageAccountKeysResponse, WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams, WorkspacesListOutboundNetworkDependenciesEndpointsResponse, - WorkspacesListByResourceGroupNextResponse, - WorkspacesListBySubscriptionNextResponse + WorkspacesPrepareNotebookOptionalParams, + WorkspacesPrepareNotebookResponse, + WorkspacesResyncKeysOptionalParams, + WorkspacesListBySubscriptionNextResponse, + WorkspacesListByResourceGroupNextResponse } from "../models"; /// /** Class containing Workspaces operations. */ export class WorkspacesImpl implements Workspaces { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class Workspaces class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } /** - * Lists all the available machine learning workspaces under the specified resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * Lists all the available machine learning workspaces under the specified subscription. * @param options The options parameters. */ - public listByResourceGroup( - resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams + public listBySubscription( + options?: WorkspacesListBySubscriptionOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + const iter = this.listBySubscriptionPagingAll(options); return { next() { return iter.next(); @@ -84,35 +86,26 @@ export class WorkspacesImpl implements Workspaces { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings - ); + return this.listBySubscriptionPagingPage(options, settings); } }; } - private async *listByResourceGroupPagingPage( - resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams, + private async *listBySubscriptionPagingPage( + options?: WorkspacesListBySubscriptionOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: WorkspacesListByResourceGroupResponse; + let result: WorkspacesListBySubscriptionResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByResourceGroup(resourceGroupName, options); + result = await this._listBySubscription(options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options - ); + result = await this._listBySubscriptionNext(continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -120,26 +113,24 @@ export class WorkspacesImpl implements Workspaces { } } - private async *listByResourceGroupPagingAll( - resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams + private async *listBySubscriptionPagingAll( + options?: WorkspacesListBySubscriptionOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options - )) { + for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; } } /** - * Lists all the available machine learning workspaces under the specified subscription. + * Lists all the available machine learning workspaces under the specified resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ - public listBySubscription( - options?: WorkspacesListBySubscriptionOptionalParams + public listByResourceGroup( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listBySubscriptionPagingAll(options); + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { next() { return iter.next(); @@ -151,26 +142,35 @@ export class WorkspacesImpl implements Workspaces { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listBySubscriptionPagingPage(options, settings); + return this.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings + ); } }; } - private async *listBySubscriptionPagingPage( - options?: WorkspacesListBySubscriptionOptionalParams, + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: WorkspacesListBySubscriptionResponse; + let result: WorkspacesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listBySubscription(options); + result = await this._listByResourceGroup(resourceGroupName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listBySubscriptionNext(continuationToken, options); + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options + ); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -178,56 +178,64 @@ export class WorkspacesImpl implements Workspaces { } } - private async *listBySubscriptionPagingAll( - options?: WorkspacesListBySubscriptionOptionalParams + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams ): AsyncIterableIterator { - for await (const page of this.listBySubscriptionPagingPage(options)) { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { yield* page; } } /** - * Gets the properties of the specified machine learning workspace. + * Lists all the available machine learning workspaces under the specified subscription. + * @param options The options parameters. + */ + private _listBySubscription( + options?: WorkspacesListBySubscriptionOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec + ); + } + + /** + * Lists all the available machine learning workspaces under the specified resource group. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ - get( + private _listByResourceGroup( resourceGroupName: string, - workspaceName: string, - options?: WorkspacesGetOptionalParams - ): Promise { + options?: WorkspacesListByResourceGroupOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, options }, - getOperationSpec + { resourceGroupName, options }, + listByResourceGroupOperationSpec ); } /** - * Creates or updates a workspace with the specified parameters. + * Deletes a machine learning workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param parameters The parameters for creating or updating a machine learning workspace. * @param options The options parameters. */ - async beginCreateOrUpdate( + async beginDelete( resourceGroupName: string, workspaceName: string, - parameters: Workspace, - options?: WorkspacesCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - WorkspacesCreateOrUpdateResponse - > - > { + options?: WorkspacesDeleteOptionalParams + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -260,13 +268,13 @@ export class WorkspacesImpl implements Workspaces { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -274,45 +282,66 @@ export class WorkspacesImpl implements Workspaces { } /** - * Creates or updates a workspace with the specified parameters. + * Deletes a machine learning workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param parameters The parameters for creating or updating a machine learning workspace. * @param options The options parameters. */ - async beginCreateOrUpdateAndWait( + async beginDeleteAndWait( resourceGroupName: string, workspaceName: string, - parameters: Workspace, - options?: WorkspacesCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( + options?: WorkspacesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( resourceGroupName, workspaceName, - parameters, options ); return poller.pollUntilDone(); } /** - * Deletes a machine learning workspace. + * Gets the properties of the specified machine learning workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ - async beginDelete( + get( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams - ): Promise, void>> { + options?: WorkspacesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + getOperationSpec + ); + } + + /** + * Updates a machine learning workspace with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body The parameters for updating a machine learning workspace. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + workspaceName: string, + body: WorkspaceUpdateParameters, + options?: WorkspacesUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + WorkspacesUpdateResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -345,13 +374,16 @@ export class WorkspacesImpl implements Workspaces { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, body, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + WorkspacesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -359,49 +391,52 @@ export class WorkspacesImpl implements Workspaces { } /** - * Deletes a machine learning workspace. + * Updates a machine learning workspace with the specified parameters. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. + * @param body The parameters for updating a machine learning workspace. * @param options The options parameters. */ - async beginDeleteAndWait( + async beginUpdateAndWait( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( + body: WorkspaceUpdateParameters, + options?: WorkspacesUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( resourceGroupName, workspaceName, + body, options ); return poller.pollUntilDone(); } /** - * Updates a machine learning workspace with the specified parameters. + * Creates or updates a workspace with the specified parameters. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param parameters The parameters for updating a machine learning workspace. + * @param body The parameters for creating or updating a machine learning workspace. * @param options The options parameters. */ - async beginUpdate( + async beginCreateOrUpdate( resourceGroupName: string, workspaceName: string, - parameters: WorkspaceUpdateParameters, - options?: WorkspacesUpdateOptionalParams + body: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, - WorkspacesUpdateResponse + SimplePollerLike< + OperationState, + WorkspacesCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -434,56 +469,45 @@ export class WorkspacesImpl implements Workspaces { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + WorkspacesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; } /** - * Updates a machine learning workspace with the specified parameters. + * Creates or updates a workspace with the specified parameters. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param parameters The parameters for updating a machine learning workspace. + * @param body The parameters for creating or updating a machine learning workspace. * @param options The options parameters. */ - async beginUpdateAndWait( + async beginCreateOrUpdateAndWait( resourceGroupName: string, workspaceName: string, - parameters: WorkspaceUpdateParameters, - options?: WorkspacesUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( + body: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( resourceGroupName, workspaceName, - parameters, + body, options ); return poller.pollUntilDone(); } - /** - * Lists all the available machine learning workspaces under the specified resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - private _listByResourceGroup( - resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, options }, - listByResourceGroupOperationSpec - ); - } - /** * Diagnose workspace setup issue. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -495,8 +519,8 @@ export class WorkspacesImpl implements Workspaces { workspaceName: string, options?: WorkspacesDiagnoseOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesDiagnoseResponse > > { @@ -506,7 +530,7 @@ export class WorkspacesImpl implements Workspaces { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -539,15 +563,18 @@ export class WorkspacesImpl implements Workspaces { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, options }, - diagnoseOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, options }, + spec: diagnoseOperationSpec + }); + const poller = await createHttpPoller< + WorkspacesDiagnoseResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -574,7 +601,7 @@ export class WorkspacesImpl implements Workspaces { /** * Lists all the keys associated with this workspace. This includes keys for the storage account, app - * insights and password for container registry + * insights and password for container registry. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. @@ -591,121 +618,76 @@ export class WorkspacesImpl implements Workspaces { } /** - * Resync all the keys associated with this workspace. This includes keys for the storage account, app - * insights and password for container registry + * Get Azure Machine Learning Workspace notebook access token * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ - async beginResyncKeys( + listNotebookAccessToken( resourceGroupName: string, workspaceName: string, - options?: WorkspacesResyncKeysOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, + options?: WorkspacesListNotebookAccessTokenOptionalParams + ): Promise { + return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - resyncKeysOperationSpec + listNotebookAccessTokenOperationSpec ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; } /** - * Resync all the keys associated with this workspace. This includes keys for the storage account, app - * insights and password for container registry + * Lists keys of Azure Machine Learning Workspaces notebook. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ - async beginResyncKeysAndWait( + listNotebookKeys( resourceGroupName: string, workspaceName: string, - options?: WorkspacesResyncKeysOptionalParams - ): Promise { - const poller = await this.beginResyncKeys( - resourceGroupName, - workspaceName, - options + options?: WorkspacesListNotebookKeysOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listNotebookKeysOperationSpec ); - return poller.pollUntilDone(); } /** - * Lists all the available machine learning workspaces under the specified subscription. + * Lists keys of Azure Machine Learning Workspace's storage account. + * @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 _listBySubscription( - options?: WorkspacesListBySubscriptionOptionalParams - ): Promise { + listStorageAccountKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListStorageAccountKeysOptionalParams + ): Promise { return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec + { resourceGroupName, workspaceName, options }, + listStorageAccountKeysOperationSpec ); } /** - * return notebook access token and refresh token + * Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) + * programmatically. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ - listNotebookAccessToken( + listOutboundNetworkDependenciesEndpoints( resourceGroupName: string, workspaceName: string, - options?: WorkspacesListNotebookAccessTokenOptionalParams - ): Promise { + options?: WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listNotebookAccessTokenOperationSpec + listOutboundNetworkDependenciesEndpointsOperationSpec ); } /** - * Prepare a notebook. + * Prepare Azure Machine Learning Workspace's notebook resource * @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. @@ -715,8 +697,8 @@ export class WorkspacesImpl implements Workspaces { workspaceName: string, options?: WorkspacesPrepareNotebookOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesPrepareNotebookResponse > > { @@ -726,7 +708,7 @@ export class WorkspacesImpl implements Workspaces { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -759,22 +741,25 @@ export class WorkspacesImpl implements Workspaces { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, options }, - prepareNotebookOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, options }, + spec: prepareNotebookOperationSpec + }); + const poller = await createHttpPoller< + WorkspacesPrepareNotebookResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; } /** - * Prepare a notebook. + * Prepare Azure Machine Learning Workspace's notebook resource * @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. @@ -793,54 +778,102 @@ export class WorkspacesImpl implements Workspaces { } /** - * List storage account keys of a workspace. + * Resync all the keys associated with this workspace.This includes keys for the storage account, app + * insights and password for container registry * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ - listStorageAccountKeys( + async beginResyncKeys( resourceGroupName: string, workspaceName: string, - options?: WorkspacesListStorageAccountKeysOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, options }, - listStorageAccountKeysOperationSpec - ); + options?: WorkspacesResyncKeysOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, options }, + spec: resyncKeysOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; } /** - * List keys of a notebook. + * Resync all the keys associated with this workspace.This includes keys for the storage account, app + * insights and password for container registry * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ - listNotebookKeys( + async beginResyncKeysAndWait( resourceGroupName: string, workspaceName: string, - options?: WorkspacesListNotebookKeysOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, options }, - listNotebookKeysOperationSpec + options?: WorkspacesResyncKeysOptionalParams + ): Promise { + const poller = await this.beginResyncKeys( + resourceGroupName, + workspaceName, + options ); + return poller.pollUntilDone(); } /** - * Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) - * programmatically. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName Name of Azure Machine Learning workspace. + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. * @param options The options parameters. */ - listOutboundNetworkDependenciesEndpoints( - resourceGroupName: string, - workspaceName: string, - options?: WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams - ): Promise { + private _listBySubscriptionNext( + nextLink: string, + options?: WorkspacesListBySubscriptionNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, options }, - listOutboundNetworkDependenciesEndpointsOperationSpec + { nextLink, options }, + listBySubscriptionNextOperationSpec ); } @@ -860,78 +893,46 @@ export class WorkspacesImpl implements Workspaces { listByResourceGroupNextOperationSpec ); } - - /** - * ListBySubscriptionNext - * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. - * @param options The options parameters. - */ - private _listBySubscriptionNext( - nextLink: string, - options?: WorkspacesListBySubscriptionNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listBySubscriptionNextOperationSpec - ); - } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getOperationSpec: coreClient.OperationSpec = { +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", + "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.WorkspaceListResult }, default: { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], + queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.kind], + urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", - httpMethod: "PUT", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Workspace - }, - 201: { - bodyMapper: Mappers.Workspace - }, - 202: { - bodyMapper: Mappers.Workspace - }, - 204: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.WorkspaceListResult }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.kind], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.resourceGroupName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; const deleteOperationSpec: coreClient.OperationSpec = { @@ -947,6 +948,28 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion, Parameters.forceToPurge], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Workspace + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -978,7 +1001,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters1, + requestBody: Parameters.body36, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -990,25 +1013,37 @@ const updateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.WorkspaceListResult + bodyMapper: Mappers.Workspace + }, + 201: { + bodyMapper: Mappers.Workspace + }, + 202: { + bodyMapper: Mappers.Workspace + }, + 204: { + bodyMapper: Mappers.Workspace }, default: { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip], + requestBody: Parameters.body37, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, + Parameters.workspaceName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const diagnoseOperationSpec: coreClient.OperationSpec = { @@ -1032,7 +1067,7 @@ const diagnoseOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters2, + requestBody: Parameters.body38, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1066,15 +1101,14 @@ const listKeysOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const resyncKeysOperationSpec: coreClient.OperationSpec = { +const listNotebookAccessTokenOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookAccessToken", httpMethod: "POST", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.NotebookAccessTokenResult + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -1089,30 +1123,13 @@ const resyncKeysOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.WorkspaceListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion, Parameters.skip], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer -}; -const listNotebookAccessTokenOperationSpec: coreClient.OperationSpec = { +const listNotebookKeysOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookAccessToken", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.NotebookAccessTokenResult + bodyMapper: Mappers.ListNotebookKeysResult }, default: { bodyMapper: Mappers.ErrorResponse @@ -1128,22 +1145,13 @@ const listNotebookAccessTokenOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const prepareNotebookOperationSpec: coreClient.OperationSpec = { +const listStorageAccountKeysOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/prepareNotebook", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listStorageAccountKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.NotebookResourceInfo - }, - 201: { - bodyMapper: Mappers.NotebookResourceInfo - }, - 202: { - bodyMapper: Mappers.NotebookResourceInfo - }, - 204: { - bodyMapper: Mappers.NotebookResourceInfo + bodyMapper: Mappers.ListStorageAccountKeysResult }, default: { bodyMapper: Mappers.ErrorResponse @@ -1159,13 +1167,13 @@ const prepareNotebookOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listStorageAccountKeysOperationSpec: coreClient.OperationSpec = { +const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listStorageAccountKeys", - httpMethod: "POST", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListStorageAccountKeysResult + bodyMapper: Mappers.ExternalFqdnResponse }, default: { bodyMapper: Mappers.ErrorResponse @@ -1181,13 +1189,22 @@ const listStorageAccountKeysOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listNotebookKeysOperationSpec: coreClient.OperationSpec = { +const prepareNotebookOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookKeys", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/prepareNotebook", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ListNotebookKeysResult + bodyMapper: Mappers.NotebookResourceInfo + }, + 201: { + bodyMapper: Mappers.NotebookResourceInfo + }, + 202: { + bodyMapper: Mappers.NotebookResourceInfo + }, + 204: { + bodyMapper: Mappers.NotebookResourceInfo }, default: { bodyMapper: Mappers.ErrorResponse @@ -1203,14 +1220,15 @@ const listNotebookKeysOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = { +const resyncKeysOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys", + httpMethod: "POST", responses: { - 200: { - bodyMapper: Mappers.ExternalFqdnResponse - }, + 200: {}, + 201: {}, + 202: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } @@ -1225,7 +1243,7 @@ const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.Operatio headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -1236,17 +1254,15 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.nextLink ], headerParameters: [Parameters.accept], serializer }; -const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -1257,11 +1273,11 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchDeployments.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchDeployments.ts index 751f730b1a54..0decb41295c6 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchDeployments.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchDeployments.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { BatchDeployment, BatchDeploymentsListOptionalParams, @@ -51,7 +51,7 @@ export interface BatchDeployments { endpointName: string, deploymentName: string, options?: BatchDeploymentsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Delete Batch Inference deployment (asynchronous). * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -99,8 +99,8 @@ export interface BatchDeployments { body: PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties, options?: BatchDeploymentsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BatchDeploymentsUpdateResponse > >; @@ -138,8 +138,8 @@ export interface BatchDeployments { body: BatchDeployment, options?: BatchDeploymentsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BatchDeploymentsCreateOrUpdateResponse > >; diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchEndpoints.ts index 6b64fdacf732..a1f9d8279a85 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchEndpoints.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchEndpoints.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { BatchEndpoint, BatchEndpointsListOptionalParams, @@ -49,7 +49,7 @@ export interface BatchEndpoints { workspaceName: string, endpointName: string, options?: BatchEndpointsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Delete Batch Inference Endpoint (asynchronous). * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -91,8 +91,8 @@ export interface BatchEndpoints { body: PartialMinimalTrackedResourceWithIdentity, options?: BatchEndpointsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BatchEndpointsUpdateResponse > >; @@ -126,8 +126,8 @@ export interface BatchEndpoints { body: BatchEndpoint, options?: BatchEndpointsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BatchEndpointsCreateOrUpdateResponse > >; diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/codeVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/codeVersions.ts index 4d6f4f26c7de..6f3c3310a1c7 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/codeVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/codeVersions.ts @@ -14,7 +14,10 @@ import { CodeVersionsGetOptionalParams, CodeVersionsGetResponse, CodeVersionsCreateOrUpdateOptionalParams, - CodeVersionsCreateOrUpdateResponse + CodeVersionsCreateOrUpdateResponse, + PendingUploadRequestDto, + CodeVersionsCreateOrGetStartPendingUploadOptionalParams, + CodeVersionsCreateOrGetStartPendingUploadResponse } from "../models"; /// @@ -80,4 +83,21 @@ export interface CodeVersions { body: CodeVersion, options?: CodeVersionsCreateOrUpdateOptionalParams ): Promise; + /** + * Generate a storage location and credential for the client to upload a code asset to. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Pending upload request object + * @param options The options parameters. + */ + createOrGetStartPendingUpload( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: PendingUploadRequestDto, + options?: CodeVersionsCreateOrGetStartPendingUploadOptionalParams + ): Promise; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts index 630c4eee8be1..f32fda9cd505 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ComputeResource, ComputeListOptionalParams, @@ -22,11 +22,20 @@ import { ComputeUpdateResponse, UnderlyingResourceAction, ComputeDeleteOptionalParams, + CustomService, + ComputeUpdateCustomServicesOptionalParams, ComputeListKeysOptionalParams, ComputeListKeysResponse, ComputeStartOptionalParams, ComputeStopOptionalParams, - ComputeRestartOptionalParams + ComputeRestartOptionalParams, + IdleShutdownSetting, + ComputeUpdateIdleShutdownSettingOptionalParams, + ComputeGetAllowedResizeSizesOptionalParams, + ComputeGetAllowedResizeSizesResponse, + ResizeSchema, + ComputeResizeOptionalParams, + ComputeResizeResponse } from "../models"; /// @@ -87,8 +96,8 @@ export interface ComputeOperations { parameters: ComputeResource, options?: ComputeCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ComputeCreateOrUpdateResponse > >; @@ -125,7 +134,10 @@ export interface ComputeOperations { parameters: ClusterUpdateParameters, options?: ComputeUpdateOptionalParams ): Promise< - PollerLike, ComputeUpdateResponse> + SimplePollerLike< + OperationState, + ComputeUpdateResponse + > >; /** * Updates properties of a compute. This call will overwrite a compute if it exists. This is a @@ -158,7 +170,7 @@ export interface ComputeOperations { computeName: string, underlyingResourceAction: UnderlyingResourceAction, options?: ComputeDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes specified Machine Learning compute. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -175,6 +187,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. @@ -200,7 +227,7 @@ export interface ComputeOperations { workspaceName: string, computeName: string, options?: ComputeStartOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Posts a start action to a compute instance * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -226,7 +253,7 @@ export interface ComputeOperations { workspaceName: string, computeName: string, options?: ComputeStopOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Posts a stop action to a compute instance * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -252,7 +279,7 @@ export interface ComputeOperations { workspaceName: string, computeName: string, options?: ComputeRestartOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Posts a restart action to a compute instance * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -266,4 +293,67 @@ 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; + /** + * Returns supported virtual machine sizes for resize + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + getAllowedResizeSizes( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeGetAllowedResizeSizesOptionalParams + ): Promise; + /** + * Updates the size 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 VM size setting of specified Compute Instance. + * @param options The options parameters. + */ + beginResize( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ResizeSchema, + options?: ComputeResizeOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ComputeResizeResponse + > + >; + /** + * Updates the size 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 VM size setting of specified Compute Instance. + * @param options The options parameters. + */ + beginResizeAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ResizeSchema, + options?: ComputeResizeOptionalParams + ): Promise; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/features.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/features.ts new file mode 100644 index 000000000000..9d0261041527 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/features.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + Feature, + FeaturesListOptionalParams, + FeaturesGetOptionalParams, + FeaturesGetResponse +} from "../models"; + +/// +/** Interface representing a Features. */ +export interface Features { + /** + * List Features. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param featuresetName Featureset name. This is case-sensitive. + * @param featuresetVersion Featureset Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + featuresetName: string, + featuresetVersion: string, + options?: FeaturesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param featuresetName Feature set name. This is case-sensitive. + * @param featuresetVersion Feature set version identifier. This is case-sensitive. + * @param featureName Feature Name. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + featuresetName: string, + featuresetVersion: string, + featureName: string, + options?: FeaturesGetOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetContainers.ts new file mode 100644 index 000000000000..d78338e0ace3 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetContainers.ts @@ -0,0 +1,109 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + FeaturesetContainer, + FeaturesetContainersListOptionalParams, + FeaturesetContainersDeleteOptionalParams, + FeaturesetContainersGetEntityOptionalParams, + FeaturesetContainersGetEntityResponse, + FeaturesetContainersCreateOrUpdateOptionalParams, + FeaturesetContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a FeaturesetContainers. */ +export interface FeaturesetContainers { + /** + * List featurestore entity containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: FeaturesetContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetContainersDeleteOptionalParams + ): Promise, void>>; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetContainersDeleteOptionalParams + ): Promise; + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + getEntity( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetContainersGetEntityOptionalParams + ): Promise; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: FeaturesetContainer, + options?: FeaturesetContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FeaturesetContainersCreateOrUpdateResponse + > + >; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: FeaturesetContainer, + options?: FeaturesetContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetVersions.ts new file mode 100644 index 000000000000..95ec017080bb --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetVersions.ts @@ -0,0 +1,163 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + FeaturesetVersion, + FeaturesetVersionsListOptionalParams, + FeaturesetVersionsDeleteOptionalParams, + FeaturesetVersionsGetOptionalParams, + FeaturesetVersionsGetResponse, + FeaturesetVersionsCreateOrUpdateOptionalParams, + FeaturesetVersionsCreateOrUpdateResponse, + FeaturesetVersionBackfillRequest, + FeaturesetVersionsBackfillOptionalParams, + FeaturesetVersionsBackfillResponse +} from "../models"; + +/// +/** Interface representing a FeaturesetVersions. */ +export interface FeaturesetVersions { + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Featureset name. This is case-sensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturesetVersionsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturesetVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturesetVersionsGetOptionalParams + ): Promise; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturesetVersion, + options?: FeaturesetVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FeaturesetVersionsCreateOrUpdateResponse + > + >; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturesetVersion, + options?: FeaturesetVersionsCreateOrUpdateOptionalParams + ): Promise; + /** + * Backfill. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Feature set version backfill request entity. + * @param options The options parameters. + */ + beginBackfill( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturesetVersionBackfillRequest, + options?: FeaturesetVersionsBackfillOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FeaturesetVersionsBackfillResponse + > + >; + /** + * Backfill. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Feature set version backfill request entity. + * @param options The options parameters. + */ + beginBackfillAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturesetVersionBackfillRequest, + options?: FeaturesetVersionsBackfillOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityContainers.ts new file mode 100644 index 000000000000..05da334c8925 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityContainers.ts @@ -0,0 +1,109 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + FeaturestoreEntityContainer, + FeaturestoreEntityContainersListOptionalParams, + FeaturestoreEntityContainersDeleteOptionalParams, + FeaturestoreEntityContainersGetEntityOptionalParams, + FeaturestoreEntityContainersGetEntityResponse, + FeaturestoreEntityContainersCreateOrUpdateOptionalParams, + FeaturestoreEntityContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a FeaturestoreEntityContainers. */ +export interface FeaturestoreEntityContainers { + /** + * List featurestore entity containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: FeaturestoreEntityContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityContainersDeleteOptionalParams + ): Promise, void>>; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityContainersDeleteOptionalParams + ): Promise; + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + getEntity( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityContainersGetEntityOptionalParams + ): Promise; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: FeaturestoreEntityContainer, + options?: FeaturestoreEntityContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FeaturestoreEntityContainersCreateOrUpdateResponse + > + >; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: FeaturestoreEntityContainer, + options?: FeaturestoreEntityContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityVersions.ts new file mode 100644 index 000000000000..5d650958b7f7 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityVersions.ts @@ -0,0 +1,121 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + FeaturestoreEntityVersion, + FeaturestoreEntityVersionsListOptionalParams, + FeaturestoreEntityVersionsDeleteOptionalParams, + FeaturestoreEntityVersionsGetOptionalParams, + FeaturestoreEntityVersionsGetResponse, + FeaturestoreEntityVersionsCreateOrUpdateOptionalParams, + FeaturestoreEntityVersionsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a FeaturestoreEntityVersions. */ +export interface FeaturestoreEntityVersions { + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Feature entity name. This is case-sensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturestoreEntityVersionsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturestoreEntityVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturestoreEntityVersionsGetOptionalParams + ): Promise; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturestoreEntityVersion, + options?: FeaturestoreEntityVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FeaturestoreEntityVersionsCreateOrUpdateResponse + > + >; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturestoreEntityVersion, + options?: FeaturestoreEntityVersionsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts index 5c0eba4f45e0..ae7733626d95 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts @@ -6,15 +6,20 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./operations"; -export * from "./workspaces"; export * from "./usages"; export * from "./virtualMachineSizes"; export * from "./quotas"; export * from "./computeOperations"; -export * from "./privateEndpointConnections"; -export * from "./privateLinkResources"; -export * from "./workspaceConnections"; +export * from "./registryCodeContainers"; +export * from "./registryCodeVersions"; +export * from "./registryComponentContainers"; +export * from "./registryComponentVersions"; +export * from "./registryDataContainers"; +export * from "./registryDataVersions"; +export * from "./registryEnvironmentContainers"; +export * from "./registryEnvironmentVersions"; +export * from "./registryModelContainers"; +export * from "./registryModelVersions"; export * from "./batchEndpoints"; export * from "./batchDeployments"; export * from "./codeContainers"; @@ -26,10 +31,25 @@ export * from "./dataVersions"; export * from "./datastores"; export * from "./environmentContainers"; export * from "./environmentVersions"; +export * from "./featuresetContainers"; +export * from "./features"; +export * from "./featuresetVersions"; +export * from "./featurestoreEntityContainers"; +export * from "./featurestoreEntityVersions"; export * from "./jobs"; +export * from "./labelingJobs"; export * from "./modelContainers"; export * from "./modelVersions"; export * from "./onlineEndpoints"; export * from "./onlineDeployments"; export * from "./schedules"; +export * from "./serverlessEndpoints"; +export * from "./registries"; export * from "./workspaceFeatures"; +export * from "./operations"; +export * from "./workspaces"; +export * from "./workspaceConnections"; +export * from "./managedNetworkSettingsRule"; +export * from "./privateEndpointConnections"; +export * from "./privateLinkResources"; +export * from "./managedNetworkProvisions"; diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/jobs.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/jobs.ts index f86e352d466f..5baef8bb2021 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/jobs.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/jobs.ts @@ -7,13 +7,16 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { JobBase, JobsListOptionalParams, JobsDeleteOptionalParams, JobsGetOptionalParams, JobsGetResponse, + PartialJobBasePartialResource, + JobsUpdateOptionalParams, + JobsUpdateResponse, JobsCreateOrUpdateOptionalParams, JobsCreateOrUpdateResponse, JobsCancelOptionalParams @@ -45,7 +48,7 @@ export interface Jobs { workspaceName: string, id: string, options?: JobsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes a Job (asynchronous). * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -72,6 +75,21 @@ export interface Jobs { id: string, options?: JobsGetOptionalParams ): Promise; + /** + * Updates a Job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the Job. This is case-sensitive. + * @param body Job definition to apply during the operation. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + workspaceName: string, + id: string, + body: PartialJobBasePartialResource, + options?: JobsUpdateOptionalParams + ): Promise; /** * Creates and executes a Job. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -99,7 +117,7 @@ export interface Jobs { workspaceName: string, id: string, options?: JobsCancelOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Cancels a Job (asynchronous). * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/labelingJobs.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/labelingJobs.ts new file mode 100644 index 000000000000..58ddd511d4c3 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/labelingJobs.ts @@ -0,0 +1,184 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + LabelingJob, + LabelingJobsListOptionalParams, + LabelingJobsDeleteOptionalParams, + LabelingJobsGetOptionalParams, + LabelingJobsGetResponse, + LabelingJobsCreateOrUpdateOptionalParams, + LabelingJobsCreateOrUpdateResponse, + ExportSummaryUnion, + LabelingJobsExportLabelsOptionalParams, + LabelingJobsExportLabelsResponse, + LabelingJobsPauseOptionalParams, + LabelingJobsPauseResponse, + LabelingJobsResumeOptionalParams, + LabelingJobsResumeResponse +} 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< + SimplePollerLike< + OperationState, + 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). Using the URL in the Location header, the status + * of the job export operation can be tracked. + * @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< + SimplePollerLike< + OperationState, + LabelingJobsExportLabelsResponse + > + >; + /** + * Export labels from a labeling job (asynchronous). Using the URL in the Location header, the status + * of the job export operation can be tracked. + * @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< + SimplePollerLike< + OperationState, + LabelingJobsResumeResponse + > + >; + /** + * 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/managedNetworkProvisions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkProvisions.ts new file mode 100644 index 000000000000..782614ab8c31 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkProvisions.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams, + ManagedNetworkProvisionsProvisionManagedNetworkResponse +} from "../models"; + +/** Interface representing a ManagedNetworkProvisions. */ +export interface ManagedNetworkProvisions { + /** + * Provisions the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginProvisionManagedNetwork( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedNetworkProvisionsProvisionManagedNetworkResponse + > + >; + /** + * Provisions the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginProvisionManagedNetworkAndWait( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkSettingsRule.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkSettingsRule.ts new file mode 100644 index 000000000000..fe7addd3effb --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkSettingsRule.ts @@ -0,0 +1,111 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + OutboundRuleBasicResource, + ManagedNetworkSettingsRuleListOptionalParams, + ManagedNetworkSettingsRuleDeleteOptionalParams, + ManagedNetworkSettingsRuleGetOptionalParams, + ManagedNetworkSettingsRuleGetResponse, + ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams, + ManagedNetworkSettingsRuleCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a ManagedNetworkSettingsRule. */ +export interface ManagedNetworkSettingsRule { + /** + * Lists the managed network outbound rules for a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkSettingsRuleListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Deletes an outbound rule from the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param ruleName Name of the workspace managed network outbound rule + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: ManagedNetworkSettingsRuleDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes an outbound rule from the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param ruleName Name of the workspace managed network outbound rule + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: ManagedNetworkSettingsRuleDeleteOptionalParams + ): Promise; + /** + * Gets an outbound rule from the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param ruleName Name of the workspace managed network outbound rule + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: ManagedNetworkSettingsRuleGetOptionalParams + ): Promise; + /** + * Creates or updates an outbound rule in the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param ruleName Name of the workspace managed network outbound rule + * @param body Outbound Rule to be created or updated in the managed network of a machine learning + * workspace. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + body: OutboundRuleBasicResource, + options?: ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedNetworkSettingsRuleCreateOrUpdateResponse + > + >; + /** + * Creates or updates an outbound rule in the managed network of a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param ruleName Name of the workspace managed network outbound rule + * @param body Outbound Rule to be created or updated in the managed network of a machine learning + * workspace. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + body: OutboundRuleBasicResource, + options?: ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/modelVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/modelVersions.ts index 14cf3f6fa73c..a6735a26a7b9 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/modelVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/modelVersions.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ModelVersion, ModelVersionsListOptionalParams, @@ -14,7 +15,10 @@ import { ModelVersionsGetOptionalParams, ModelVersionsGetResponse, ModelVersionsCreateOrUpdateOptionalParams, - ModelVersionsCreateOrUpdateResponse + ModelVersionsCreateOrUpdateResponse, + PackageRequest, + ModelVersionsPackageOptionalParams, + ModelVersionsPackageResponse } from "../models"; /// @@ -80,4 +84,43 @@ export interface ModelVersions { body: ModelVersion, options?: ModelVersionsCreateOrUpdateOptionalParams ): Promise; + /** + * Model Version Package operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Package operation request body. + * @param options The options parameters. + */ + beginPackage( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: PackageRequest, + options?: ModelVersionsPackageOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ModelVersionsPackageResponse + > + >; + /** + * Model Version Package operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Package operation request body. + * @param options The options parameters. + */ + beginPackageAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: PackageRequest, + options?: ModelVersionsPackageOptionalParams + ): Promise; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineDeployments.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineDeployments.ts index 39d986af8bee..14b14b4cf456 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineDeployments.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineDeployments.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { OnlineDeployment, OnlineDeploymentsListOptionalParams, @@ -71,7 +71,7 @@ export interface OnlineDeployments { endpointName: string, deploymentName: string, options?: OnlineDeploymentsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Delete Inference Endpoint Deployment (asynchronous). * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -119,8 +119,8 @@ export interface OnlineDeployments { body: PartialMinimalTrackedResourceWithSku, options?: OnlineDeploymentsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, OnlineDeploymentsUpdateResponse > >; @@ -158,8 +158,8 @@ export interface OnlineDeployments { body: OnlineDeployment, options?: OnlineDeploymentsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, OnlineDeploymentsCreateOrUpdateResponse > >; diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineEndpoints.ts index 20dac39f279f..76da5136b30a 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineEndpoints.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineEndpoints.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { OnlineEndpoint, OnlineEndpointsListOptionalParams, @@ -53,7 +53,7 @@ export interface OnlineEndpoints { workspaceName: string, endpointName: string, options?: OnlineEndpointsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Delete Online Endpoint (asynchronous). * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -95,8 +95,8 @@ export interface OnlineEndpoints { body: PartialMinimalTrackedResourceWithIdentity, options?: OnlineEndpointsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, OnlineEndpointsUpdateResponse > >; @@ -130,8 +130,8 @@ export interface OnlineEndpoints { body: OnlineEndpoint, options?: OnlineEndpointsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, OnlineEndpointsCreateOrUpdateResponse > >; @@ -177,7 +177,7 @@ export interface OnlineEndpoints { endpointName: string, body: RegenerateEndpointKeysRequest, options?: OnlineEndpointsRegenerateKeysOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -194,7 +194,7 @@ export interface OnlineEndpoints { options?: OnlineEndpointsRegenerateKeysOptionalParams ): Promise; /** - * Retrieve a valid AAD token for an Endpoint using AMLToken-based authentication. + * Retrieve a valid AML token for an Endpoint using AMLToken-based authentication. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param endpointName Online Endpoint name. diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/operations.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/operations.ts index b36bbe2a8d98..ff15652cb3a2 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/operations.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/operations.ts @@ -13,7 +13,7 @@ import { AmlOperation, OperationsListOptionalParams } from "../models"; /** Interface representing a Operations. */ export interface Operations { /** - * Lists all of the available Azure Machine Learning Workspaces REST API operations. + * Lists all of the available Azure Machine Learning Workspaces REST API operations * @param options The options parameters. */ list( diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateEndpointConnections.ts index e36e60ff73cb..e77c1f236623 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateEndpointConnections.ts @@ -10,18 +10,18 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PrivateEndpointConnection, PrivateEndpointConnectionsListOptionalParams, + PrivateEndpointConnectionsDeleteOptionalParams, PrivateEndpointConnectionsGetOptionalParams, PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsCreateOrUpdateOptionalParams, - PrivateEndpointConnectionsCreateOrUpdateResponse, - PrivateEndpointConnectionsDeleteOptionalParams + PrivateEndpointConnectionsCreateOrUpdateResponse } from "../models"; /// /** Interface representing a PrivateEndpointConnections. */ export interface PrivateEndpointConnections { /** - * List all the private endpoint connections associated with the workspace. + * Called by end-users to get all PE connections. * @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. @@ -32,47 +32,45 @@ export interface PrivateEndpointConnections { options?: PrivateEndpointConnectionsListOptionalParams ): PagedAsyncIterableIterator; /** - * Gets the specified private endpoint connection associated with the workspace. + * Called by end-users to delete a PE connection. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the - * workspace + * @param privateEndpointConnectionName NRP Private Endpoint Connection Name * @param options The options parameters. */ - get( + delete( resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams - ): Promise; + options?: PrivateEndpointConnectionsDeleteOptionalParams + ): Promise; /** - * Update the state of specified private endpoint connection associated with the workspace. + * Called by end-users to get a PE connection. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the - * workspace - * @param properties The private endpoint connection properties. + * @param privateEndpointConnectionName NRP Private Endpoint Connection Name * @param options The options parameters. */ - createOrUpdate( + get( resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, - properties: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams - ): Promise; + options?: PrivateEndpointConnectionsGetOptionalParams + ): Promise; /** - * Deletes the specified private endpoint connection associated with the workspace. + * Called by end-users to approve or reject a PE connection. + * This method must validate and forward the call to NRP. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the - * workspace + * @param privateEndpointConnectionName NRP Private Endpoint Connection Name + * @param body PrivateEndpointConnection object * @param options The options parameters. */ - delete( + createOrUpdate( resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams - ): Promise; + body: PrivateEndpointConnection, + options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams + ): Promise; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateLinkResources.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateLinkResources.ts index 9297407ea513..e39fc867683f 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateLinkResources.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateLinkResources.ts @@ -6,15 +6,22 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { - PrivateLinkResourcesListOptionalParams, - PrivateLinkResourcesListResponse + PrivateLinkResource, + PrivateLinkResourcesListOptionalParams } from "../models"; +/// /** Interface representing a PrivateLinkResources. */ export interface PrivateLinkResources { /** - * Gets the private link resources that need to be created for a workspace. + * Called by Client (Portal, CLI, etc) to get available "private link resources" for the workspace. + * Each "private link resource" is a connection endpoint (IP address) to the resource. + * Pre single connection endpoint per workspace: the Data Plane IP address, returned by DNS resolution. + * + * Other RPs, such as Azure Storage, have multiple - one for Blobs, other for Queues, etc. + * Defined in the "[NRP] Private Endpoint Design" doc, topic "GET API for GroupIds". * @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. @@ -23,5 +30,5 @@ export interface PrivateLinkResources { resourceGroupName: string, workspaceName: string, options?: PrivateLinkResourcesListOptionalParams - ): Promise; + ): PagedAsyncIterableIterator; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registries.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registries.ts new file mode 100644 index 000000000000..f9ffd30f865a --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registries.ts @@ -0,0 +1,154 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + Registry, + RegistriesListBySubscriptionOptionalParams, + RegistriesListOptionalParams, + RegistriesDeleteOptionalParams, + RegistriesGetOptionalParams, + RegistriesGetResponse, + PartialRegistryPartialTrackedResource, + RegistriesUpdateOptionalParams, + RegistriesUpdateResponse, + RegistriesCreateOrUpdateOptionalParams, + RegistriesCreateOrUpdateResponse, + RegistriesRemoveRegionsOptionalParams, + RegistriesRemoveRegionsResponse +} from "../models"; + +/// +/** Interface representing a Registries. */ +export interface Registries { + /** + * List registries by subscription + * @param options The options parameters. + */ + listBySubscription( + options?: RegistriesListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; + /** + * List registries + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + options?: RegistriesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + options?: RegistriesDeleteOptionalParams + ): Promise, void>>; + /** + * Delete registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + options?: RegistriesDeleteOptionalParams + ): Promise; + /** + * Get registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + options?: RegistriesGetOptionalParams + ): Promise; + /** + * Update tags + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param body Details required to create the registry. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + registryName: string, + body: PartialRegistryPartialTrackedResource, + options?: RegistriesUpdateOptionalParams + ): Promise; + /** + * Create or update registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param body Details required to create the registry. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + body: Registry, + options?: RegistriesCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistriesCreateOrUpdateResponse + > + >; + /** + * Create or update registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param body Details required to create the registry. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + body: Registry, + options?: RegistriesCreateOrUpdateOptionalParams + ): Promise; + /** + * Remove regions from registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param body Details required to create the registry. + * @param options The options parameters. + */ + beginRemoveRegions( + resourceGroupName: string, + registryName: string, + body: Registry, + options?: RegistriesRemoveRegionsOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistriesRemoveRegionsResponse + > + >; + /** + * Remove regions from registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param body Details required to create the registry. + * @param options The options parameters. + */ + beginRemoveRegionsAndWait( + resourceGroupName: string, + registryName: string, + body: Registry, + options?: RegistriesRemoveRegionsOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeContainers.ts new file mode 100644 index 000000000000..f262f9e416f4 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeContainers.ts @@ -0,0 +1,109 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + CodeContainer, + RegistryCodeContainersListOptionalParams, + RegistryCodeContainersDeleteOptionalParams, + RegistryCodeContainersGetOptionalParams, + RegistryCodeContainersGetResponse, + RegistryCodeContainersCreateOrUpdateOptionalParams, + RegistryCodeContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a RegistryCodeContainers. */ +export interface RegistryCodeContainers { + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + options?: RegistryCodeContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete Code container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeContainersDeleteOptionalParams + ): Promise, void>>; + /** + * Delete Code container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeContainersDeleteOptionalParams + ): Promise; + /** + * Get Code container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeContainersGetOptionalParams + ): Promise; + /** + * Create or update Code container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + codeName: string, + body: CodeContainer, + options?: RegistryCodeContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryCodeContainersCreateOrUpdateResponse + > + >; + /** + * Create or update Code container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + codeName: string, + body: CodeContainer, + options?: RegistryCodeContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeVersions.ts new file mode 100644 index 000000000000..ba470187fbda --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeVersions.ts @@ -0,0 +1,141 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + CodeVersion, + RegistryCodeVersionsListOptionalParams, + RegistryCodeVersionsDeleteOptionalParams, + RegistryCodeVersionsGetOptionalParams, + RegistryCodeVersionsGetResponse, + RegistryCodeVersionsCreateOrUpdateOptionalParams, + RegistryCodeVersionsCreateOrUpdateResponse, + PendingUploadRequestDto, + RegistryCodeVersionsCreateOrGetStartPendingUploadOptionalParams, + RegistryCodeVersionsCreateOrGetStartPendingUploadResponse +} from "../models"; + +/// +/** Interface representing a RegistryCodeVersions. */ +export interface RegistryCodeVersions { + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + options?: RegistryCodeVersionsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + options?: RegistryCodeVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + options?: RegistryCodeVersionsGetOptionalParams + ): Promise; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + body: CodeVersion, + options?: RegistryCodeVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryCodeVersionsCreateOrUpdateResponse + > + >; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + body: CodeVersion, + options?: RegistryCodeVersionsCreateOrUpdateOptionalParams + ): Promise; + /** + * Generate a storage location and credential for the client to upload a code asset to. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Pending upload name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Pending upload request object + * @param options The options parameters. + */ + createOrGetStartPendingUpload( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + body: PendingUploadRequestDto, + options?: RegistryCodeVersionsCreateOrGetStartPendingUploadOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentContainers.ts new file mode 100644 index 000000000000..0ff64b3bb428 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentContainers.ts @@ -0,0 +1,109 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ComponentContainer, + RegistryComponentContainersListOptionalParams, + RegistryComponentContainersDeleteOptionalParams, + RegistryComponentContainersGetOptionalParams, + RegistryComponentContainersGetResponse, + RegistryComponentContainersCreateOrUpdateOptionalParams, + RegistryComponentContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a RegistryComponentContainers. */ +export interface RegistryComponentContainers { + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + options?: RegistryComponentContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentContainersDeleteOptionalParams + ): Promise, void>>; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentContainersDeleteOptionalParams + ): Promise; + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentContainersGetOptionalParams + ): Promise; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + componentName: string, + body: ComponentContainer, + options?: RegistryComponentContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryComponentContainersCreateOrUpdateResponse + > + >; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + componentName: string, + body: ComponentContainer, + options?: RegistryComponentContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentVersions.ts new file mode 100644 index 000000000000..cf3f8025717f --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentVersions.ts @@ -0,0 +1,121 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ComponentVersion, + RegistryComponentVersionsListOptionalParams, + RegistryComponentVersionsDeleteOptionalParams, + RegistryComponentVersionsGetOptionalParams, + RegistryComponentVersionsGetResponse, + RegistryComponentVersionsCreateOrUpdateOptionalParams, + RegistryComponentVersionsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a RegistryComponentVersions. */ +export interface RegistryComponentVersions { + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + componentName: string, + version: string, + options?: RegistryComponentVersionsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + componentName: string, + version: string, + options?: RegistryComponentVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + componentName: string, + version: string, + options?: RegistryComponentVersionsGetOptionalParams + ): Promise; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + componentName: string, + version: string, + body: ComponentVersion, + options?: RegistryComponentVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryComponentVersionsCreateOrUpdateResponse + > + >; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + componentName: string, + version: string, + body: ComponentVersion, + options?: RegistryComponentVersionsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataContainers.ts new file mode 100644 index 000000000000..705ef292f8d8 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataContainers.ts @@ -0,0 +1,109 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + DataContainer, + RegistryDataContainersListOptionalParams, + RegistryDataContainersDeleteOptionalParams, + RegistryDataContainersGetOptionalParams, + RegistryDataContainersGetResponse, + RegistryDataContainersCreateOrUpdateOptionalParams, + RegistryDataContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a RegistryDataContainers. */ +export interface RegistryDataContainers { + /** + * List Data containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + options?: RegistryDataContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataContainersDeleteOptionalParams + ): Promise, void>>; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataContainersDeleteOptionalParams + ): Promise; + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataContainersGetOptionalParams + ): Promise; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + name: string, + body: DataContainer, + options?: RegistryDataContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryDataContainersCreateOrUpdateResponse + > + >; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + name: string, + body: DataContainer, + options?: RegistryDataContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataVersions.ts new file mode 100644 index 000000000000..2d77a622ca68 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataVersions.ts @@ -0,0 +1,141 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + DataVersionBase, + RegistryDataVersionsListOptionalParams, + RegistryDataVersionsDeleteOptionalParams, + RegistryDataVersionsGetOptionalParams, + RegistryDataVersionsGetResponse, + RegistryDataVersionsCreateOrUpdateOptionalParams, + RegistryDataVersionsCreateOrUpdateResponse, + PendingUploadRequestDto, + RegistryDataVersionsCreateOrGetStartPendingUploadOptionalParams, + RegistryDataVersionsCreateOrGetStartPendingUploadResponse +} from "../models"; + +/// +/** Interface representing a RegistryDataVersions. */ +export interface RegistryDataVersions { + /** + * List data versions in the data container + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Data container's name + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + options?: RegistryDataVersionsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + options?: RegistryDataVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + options?: RegistryDataVersionsGetOptionalParams + ): Promise; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + body: DataVersionBase, + options?: RegistryDataVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryDataVersionsCreateOrUpdateResponse + > + >; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + body: DataVersionBase, + options?: RegistryDataVersionsCreateOrUpdateOptionalParams + ): Promise; + /** + * Generate a storage location and credential for the client to upload a data asset to. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Data asset name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Pending upload request object + * @param options The options parameters. + */ + createOrGetStartPendingUpload( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + body: PendingUploadRequestDto, + options?: RegistryDataVersionsCreateOrGetStartPendingUploadOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentContainers.ts new file mode 100644 index 000000000000..6ab15688b254 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentContainers.ts @@ -0,0 +1,109 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + EnvironmentContainer, + RegistryEnvironmentContainersListOptionalParams, + RegistryEnvironmentContainersDeleteOptionalParams, + RegistryEnvironmentContainersGetOptionalParams, + RegistryEnvironmentContainersGetResponse, + RegistryEnvironmentContainersCreateOrUpdateOptionalParams, + RegistryEnvironmentContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a RegistryEnvironmentContainers. */ +export interface RegistryEnvironmentContainers { + /** + * List environment containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + options?: RegistryEnvironmentContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentContainersDeleteOptionalParams + ): Promise, void>>; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentContainersDeleteOptionalParams + ): Promise; + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentContainersGetOptionalParams + ): Promise; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + environmentName: string, + body: EnvironmentContainer, + options?: RegistryEnvironmentContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryEnvironmentContainersCreateOrUpdateResponse + > + >; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + environmentName: string, + body: EnvironmentContainer, + options?: RegistryEnvironmentContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentVersions.ts new file mode 100644 index 000000000000..9851705d868c --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentVersions.ts @@ -0,0 +1,121 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + EnvironmentVersion, + RegistryEnvironmentVersionsListOptionalParams, + RegistryEnvironmentVersionsDeleteOptionalParams, + RegistryEnvironmentVersionsGetOptionalParams, + RegistryEnvironmentVersionsGetResponse, + RegistryEnvironmentVersionsCreateOrUpdateOptionalParams, + RegistryEnvironmentVersionsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a RegistryEnvironmentVersions. */ +export interface RegistryEnvironmentVersions { + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. This is case-sensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + environmentName: string, + version: string, + options?: RegistryEnvironmentVersionsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + environmentName: string, + version: string, + options?: RegistryEnvironmentVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + environmentName: string, + version: string, + options?: RegistryEnvironmentVersionsGetOptionalParams + ): Promise; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + environmentName: string, + version: string, + body: EnvironmentVersion, + options?: RegistryEnvironmentVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryEnvironmentVersionsCreateOrUpdateResponse + > + >; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + environmentName: string, + version: string, + body: EnvironmentVersion, + options?: RegistryEnvironmentVersionsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelContainers.ts new file mode 100644 index 000000000000..86ad54bd7d80 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelContainers.ts @@ -0,0 +1,109 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ModelContainer, + RegistryModelContainersListOptionalParams, + RegistryModelContainersDeleteOptionalParams, + RegistryModelContainersGetOptionalParams, + RegistryModelContainersGetResponse, + RegistryModelContainersCreateOrUpdateOptionalParams, + RegistryModelContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a RegistryModelContainers. */ +export interface RegistryModelContainers { + /** + * List model containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + options?: RegistryModelContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelContainersDeleteOptionalParams + ): Promise, void>>; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelContainersDeleteOptionalParams + ): Promise; + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelContainersGetOptionalParams + ): Promise; + /** + * Create or update model container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + modelName: string, + body: ModelContainer, + options?: RegistryModelContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryModelContainersCreateOrUpdateResponse + > + >; + /** + * Create or update model container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + modelName: string, + body: ModelContainer, + options?: RegistryModelContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelVersions.ts new file mode 100644 index 000000000000..3d62005388a3 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelVersions.ts @@ -0,0 +1,183 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ModelVersion, + RegistryModelVersionsListOptionalParams, + RegistryModelVersionsDeleteOptionalParams, + RegistryModelVersionsGetOptionalParams, + RegistryModelVersionsGetResponse, + RegistryModelVersionsCreateOrUpdateOptionalParams, + RegistryModelVersionsCreateOrUpdateResponse, + PackageRequest, + RegistryModelVersionsPackageOptionalParams, + RegistryModelVersionsPackageResponse, + PendingUploadRequestDto, + RegistryModelVersionsCreateOrGetStartPendingUploadOptionalParams, + RegistryModelVersionsCreateOrGetStartPendingUploadResponse +} from "../models"; + +/// +/** Interface representing a RegistryModelVersions. */ +export interface RegistryModelVersions { + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + options?: RegistryModelVersionsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + options?: RegistryModelVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + options?: RegistryModelVersionsGetOptionalParams + ): Promise; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + body: ModelVersion, + options?: RegistryModelVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryModelVersionsCreateOrUpdateResponse + > + >; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + body: ModelVersion, + options?: RegistryModelVersionsCreateOrUpdateOptionalParams + ): Promise; + /** + * Model Version Package operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Package operation request body. + * @param options The options parameters. + */ + beginPackage( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + body: PackageRequest, + options?: RegistryModelVersionsPackageOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryModelVersionsPackageResponse + > + >; + /** + * Model Version Package operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Package operation request body. + * @param options The options parameters. + */ + beginPackageAndWait( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + body: PackageRequest, + options?: RegistryModelVersionsPackageOptionalParams + ): Promise; + /** + * Generate a storage location and credential for the client to upload a model asset to. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Model name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Pending upload request object + * @param options The options parameters. + */ + createOrGetStartPendingUpload( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + body: PendingUploadRequestDto, + options?: RegistryModelVersionsCreateOrGetStartPendingUploadOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/schedules.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/schedules.ts index aaa2ce6be834..71b7e146765d 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/schedules.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/schedules.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { Schedule, SchedulesListOptionalParams, @@ -44,7 +44,7 @@ export interface Schedules { workspaceName: string, name: string, options?: SchedulesDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Delete schedule. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -86,8 +86,8 @@ export interface Schedules { body: Schedule, options?: SchedulesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SchedulesCreateOrUpdateResponse > >; diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/serverlessEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/serverlessEndpoints.ts new file mode 100644 index 000000000000..900951e9b90e --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/serverlessEndpoints.ts @@ -0,0 +1,200 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ServerlessEndpoint, + ServerlessEndpointsListOptionalParams, + ServerlessEndpointsDeleteOptionalParams, + ServerlessEndpointsGetOptionalParams, + ServerlessEndpointsGetResponse, + PartialMinimalTrackedResourceWithSkuAndIdentity, + ServerlessEndpointsUpdateOptionalParams, + ServerlessEndpointsUpdateResponse, + ServerlessEndpointsCreateOrUpdateOptionalParams, + ServerlessEndpointsCreateOrUpdateResponse, + ServerlessEndpointsListKeysOptionalParams, + ServerlessEndpointsListKeysResponse, + RegenerateEndpointKeysRequest, + ServerlessEndpointsRegenerateKeysOptionalParams, + ServerlessEndpointsRegenerateKeysResponse +} from "../models"; + +/// +/** Interface representing a ServerlessEndpoints. */ +export interface ServerlessEndpoints { + /** + * List Serverless Endpoints. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: ServerlessEndpointsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ServerlessEndpointsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ServerlessEndpointsDeleteOptionalParams + ): Promise; + /** + * Get Serverless Endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ServerlessEndpointsGetOptionalParams + ): Promise; + /** + * Update Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body Serverless Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: PartialMinimalTrackedResourceWithSkuAndIdentity, + options?: ServerlessEndpointsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ServerlessEndpointsUpdateResponse + > + >; + /** + * Update Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body Serverless Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: PartialMinimalTrackedResourceWithSkuAndIdentity, + options?: ServerlessEndpointsUpdateOptionalParams + ): Promise; + /** + * Create or update Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body Serverless Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: ServerlessEndpoint, + options?: ServerlessEndpointsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ServerlessEndpointsCreateOrUpdateResponse + > + >; + /** + * Create or update Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body Serverless Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: ServerlessEndpoint, + options?: ServerlessEndpointsCreateOrUpdateOptionalParams + ): Promise; + /** + * List EndpointAuthKeys for an Endpoint using Key-based authentication. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param options The options parameters. + */ + listKeys( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ServerlessEndpointsListKeysOptionalParams + ): Promise; + /** + * Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body RegenerateKeys request . + * @param options The options parameters. + */ + beginRegenerateKeys( + resourceGroupName: string, + workspaceName: string, + name: string, + body: RegenerateEndpointKeysRequest, + options?: ServerlessEndpointsRegenerateKeysOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ServerlessEndpointsRegenerateKeysResponse + > + >; + /** + * Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body RegenerateKeys request . + * @param options The options parameters. + */ + beginRegenerateKeysAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: RegenerateEndpointKeysRequest, + options?: ServerlessEndpointsRegenerateKeysOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaceConnections.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaceConnections.ts index 1b33ac27cf3e..e49c60c40245 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaceConnections.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaceConnections.ts @@ -10,17 +10,22 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { WorkspaceConnectionPropertiesV2BasicResource, WorkspaceConnectionsListOptionalParams, - WorkspaceConnectionsCreateOptionalParams, - WorkspaceConnectionsCreateResponse, + WorkspaceConnectionsDeleteOptionalParams, WorkspaceConnectionsGetOptionalParams, WorkspaceConnectionsGetResponse, - WorkspaceConnectionsDeleteOptionalParams + WorkspaceConnectionsUpdateOptionalParams, + WorkspaceConnectionsUpdateResponse, + WorkspaceConnectionsCreateOptionalParams, + WorkspaceConnectionsCreateResponse, + WorkspaceConnectionsListSecretsOptionalParams, + WorkspaceConnectionsListSecretsResponse } from "../models"; /// /** Interface representing a WorkspaceConnections. */ export interface WorkspaceConnections { /** + * Lists all the available machine learning workspaces connections under the specified workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. @@ -31,20 +36,20 @@ export interface WorkspaceConnections { options?: WorkspaceConnectionsListOptionalParams ): PagedAsyncIterableIterator; /** + * Delete machine learning workspaces connections by name. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param connectionName Friendly name of the workspace connection - * @param parameters The object for creating or updating a new workspace connection * @param options The options parameters. */ - create( + delete( resourceGroupName: string, workspaceName: string, connectionName: string, - parameters: WorkspaceConnectionPropertiesV2BasicResource, - options?: WorkspaceConnectionsCreateOptionalParams - ): Promise; + options?: WorkspaceConnectionsDeleteOptionalParams + ): Promise; /** + * Lists machine learning workspaces connections by name. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param connectionName Friendly name of the workspace connection @@ -57,15 +62,42 @@ export interface WorkspaceConnections { options?: WorkspaceConnectionsGetOptionalParams ): Promise; /** + * Update machine learning workspaces connections under the specified workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param connectionName Friendly name of the workspace connection * @param options The options parameters. */ - delete( + update( resourceGroupName: string, workspaceName: string, connectionName: string, - options?: WorkspaceConnectionsDeleteOptionalParams - ): Promise; + options?: WorkspaceConnectionsUpdateOptionalParams + ): Promise; + /** + * Create or update machine learning workspaces connections under the specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param options The options parameters. + */ + create( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsCreateOptionalParams + ): Promise; + /** + * List all the secrets of a machine learning workspaces connections. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param options The options parameters. + */ + listSecrets( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsListSecretsOptionalParams + ): Promise; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaces.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaces.ts index 39e9d916b20b..d3a302f393b2 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaces.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaces.ts @@ -7,39 +7,46 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { Workspace, - WorkspacesListByResourceGroupOptionalParams, WorkspacesListBySubscriptionOptionalParams, + WorkspacesListByResourceGroupOptionalParams, + WorkspacesDeleteOptionalParams, WorkspacesGetOptionalParams, WorkspacesGetResponse, - WorkspacesCreateOrUpdateOptionalParams, - WorkspacesCreateOrUpdateResponse, - WorkspacesDeleteOptionalParams, WorkspaceUpdateParameters, WorkspacesUpdateOptionalParams, WorkspacesUpdateResponse, + WorkspacesCreateOrUpdateOptionalParams, + WorkspacesCreateOrUpdateResponse, WorkspacesDiagnoseOptionalParams, WorkspacesDiagnoseResponse, WorkspacesListKeysOptionalParams, WorkspacesListKeysResponse, - WorkspacesResyncKeysOptionalParams, WorkspacesListNotebookAccessTokenOptionalParams, WorkspacesListNotebookAccessTokenResponse, - WorkspacesPrepareNotebookOptionalParams, - WorkspacesPrepareNotebookResponse, - WorkspacesListStorageAccountKeysOptionalParams, - WorkspacesListStorageAccountKeysResponse, WorkspacesListNotebookKeysOptionalParams, WorkspacesListNotebookKeysResponse, + WorkspacesListStorageAccountKeysOptionalParams, + WorkspacesListStorageAccountKeysResponse, WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams, - WorkspacesListOutboundNetworkDependenciesEndpointsResponse + WorkspacesListOutboundNetworkDependenciesEndpointsResponse, + WorkspacesPrepareNotebookOptionalParams, + WorkspacesPrepareNotebookResponse, + WorkspacesResyncKeysOptionalParams } from "../models"; /// /** Interface representing a Workspaces. */ export interface Workspaces { + /** + * Lists all the available machine learning workspaces under the specified subscription. + * @param options The options parameters. + */ + listBySubscription( + options?: WorkspacesListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; /** * Lists all the available machine learning workspaces under the specified resource group. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -50,107 +57,100 @@ export interface Workspaces { options?: WorkspacesListByResourceGroupOptionalParams ): PagedAsyncIterableIterator; /** - * Lists all the available machine learning workspaces under the specified subscription. - * @param options The options parameters. - */ - listBySubscription( - options?: WorkspacesListBySubscriptionOptionalParams - ): PagedAsyncIterableIterator; - /** - * Gets the properties of the specified machine learning workspace. + * Deletes a machine learning workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ - get( + beginDelete( resourceGroupName: string, workspaceName: string, - options?: WorkspacesGetOptionalParams - ): Promise; + options?: WorkspacesDeleteOptionalParams + ): Promise, void>>; /** - * Creates or updates a workspace with the specified parameters. + * Deletes a machine learning workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param parameters The parameters for creating or updating a machine learning workspace. * @param options The options parameters. */ - beginCreateOrUpdate( + beginDeleteAndWait( resourceGroupName: string, workspaceName: string, - parameters: Workspace, - options?: WorkspacesCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - WorkspacesCreateOrUpdateResponse - > - >; + options?: WorkspacesDeleteOptionalParams + ): Promise; /** - * Creates or updates a workspace with the specified parameters. + * Gets the properties of the specified machine learning workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param parameters The parameters for creating or updating a machine learning workspace. * @param options The options parameters. */ - beginCreateOrUpdateAndWait( + get( resourceGroupName: string, workspaceName: string, - parameters: Workspace, - options?: WorkspacesCreateOrUpdateOptionalParams - ): Promise; + options?: WorkspacesGetOptionalParams + ): Promise; /** - * Deletes a machine learning workspace. + * Updates a machine learning workspace with the specified parameters. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. + * @param body The parameters for updating a machine learning workspace. * @param options The options parameters. */ - beginDelete( + beginUpdate( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams - ): Promise, void>>; + body: WorkspaceUpdateParameters, + options?: WorkspacesUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + WorkspacesUpdateResponse + > + >; /** - * Deletes a machine learning workspace. + * Updates a machine learning workspace with the specified parameters. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. + * @param body The parameters for updating a machine learning workspace. * @param options The options parameters. */ - beginDeleteAndWait( + beginUpdateAndWait( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams - ): Promise; + body: WorkspaceUpdateParameters, + options?: WorkspacesUpdateOptionalParams + ): Promise; /** - * Updates a machine learning workspace with the specified parameters. + * Creates or updates a workspace with the specified parameters. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param parameters The parameters for updating a machine learning workspace. + * @param body The parameters for creating or updating a machine learning workspace. * @param options The options parameters. */ - beginUpdate( + beginCreateOrUpdate( resourceGroupName: string, workspaceName: string, - parameters: WorkspaceUpdateParameters, - options?: WorkspacesUpdateOptionalParams + body: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, - WorkspacesUpdateResponse + SimplePollerLike< + OperationState, + WorkspacesCreateOrUpdateResponse > >; /** - * Updates a machine learning workspace with the specified parameters. + * Creates or updates a workspace with the specified parameters. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param parameters The parameters for updating a machine learning workspace. + * @param body The parameters for creating or updating a machine learning workspace. * @param options The options parameters. */ - beginUpdateAndWait( + beginCreateOrUpdateAndWait( resourceGroupName: string, workspaceName: string, - parameters: WorkspaceUpdateParameters, - options?: WorkspacesUpdateOptionalParams - ): Promise; + body: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise; /** * Diagnose workspace setup issue. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -162,8 +162,8 @@ export interface Workspaces { workspaceName: string, options?: WorkspacesDiagnoseOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesDiagnoseResponse > >; @@ -180,7 +180,7 @@ export interface Workspaces { ): Promise; /** * Lists all the keys associated with this workspace. This includes keys for the storage account, app - * insights and password for container registry + * insights and password for container registry. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. @@ -191,42 +191,52 @@ export interface Workspaces { options?: WorkspacesListKeysOptionalParams ): Promise; /** - * Resync all the keys associated with this workspace. This includes keys for the storage account, app - * insights and password for container registry + * Get Azure Machine Learning Workspace notebook access token * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ - beginResyncKeys( + listNotebookAccessToken( resourceGroupName: string, workspaceName: string, - options?: WorkspacesResyncKeysOptionalParams - ): Promise, void>>; + options?: WorkspacesListNotebookAccessTokenOptionalParams + ): Promise; /** - * Resync all the keys associated with this workspace. This includes keys for the storage account, app - * insights and password for container registry + * Lists keys of Azure Machine Learning Workspaces notebook. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ - beginResyncKeysAndWait( + listNotebookKeys( resourceGroupName: string, workspaceName: string, - options?: WorkspacesResyncKeysOptionalParams - ): Promise; + options?: WorkspacesListNotebookKeysOptionalParams + ): Promise; /** - * return notebook access token and refresh token + * Lists keys of Azure Machine Learning Workspace's storage account. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ - listNotebookAccessToken( + listStorageAccountKeys( resourceGroupName: string, workspaceName: string, - options?: WorkspacesListNotebookAccessTokenOptionalParams - ): Promise; + options?: WorkspacesListStorageAccountKeysOptionalParams + ): Promise; /** - * Prepare a notebook. + * Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) + * programmatically. + * @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. + */ + listOutboundNetworkDependenciesEndpoints( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams + ): Promise; + /** + * Prepare Azure Machine Learning Workspace's notebook resource * @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. @@ -236,13 +246,13 @@ export interface Workspaces { workspaceName: string, options?: WorkspacesPrepareNotebookOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesPrepareNotebookResponse > >; /** - * Prepare a notebook. + * Prepare Azure Machine Learning Workspace's notebook resource * @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. @@ -253,37 +263,27 @@ export interface Workspaces { options?: WorkspacesPrepareNotebookOptionalParams ): Promise; /** - * List storage account keys of a workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param options The options parameters. - */ - listStorageAccountKeys( - resourceGroupName: string, - workspaceName: string, - options?: WorkspacesListStorageAccountKeysOptionalParams - ): Promise; - /** - * List keys of a notebook. + * Resync all the keys associated with this workspace.This includes keys for the storage account, app + * insights and password for container registry * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ - listNotebookKeys( + beginResyncKeys( resourceGroupName: string, workspaceName: string, - options?: WorkspacesListNotebookKeysOptionalParams - ): Promise; + options?: WorkspacesResyncKeysOptionalParams + ): Promise, void>>; /** - * Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) - * programmatically. + * Resync all the keys associated with this workspace.This includes keys for the storage account, app + * insights and password for container registry * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ - listOutboundNetworkDependenciesEndpoints( + beginResyncKeysAndWait( resourceGroupName: string, workspaceName: string, - options?: WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams - ): Promise; + options?: WorkspacesResyncKeysOptionalParams + ): Promise; } diff --git a/sdk/machinelearning/arm-machinelearning/src/pagingHelper.ts b/sdk/machinelearning/arm-machinelearning/src/pagingHelper.ts index d85fc13bce1e..269a2b9814b5 100644 --- a/sdk/machinelearning/arm-machinelearning/src/pagingHelper.ts +++ b/sdk/machinelearning/arm-machinelearning/src/pagingHelper.ts @@ -13,11 +13,11 @@ export interface PageInfo { const pageMap = new WeakMap(); /** - * Given a result page from a pageable operation, returns a - * continuation token that can be used to begin paging from + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from * that point later. - * @param page A result object from calling .byPage() on a paged operation. - * @returns The continuation token that can be passed into byPage(). + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. */ export function getContinuationToken(page: unknown): string | undefined { if (typeof page !== "object" || page === null) { diff --git a/sdk/machinelearning/arm-machinelearning/tsconfig.json b/sdk/machinelearning/arm-machinelearning/tsconfig.json index c068b7a47837..3e6ae96443f3 100644 --- a/sdk/machinelearning/arm-machinelearning/tsconfig.json +++ b/sdk/machinelearning/arm-machinelearning/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-machinelearning": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"